@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
package/dist/index.mjs CHANGED
@@ -1,6 +1,6 @@
1
1
  import {
2
- Prose
3
- } from "./chunk-3WUAXFB3.mjs";
2
+ StyledHtml
3
+ } from "./chunk-3WKOOAQL.mjs";
4
4
  import {
5
5
  TabsComponent
6
6
  } from "./chunk-VO6ZLGZ7.mjs";
@@ -21,27 +21,35 @@ import {
21
21
  } from "./chunk-5FM3XK4V.mjs";
22
22
  import "./chunk-73MDVYU2.mjs";
23
23
  import "./chunk-FSBY3NKV.mjs";
24
- import "./chunk-PPUNMHOX.mjs";
24
+ import "./chunk-5OGUAHLN.mjs";
25
+ import "./chunk-ERFGFY3Q.mjs";
26
+ import {
27
+ Radiobutton
28
+ } from "./chunk-ZDZR5FVC.mjs";
25
29
  import "./chunk-OPW2JS5I.mjs";
26
30
  import {
27
31
  Select
28
- } from "./chunk-MUGMWWNN.mjs";
32
+ } from "./chunk-LCFKBPZC.mjs";
29
33
  import "./chunk-5NWYVPBZ.mjs";
30
34
  import {
31
35
  Textarea
32
- } from "./chunk-4KBVX3Y7.mjs";
36
+ } from "./chunk-OSCKYUZ3.mjs";
37
+ import "./chunk-JTHBBJZW.mjs";
38
+ import {
39
+ Checkbox
40
+ } from "./chunk-SDR3TESK.mjs";
33
41
  import "./chunk-OKWNTFU5.mjs";
34
42
  import {
35
43
  Fieldset
36
- } from "./chunk-J5QNIAFL.mjs";
44
+ } from "./chunk-JAHBNZTG.mjs";
37
45
  import "./chunk-4RAMNETH.mjs";
38
46
  import {
39
47
  Input
40
- } from "./chunk-RNALWA7A.mjs";
48
+ } from "./chunk-OX5NTX6M.mjs";
41
49
  import "./chunk-S4F2KVFJ.mjs";
42
- import "./chunk-6KRJB36T.mjs";
50
+ import "./chunk-CCNB2ABL.mjs";
43
51
  import "./chunk-67OMX7FP.mjs";
44
- import "./chunk-R7GQHCN4.mjs";
52
+ import "./chunk-RBOWRO3L.mjs";
45
53
  import "./chunk-FJQCHTJZ.mjs";
46
54
  import {
47
55
  Container
@@ -56,7 +64,7 @@ import {
56
64
  } from "./chunk-AUK3J77R.mjs";
57
65
  import {
58
66
  LinkList
59
- } from "./chunk-X5URKHFD.mjs";
67
+ } from "./chunk-RSL23FEW.mjs";
60
68
  import {
61
69
  OrderedList,
62
70
  UnorderedList
@@ -73,11 +81,11 @@ import "./chunk-VX6MSLLO.mjs";
73
81
  import {
74
82
  PrimaryButton,
75
83
  SecondaryButton
76
- } from "./chunk-YBSM5D5N.mjs";
84
+ } from "./chunk-PTLX7PHW.mjs";
77
85
  import {
78
86
  CardComponent
79
- } from "./chunk-S7FSULI3.mjs";
80
- import "./chunk-B3SD7RZV.mjs";
87
+ } from "./chunk-52YSOWMY.mjs";
88
+ import "./chunk-OEOI74US.mjs";
81
89
  import {
82
90
  AccordionComponent
83
91
  } from "./chunk-KBR5N6UB.mjs";
@@ -95,17 +103,18 @@ import {
95
103
  } from "./chunk-6FKQU7QT.mjs";
96
104
  import "./chunk-FKR5F35B.mjs";
97
105
 
98
- // src/prose/index.ts
106
+ // src/styled-html/index.ts
99
107
  import "@postenbring/hedwig-css/dist/fonts.css";
100
108
  import "@postenbring/hedwig-css/dist/tokens.css";
101
109
  import "@postenbring/hedwig-css/dist/body.css";
