@postenbring/hedwig-react 0.0.47 → 0.0.49

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 (103) hide show
  1. package/dist/button/button.d.mts +12 -5
  2. package/dist/button/button.d.ts +12 -5
  3. package/dist/button/button.js +5 -2
  4. package/dist/button/button.mjs +1 -1
  5. package/dist/button/index.js +5 -2
  6. package/dist/button/index.mjs +1 -1
  7. package/dist/card/card.d.mts +29 -5
  8. package/dist/card/card.d.ts +29 -5
  9. package/dist/card/card.js +26 -32
  10. package/dist/card/card.mjs +1 -1
  11. package/dist/card/index.d.mts +9 -8
  12. package/dist/card/index.d.ts +9 -8
  13. package/dist/card/index.js +26 -32
  14. package/dist/card/index.mjs +2 -2
  15. package/dist/{chunk-3WUAXFB3.mjs → chunk-3WKOOAQL.mjs} +7 -7
  16. package/dist/{chunk-S7FSULI3.mjs → chunk-52YSOWMY.mjs} +1 -1
  17. package/dist/{chunk-6KRJB36T.mjs → chunk-CCNB2ABL.mjs} +6 -15
  18. package/dist/chunk-ERFGFY3Q.mjs +5 -0
  19. package/dist/{chunk-J5QNIAFL.mjs → chunk-JAHBNZTG.mjs} +4 -13
  20. package/dist/{chunk-DOWBGRCN.mjs → chunk-JOKO7Y7O.mjs} +3 -3
  21. package/dist/chunk-JTHBBJZW.mjs +5 -0
  22. package/dist/{chunk-MUGMWWNN.mjs → chunk-LCFKBPZC.mjs} +1 -1
  23. package/dist/{chunk-B3SD7RZV.mjs → chunk-OEOI74US.mjs} +26 -32
  24. package/dist/{chunk-4KBVX3Y7.mjs → chunk-OSCKYUZ3.mjs} +1 -1
  25. package/dist/{chunk-RNALWA7A.mjs → chunk-OX5NTX6M.mjs} +2 -25
  26. package/dist/{chunk-YBSM5D5N.mjs → chunk-PTLX7PHW.mjs} +5 -2
  27. package/dist/chunk-RBOWRO3L.mjs +18 -0
  28. package/dist/chunk-RSL23FEW.mjs +26 -0
  29. package/dist/chunk-SDR3TESK.mjs +39 -0
  30. package/dist/chunk-ZDZR5FVC.mjs +39 -0
  31. package/dist/form/checkbox/checkbox.d.mts +10 -0
  32. package/dist/form/checkbox/checkbox.d.ts +10 -0
  33. package/dist/form/checkbox/checkbox.js +86 -0
  34. package/dist/form/checkbox/checkbox.mjs +7 -0
  35. package/dist/form/checkbox/index.d.mts +2 -0
  36. package/dist/form/checkbox/index.d.ts +2 -0
  37. package/dist/form/checkbox/index.js +92 -0
  38. package/dist/form/checkbox/index.mjs +8 -0
  39. package/dist/form/error-message/error-message.d.mts +1 -2
  40. package/dist/form/error-message/error-message.d.ts +1 -2
  41. package/dist/form/error-message/error-message.js +4 -28
  42. package/dist/form/error-message/error-message.mjs +1 -1
  43. package/dist/form/error-message/index.js +4 -28
  44. package/dist/form/error-message/index.mjs +1 -1
  45. package/dist/form/fieldset/fieldset.d.mts +0 -1
  46. package/dist/form/fieldset/fieldset.d.ts +0 -1
  47. package/dist/form/fieldset/fieldset.js +7 -23
  48. package/dist/form/fieldset/fieldset.mjs +2 -2
  49. package/dist/form/fieldset/index.js +7 -23
  50. package/dist/form/fieldset/index.mjs +2 -2
  51. package/dist/form/index.d.mts +2 -0
  52. package/dist/form/index.d.ts +2 -0
  53. package/dist/form/index.js +89 -61
  54. package/dist/form/index.mjs +17 -7
  55. package/dist/form/input/index.js +10 -49
  56. package/dist/form/input/index.mjs +3 -3
  57. package/dist/form/input/input.js +10 -49
  58. package/dist/form/input/input.mjs +3 -3
  59. package/dist/form/input-group/index.js +9 -25
  60. package/dist/form/input-group/index.mjs +2 -2
  61. package/dist/form/input-group/input-group.d.mts +0 -1
  62. package/dist/form/input-group/input-group.d.ts +0 -1
  63. package/dist/form/input-group/input-group.js +9 -25
  64. package/dist/form/input-group/input-group.mjs +2 -2
  65. package/dist/form/radiobutton/index.d.mts +2 -0
  66. package/dist/form/radiobutton/index.d.ts +2 -0
  67. package/dist/form/radiobutton/index.js +92 -0
  68. package/dist/form/radiobutton/index.mjs +8 -0
  69. package/dist/form/radiobutton/radiobutton.d.mts +10 -0
  70. package/dist/form/radiobutton/radiobutton.d.ts +10 -0
  71. package/dist/form/radiobutton/radiobutton.js +86 -0
  72. package/dist/form/radiobutton/radiobutton.mjs +7 -0
  73. package/dist/form/select/index.js +9 -25
  74. package/dist/form/select/index.mjs +3 -3
  75. package/dist/form/select/select.js +9 -25
  76. package/dist/form/select/select.mjs +3 -3
  77. package/dist/form/textarea/index.js +9 -25
  78. package/dist/form/textarea/index.mjs +3 -3
  79. package/dist/form/textarea/textarea.js +9 -25
  80. package/dist/form/textarea/textarea.mjs +3 -3
  81. package/dist/index.d.mts +3 -1
  82. package/dist/index.d.ts +3 -1
  83. package/dist/index.js +273 -240
  84. package/dist/index.mjs +26 -16
  85. package/dist/list/index.js +10 -2
  86. package/dist/list/index.mjs +1 -1
  87. package/dist/list/link-list.d.mts +1 -1
  88. package/dist/list/link-list.d.ts +1 -1
  89. package/dist/list/link-list.js +10 -2
  90. package/dist/list/link-list.mjs +1 -1
  91. package/dist/navbar/index.js +3 -3
  92. package/dist/navbar/index.mjs +1 -1
  93. package/dist/navbar/navbar-expandable-menu.js +3 -3
  94. package/dist/navbar/navbar-expandable-menu.mjs +1 -1
  95. package/dist/{prose/prose.d.mts → styled-html/styled-html.d.mts} +9 -15
  96. package/dist/{prose/prose.d.ts → styled-html/styled-html.d.ts} +9 -15
  97. package/dist/{prose/prose.js → styled-html/styled-html.js} +11 -11
  98. package/dist/styled-html/styled-html.mjs +7 -0
  99. package/package.json +5 -5
  100. package/dist/chunk-R7GQHCN4.mjs +0 -30
  101. package/dist/chunk-X5URKHFD.mjs +0 -18
  102. package/dist/prose/prose.mjs +0 -7
  103. /package/dist/{chunk-PPUNMHOX.mjs → chunk-5OGUAHLN.mjs} +0 -0
