@postenbring/hedwig-react 0.0.37 → 0.0.39

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 (93) hide show
  1. package/dist/accordion/accordion-content.js +1 -1
  2. package/dist/accordion/accordion-content.mjs +1 -1
  3. package/dist/accordion/accordion-item.js +1 -1
  4. package/dist/accordion/accordion-item.mjs +1 -1
  5. package/dist/accordion/accordion-trigger.js +1 -1
  6. package/dist/accordion/accordion-trigger.mjs +1 -1
  7. package/dist/accordion/index.d.mts +4 -1
  8. package/dist/accordion/index.d.ts +4 -1
  9. package/dist/accordion/index.js +5 -14
  10. package/dist/accordion/index.mjs +5 -14
  11. package/dist/box/box.js +1 -1
  12. package/dist/box/box.mjs +1 -1
  13. package/dist/box/index.d.mts +14 -2
  14. package/dist/box/index.d.ts +14 -2
  15. package/dist/box/index.js +7 -5
  16. package/dist/box/index.mjs +4 -6
  17. package/dist/button/index.js +0 -2
  18. package/dist/button/index.mjs +0 -2
  19. package/dist/card/card.d.mts +5 -3
  20. package/dist/card/card.d.ts +5 -3
  21. package/dist/card/card.js +54 -13
  22. package/dist/card/card.mjs +9 -5
  23. package/dist/card/index.d.mts +24 -6
  24. package/dist/card/index.d.ts +24 -6
  25. package/dist/card/index.js +55 -28
  26. package/dist/card/index.mjs +3 -18
  27. package/dist/{chunk-TUJCKNKR.mjs → chunk-2QZF65FK.mjs} +1 -2
  28. package/dist/{chunk-6XSKLHN6.mjs → chunk-3JNHAMRV.mjs} +1 -16
  29. package/dist/{chunk-GXKTHQ37.mjs → chunk-4WI2BHHB.mjs} +1 -1
  30. package/dist/{chunk-LWMZV362.mjs → chunk-4XHA3NGO.mjs} +51 -12
  31. package/dist/{chunk-VLMLWQKD.mjs → chunk-BHNQPMEB.mjs} +3 -3
  32. package/dist/chunk-BSX4IA3X.mjs +26 -0
  33. package/dist/{chunk-AJBQ2EJU.mjs → chunk-E2GAXTBX.mjs} +11 -0
  34. package/dist/{chunk-YPD2CH5T.mjs → chunk-G3JPULGO.mjs} +4 -4
  35. package/dist/{chunk-4RBJ5GJR.mjs → chunk-GRO36EUL.mjs} +7 -7
  36. package/dist/{chunk-RIID2NGR.mjs → chunk-GSYDQFIT.mjs} +3 -6
  37. package/dist/{chunk-C2SDDGHL.mjs → chunk-JKZ3OR7W.mjs} +1 -1
  38. package/dist/{chunk-VS4HRMMY.mjs → chunk-KOXEIUCU.mjs} +12 -6
  39. package/dist/{chunk-5MNVIJJ2.mjs → chunk-MER2HJBC.mjs} +1 -3
  40. package/dist/{chunk-SQULBVH7.mjs → chunk-OB6UNSKV.mjs} +2 -2
  41. package/dist/{chunk-SWZLMDKJ.mjs → chunk-WTMT5WCJ.mjs} +1 -1
  42. package/dist/{chunk-QZIJ2OXE.mjs → chunk-WYPGZY5Q.mjs} +3 -3
  43. package/dist/{chunk-L7DYK6OS.mjs → chunk-XAIX3HTW.mjs} +1 -1
  44. package/dist/index.d.mts +16 -14
  45. package/dist/index.d.ts +16 -14
  46. package/dist/index.js +84 -90
  47. package/dist/index.mjs +23 -73
  48. package/dist/layout/index.d.mts +1 -1
  49. package/dist/layout/index.d.ts +1 -1
  50. package/dist/list/description-list.d.mts +30 -14
  51. package/dist/list/description-list.d.ts +30 -14
  52. package/dist/list/description-list.js +2 -21
  53. package/dist/list/description-list.mjs +3 -9
  54. package/dist/list/index.d.mts +1 -1
  55. package/dist/list/index.d.ts +1 -1
  56. package/dist/list/index.js +0 -14
  57. package/dist/list/index.mjs +2 -6
  58. package/dist/message/index.d.mts +1 -1
  59. package/dist/message/index.d.ts +1 -1
  60. package/dist/message/index.js +5 -11
  61. package/dist/message/index.mjs +4 -9
  62. package/dist/message/message.js +3 -3
  63. package/dist/message/message.mjs +2 -2
  64. package/dist/modal/index.d.mts +1 -1
  65. package/dist/modal/index.d.ts +1 -1
  66. package/dist/modal/index.js +4 -7
  67. package/dist/modal/index.mjs +4 -7
  68. package/dist/modal/modal.js +2 -2
  69. package/dist/modal/modal.mjs +2 -2
  70. package/dist/navbar/index.d.mts +1 -1
  71. package/dist/navbar/index.d.ts +1 -1
  72. package/dist/prose/prose.d.mts +38 -0
  73. package/dist/prose/prose.d.ts +38 -0
  74. package/dist/prose/prose.js +81 -0
  75. package/dist/prose/prose.mjs +33 -0
  76. package/dist/tabs/index.d.mts +20 -4
  77. package/dist/tabs/index.d.ts +20 -4
  78. package/dist/tabs/index.js +16 -17
  79. package/dist/tabs/index.mjs +6 -16
  80. package/dist/tabs/tabs-content.d.mts +6 -6
  81. package/dist/tabs/tabs-content.d.ts +6 -6
  82. package/dist/tabs/tabs-content.js +9 -9
  83. package/dist/tabs/tabs-content.mjs +5 -5
  84. package/dist/tabs/tabs-list.d.mts +3 -3
  85. package/dist/tabs/tabs-list.d.ts +3 -3
  86. package/dist/tabs/tabs-list.js +5 -5
  87. package/dist/tabs/tabs-list.mjs +3 -3
  88. package/dist/warning-banner/index.js +6 -2
  89. package/dist/warning-banner/index.mjs +3 -3
  90. package/dist/warning-banner/warning-banner.js +6 -2
  91. package/dist/warning-banner/warning-banner.mjs +3 -3
  92. package/package.json +2 -2
  93. package/dist/chunk-BKXVC23Y.mjs +0 -5