102
- import "@postenbring/hedwig-css/dist/prose.css";
110
+ import "@postenbring/hedwig-css/dist/styled-html.css";
103
111
  export {
104
112
  AccordionComponent as Accordion,
105
113
  Badge,
106
114
  BoxComponent as Box,
107
115
  Breadcrumbs,
108
116
  CardComponent as Card,
117
+ Checkbox,
109
118
  Container,
110
119
  DarkBadge,
111
120
  DescriptionList,
@@ -117,9 +126,10 @@ export {
117
126
  ModalComponent as Modal,
118
127
  OrderedList,
119
128
  PrimaryButton,
120
- Prose,
129
+ Radiobutton,
121
130
  SecondaryButton,
122
131
  Select,
132
+ StyledHtml,
123
133
  TabsComponent as Tabs,
124
134
  Textarea,
125
135
  UnorderedList,
@@ -131,9 +131,17 @@ OrderedList.displayName = "OrderedList";
131
131
  UnorderedList.displayName = "UnorderedList";
132
132
 
133
133
  // src/list/link-list.tsx
134
+ var import_typed_classname3 = require("@postenbring/hedwig-css/typed-classname/index.mjs");
134
135
  var import_jsx_runtime3 = require("react/jsx-runtime");
135
- function LinkList(props) {
136
- return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(UnorderedList, __spreadProps(__spreadValues({ listStyle: "no-bullets" }, props), { children: props.children }));
136
+ function LinkList(_a) {
137
+ var _b = _a, { className } = _b, rest = __objRest(_b, ["className"]);
138
+ return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
139
+ UnorderedList,
140
+ __spreadValues({
141
+ className: (0, import_typed_classname3.clsx)("hds-list--link-list", className),
142
+ listStyle: "no-bullets"
143
+ }, rest)
144
+ );
137
145
  }
138
146
  LinkList.displayName = "LinkList";
139
147
  // Annotate the CommonJS export names for ESM import in node:
@@ -4,7 +4,7 @@ import {
4
4
  } from "../chunk-AUK3J77R.mjs";
5
5
  import {
6
6
  LinkList
7
- } from "../chunk-X5URKHFD.mjs";
7
+ } from "../chunk-RSL23FEW.mjs";
8
8
  import {
9
9
  OrderedList,
10
10
  UnorderedList
@@ -5,7 +5,7 @@ import { ListProps } from './list.mjs';
5
5
  interface LinkListProps extends Omit<ListProps, "listStyle"> {
6
6
  children?: react.ReactElement<HTMLLIElement> | react.ReactElement<HTMLLIElement>[];
7
7
  }
8
- declare function LinkList(props: LinkListProps): react_jsx_runtime.JSX.Element;
8
+ declare function LinkList({ className, ...rest }: LinkListProps): react_jsx_runtime.JSX.Element;
9
9
  declare namespace LinkList {
10
10
  var displayName: string;
11
11
  }
@@ -5,7 +5,7 @@ import { ListProps } from './list.js';
5
5
  interface LinkListProps extends Omit<ListProps, "listStyle"> {
6
6
  children?: react.ReactElement<HTMLLIElement> | react.ReactElement<HTMLLIElement>[];
7
7
  }
8
- declare function LinkList(props: LinkListProps): react_jsx_runtime.JSX.Element;
8
+ declare function LinkList({ className, ...rest }: LinkListProps): react_jsx_runtime.JSX.Element;
9
9
  declare namespace LinkList {
10
10
  var displayName: string;
11
11
  }
@@ -52,6 +52,7 @@ __export(link_list_exports, {
52
52
  LinkList: () => LinkList
53
53
  });
54
54
  module.exports = __toCommonJS(link_list_exports);
55
+ var import_typed_classname2 = require("@postenbring/hedwig-css/typed-classname/index.mjs");
55
56
 
56
57
  // src/list/list.tsx
57
58
  var import_typed_classname = require("@postenbring/hedwig-css/typed-classname/index.mjs");
@@ -98,8 +99,15 @@ UnorderedList.displayName = "UnorderedList";
98
99
 
99
100
  // src/list/link-list.tsx
100
101
  var import_jsx_runtime2 = require("react/jsx-runtime");
101
- function LinkList(props) {
102
- return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(UnorderedList, __spreadProps(__spreadValues({ listStyle: "no-bullets" }, props), { children: props.children }));
102
+ function LinkList(_a) {
103
+ var _b = _a, { className } = _b, rest = __objRest(_b, ["className"]);
104
+ return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
105
+ UnorderedList,
106
+ __spreadValues({
107
+ className: (0, import_typed_classname2.clsx)("hds-list--link-list", className),
108
+ listStyle: "no-bullets"
109
+ }, rest)
110
+ );
103
111
  }
104
112
  LinkList.displayName = "LinkList";
105
113
  // Annotate the CommonJS export names for ESM import in node:
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  LinkList
3
- } from "../chunk-X5URKHFD.mjs";
3
+ } from "../chunk-RSL23FEW.mjs";
4
4
  import "../chunk-BEXOLUXV.mjs";