@@ -1,7 +1,7 @@
1
1
  import { O as OverridableComponent } from '../utils-3jLhIyOS.mjs';
2
2
  import 'react';
3
3
 
4
- interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {
4
+ interface ButtonPropsInternal extends React.ButtonHTMLAttributes<HTMLButtonElement> {
5
5
  /**
6
6
  * The height, font size and padding of the button
7
7
  */
@@ -11,16 +11,23 @@ interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {
11
11
  * Using the "mobile" it only stretch to full width on smaller screens
12
12
  */
13
13
  fullWidth?: boolean | "mobile";
14
- /**
15
- * The background of the button.
16
- */
17
- fill?: "contained" | "outlined";
18
14
  /**
19
15
  * Use an icon inside the button
20
16
  */
21
17
  icon?: React.ReactNode;
22
18
  children?: React.ReactNode;
23
19
  }
20
+ type ButtonProps = ButtonPropsInternal & ({
21
+ /**
22
+ * The background fill of the button
23
+ */
24
+ fill?: "contained" | "outline";
25
+ } | {
26
+ /**
27
+ * @deprecated use `fill='outline'` instead
28
+ */
29
+ fill?: "outlined";
30
+ });
24
31
  declare const BaseButton: OverridableComponent<ButtonProps & {
25
32
  variant: "primary" | "secondary";
26
33
  }, HTMLButtonElement>;
@@ -1,7 +1,7 @@
1
1
  import { O as OverridableComponent } from '../utils-3jLhIyOS.js';
2
2
  import 'react';
3
3
 
4
- interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {
4
+ interface ButtonPropsInternal extends React.ButtonHTMLAttributes<HTMLButtonElement> {
5
5
  /**
6
6
  * The height, font size and padding of the button
7
7
  */
@@ -11,16 +11,23 @@ interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {
11
11
  * Using the "mobile" it only stretch to full width on smaller screens
12
12
  */
13
13
  fullWidth?: boolean | "mobile";
14
- /**
15
- * The background of the button.
16
- */
17
- fill?: "contained" | "outlined";
18
14
  /**
19
15
  * Use an icon inside the button
20
16
  */
21
17
  icon?: React.ReactNode;
22
18
  children?: React.ReactNode;
23
19
  }
20
+ type ButtonProps = ButtonPropsInternal & ({
21
+ /**
22
+ * The background fill of the button
23
+ */
24
+ fill?: "contained" | "outline";
25
+ } | {
26
+ /**
27
+ * @deprecated use `fill='outline'` instead
28
+ */
29
+ fill?: "outlined";
30
+ });
24
31
  declare const BaseButton: OverridableComponent<ButtonProps & {
25
32
  variant: "primary" | "secondary";
26
33
  }, HTMLButtonElement>;
@@ -78,6 +78,9 @@ var BaseButton = (0, import_react.forwardRef)(
78
78
  "icon",
79
79
  "className"
80
80
  ]);
81
+ if (fill === "outlined") {
82
+ console.warn("The `fill` value `outlined` is deprecated, use `fill='outline'` instead");
83
+ }
81
84
  return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
82
85
  Component,
83
86
  __spreadProps(__spreadValues({
@@ -86,8 +89,8 @@ var BaseButton = (0, import_react.forwardRef)(
86
89
  `hds-button--${size}`,
87
90
  {
88
91
  [`hds-button--${variant}`]: fill === "contained",
89
- [`hds-button--outline-${variant}`]: fill === "outlined",
90
- "hds-button--full": fullWidth === true,
92
+ [`hds-button--outline-${variant}`]: fill === "outline" || fill === "outlined",
93
+ "hds-button--full": fullWidth,
91
94
  "hds-button--mobile-full": fullWidth === "mobile",
92
95
  "hds-button--icon-only": icon && !children
93
96
  },
@@ -2,7 +2,7 @@ import {
2
2
  BaseButton,
3
3
  PrimaryButton,
4
4
  SecondaryButton
5
- } from "../chunk-YBSM5D5N.mjs";
5
+ } from "../chunk-PTLX7PHW.mjs";
6
6
  import "../chunk-FKR5F35B.mjs";
7
7
  export {
8
8
  BaseButton,
@@ -83,6 +83,9 @@ var BaseButton = (0, import_react.forwardRef)(
83
83
  "icon",
84
84
  "className"
85
85
  ]);
86
+ if (fill === "outlined") {
87
+ console.warn("The `fill` value `outlined` is deprecated, use `fill='outline'` instead");
88
+ }
86
89
  return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
87
90
  Component,
88
91
  __spreadProps(__spreadValues({
@@ -91,8 +94,8 @@ var BaseButton = (0, import_react.forwardRef)(
91
94
  `hds-button--${size}`,
92
95
  {
93
96
  [`hds-button--${variant}`]: fill === "contained",
94
- [`hds-button--outline-${variant}`]: fill === "outlined",
95
- "hds-button--full": fullWidth === true,
97
+ [`hds-button--outline-${variant}`]: fill === "outline" || fill === "outlined",
98
+ "hds-button--full": fullWidth,
96
99
  "hds-button--mobile-full": fullWidth === "mobile",
97
100
  "hds-button--icon-only": icon && !children
98
101
  },
@@ -2,7 +2,7 @@ import "../chunk-VX6MSLLO.mjs";
2
2
  import {
3
3
  PrimaryButton,
4
4
  SecondaryButton
5
- } from "../chunk-YBSM5D5N.mjs";
5
+ } from "../chunk-PTLX7PHW.mjs";
6
6
  import "../chunk-FKR5F35B.mjs";
7
7
  export {
8
8
  PrimaryButton,
@@ -1,21 +1,45 @@
1
- import { HTMLAttributes, ReactNode } from 'react';
1
+ import * as react from 'react';
2
+ import { HTMLAttributes, ReactNode, ElementType } from 'react';
2
3
  import { O as OverridableComponent } from '../utils-3jLhIyOS.mjs';
3
4
 
4
5
  interface CardBaseProps extends HTMLAttributes<HTMLDivElement> {
5
6
  children: ReactNode;
6
7
  }
7
- declare const Card: OverridableComponent<CardBaseProps, HTMLDivElement>;
8
+ declare const Card: OverridableComponent<CardBaseProps & {
9
+ /**
10
+ * A Card should in most cases appear as a big link,
11
+ * but the actual link should just be the header title.
12
+ * To make life better for those with screen readers we should not make
13
+ * the entire card a link, as that would cause the entire card to be read
14
+ * as a link to the user. That would be perceived as information overload.
15
+ */
16
+ as?: Exclude<ElementType, "a">;
17
+ }, HTMLDivElement>;
8
18
  declare const CardMedia: OverridableComponent<CardBaseProps, HTMLDivElement>;
9
19
  interface CardImageMediaProps extends HTMLAttributes<HTMLDivElement> {
10
20
  aspectRatio?: string;
11
21
  }
12
22
  declare const CardMediaImg: OverridableComponent<CardImageMediaProps, HTMLImageElement>;
13
23
  declare const CardBody: OverridableComponent<CardBaseProps, HTMLDivElement>;
14
- declare const CardBodyHeader: OverridableComponent<CardBaseProps, HTMLDivElement>;
24
+ declare const CardBodyHeader: react.ForwardRefExoticComponent<CardBaseProps & {
25
+ /**
26
+ * Heading level of the card heading
27
+ */
28
+ as: "h2" | "h3" | "h4" | "h5" | "h6";
29
+ } & react.RefAttributes<HTMLHeadingElement>>;
15
30
  declare const CardBodyHeaderOverline: OverridableComponent<CardBaseProps, HTMLDivElement>;
16
- declare const CardBodyHeaderTitle: OverridableComponent<CardBaseProps, HTMLDivElement>;
31
+ declare const CardBodyHeaderTitle: OverridableComponent<CardBaseProps & {
32
+ /**
33
+ * A Card should in most cases appear as a big link,
34
+ * but the actual link should just be this header title.
35
+ * To make life better for those with screen readers we should not make
36
+ * the entire card a link, as that would cause the entire card to be read
37
+ * as a link to the user. That would be perceived as information overload.
38
+ */
39
+ as: ElementType;
40
+ }, HTMLDivElement>;
17
41
  declare const CardBodyDescription: OverridableComponent<CardBaseProps, HTMLDivElement>;
18
42
  declare const CardBodyAction: OverridableComponent<CardBaseProps, HTMLDivElement>;
19
- declare const CardBodyActionArrow: OverridableComponent<HTMLAttributes<HTMLAnchorElement>, HTMLAnchorElement>;
43
+ declare const CardBodyActionArrow: OverridableComponent<HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>;
20
44
 
21
45
  export { Card, type CardBaseProps, CardBody, CardBodyAction, CardBodyActionArrow, CardBodyDescription, CardBodyHeader, CardBodyHeaderOverline, CardBodyHeaderTitle, type CardImageMediaProps, CardMedia, CardMediaImg };
@@ -1,21 +1,45 @@
1
- import { HTMLAttributes, ReactNode } from 'react';
1
+ import * as react from 'react';
2
+ import { HTMLAttributes, ReactNode, ElementType } from 'react';
2
3
  import { O as OverridableComponent } from '../utils-3jLhIyOS.js';
3
4
 
4
5
  interface CardBaseProps extends HTMLAttributes<HTMLDivElement> {
5
6
  children: ReactNode;
6
7
  }
7
- declare const Card: OverridableComponent<CardBaseProps, HTMLDivElement>;
8
+ declare const Card: OverridableComponent<CardBaseProps & {
9
+ /**
10
+ * A Card should in most cases appear as a big link,
11
+ * but the actual link should just be the header title.
12
+ * To make life better for those with screen readers we should not make
13
+ * the entire card a link, as that would cause the entire card to be read
14
+ * as a link to the user. That would be perceived as information overload.
15
+ */
16
+ as?: Exclude<ElementType, "a">;
17
+ }, HTMLDivElement>;
8
18
  declare const CardMedia: OverridableComponent<CardBaseProps, HTMLDivElement>;
9
19
  interface CardImageMediaProps extends HTMLAttributes<HTMLDivElement> {
10
20
  aspectRatio?: string;
11
21
  }
12
22
  declare const CardMediaImg: OverridableComponent<CardImageMediaProps, HTMLImageElement>;
13
23
  declare const CardBody: OverridableComponent<CardBaseProps, HTMLDivElement>;
14
- declare const CardBodyHeader: OverridableComponent<CardBaseProps, HTMLDivElement>;
24
+ declare const CardBodyHeader: react.ForwardRefExoticComponent<CardBaseProps & {
25
+ /**
26
+ * Heading level of the card heading
27
+ */
28
+ as: "h2" | "h3" | "h4" | "h5" | "h6";
29
+ } & react.RefAttributes<HTMLHeadingElement>>;
15
30
  declare const CardBodyHeaderOverline: OverridableComponent<CardBaseProps, HTMLDivElement>;
16
- declare const CardBodyHeaderTitle: OverridableComponent<CardBaseProps, HTMLDivElement>;
31
+ declare const CardBodyHeaderTitle: OverridableComponent<CardBaseProps & {
32
+ /**
33
+ * A Card should in most cases appear as a big link,
34
+ * but the actual link should just be this header title.
35
+ * To make life better for those with screen readers we should not make
36
+ * the entire card a link, as that would cause the entire card to be read
37
+ * as a link to the user. That would be perceived as information overload.
38
+ */
39
+ as: ElementType;
40
+ }, HTMLDivElement>;
17
41
  declare const CardBodyDescription: OverridableComponent<CardBaseProps, HTMLDivElement>;
18
42
  declare const CardBodyAction: OverridableComponent<CardBaseProps, HTMLDivElement>;
19
- declare const CardBodyActionArrow: OverridableComponent<HTMLAttributes<HTMLAnchorElement>, HTMLAnchorElement>;
43
+ declare const CardBodyActionArrow: OverridableComponent<HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>;
20
44
 
21
45
  export { Card, type CardBaseProps, CardBody, CardBodyAction, CardBodyActionArrow, CardBodyDescription, CardBodyHeader, CardBodyHeaderOverline, CardBodyHeaderTitle, type CardImageMediaProps, CardMedia, CardMediaImg };
package/dist/card/card.js CHANGED
@@ -64,12 +64,10 @@ module.exports = __toCommonJS(card_exports);
64
64
  var import_react = require("react");
65
65
  var import_typed_classname = require("@postenbring/hedwig-css/typed-classname/index.mjs");
66
66
  var import_jsx_runtime = require("react/jsx-runtime");
67
- var Card = (0, import_react.forwardRef)(
68
- (_a, ref) => {
69
- var _b = _a, { as: Component = "section", className, children } = _b, rest = __objRest(_b, ["as", "className", "children"]);
70
- return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Component, __spreadProps(__spreadValues({}, rest), { className: (0, import_typed_classname.clsx)("hds-card", className), ref, children }));
71
- }
72
- );
67
+ var Card = (0, import_react.forwardRef)((_a, ref) => {
68
+ var _b = _a, { as: Component = "section", className, children } = _b, rest = __objRest(_b, ["as", "className", "children"]);
69
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Component, __spreadProps(__spreadValues({}, rest), { className: (0, import_typed_classname.clsx)("hds-card", className), ref, children }));
70
+ });
73
71
  Card.displayName = "Card";
74
72
  var CardMedia = (0, import_react.forwardRef)(
75
73
  (_a, ref) => {
@@ -98,19 +96,17 @@ var CardBody = (0, import_react.forwardRef)(
98
96
  }
99
97
  );
100
98
  CardBody.displayName = "Card.Body";
101
- var CardBodyHeader = (0, import_react.forwardRef)(
102
- (_a, ref) => {
103
- var _b = _a, { as: Component = "h3", className, children } = _b, rest = __objRest(_b, ["as", "className", "children"]);
104
- return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
105
- Component,
106
- __spreadProps(__spreadValues({}, rest), {
107
- className: (0, import_typed_classname.clsx)("hds-card__body-header", className),
108
- ref,
109
- children
110
- })
111
- );
112
- }
113
- );
99
+ var CardBodyHeader = (0, import_react.forwardRef)((_a, ref) => {
100
+ var _b = _a, { as: Component, className, children } = _b, rest = __objRest(_b, ["as", "className", "children"]);
101
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
102
+ Component,
103
+ __spreadProps(__spreadValues({}, rest), {
104
+ className: (0, import_typed_classname.clsx)("hds-card__body-header", className),
105
+ ref,
106
+ children
107
+ })
108
+ );
109
+ });
114
110
  CardBodyHeader.displayName = "Card.Body.Header";
115
111
  var CardBodyHeaderOverline = (0, import_react.forwardRef)((_a, ref) => {
116
112
  var _b = _a, { as: Component = "span", className, children } = _b, rest = __objRest(_b, ["as", "className", "children"]);
@@ -124,19 +120,17 @@ var CardBodyHeaderOverline = (0, import_react.forwardRef)((_a, ref) => {
124
120
  );
125
121
  });
126
122
  CardBodyHeaderOverline.displayName = "Card.Body.Header.Overline";
127
- var CardBodyHeaderTitle = (0, import_react.forwardRef)(
128
- (_a, ref) => {
129
- var _b = _a, { as: Component = "span", className, children } = _b, rest = __objRest(_b, ["as", "className", "children"]);
130
- return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
131
- Component,
132
- __spreadProps(__spreadValues({}, rest), {
133
- className: (0, import_typed_classname.clsx)("hds-card__body-header-title", className),
134
- ref,
135
- children
136
- })
137
- );
138
- }
139
- );
123
+ var CardBodyHeaderTitle = (0, import_react.forwardRef)((_a, ref) => {
124
+ var _b = _a, { as: Component, className, children } = _b, rest = __objRest(_b, ["as", "className", "children"]);
125
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
126
+ Component,
127
+ __spreadProps(__spreadValues({}, rest), {
128
+ className: (0, import_typed_classname.clsx)("hds-card__body-header-title", className),
129
+ ref,
130
+ children
131
+ })
132
+ );
133
+ });
140
134
  CardBodyHeaderTitle.displayName = "Card.Body.Header.Title";
141
135
  var CardBodyDescription = (0, import_react.forwardRef)(
142
136
  (_a, ref) => {
@@ -9,7 +9,7 @@ import {
9
9
  CardBodyHeaderTitle,
10
10
  CardMedia,
11
11
  CardMediaImg
12
- } from "../chunk-B3SD7RZV.mjs";
12
+ } from "../chunk-OEOI74US.mjs";
13
13
  import "../chunk-FKR5F35B.mjs";
14
14
  export {
15
15
  Card,
@@ -11,12 +11,9 @@ declare const CardMediaComponent: {
11
11
  } & Pick<react.FC, "displayName"> & {
12
12
  Img: typeof CardMediaImg;
13
13
  };
14
- declare const CardBodyHeaderComponent: {
15
- (props: CardBaseProps & react.RefAttributes<HTMLDivElement>): react.ReactNode;
16
- <As extends react.ElementType>(props: {
17
- as?: As | undefined;
18
- } & CardBaseProps & Omit<react.ComponentPropsWithRef<As>, keyof CardBaseProps>): react.ReactNode;
19
- } & Pick<react.FC, "displayName"> & {
14
+ declare const CardBodyHeaderComponent: react.ForwardRefExoticComponent<CardBaseProps & {
15
+ as: "h2" | "h3" | "h4" | "h5" | "h6";
16
+ } & react.RefAttributes<HTMLHeadingElement>> & {
20
17
  Overline: typeof CardBodyHeaderOverline;
21
18
  Title: typeof CardBodyHeaderTitle;
22
19
  };
@@ -41,10 +38,14 @@ declare const CardBodyComponent: {
41
38
  Action: typeof CardBodyActionComponent;
42
39
  };
43
40
  declare const CardComponent: {
44
- (props: CardBaseProps & react.RefAttributes<HTMLDivElement>): react.ReactNode;
41
+ (props: CardBaseProps & {
42
+ as?: "symbol" | "object" | "abbr" | "address" | "area" | "article" | "aside" | "audio" | "b" | "base" | "bdi" | "bdo" | "big" | "blockquote" | "body" | "br" | "button" | "canvas" | "caption" | "center" | "cite" | "code" | "col" | "colgroup" | "data" | "datalist" | "dd" | "del" | "details" | "dfn" | "dialog" | "div" | "dl" | "dt" | "em" | "embed" | "fieldset" | "figcaption" | "figure" | "footer" | "form" | "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "head" | "header" | "hgroup" | "hr" | "html" | "i" | "iframe" | "img" | "input" | "ins" | "kbd" | "keygen" | "label" | "legend" | "li" | "link" | "main" | "map" | "mark" | "menu" | "menuitem" | "meta" | "meter" | "nav" | "noindex" | "noscript" | "ol" | "optgroup" | "option" | "output" | "p" | "param" | "picture" | "pre" | "progress" | "q" | "rp" | "rt" | "ruby" | "s" | "samp" | "search" | "slot" | "script" | "section" | "select" | "small" | "source" | "span" | "strong" | "style" | "sub" | "summary" | "sup" | "table" | "template" | "tbody" | "td" | "textarea" | "tfoot" | "th" | "thead" | "time" | "title" | "tr" | "track" | "u" | "ul" | "var" | "video" | "wbr" | "webview" | "svg" | "animate" | "animateMotion" | "animateTransform" | "circle" | "clipPath" | "defs" | "desc" | "ellipse" | "feBlend" | "feColorMatrix" | "feComponentTransfer" | "feComposite" | "feConvolveMatrix" | "feDiffuseLighting" | "feDisplacementMap" | "feDistantLight" | "feDropShadow" | "feFlood" | "feFuncA" | "feFuncB" | "feFuncG" | "feFuncR" | "feGaussianBlur" | "feImage" | "feMerge" | "feMergeNode" | "feMorphology" | "feOffset" | "fePointLight" | "feSpecularLighting" | "feSpotLight" | "feTile" | "feTurbulence" | "filter" | "foreignObject" | "g" | "image" | "line" | "linearGradient" | "marker" | "mask" | "metadata" | "mpath" | "path" | "pattern" | "polygon" | "polyline" | "radialGradient" | "rect" | "set" | "stop" | "switch" | "text" | "textPath" | "tspan" | "use" | "view" | react.ComponentType<any> | undefined;
43
+ } & react.RefAttributes<HTMLDivElement>): react.ReactNode;
45
44
  <As extends react.ElementType>(props: {
46
45
  as?: As | undefined;
47
- } & CardBaseProps & Omit<react.ComponentPropsWithRef<As>, keyof CardBaseProps>): react.ReactNode;
46
+ } & CardBaseProps & {
47
+ as?: "symbol" | "object" | "abbr" | "address" | "area" | "article" | "aside" | "audio" | "b" | "base" | "bdi" | "bdo" | "big" | "blockquote" | "body" | "br" | "button" | "canvas" | "caption" | "center" | "cite" | "code" | "col" | "colgroup" | "data" | "datalist" | "dd" | "del" | "details" | "dfn" | "dialog" | "div" | "dl" | "dt" | "em" | "embed" | "fieldset" | "figcaption" | "figure" | "footer" | "form" | "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "head" | "header" | "hgroup" | "hr" | "html" | "i" | "iframe" | "img" | "input" | "ins" | "kbd" | "keygen" | "label" | "legend" | "li" | "link" | "main" | "map" | "mark" | "menu" | "menuitem" | "meta" | "meter" | "nav" | "noindex" | "noscript" | "ol" | "optgroup" | "option" | "output" | "p" | "param" | "picture" | "pre" | "progress" | "q" | "rp" | "rt" | "ruby" | "s" | "samp" | "search" | "slot" | "script" | "section" | "select" | "small" | "source" | "span" | "strong" | "style" | "sub" | "summary" | "sup" | "table" | "template" | "tbody" | "td" | "textarea" | "tfoot" | "th" | "thead" | "time" | "title" | "tr" | "track" | "u" | "ul" | "var" | "video" | "wbr" | "webview" | "svg" | "animate" | "animateMotion" | "animateTransform" | "circle" | "clipPath" | "defs" | "desc" | "ellipse" | "feBlend" | "feColorMatrix" | "feComponentTransfer" | "feComposite" | "feConvolveMatrix" | "feDiffuseLighting" | "feDisplacementMap" | "feDistantLight" | "feDropShadow" | "feFlood" | "feFuncA" | "feFuncB" | "feFuncG" | "feFuncR" | "feGaussianBlur" | "feImage" | "feMerge" | "feMergeNode" | "feMorphology" | "feOffset" | "fePointLight" | "feSpecularLighting" | "feSpotLight" | "feTile" | "feTurbulence" | "filter" | "foreignObject" | "g" | "image" | "line" | "linearGradient" | "marker" | "mask" | "metadata" | "mpath" | "path" | "pattern" | "polygon" | "polyline" | "radialGradient" | "rect" | "set" | "stop" | "switch" | "text" | "textPath" | "tspan" | "use" | "view" | react.ComponentType<any> | undefined;
48
+ } & Omit<react.ComponentPropsWithRef<As>, "as" | keyof CardBaseProps>): react.ReactNode;
48
49
  } & Pick<react.FC, "displayName"> & {
49
50
  Media: typeof CardMediaComponent;
50
51
  Body: typeof CardBodyComponent;
@@ -11,12 +11,9 @@ declare const CardMediaComponent: {
11
11
  } & Pick<react.FC, "displayName"> & {
12
12
  Img: typeof CardMediaImg;
13
13
  };
14
- declare const CardBodyHeaderComponent: {
15
- (props: CardBaseProps & react.RefAttributes<HTMLDivElement>): react.ReactNode;
16
- <As extends react.ElementType>(props: {
17
- as?: As | undefined;
18
- } & CardBaseProps & Omit<react.ComponentPropsWithRef<As>, keyof CardBaseProps>): react.ReactNode;
19
- } & Pick<react.FC, "displayName"> & {
14
+ declare const CardBodyHeaderComponent: react.ForwardRefExoticComponent<CardBaseProps & {
15
+ as: "h2" | "h3" | "h4" | "h5" | "h6";
16
+ } & react.RefAttributes<HTMLHeadingElement>> & {
20
17
  Overline: typeof CardBodyHeaderOverline;
21
18
  Title: typeof CardBodyHeaderTitle;
22
19
  };
@@ -41,10 +38,14 @@ declare const CardBodyComponent: {
41
38
  Action: typeof CardBodyActionComponent;
42
39
  };
43
40
  declare const CardComponent: {
44
- (props: CardBaseProps & react.RefAttributes<HTMLDivElement>): react.ReactNode;
41
+ (props: CardBaseProps & {
42
+ as?: "symbol" | "object" | "abbr" | "address" | "area" | "article" | "aside" | "audio" | "b" | "base" | "bdi" | "bdo" | "big" | "blockquote" | "body" | "br" | "button" | "canvas" | "caption" | "center" | "cite" | "code" | "col" | "colgroup" | "data" | "datalist" | "dd" | "del" | "details" | "dfn" | "dialog" | "div" | "dl" | "dt" | "em" | "embed" | "fieldset" | "figcaption" | "figure" | "footer" | "form" | "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "head" | "header" | "hgroup" | "hr" | "html" | "i" | "iframe" | "img" | "input" | "ins" | "kbd" | "keygen" | "label" | "legend" | "li" | "link" | "main" | "map" | "mark" | "menu" | "menuitem" | "meta" | "meter" | "nav" | "noindex" | "noscript" | "ol" | "optgroup" | "option" | "output" | "p" | "param" | "picture" | "pre" | "progress" | "q" | "rp" | "rt" | "ruby" | "s" | "samp" | "search" | "slot" | "script" | "section" | "select" | "small" | "source" | "span" | "strong" | "style" | "sub" | "summary" | "sup" | "table" | "template" | "tbody" | "td" | "textarea" | "tfoot" | "th" | "thead" | "time" | "title" | "tr" | "track" | "u" | "ul" | "var" | "video" | "wbr" | "webview" | "svg" | "animate" | "animateMotion" | "animateTransform" | "circle" | "clipPath" | "defs" | "desc" | "ellipse" | "feBlend" | "feColorMatrix" | "feComponentTransfer" | "feComposite" | "feConvolveMatrix" | "feDiffuseLighting" | "feDisplacementMap" | "feDistantLight" | "feDropShadow" | "feFlood" | "feFuncA" | "feFuncB" | "feFuncG" | "feFuncR" | "feGaussianBlur" | "feImage" | "feMerge" | "feMergeNode" | "feMorphology" | "feOffset" | "fePointLight" | "feSpecularLighting" | "feSpotLight" | "feTile" | "feTurbulence" | "filter" | "foreignObject" | "g" | "image" | "line" | "linearGradient" | "marker" | "mask" | "metadata" | "mpath" | "path" | "pattern" | "polygon" | "polyline" | "radialGradient" | "rect" | "set" | "stop" | "switch" | "text" | "textPath" | "tspan" | "use" | "view" | react.ComponentType<any> | undefined;
43
+ } & react.RefAttributes<HTMLDivElement>): react.ReactNode;
45
44
  <As extends react.ElementType>(props: {
46
45
  as?: As | undefined;
47
- } & CardBaseProps & Omit<react.ComponentPropsWithRef<As>, keyof CardBaseProps>): react.ReactNode;
46
+ } & CardBaseProps & {
47
+ as?: "symbol" | "object" | "abbr" | "address" | "area" | "article" | "aside" | "audio" | "b" | "base" | "bdi" | "bdo" | "big" | "blockquote" | "body" | "br" | "button" | "canvas" | "caption" | "center" | "cite" | "code" | "col" | "colgroup" | "data" | "datalist" | "dd" | "del" | "details" | "dfn" | "dialog" | "div" | "dl" | "dt" | "em" | "embed" | "fieldset" | "figcaption" | "figure" | "footer" | "form" | "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "head" | "header" | "hgroup" | "hr" | "html" | "i" | "iframe" | "img" | "input" | "ins" | "kbd" | "keygen" | "label" | "legend" | "li" | "link" | "main" | "map" | "mark" | "menu" | "menuitem" | "meta" | "meter" | "nav" | "noindex" | "noscript" | "ol" | "optgroup" | "option" | "output" | "p" | "param" | "picture" | "pre" | "progress" | "q" | "rp" | "rt" | "ruby" | "s" | "samp" | "search" | "slot" | "script" | "section" | "select" | "small" | "source" | "span" | "strong" | "style" | "sub" | "summary" | "sup" | "table" | "template" | "tbody" | "td" | "textarea" | "tfoot" | "th" | "thead" | "time" | "title" | "tr" | "track" | "u" | "ul" | "var" | "video" | "wbr" | "webview" | "svg" | "animate" | "animateMotion" | "animateTransform" | "circle" | "clipPath" | "defs" | "desc" | "ellipse" | "feBlend" | "feColorMatrix" | "feComponentTransfer" | "feComposite" | "feConvolveMatrix" | "feDiffuseLighting" | "feDisplacementMap" | "feDistantLight" | "feDropShadow" | "feFlood" | "feFuncA" | "feFuncB" | "feFuncG" | "feFuncR" | "feGaussianBlur" | "feImage" | "feMerge" | "feMergeNode" | "feMorphology" | "feOffset" | "fePointLight" | "feSpecularLighting" | "feSpotLight" | "feTile" | "feTurbulence" | "filter" | "foreignObject" | "g" | "image" | "line" | "linearGradient" | "marker" | "mask" | "metadata" | "mpath" | "path" | "pattern" | "polygon" | "polyline" | "radialGradient" | "rect" | "set" | "stop" | "switch" | "text" | "textPath" | "tspan" | "use" | "view" | react.ComponentType<any> | undefined;
48
+ } & Omit<react.ComponentPropsWithRef<As>, "as" | keyof CardBaseProps>): react.ReactNode;
48
49
  } & Pick<react.FC, "displayName"> & {
49
50
  Media: typeof CardMediaComponent;
50
51
  Body: typeof CardBodyComponent;
@@ -61,12 +61,10 @@ var import_card = require("@postenbring/hedwig-css/dist/card.css");
61
61
  var import_react = require("react");
62
62
  var import_typed_classname = require("@postenbring/hedwig-css/typed-classname/index.mjs");
63
63
  var import_jsx_runtime = require("react/jsx-runtime");
64
- var Card = (0, import_react.forwardRef)(
65
- (_a, ref) => {
66
- var _b = _a, { as: Component = "section", className, children } = _b, rest = __objRest(_b, ["as", "className", "children"]);
67
- return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Component, __spreadProps(__spreadValues({}, rest), { className: (0, import_typed_classname.clsx)("hds-card", className), ref, children }));
68
- }
69
- );
64
+ var Card = (0, import_react.forwardRef)((_a, ref) => {
65
+ var _b = _a, { as: Component = "section", className, children } = _b, rest = __objRest(_b, ["as", "className", "children"]);
66
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Component, __spreadProps(__spreadValues({}, rest), { className: (0, import_typed_classname.clsx)("hds-card", className), ref, children }));
67
+ });
70
68
  Card.displayName = "Card";
71
69
  var CardMedia = (0, import_react.forwardRef)(
72
70
  (_a, ref) => {
@@ -95,19 +93,17 @@ var CardBody = (0, import_react.forwardRef)(
95
93
  }
96
94
  );
97
95
  CardBody.displayName = "Card.Body";
98
- var CardBodyHeader = (0, import_react.forwardRef)(
99
- (_a, ref) => {
100
- var _b = _a, { as: Component = "h3", className, children } = _b, rest = __objRest(_b, ["as", "className", "children"]);
101
- return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
102
- Component,
103
- __spreadProps(__spreadValues({}, rest), {
104
- className: (0, import_typed_classname.clsx)("hds-card__body-header", className),
105
- ref,
106
- children
107
- })
108
- );
109
- }
110
- );
96
+ var CardBodyHeader = (0, import_react.forwardRef)((_a, ref) => {
97
+ var _b = _a, { as: Component, className, children } = _b, rest = __objRest(_b, ["as", "className", "children"]);
98
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
99
+ Component,
100
+ __spreadProps(__spreadValues({}, rest), {
101
+ className: (0, import_typed_classname.clsx)("hds-card__body-header", className),
102
+ ref,
103
+ children
104
+ })
105
+ );
106
+ });
111
107
  CardBodyHeader.displayName = "Card.Body.Header";
112
108
  var CardBodyHeaderOverline = (0, import_react.forwardRef)((_a, ref) => {
113
109
  var _b = _a, { as: Component = "span", className, children } = _b, rest = __objRest(_b, ["as", "className", "children"]);
@@ -121,19 +117,17 @@ var CardBodyHeaderOverline = (0, import_react.forwardRef)((_a, ref) => {
121
117
  );
122
118
  });
123
119
  CardBodyHeaderOverline.displayName = "Card.Body.Header.Overline";
124
- var CardBodyHeaderTitle = (0, import_react.forwardRef)(
125
- (_a, ref) => {
126
- var _b = _a, { as: Component = "span", className, children } = _b, rest = __objRest(_b, ["as", "className", "children"]);
127
- return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
128
- Component,
129
- __spreadProps(__spreadValues({}, rest), {
130
- className: (0, import_typed_classname.clsx)("hds-card__body-header-title", className),
131
- ref,
132
- children
133
- })
134
- );
135
- }
136
- );
120
+ var CardBodyHeaderTitle = (0, import_react.forwardRef)((_a, ref) => {
121
+ var _b = _a, { as: Component, className, children } = _b, rest = __objRest(_b, ["as", "className", "children"]);
122
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
123
+ Component,
124
+ __spreadProps(__spreadValues({}, rest), {
125
+ className: (0, import_typed_classname.clsx)("hds-card__body-header-title", className),
126
+ ref,
127
+ children
128
+ })
129
+ );
130
+ });
137
131
  CardBodyHeaderTitle.displayName = "Card.Body.Header.Title";
138
132
  var CardBodyDescription = (0, import_react.forwardRef)(
139
133
  (_a, ref) => {
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  CardComponent
3
- } from "../chunk-S7FSULI3.mjs";
4
- import "../chunk-B3SD7RZV.mjs";
3
+ } from "../chunk-52YSOWMY.mjs";
4
+ import "../chunk-OEOI74US.mjs";
5
5
  import "../chunk-FKR5F35B.mjs";
6
6
  export {
7
7
  CardComponent as Card
@@ -4,20 +4,20 @@ import {
4
4
  __spreadValues
5
5
  } from "./chunk-FKR5F35B.mjs";
6
6
 
7
- // src/prose/prose.tsx
7
+ // src/styled-html/styled-html.tsx
8
8
  import { forwardRef } from "react";
9
9
  import { clsx } from "@postenbring/hedwig-css/typed-classname/index.mjs";
10
10
  import { jsx } from "react/jsx-runtime";
11
- var Prose = forwardRef(
11
+ var StyledHtml = forwardRef(
12
12
  (_a, ref) => {
13
13
  var _b = _a, { as: Component = "div", children, size, darkmode = false, className } = _b, rest = __objRest(_b, ["as", "children", "size", "darkmode", "className"]);
14
14
  return /* @__PURE__ */ jsx(
15
15
  Component,
16
16
  __spreadProps(__spreadValues({
17
17
  className: clsx(
18
- `hds-prose`,
19
- size === "small" && "hds-prose--small",
20
- darkmode && "hds-prose--darkmode",
18
+ `hds-styled-html`,
19
+ size === "small" && "hds-styled-html--small",
20
+ darkmode && "hds-styled-html--darkmode",
21
21
  className
22
22
  ),
23
23
  ref
@@ -27,8 +27,8 @@ var Prose = forwardRef(
27
27
  );
28
28
  }
29
29
  );
30
- Prose.displayName = "Prose";
30
+ StyledHtml.displayName = "Prose";
31
31
 
32
32
  export {
33
- Prose
33
+ StyledHtml
34
34
  };
@@ -9,7 +9,7 @@ import {
9
9
  CardBodyHeaderTitle,
10
10
  CardMedia,
11
11
  CardMediaImg
12
- } from "./chunk-B3SD7RZV.mjs";
12
+ } from "./chunk-OEOI74US.mjs";
13
13
 
14
14
  // src/card/index.tsx
15
15
  import "@postenbring/hedwig-css/dist/fonts.css";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  ErrorMessage
3
- } from "./chunk-R7GQHCN4.mjs";
3
+ } from "./chunk-RBOWRO3L.mjs";
4
4
  import {
5
5
  __objRest,
6
6
  __spreadProps,
@@ -23,8 +23,7 @@ var InputGroup = forwardRef(function InputGroup2(_a, ref) {
23
23
  label,
24
24
  disabled,
25
25
  readOnly,
26
- children,
27
- _unstableAriaLiveOnErrorMessage = false
26
+ children
28
27
  } = _e, rest = __objRest(_e, [
29
28
  "id",
30
29
  "className",
@@ -35,8 +34,7 @@ var InputGroup = forwardRef(function InputGroup2(_a, ref) {
35
34
  "label",
36
35
  "disabled",
37
36
  "readOnly",
38
- "children",
39
- "_unstableAriaLiveOnErrorMessage"
37
+ "children"
40
38
  ]);
41
39
  const errorMessageId = useId();
42
40
  const inputId = useId();
@@ -48,7 +46,7 @@ var InputGroup = forwardRef(function InputGroup2(_a, ref) {
48
46
  return cloneElement(input, __spreadProps(__spreadValues({
49
47
  "aria-describedby": errorMessage ? errorMessageId : void 0,
50
48
  "aria-invalid": errorMessage ? true : void 0,
51
- id: id || inputId
49
+ id: id != null ? id : inputId
52
50
  }, input.props), {
53
51
  className: clsx("hds-input-group__input", input.props.className)
54
52
  }));
@@ -73,7 +71,7 @@ var InputGroup = forwardRef(function InputGroup2(_a, ref) {
73
71
  __spreadProps(__spreadValues({
74
72
  className: clsx("hds-input-group__label", labelClassName)
75
73
  }, labelProps), {
76
- htmlFor: id || inputId,
74
+ htmlFor: id != null ? id : inputId,
77
75
  children: label
78
76
  })
79
77
  ),
@@ -86,14 +84,7 @@ var InputGroup = forwardRef(function InputGroup2(_a, ref) {
86
84
  children: renderInput()
87
85
  }
88
86
  ),
89
- /* @__PURE__ */ jsx(
90
- ErrorMessage,
91
- {
92
- _unstableAriaLiveOnErrorMessage,
93
- id: errorMessageId,
94
- children: errorMessage
95
- }
96
- )
87
+ /* @__PURE__ */ jsx(ErrorMessage, { id: errorMessageId, children: errorMessage })
97
88
  ]
98
89
  })
99
90
  );
@@ -0,0 +1,5 @@
1
+ // src/form/radiobutton/index.tsx
2
+ import "@postenbring/hedwig-css/dist/fonts.css";
3
+ import "@postenbring/hedwig-css/dist/tokens.css";
4
+ import "@postenbring/hedwig-css/dist/body.css";
5
+ import "@postenbring/hedwig-css/dist/radiobutton.css";