@@ -1,11 +1,6 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
2
  import { HTMLAttributes, ReactNode } from 'react';
3
3
 
4
- type DescriptionDetailsProps = DLDTProps;
5
- type DescriptionTermProps = DLDTProps;
6
- interface DLDTProps extends HTMLAttributes<HTMLBaseElement> {
7
- children?: ReactNode;
8
- }
9
4
  interface DescriptionListProps extends HTMLAttributes<HTMLDListElement> {
10
5
  /**
11
6
  * Either `DescriptionDetails` or `DescriptionTerm` elements
@@ -16,17 +11,38 @@ interface DescriptionListProps extends HTMLAttributes<HTMLDListElement> {
16
11
  */
17
12
  variant?: "vertical" | "horizontal";
18
13
  }
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
- }
14
+ /**
15
+ * Uses the HTML5 `<dl>` element
16
+ *
17
+ * Pass in corresponding `<dt>` and `<dd>` elements as children
18
+ *
19
+ * ```tsx
20
+ * <DescriptionList>
21
+ * <dt>Vekt</dt>
22
+ * <dl>12 kg</dl>
23
+ * <dt>Antall kolli</dt>
24
+ * <dl>2</dl>
25
+ * </DescriptionList>
26
+ * ```
27
+ *
28
+ * Optionally wrap them in `<div>` elements as allowed by the HTML5 spec
29
+ *
30
+ * ```tsx
31
+ * <DescriptionList>
32
+ * <div>
33
+ * <dt>Vekt</dt>
34
+ * <dl>12 kg</dl>
35
+ * </div>
36
+ * <div>
37
+ * <dt>Antall kolli</dt>
38
+ * <dl>2</dl>
39
+ * </div>
40
+ * </DescriptionList>
41
+ * ```
42
+ */
27
43
  declare function DescriptionList({ variant, className, ...rest }: DescriptionListProps): react_jsx_runtime.JSX.Element;