5
5
  import "../chunk-FKR5F35B.mjs";
6
6
  export {
@@ -29202,7 +29202,7 @@ function RenderButton(_a) {
29202
29202
  __spreadProps(__spreadValues({
29203
29203
  className: (0, import_typed_classname2.clsx)("hds-navbar__button", className),
29204
29204
  onClick: toggleOpen,
29205
- ref: ref || innerRef,
29205
+ ref: ref != null ? ref : innerRef,
29206
29206
  style,
29207
29207
  title,
29208
29208
  type: "button"
@@ -29243,8 +29243,8 @@ var NavbarExpandableMenuTrigger = (0, import_react2.forwardRef)(
29243
29243
  const root = (0, import_client.createRoot)(container);
29244
29244
  root.render(element);
29245
29245
  const getWidth = () => {
29246
- var _a2;
29247
- callback(((_a2 = measureButtonRef.current) == null ? void 0 : _a2.offsetWidth) || 0);
29246
+ var _a2, _b2;
29247
+ callback((_b2 = (_a2 = measureButtonRef.current) == null ? void 0 : _a2.offsetWidth) != null ? _b2 : 0);
29248
29248
  root.unmount();
29249
29249
  c.removeChild(container);
29250
29250
  };
@@ -2,7 +2,7 @@ import {
2
2
  NavbarExpandableMenu,
3
3
  NavbarExpandableMenuContent,
4
4
  NavbarExpandableMenuTrigger
5
- } from "../chunk-DOWBGRCN.mjs";
5
+ } from "../chunk-JOKO7Y7O.mjs";
6
6
  import "../chunk-HIRUCFWO.mjs";
7
7
  import {
8
8
  Navbar,
@@ -29157,7 +29157,7 @@ function RenderButton(_a) {
29157
29157
  __spreadProps(__spreadValues({
29158
29158
  className: (0, import_typed_classname.clsx)("hds-navbar__button", className),
29159
29159
  onClick: toggleOpen,
29160
- ref: ref || innerRef,
29160
+ ref: ref != null ? ref : innerRef,
29161
29161
  style,
29162
29162
  title,
29163
29163
  type: "button"
@@ -29198,8 +29198,8 @@ var NavbarExpandableMenuTrigger = (0, import_react.forwardRef)(
29198
29198
  const root = (0, import_client.createRoot)(container);
29199
29199
  root.render(element);
29200
29200
  const getWidth = () => {
29201
- var _a2;
29202
- callback(((_a2 = measureButtonRef.current) == null ? void 0 : _a2.offsetWidth) || 0);
29201
+ var _a2, _b2;
29202
+ callback((_b2 = (_a2 = measureButtonRef.current) == null ? void 0 : _a2.offsetWidth) != null ? _b2 : 0);
29203
29203
  root.unmount();
29204
29204
  c.removeChild(container);
29205
29205
  };
@@ -2,7 +2,7 @@ import {
2
2
  NavbarExpandableMenu,
3
3
  NavbarExpandableMenuContent,
4
4
  NavbarExpandableMenuTrigger
5
- } from "../chunk-DOWBGRCN.mjs";
5
+ } from "../chunk-JOKO7Y7O.mjs";
6
6
  import "../chunk-HIRUCFWO.mjs";
7
7
  import "../chunk-FKR5F35B.mjs";
8
8
  export {
@@ -1,27 +1,21 @@
1
1
  import react__default from 'react';
2
2
  import { O as OverridableComponent } from '../utils-3jLhIyOS.mjs';
3
3
 
4
- interface ProseProps {
4
+ interface StyledHtmlProps {
5
5
  children?: react__default.ReactNode;
6
6
  size?: "default" | "small";
7
7
  darkmode?: boolean;
8
8
  }
9
9
  /**
10
- * ## 🚨 WORK IN PROGRESS 🚨
11
- *
12
- * ### TODO: Choose a name
10
+ * A component for displaying dynamic content that you want to apply hedwig styling to.
11
+ * the styling depends on the semantic html elements you use inside the component.
13
12
  *
14
- * - WYSIWYG - Currently used in hedwig legacy
15
- * - Prose - [What tailwind calls it](https://tailwindcss.com/docs/typography-plugin)
16
- * - RichText
17
- * - Content
18
- * - DynamicContent
13
+ * Useful when you have dynamic content that you want styled with hedwig, like content from a CMS.
19
14
  *
20
- * Prose is a component for displaying dynamic content that you want to apply hedwig styling to.
21
- * the styling depends on the semantic html elements you use inside the component.
15
+ * Previously known as `hw-wysiwyg` in hedwig legacy. In tailwind this kind of component it is known as `prose`.
22
16
  *
23
17
  * ```tsx
24
- * <Prose>
18
+ * <StyledHtml>
25
19
  * <h1>Heading 1</h1>
26
20
  * <h2>Heading 2</h2>
27
21
  * <a href="https://www.postenbring.no">Postenbring</a>
@@ -30,9 +24,9 @@ interface ProseProps {
30
24
  * <li>Hallo</li>
31
25
  * <li>Hello</li>
32
26
  * </ul>
33
- * </Prose>
27
+ * </StyledHtml>
34
28
  * ```
35
29
  */
36
- declare const Prose: OverridableComponent<ProseProps, HTMLDivElement>;
30
+ declare const StyledHtml: OverridableComponent<StyledHtmlProps, HTMLDivElement>;
37
31
 
38
- export { Prose, type ProseProps };
32
+ export { StyledHtml, type StyledHtmlProps };
@@ -1,27 +1,21 @@
1
1
  import react__default from 'react';
2
2
  import { O as OverridableComponent } from '../utils-3jLhIyOS.js';
3
3
 
4
- interface ProseProps {
4
+ interface StyledHtmlProps {
5
5
  children?: react__default.ReactNode;
6
6
  size?: "default" | "small";
7
7
  darkmode?: boolean;
8
8
  }
9
9
  /**
10
- * ## 🚨 WORK IN PROGRESS 🚨
11
- *
12
- * ### TODO: Choose a name
10
+ * A component for displaying dynamic content that you want to apply hedwig styling to.
11
+ * the styling depends on the semantic html elements you use inside the component.
13
12
  *
14
- * - WYSIWYG - Currently used in hedwig legacy
15
- * - Prose - [What tailwind calls it](https://tailwindcss.com/docs/typography-plugin)
16
- * - RichText
17
- * - Content
18
- * - DynamicContent
13
+ * Useful when you have dynamic content that you want styled with hedwig, like content from a CMS.
19
14
  *
20
- * Prose is a component for displaying dynamic content that you want to apply hedwig styling to.
21
- * the styling depends on the semantic html elements you use inside the component.
15
+ * Previously known as `hw-wysiwyg` in hedwig legacy. In tailwind this kind of component it is known as `prose`.
22
16
  *
23
17
  * ```tsx
24
- * <Prose>
18
+ * <StyledHtml>
25
19
  * <h1>Heading 1</h1>
26
20
  * <h2>Heading 2</h2>
27
21
  * <a href="https://www.postenbring.no">Postenbring</a>
@@ -30,9 +24,9 @@ interface ProseProps {
30
24
  * <li>Hallo</li>
31
25
  * <li>Hello</li>
32
26
  * </ul>
33
- * </Prose>
27
+ * </StyledHtml>
34
28
  * ```
35
29
  */
36
- declare const Prose: OverridableComponent<ProseProps, HTMLDivElement>;
30
+ declare const StyledHtml: OverridableComponent<StyledHtmlProps, HTMLDivElement>;
37
31
 
38
- export { Prose, type ProseProps };
32
+ export { StyledHtml, type StyledHtmlProps };
@@ -46,25 +46,25 @@ var __copyProps = (to, from, except, desc) => {
46
46
  };
47
47
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
48
48
 
49
- // src/prose/prose.tsx
50
- var prose_exports = {};
51
- __export(prose_exports, {
52
- Prose: () => Prose
49
+ // src/styled-html/styled-html.tsx
50
+ var styled_html_exports = {};
51
+ __export(styled_html_exports, {
52
+ StyledHtml: () => StyledHtml
53
53
  });
54
- module.exports = __toCommonJS(prose_exports);
54
+ module.exports = __toCommonJS(styled_html_exports);
55
55
  var import_react = require("react");
56
56
  var import_typed_classname = require("@postenbring/hedwig-css/typed-classname/index.mjs");
57
57
  var import_jsx_runtime = require("react/jsx-runtime");
58
- var Prose = (0, import_react.forwardRef)(
58
+ var StyledHtml = (0, import_react.forwardRef)(
59
59
  (_a, ref) => {
60
60
  var _b = _a, { as: Component = "div", children, size, darkmode = false, className } = _b, rest = __objRest(_b, ["as", "children", "size", "darkmode", "className"]);
61
61
  return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
62
62
  Component,
63
63
  __spreadProps(__spreadValues({
64
64
  className: (0, import_typed_classname.clsx)(
65
- `hds-prose`,
66
- size === "small" && "hds-prose--small",
67
- darkmode && "hds-prose--darkmode",
65
+ `hds-styled-html`,
66
+ size === "small" && "hds-styled-html--small",
67
+ darkmode && "hds-styled-html--darkmode",
68
68
  className
69
69
  ),
70
70
  ref
@@ -74,8 +74,8 @@ var Prose = (0, import_react.forwardRef)(
74
74
  );
75
75
  }
76
76
  );
77
- Prose.displayName = "Prose";
77
+ StyledHtml.displayName = "Prose";
78
78
  // Annotate the CommonJS export names for ESM import in node:
79
79
  0 && (module.exports = {
80
- Prose
80
+ StyledHtml
81
81
  });
@@ -0,0 +1,7 @@
1
+ import {
2
+ StyledHtml
3
+ } from "../chunk-3WKOOAQL.mjs";
4
+ import "../chunk-FKR5F35B.mjs";
5
+ export {
6
+ StyledHtml
7
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@postenbring/hedwig-react",
3
- "version": "0.0.47",
3
+ "version": "0.0.49",
4
4
  "main": "./dist/index.js",
5
5
  "module": "./dist/index.mjs",
6
6
  "types": "./dist/index.d.ts",
@@ -10,17 +10,17 @@
10
10
  "dist/**"
11
11
  ],
12
12
  "devDependencies": {
13
- "@types/react": "^18.2.57",
14
- "@types/react-dom": "^18.2.19",
13
+ "@types/react": "^18.2.64",
14
+ "@types/react-dom": "^18.2.21",
15
15
  "react": "^18.2.0",
16
16
  "react-dom": "18.2.0",
17
17
  "tsup": "^8.0.1",
18
- "typescript": "^5.3.3",
18
+ "typescript": "^5.4.2",
19
19
  "eslint-config-custom": "0.0.1",
20
20
  "hedwig-tsconfig": "0.0.0"
21
21
  },
22
22
  "dependencies": {
23
- "@postenbring/hedwig-css": "0.0.42"
23
+ "@postenbring/hedwig-css": "0.0.44"
24
24
  },
25
25
  "publishConfig": {
26
26
  "access": "public"
@@ -1,30 +0,0 @@
1
- import {
2
- __spreadProps,
3
- __spreadValues
4
- } from "./chunk-FKR5F35B.mjs";
5
-
6
- // src/form/error-message/error-message.tsx
7
- import { clsx } from "@postenbring/hedwig-css/typed-classname/index.mjs";
8
- import { jsx } from "react/jsx-runtime";
9
- function ErrorMessage({
10
- children,
11
- id,
12
- className,
13
- _unstableAriaLiveOnErrorMessage
14
- }) {
15
- return /* @__PURE__ */ jsx(
16
- "div",
17
- __spreadProps(__spreadValues({}, _unstableAriaLiveOnErrorMessage && {
18
- "aria-live": "polite",
19
- "aria-relevant": "additions removals"
20
- }), {
21
- className: clsx("hds-error-message", className),
22
- id,
23
- children
24
- })
25
- );
26
- }
27
-
28
- export {
29
- ErrorMessage
30
- };
@@ -1,18 +0,0 @@
1
- import {
2
- UnorderedList
3
- } from "./chunk-BEXOLUXV.mjs";
4
- import {
5
- __spreadProps,
6
- __spreadValues
7
- } from "./chunk-FKR5F35B.mjs";
8
-
9
- // src/list/link-list.tsx
10
- import { jsx } from "react/jsx-runtime";
11
- function LinkList(props) {
12
- return /* @__PURE__ */ jsx(UnorderedList, __spreadProps(__spreadValues({ listStyle: "no-bullets" }, props), { children: props.children }));
13
- }
14
- LinkList.displayName = "LinkList";
15
-
16
- export {
17
- LinkList
18
- };
@@ -1,7 +0,0 @@
1
- import {
2
- Prose
3
- } from "../chunk-3WUAXFB3.mjs";
4
- import "../chunk-FKR5F35B.mjs";
5
- export {
6
- Prose
7
- };
File without changes