28
44
  declare namespace DescriptionList {
29
45
  var displayName: string;
30
46
  }
31
47
 
32
- export { DescriptionDetails, type DescriptionDetailsProps, DescriptionList, type DescriptionListProps, DescriptionTerm, type DescriptionTermProps, DescriptionList as default };
48
+ export { DescriptionList, type DescriptionListProps };
@@ -1,8 +1,6 @@
1
1
  "use strict";
2
2
  var __defProp = Object.defineProperty;
3
- var __defProps = Object.defineProperties;
4
3
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
- var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
6
4
  var __getOwnPropNames = Object.getOwnPropertyNames;
7
5
  var __getOwnPropSymbols = Object.getOwnPropertySymbols;
8
6
  var __hasOwnProp = Object.prototype.hasOwnProperty;
@@ -19,7 +17,6 @@ var __spreadValues = (a, b) => {
19
17
  }
20
18
  return a;
21
19
  };
22
- var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
23
20
  var __objRest = (source, exclude) => {
24
21
  var target = {};
25
22
  for (var prop in source)
@@ -49,22 +46,11 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
49
46
  // src/list/description-list.tsx
50
47
  var description_list_exports = {};
51
48
  __export(description_list_exports, {
52
- DescriptionDetails: () => DescriptionDetails,
53
- DescriptionList: () => DescriptionList,
54
- DescriptionTerm: () => DescriptionTerm,
55
- default: () => description_list_default
49
+ DescriptionList: () => DescriptionList
56
50
  });
57
51
  module.exports = __toCommonJS(description_list_exports);
58
52
  var import_typed_classname = require("@postenbring/hedwig-css/typed-classname/index.mjs");
59
53
  var import_jsx_runtime = require("react/jsx-runtime");
60
- function DescriptionDetails(_a) {
61
- var _b = _a, { children } = _b, rest = __objRest(_b, ["children"]);
62
- return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("dd", __spreadProps(__spreadValues({}, rest), { children }));
63
- }
64
- function DescriptionTerm(_a) {
65
- var _b = _a, { children } = _b, rest = __objRest(_b, ["children"]);
66
- return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("dt", __spreadProps(__spreadValues({}, rest), { children }));
67
- }
68
54
  function DescriptionList(_a) {
69
55
  var _b = _a, {
70
56
  variant = "vertical",
@@ -87,12 +73,7 @@ function DescriptionList(_a) {
87
73
  );
88
74
  }
89
75
  DescriptionList.displayName = "DescriptionList";
90
- DescriptionTerm.displayName = "DescriptionTerm";
91
- DescriptionDetails.displayName = "DescriptionDetails";
92
- var description_list_default = DescriptionList;
93
76
  // Annotate the CommonJS export names for ESM import in node:
94
77
  0 && (module.exports = {
95
- DescriptionDetails,
96
- DescriptionList,
97
- DescriptionTerm
78
+ DescriptionList
98
79
  });
@@ -1,13 +1,7 @@
1
1
  import {
2
- DescriptionDetails,
3
- DescriptionList,
4
- DescriptionTerm,
5
- description_list_default
6
- } from "../chunk-6XSKLHN6.mjs";
2
+ DescriptionList
3
+ } from "../chunk-3JNHAMRV.mjs";
7
4
  import "../chunk-FUJQIYOF.mjs";
8
5
  export {
9
- DescriptionDetails,
10
- DescriptionList,
11
- DescriptionTerm,
12
- description_list_default as default
6
+ DescriptionList
13
7
  };
@@ -1,4 +1,4 @@
1
- export { DescriptionDetails, DescriptionDetailsProps, default as DescriptionList, DescriptionListProps, DescriptionTerm, DescriptionTermProps } from './description-list.mjs';
1
+ export { DescriptionList, DescriptionListProps } from './description-list.mjs';
2
2
  export { ListProps, OrderedList, UnorderedList } from './list.mjs';
3
3
  export { LinkList, LinkListProps } from './link-list.mjs';
4
4
  import 'react/jsx-runtime';
@@ -1,4 +1,4 @@
1
- export { DescriptionDetails, DescriptionDetailsProps, default as DescriptionList, DescriptionListProps, DescriptionTerm, DescriptionTermProps } from './description-list.js';
1
+ export { DescriptionList, DescriptionListProps } from './description-list.js';
2
2
  export { ListProps, OrderedList, UnorderedList } from './list.js';
3
3
  export { LinkList, LinkListProps } from './link-list.js';
4
4
  import 'react/jsx-runtime';
@@ -49,9 +49,7 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
49
49
  // src/list/index.tsx
50
50
  var list_exports = {};
51
51
  __export(list_exports, {
52
- DescriptionDetails: () => DescriptionDetails,
53
52
  DescriptionList: () => DescriptionList,
54
- DescriptionTerm: () => DescriptionTerm,
55
53
  LinkList: () => LinkList,
56
54
  OrderedList: () => OrderedList,
57
55
  UnorderedList: () => UnorderedList
@@ -66,14 +64,6 @@ var import_list2 = require("@postenbring/hedwig-css/dist/list.css");
66
64
  // src/list/description-list.tsx
67
65
  var import_typed_classname = require("@postenbring/hedwig-css/typed-classname/index.mjs");
68
66
  var import_jsx_runtime = require("react/jsx-runtime");
69
- function DescriptionDetails(_a) {
70
- var _b = _a, { children } = _b, rest = __objRest(_b, ["children"]);
71
- return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("dd", __spreadProps(__spreadValues({}, rest), { children }));
72
- }
73
- function DescriptionTerm(_a) {
74
- var _b = _a, { children } = _b, rest = __objRest(_b, ["children"]);
75
- return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("dt", __spreadProps(__spreadValues({}, rest), { children }));
76
- }
77
67
  function DescriptionList(_a) {
78
68
  var _b = _a, {
79
69
  variant = "vertical",
@@ -96,8 +86,6 @@ function DescriptionList(_a) {
96
86
  );
97
87
  }
98
88
  DescriptionList.displayName = "DescriptionList";
99
- DescriptionTerm.displayName = "DescriptionTerm";
100
- DescriptionDetails.displayName = "DescriptionDetails";
101
89
 
102
90
  // src/list/list.tsx
103
91
  var import_typed_classname2 = require("@postenbring/hedwig-css/typed-classname/index.mjs");
@@ -150,9 +138,7 @@ function LinkList(props) {
150
138
  LinkList.displayName = "LinkList";
151
139
  // Annotate the CommonJS export names for ESM import in node:
152
140
  0 && (module.exports = {
153
- DescriptionDetails,
154
141
  DescriptionList,
155
- DescriptionTerm,
156
142
  LinkList,
157
143
  OrderedList,
158
144
  UnorderedList
@@ -1,9 +1,7 @@
1
1
  import "../chunk-5OAMKZDX.mjs";
2
2
  import {
3
- DescriptionDetails,
4
- DescriptionList,
5
- DescriptionTerm
6
- } from "../chunk-6XSKLHN6.mjs";
3
+ DescriptionList
4
+ } from "../chunk-3JNHAMRV.mjs";
7
5
  import {
8
6
  LinkList
9
7
  } from "../chunk-BRBGRJ2I.mjs";
@@ -13,9 +11,7 @@ import {
13
11
  } from "../chunk-RY53CJI7.mjs";
14
12
  import "../chunk-FUJQIYOF.mjs";
15
13
  export {
16
- DescriptionDetails,
17
14
  DescriptionList,
18
- DescriptionTerm,
19
15
  LinkList,
20
16
  OrderedList,
21
17
  UnorderedList
@@ -13,4 +13,4 @@ declare const MessageComponent: {
13
13
  Description: typeof MessageDescription;
14
14
  };
15
15
 
16
- export { MessageComponent as Message, MessageDescription, MessageTitle };
16
+ export { MessageComponent as Message };
@@ -13,4 +13,4 @@ declare const MessageComponent: {
13
13
  Description: typeof MessageDescription;
14
14
  };
15
15
 
16
- export { MessageComponent as Message, MessageDescription, MessageTitle };
16
+ export { MessageComponent as Message };
@@ -49,9 +49,7 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
49
49
  // src/message/index.tsx
50
50
  var message_exports = {};
51
51
  __export(message_exports, {
52
- Message: () => MessageComponent,
53
- MessageDescription: () => MessageDescription,
54
- MessageTitle: () => MessageTitle
52
+ Message: () => MessageComponent
55
53
  });
56
54
  module.exports = __toCommonJS(message_exports);
57
55
  var import_fonts = require("@postenbring/hedwig-css/dist/fonts.css");
@@ -134,7 +132,7 @@ var BoxCloseButton = (0, import_react.forwardRef)(
134
132
  );
135
133
  }
136
134
  );
137
- BoxCloseButton.displayName = "BoxCloseButton";
135
+ BoxCloseButton.displayName = "Box.CloseButton";
138
136
 
139
137
  // src/message/message.tsx
140
138
  var import_jsx_runtime2 = require("react/jsx-runtime");
@@ -168,7 +166,7 @@ var MessageTitle = (0, import_react2.forwardRef)(
168
166
  );
169
167
  }
170
168
  );
171
- MessageTitle.displayName = "MessageTitle";
169
+ MessageTitle.displayName = "Message.Title";
172
170
  var MessageDescription = (0, import_react2.forwardRef)(
173
171
  (_a, ref) => {
174
172
  var _b = _a, { as: Component = "p", className } = _b, rest = __objRest(_b, ["as", "className"]);
@@ -181,17 +179,13 @@ var MessageDescription = (0, import_react2.forwardRef)(
181
179
  );
182
180
  }
183
181
  );
184
- MessageDescription.displayName = "MessageDescription";
182
+ MessageDescription.displayName = "Message.Description";
185
183
 
186
184
  // src/message/index.tsx
187
185
  var MessageComponent = Message;
188
186
  MessageComponent.Title = MessageTitle;
189
187
  MessageComponent.Description = MessageDescription;
190
- MessageComponent.Title.displayName = "Message.Title";
191
- MessageComponent.Description.displayName = "Message.Description";
192
188
  // Annotate the CommonJS export names for ESM import in node:
193
189
  0 && (module.exports = {
194
- Message,
195
- MessageDescription,
196
- MessageTitle
190
+ Message
197
191
  });
@@ -1,14 +1,9 @@
1
1
  import {
2
2
  MessageComponent
3
- } from "../chunk-5MNVIJJ2.mjs";
4
- import {
5
- MessageDescription,
6
- MessageTitle
7
- } from "../chunk-QZIJ2OXE.mjs";
8
- import "../chunk-SWZLMDKJ.mjs";
3
+ } from "../chunk-MER2HJBC.mjs";
4
+ import "../chunk-WYPGZY5Q.mjs";
5
+ import "../chunk-WTMT5WCJ.mjs";
9
6
  import "../chunk-FUJQIYOF.mjs";
10
7
  export {
11
- MessageComponent as Message,
12
- MessageDescription,
13
- MessageTitle
8
+ MessageComponent as Message
14
9
  };
@@ -127,7 +127,7 @@ var BoxCloseButton = (0, import_react.forwardRef)(
127
127
  );
128
128
  }
129
129
  );
130
- BoxCloseButton.displayName = "BoxCloseButton";
130
+ BoxCloseButton.displayName = "Box.CloseButton";
131
131
 
132
132
  // src/message/message.tsx
133
133
  var import_jsx_runtime2 = require("react/jsx-runtime");
@@ -161,7 +161,7 @@ var MessageTitle = (0, import_react2.forwardRef)(
161
161
  );
162
162
  }
163
163
  );
164
- MessageTitle.displayName = "MessageTitle";
164
+ MessageTitle.displayName = "Message.Title";
165
165
  var MessageDescription = (0, import_react2.forwardRef)(
166
166
  (_a, ref) => {
167
167
  var _b = _a, { as: Component = "p", className } = _b, rest = __objRest(_b, ["as", "className"]);
@@ -174,7 +174,7 @@ var MessageDescription = (0, import_react2.forwardRef)(
174
174
  );
175
175
  }
176
176
  );
177
- MessageDescription.displayName = "MessageDescription";
177
+ MessageDescription.displayName = "Message.Description";
178
178
  // Annotate the CommonJS export names for ESM import in node:
179
179
  0 && (module.exports = {
180
180
  Message,
@@ -2,8 +2,8 @@ import {
2
2
  Message,
3
3
  MessageDescription,
4
4
  MessageTitle
5
- } from "../chunk-QZIJ2OXE.mjs";
6
- import "../chunk-SWZLMDKJ.mjs";
5
+ } from "../chunk-WYPGZY5Q.mjs";
6
+ import "../chunk-WTMT5WCJ.mjs";
7
7
  import "../chunk-FUJQIYOF.mjs";
8
8
  export {
9
9
  Message,
@@ -6,4 +6,4 @@ declare const ModalComponent: react.ForwardRefExoticComponent<ModalProps & react
6
6
  Header: typeof ModalHeader;
7
7
  };
8
8
 
9
- export { ModalComponent as Modal, ModalHeader };
9
+ export { ModalComponent as Modal, ModalHeader, ModalProps };
@@ -6,4 +6,4 @@ declare const ModalComponent: react.ForwardRefExoticComponent<ModalProps & react
6
6
  Header: typeof ModalHeader;
7
7
  };
8
8
 
9
- export { ModalComponent as Modal, ModalHeader };
9
+ export { ModalComponent as Modal, ModalHeader, ModalProps };
@@ -59,8 +59,7 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
59
59
  // src/modal/index.tsx
60
60
  var modal_exports = {};
61
61
  __export(modal_exports, {
62
- Modal: () => ModalComponent,
63
- ModalHeader: () => ModalHeader
62
+ Modal: () => ModalComponent
64
63
  });
65
64
  module.exports = __toCommonJS(modal_exports);
66
65
  var import_fonts = require("@postenbring/hedwig-css/dist/fonts.css");
@@ -143,7 +142,7 @@ var BoxCloseButton = (0, import_react.forwardRef)(
143
142
  );
144
143
  }
145
144
  );
146
- BoxCloseButton.displayName = "BoxCloseButton";
145
+ BoxCloseButton.displayName = "Box.CloseButton";
147
146
 
148
147
  // src/utils.ts
149
148
  var React = __toESM(require("react"));
@@ -205,14 +204,12 @@ var ModalHeader = (0, import_react3.forwardRef)(
205
204
  );
206
205
  }
207
206
  );
208
- ModalHeader.displayName = "ModalHeader";
207
+ ModalHeader.displayName = "Modal.Header";
209
208
 
210
209
  // src/modal/index.tsx
211
210
  var ModalComponent = Modal;
212
211
  ModalComponent.Header = ModalHeader;
213
- ModalComponent.Header.displayName = "Modal";
214
212
  // Annotate the CommonJS export names for ESM import in node:
215
213
  0 && (module.exports = {
216
- Modal,
217
- ModalHeader
214
+ Modal
218
215
  });
@@ -1,13 +1,10 @@
1
1
  import {
2
2
  ModalComponent
3
- } from "../chunk-TUJCKNKR.mjs";
4
- import {
5
- ModalHeader
6
- } from "../chunk-SQULBVH7.mjs";
3
+ } from "../chunk-2QZF65FK.mjs";
4
+ import "../chunk-OB6UNSKV.mjs";
7
5
  import "../chunk-FSBY3NKV.mjs";
8
- import "../chunk-SWZLMDKJ.mjs";
6
+ import "../chunk-WTMT5WCJ.mjs";
9
7
  import "../chunk-FUJQIYOF.mjs";
10
8
  export {
11
- ModalComponent as Modal,
12
- ModalHeader
9
+ ModalComponent as Modal
13
10
  };
@@ -136,7 +136,7 @@ var BoxCloseButton = (0, import_react.forwardRef)(
136
136
  );
137
137
  }
138
138
  );
139
- BoxCloseButton.displayName = "BoxCloseButton";
139
+ BoxCloseButton.displayName = "Box.CloseButton";
140
140
 
141
141
  // src/utils.ts
142
142
  var React = __toESM(require("react"));
@@ -198,7 +198,7 @@ var ModalHeader = (0, import_react3.forwardRef)(
198
198
  );
199
199
  }
200
200
  );
201
- ModalHeader.displayName = "ModalHeader";
201
+ ModalHeader.displayName = "Modal.Header";
202
202
  // Annotate the CommonJS export names for ESM import in node:
203
203
  0 && (module.exports = {
204
204
  Modal,
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  Modal,
3
3
  ModalHeader
4
- } from "../chunk-SQULBVH7.mjs";
4
+ } from "../chunk-OB6UNSKV.mjs";
5
5
  import "../chunk-FSBY3NKV.mjs";
6
- import "../chunk-SWZLMDKJ.mjs";
6
+ import "../chunk-WTMT5WCJ.mjs";
7
7
  import "../chunk-FUJQIYOF.mjs";
8
8
  export {
9
9
  Modal,
@@ -13,4 +13,4 @@ declare const NavbarComponent: react.ForwardRefExoticComponent<NavbarProps & rea
13
13
  ExpandableMenu: typeof NavbarExpandableMenuComponent;
14
14
  };
15
15
 
16
- export { NavbarComponent as Navbar };
16
+ export { NavbarComponent as Navbar, NavbarLogo, NavbarProps };
@@ -13,4 +13,4 @@ declare const NavbarComponent: react.ForwardRefExoticComponent<NavbarProps & rea
13
13
  ExpandableMenu: typeof NavbarExpandableMenuComponent;
14
14
  };
15
15
 
16
- export { NavbarComponent as Navbar };
16
+ export { NavbarComponent as Navbar, NavbarLogo, NavbarProps };
@@ -0,0 +1,38 @@
1
+ import react__default from 'react';
2
+ import { O as OverridableComponent } from '../utils-BfZsjuFH.mjs';
3
+
4
+ interface ProseProps {
5
+ children: react__default.ReactNode;
6
+ size?: "default" | "small";
7
+ darkmode?: boolean;
8
+ }
9
+ /**
10
+ * ## 🚨 WORK IN PROGRESS 🚨
11
+ *
12
+ * ### TODO: Choose a name
13
+ *
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
19
+ *
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.
22
+ *
23
+ * ```tsx
24
+ * <Prose>
25
+ * <h1>Heading 1</h1>
26
+ * <h2>Heading 2</h2>
27
+ * <a href="https://www.postenbring.no">Postenbring</a>
28
+ * <ul>
29
+ * <li>Hei</li>
30
+ * <li>Hallo</li>
31
+ * <li>Hello</li>
32
+ * </ul>
33
+ * </Prose>
34
+ * ```
35
+ */
36
+ declare const Prose: OverridableComponent<ProseProps, HTMLDivElement>;
37
+
38
+ export { Prose, type ProseProps };
@@ -0,0 +1,38 @@
1
+ import react__default from 'react';
2
+ import { O as OverridableComponent } from '../utils-BfZsjuFH.js';
3
+
4
+ interface ProseProps {
5
+ children: react__default.ReactNode;
6
+ size?: "default" | "small";
7
+ darkmode?: boolean;
8
+ }
9
+ /**
10
+ * ## 🚨 WORK IN PROGRESS 🚨
11
+ *
12
+ * ### TODO: Choose a name
13
+ *
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
19
+ *
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.
22
+ *
23
+ * ```tsx
24
+ * <Prose>
25
+ * <h1>Heading 1</h1>
26
+ * <h2>Heading 2</h2>
27
+ * <a href="https://www.postenbring.no">Postenbring</a>
28
+ * <ul>
29
+ * <li>Hei</li>
30
+ * <li>Hallo</li>
31
+ * <li>Hello</li>
32
+ * </ul>
33
+ * </Prose>
34
+ * ```
35
+ */
36
+ declare const Prose: OverridableComponent<ProseProps, HTMLDivElement>;
37
+
38
+ export { Prose, type ProseProps };
@@ -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/prose/prose.tsx
50
+ var prose_exports = {};
51
+ __export(prose_exports, {
52
+ Prose: () => Prose
53
+ });
54
+ module.exports = __toCommonJS(prose_exports);
55
+ var import_react = require("react");
56
+ var import_typed_classname = require("@postenbring/hedwig-css/typed-classname/index.mjs");
57
+ var import_jsx_runtime = require("react/jsx-runtime");
58
+ var Prose = (0, import_react.forwardRef)(
59
+ (_a, ref) => {
60
+ var _b = _a, { as: Component = "div", children, size, darkmode = false, className } = _b, rest = __objRest(_b, ["as", "children", "size", "darkmode", "className"]);
61
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
62
+ Component,
63
+ __spreadProps(__spreadValues({
64
+ className: (0, import_typed_classname.clsx)(
65
+ `hds-prose`,
66
+ size === "small" && "hds-prose--small",
67
+ darkmode && "hds-prose--darkmode",
68
+ className
69
+ ),
70
+ ref
71
+ }, rest), {
72
+ children
73
+ })
74
+ );
75
+ }
76
+ );
77
+ Prose.displayName = "Prose";
78
+ // Annotate the CommonJS export names for ESM import in node:
79
+ 0 && (module.exports = {
80
+ Prose
81
+ });
@@ -0,0 +1,33 @@
1
+ import {
2
+ __objRest,
3
+ __spreadProps,
4
+ __spreadValues
5
+ } from "../chunk-FUJQIYOF.mjs";
6
+
7
+ // src/prose/prose.tsx
8
+ import { forwardRef } from "react";
9
+ import { clsx } from "@postenbring/hedwig-css/typed-classname/index.mjs";
10
+ import { jsx } from "react/jsx-runtime";
11
+ var Prose = forwardRef(
12
+ (_a, ref) => {
13
+ var _b = _a, { as: Component = "div", children, size, darkmode = false, className } = _b, rest = __objRest(_b, ["as", "children", "size", "darkmode", "className"]);
14
+ return /* @__PURE__ */ jsx(
15
+ Component,
16
+ __spreadProps(__spreadValues({
17
+ className: clsx(
18
+ `hds-prose`,
19
+ size === "small" && "hds-prose--small",
20
+ darkmode && "hds-prose--darkmode",
21
+ className
22
+ ),
23
+ ref
24
+ }, rest), {
25
+ children
26
+ })
27
+ );
28
+ }
29
+ );
30
+ Prose.displayName = "Prose";
31
+ export {
32
+ Prose
33
+ };