@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
@@ -57,14 +57,13 @@ __export(list_exports, {
57
57
  UnorderedList: () => UnorderedList
58
58
  });
59
59
  module.exports = __toCommonJS(list_exports);
60
- var import_fonts = require("@postenbring/hedwig-tokens/tokens-output/css/fonts.css");
61
- var import_tokens = require("@postenbring/hedwig-tokens/tokens-output/css/tokens.css");
60
+ var import_fonts = require("@postenbring/hedwig-css/dist/fonts.css");
61
+ var import_tokens = require("@postenbring/hedwig-css/dist/tokens.css");
62
62
  var import_base = require("@postenbring/hedwig-css/dist/base.css");
63
63
  var import_description_list = require("@postenbring/hedwig-css/dist/description-list.css");
64
64
  var import_list2 = require("@postenbring/hedwig-css/dist/list.css");
65
65
 
66
66
  // src/list/description-list.tsx
67
- var import_clsx = require("clsx");
68
67
  var import_typed_classname = require("@postenbring/hedwig-css/typed-classname/index.mjs");
69
68
  var import_jsx_runtime = require("react/jsx-runtime");
70
69
  function DescriptionDetails(_a) {
@@ -76,13 +75,23 @@ function DescriptionTerm(_a) {
76
75
  return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("dt", __spreadProps(__spreadValues({}, rest), { children }));
77
76
  }
78
77
  function DescriptionList(_a) {
79
- var _b = _a, { variant = "vertical" } = _b, rest = __objRest(_b, ["variant"]);
78
+ var _b = _a, {
79
+ variant = "vertical",
80
+ className
81
+ } = _b, rest = __objRest(_b, [
82
+ "variant",
83
+ "className"
84
+ ]);
80
85
  return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
81
86
  "dl",
82
87
  __spreadValues({
83
- className: (0, import_clsx.clsx)((0, import_typed_classname.t)("hds-description-list"), {
84
- [(0, import_typed_classname.t)("hds-description-list--horizontal")]: variant === "horizontal"
85
- })
88
+ className: (0, import_typed_classname.clsx)(
89
+ "hds-description-list",
90
+ {
91
+ "hds-description-list--horizontal": variant === "horizontal"
92
+ },
93
+ className
94
+ )
86
95
  }, rest)
87
96
  );
88
97
  }
@@ -91,7 +100,6 @@ DescriptionTerm.displayName = "DescriptionTerm";
91
100
  DescriptionDetails.displayName = "DescriptionDetails";
92
101
 
93
102
  // src/list/list.tsx
94
- var import_clsx2 = require("clsx");
95
103
  var import_typed_classname2 = require("@postenbring/hedwig-css/typed-classname/index.mjs");
96
104
  var import_jsx_runtime2 = require("react/jsx-runtime");
97
105
  function BaseList(_a) {
@@ -99,19 +107,26 @@ function BaseList(_a) {
99
107
  as: ListTag = "ul",
100
108
  children,
101
109
  listStyle = "inherit",
102
- size = "medium"
110
+ size = "medium",
111
+ className
103
112
  } = _b, rest = __objRest(_b, [
104
113
  "as",
105
114
  "children",
106
115
  "listStyle",
107
- "size"
116
+ "size",
117
+ "className"
108
118
  ]);
109
119
  return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
110
120
  ListTag,
111
121
  __spreadProps(__spreadValues({
112
- className: (0, import_clsx2.clsx)((0, import_typed_classname2.t)("hds-list"), (0, import_typed_classname2.t)(`hds-list--${size}`), {
113
- [(0, import_typed_classname2.t)(`hds-list--style-hidden`)]: listStyle === "no-bullets"
114
- })
122
+ className: (0, import_typed_classname2.clsx)(
123
+ "hds-list",
124
+ `hds-list--${size}`,
125
+ {
126
+ "hds-list--style-hidden": listStyle === "no-bullets"
127
+ },
128
+ className
129
+ )
115
130
  }, rest), {
116
131
  children
117
132
  })
@@ -1,16 +1,16 @@
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 {
10
- DescriptionDetails,
11
- DescriptionList,
12
- DescriptionTerm
13
- } from "../chunk-B3PZUFG2.mjs";
13
+ } from "../chunk-STKOYB5H.mjs";
14
14
  import "../chunk-FUJQIYOF.mjs";
15
15
  export {
16
16
  DescriptionDetails,
@@ -54,7 +54,6 @@ __export(link_list_exports, {
54
54
  module.exports = __toCommonJS(link_list_exports);
55
55
 
56
56
  // src/list/list.tsx
57
- var import_clsx = require("clsx");
58
57
  var import_typed_classname = require("@postenbring/hedwig-css/typed-classname/index.mjs");
59
58
  var import_jsx_runtime = require("react/jsx-runtime");
60
59
  function BaseList(_a) {
@@ -62,19 +61,26 @@ function BaseList(_a) {
62
61
  as: ListTag = "ul",
63
62
  children,
64
63
  listStyle = "inherit",
65
- size = "medium"
64
+ size = "medium",
65
+ className
66
66
  } = _b, rest = __objRest(_b, [
67
67
  "as",
68
68
  "children",
69
69
  "listStyle",
70
- "size"
70
+ "size",
71
+ "className"
71
72
  ]);
72
73
  return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
73
74
  ListTag,
74
75
  __spreadProps(__spreadValues({
75
- className: (0, import_clsx.clsx)((0, import_typed_classname.t)("hds-list"), (0, import_typed_classname.t)(`hds-list--${size}`), {
76
- [(0, import_typed_classname.t)(`hds-list--style-hidden`)]: listStyle === "no-bullets"
77
- })
76
+ className: (0, import_typed_classname.clsx)(
77
+ "hds-list",
78
+ `hds-list--${size}`,
79
+ {
80
+ "hds-list--style-hidden": listStyle === "no-bullets"
81
+ },
82
+ className
83
+ )
78
84
  }, rest), {
79
85
  children
80
86
  })
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  LinkList
3
- } from "../chunk-NMSLCM2K.mjs";
4
- import "../chunk-IWDN3WGQ.mjs";
3
+ } from "../chunk-DQ2OO6EW.mjs";
4
+ import "../chunk-STKOYB5H.mjs";
5
5
  import "../chunk-FUJQIYOF.mjs";
6
6
  export {
7
7
  LinkList
package/dist/list/list.js CHANGED
@@ -53,7 +53,6 @@ __export(list_exports, {
53
53
  UnorderedList: () => UnorderedList
54
54
  });
55
55
  module.exports = __toCommonJS(list_exports);
56
- var import_clsx = require("clsx");
57
56
  var import_typed_classname = require("@postenbring/hedwig-css/typed-classname/index.mjs");
58
57
  var import_jsx_runtime = require("react/jsx-runtime");
59
58
  function BaseList(_a) {
@@ -61,19 +60,26 @@ function BaseList(_a) {
61
60
  as: ListTag = "ul",
62
61
  children,
63
62
  listStyle = "inherit",
64
- size = "medium"
63
+ size = "medium",
64
+ className
65
65
  } = _b, rest = __objRest(_b, [
66
66
  "as",
67
67
  "children",
68
68
  "listStyle",
69
- "size"
69
+ "size",
70
+ "className"
70
71
  ]);
71
72
  return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
72
73
  ListTag,
73
74
  __spreadProps(__spreadValues({
74
- className: (0, import_clsx.clsx)((0, import_typed_classname.t)("hds-list"), (0, import_typed_classname.t)(`hds-list--${size}`), {
75
- [(0, import_typed_classname.t)(`hds-list--style-hidden`)]: listStyle === "no-bullets"
76
- })
75
+ className: (0, import_typed_classname.clsx)(
76
+ "hds-list",
77
+ `hds-list--${size}`,
78
+ {
79
+ "hds-list--style-hidden": listStyle === "no-bullets"
80
+ },
81
+ className
82
+ )
77
83
  }, rest), {
78
84
  children
79
85
  })
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  OrderedList,
3
3
  UnorderedList
4
- } from "../chunk-IWDN3WGQ.mjs";
4
+ } from "../chunk-STKOYB5H.mjs";
5
5
  import "../chunk-FUJQIYOF.mjs";
6
6
  export {
7
7
  OrderedList,
@@ -1,4 +1,16 @@
1
- export { Message, MessageProps } from './message.mjs';
2
- import 'react';
1
+ import * as React from 'react';
2
+ import { MessageProps, MessageTitle, MessageDescription } from './message.mjs';
3
3
  import '../utils-BfZsjuFH.mjs';
4
4
  import '../box/box.mjs';
5
+
6
+ declare const MessageComponent: {
7
+ (props: MessageProps & React.RefAttributes<HTMLDivElement>): React.ReactNode;
8
+ <As extends React.ElementType>(props: {
9
+ as?: As | undefined;
10
+ } & MessageProps & Omit<React.ComponentPropsWithRef<As>, "slot" | "style" | "title" | "icon" | "children" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "autoFocus" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "nonce" | "placeholder" | "spellCheck" | "tabIndex" | "translate" | "radioGroup" | "role" | "about" | "content" | "datatype" | "inlist" | "prefix" | "property" | "rel" | "resource" | "rev" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-braillelabel" | "aria-brailleroledescription" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colindextext" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-description" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowindextext" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onResize" | "onResizeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "variant" | "onClose" | "closeable" | "closed" | "closeButtonProps" | "iconClassName">): React.ReactNode;
11
+ } & Pick<React.FC, "displayName"> & {
12
+ Title: typeof MessageTitle;
13
+ Description: typeof MessageDescription;
14
+ };
15
+
16
+ export { MessageComponent as Message, MessageDescription, MessageTitle };
@@ -1,4 +1,16 @@
1
- export { Message, MessageProps } from './message.js';
2
- import 'react';
1
+ import * as React from 'react';
2
+ import { MessageProps, MessageTitle, MessageDescription } from './message.js';
3
3
  import '../utils-BfZsjuFH.js';
4
4
  import '../box/box.js';
5
+
6
+ declare const MessageComponent: {
7
+ (props: MessageProps & React.RefAttributes<HTMLDivElement>): React.ReactNode;
8
+ <As extends React.ElementType>(props: {
9
+ as?: As | undefined;
10
+ } & MessageProps & Omit<React.ComponentPropsWithRef<As>, "slot" | "style" | "title" | "icon" | "children" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "autoFocus" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "nonce" | "placeholder" | "spellCheck" | "tabIndex" | "translate" | "radioGroup" | "role" | "about" | "content" | "datatype" | "inlist" | "prefix" | "property" | "rel" | "resource" | "rev" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-braillelabel" | "aria-brailleroledescription" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colindextext" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-description" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowindextext" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onResize" | "onResizeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "variant" | "onClose" | "closeable" | "closed" | "closeButtonProps" | "iconClassName">): React.ReactNode;
11
+ } & Pick<React.FC, "displayName"> & {
12
+ Title: typeof MessageTitle;
13
+ Description: typeof MessageDescription;
14
+ };
15
+
16
+ export { MessageComponent as Message, MessageDescription, MessageTitle };
@@ -49,23 +49,23 @@ 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: () => Message
52
+ Message: () => MessageComponent,
53
+ MessageDescription: () => MessageDescription,
54
+ MessageTitle: () => MessageTitle
53
55
  });
54
56
  module.exports = __toCommonJS(message_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");
57
+ var import_fonts = require("@postenbring/hedwig-css/dist/fonts.css");
58
+ var import_tokens = require("@postenbring/hedwig-css/dist/tokens.css");
57
59
  var import_base = require("@postenbring/hedwig-css/dist/base.css");
58
60
  var import_box2 = require("@postenbring/hedwig-css/dist/box.css");
59
61
  var import_message = require("@postenbring/hedwig-css/dist/message.css");
60
62
 
61
63
  // src/message/message.tsx
62
64
  var import_react2 = require("react");
63
- var import_clsx2 = require("clsx");
64
65
  var import_typed_classname2 = require("@postenbring/hedwig-css/typed-classname/index.mjs");
65
66
 
66
67
  // src/box/box.tsx
67
68
  var import_react = require("react");
68
- var import_clsx = require("clsx");
69
69
  var import_typed_classname = require("@postenbring/hedwig-css/typed-classname/index.mjs");
70
70
  var import_jsx_runtime = require("react/jsx-runtime");
71
71
  var Box = (0, import_react.forwardRef)(
@@ -73,7 +73,7 @@ var Box = (0, import_react.forwardRef)(
73
73
  var _b = _a, {
74
74
  as: Component = "div",
75
75
  variant = "light-grey",
76
- hideCloseButton,
76
+ closeable = false,
77
77
  onClose: onCloseProp,
78
78
  closed: closedProp,
79
79
  closeButtonProps,
@@ -82,7 +82,7 @@ var Box = (0, import_react.forwardRef)(
82
82
  } = _b, rest = __objRest(_b, [
83
83
  "as",
84
84
  "variant",
85
- "hideCloseButton",
85
+ "closeable",
86
86
  "onClose",
87
87
  "closed",
88
88
  "closeButtonProps",
@@ -104,16 +104,16 @@ var Box = (0, import_react.forwardRef)(
104
104
  return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
105
105
  Component,
106
106
  __spreadProps(__spreadValues({
107
- className: (0, import_clsx.clsx)(
108
- (0, import_typed_classname.t)("hds-box"),
109
- (0, import_typed_classname.t)(`hds-box--${variant}`),
110
- { [(0, import_typed_classname.t)("hds-box--closed")]: closed },
107
+ className: (0, import_typed_classname.clsx)(
108
+ "hds-box",
109
+ `hds-box--${variant}`,
110
+ { "hds-box--closed": closed },
111
111
  className
112
112
  ),
113
113
  ref
114
114
  }, rest), {
115
115
  children: [
116
- !hideCloseButton && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(BoxCloseButton, __spreadValues({ onClick: onClose }, closeButtonProps)),
116
+ closeable ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(BoxCloseButton, __spreadValues({ onClick: onClose }, closeButtonProps)) : null,
117
117
  children
118
118
  ]
119
119
  })
@@ -127,7 +127,7 @@ var BoxCloseButton = (0, import_react.forwardRef)(
127
127
  return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
128
128
  "button",
129
129
  __spreadValues({
130
- className: (0, import_clsx.clsx)((0, import_typed_classname.t)("hds-box__close-button"), className),
130
+ className: (0, import_typed_classname.clsx)("hds-box__close-button", className),
131
131
  ref,
132
132
  type: "button"
133
133
  }, rest)
@@ -144,11 +144,11 @@ var Message = (0, import_react2.forwardRef)(
144
144
  return /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(
145
145
  Box,
146
146
  __spreadProps(__spreadValues({
147
- className: (0, import_clsx2.clsx)((0, import_typed_classname2.t)(`hds-message`), (0, import_typed_classname2.t)(`hds-message--${variant}`), className),
147
+ className: (0, import_typed_classname2.clsx)(`hds-message`, `hds-message--${variant}`, className),
148
148
  ref
149
149
  }, rest), {
150
150
  children: [
151
- variant === "neutral" && /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("div", { className: (0, import_clsx2.clsx)((0, import_typed_classname2.t)("hds-message--neutral__icon"), iconClassName), children: icon }),
151
+ variant === "neutral" && /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("div", { className: (0, import_typed_classname2.clsx)("hds-message--neutral__icon", iconClassName), children: icon }),
152
152
  children
153
153
  ]
154
154
  })
@@ -156,7 +156,42 @@ var Message = (0, import_react2.forwardRef)(
156
156
  }
157
157
  );
158
158
  Message.displayName = "Message";
159
+ var MessageTitle = (0, import_react2.forwardRef)(
160
+ (_a, ref) => {
161
+ var _b = _a, { as: Component = "p", className } = _b, rest = __objRest(_b, ["as", "className"]);
162
+ return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
163
+ Component,
164
+ __spreadValues({
165
+ className: (0, import_typed_classname2.clsx)("hds-message__title", className),
166
+ ref
167
+ }, rest)
168
+ );
169
+ }
170
+ );
171
+ MessageTitle.displayName = "MessageTitle";
172
+ var MessageDescription = (0, import_react2.forwardRef)(
173
+ (_a, ref) => {
174
+ var _b = _a, { as: Component = "p", className } = _b, rest = __objRest(_b, ["as", "className"]);
175
+ return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
176
+ Component,
177
+ __spreadValues({
178
+ className: (0, import_typed_classname2.clsx)("hds-message__description", className),
179
+ ref
180
+ }, rest)
181
+ );
182
+ }
183
+ );
184
+ MessageDescription.displayName = "MessageDescription";
185
+
186
+ // src/message/index.tsx
187
+ var MessageComponent = Message;
188
+ MessageComponent.Title = MessageTitle;
189
+ MessageComponent.Description = MessageDescription;
190
+ MessageComponent.Title.displayName = "Message";
191
+ MessageComponent.Description.displayName = "Message";
159
192
  // Annotate the CommonJS export names for ESM import in node:
160
193
  0 && (module.exports = {
161
- Message
194
+ Message,
195
+ MessageDescription,
196
+ MessageTitle
162
197
  });
@@ -1,9 +1,14 @@
1
- import "../chunk-4XWB4ZSR.mjs";
2
1
  import {
3
- Message
4
- } from "../chunk-EKFYWUBE.mjs";
5
- import "../chunk-EX4U7YZF.mjs";
2
+ MessageComponent
3
+ } from "../chunk-6AW5BEDP.mjs";
4
+ import {
5
+ MessageDescription,
6
+ MessageTitle
7
+ } from "../chunk-X4D24ZRP.mjs";
8
+ import "../chunk-RXUPE4MM.mjs";
6
9
  import "../chunk-FUJQIYOF.mjs";
7
10
  export {
8
- Message
11
+ MessageComponent as Message,
12
+ MessageDescription,
13
+ MessageTitle
9
14
  };
@@ -12,5 +12,7 @@ type MessageProps = ({
12
12
  iconClassName?: string;
13
13
  }) & Omit<BoxProps, "variant">;
14
14
  declare const Message: OverridableComponent<MessageProps, HTMLDivElement>;
15
+ declare const MessageTitle: OverridableComponent<object, HTMLParagraphElement>;
16
+ declare const MessageDescription: OverridableComponent<object, HTMLParagraphElement>;
15
17
 
16
- export { Message, type MessageProps };
18
+ export { Message, MessageDescription, type MessageProps, MessageTitle };
@@ -12,5 +12,7 @@ type MessageProps = ({
12
12
  iconClassName?: string;
13
13
  }) & Omit<BoxProps, "variant">;
14
14
  declare const Message: OverridableComponent<MessageProps, HTMLDivElement>;
15
+ declare const MessageTitle: OverridableComponent<object, HTMLParagraphElement>;
16
+ declare const MessageDescription: OverridableComponent<object, HTMLParagraphElement>;
15
17
 
16
- export { Message, type MessageProps };
18
+ export { Message, MessageDescription, type MessageProps, MessageTitle };
@@ -49,16 +49,16 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
49
49
  // src/message/message.tsx
50
50
  var message_exports = {};
51
51
  __export(message_exports, {
52
- Message: () => Message
52
+ Message: () => Message,
53
+ MessageDescription: () => MessageDescription,
54
+ MessageTitle: () => MessageTitle
53
55
  });
54
56
  module.exports = __toCommonJS(message_exports);
55
57
  var import_react2 = require("react");
56
- var import_clsx2 = require("clsx");
57
58
  var import_typed_classname2 = require("@postenbring/hedwig-css/typed-classname/index.mjs");
58
59
 
59
60
  // src/box/box.tsx
60
61
  var import_react = require("react");
61
- var import_clsx = require("clsx");
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
64
  var Box = (0, import_react.forwardRef)(
@@ -66,7 +66,7 @@ var Box = (0, import_react.forwardRef)(
66
66
  var _b = _a, {
67
67
  as: Component = "div",
68
68
  variant = "light-grey",
69
- hideCloseButton,
69
+ closeable = false,
70
70
  onClose: onCloseProp,
71
71
  closed: closedProp,
72
72
  closeButtonProps,
@@ -75,7 +75,7 @@ var Box = (0, import_react.forwardRef)(
75
75
  } = _b, rest = __objRest(_b, [
76
76
  "as",
77
77
  "variant",
78
- "hideCloseButton",
78
+ "closeable",
79
79
  "onClose",
80
80
  "closed",
81
81
  "closeButtonProps",
@@ -97,16 +97,16 @@ var Box = (0, import_react.forwardRef)(
97
97
  return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
98
98
  Component,
99
99
  __spreadProps(__spreadValues({
100
- className: (0, import_clsx.clsx)(
101
- (0, import_typed_classname.t)("hds-box"),
102
- (0, import_typed_classname.t)(`hds-box--${variant}`),
103
- { [(0, import_typed_classname.t)("hds-box--closed")]: closed },
100
+ className: (0, import_typed_classname.clsx)(
101
+ "hds-box",
102
+ `hds-box--${variant}`,
103
+ { "hds-box--closed": closed },
104
104
  className
105
105
  ),
106
106
  ref
107
107
  }, rest), {
108
108
  children: [
109
- !hideCloseButton && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(BoxCloseButton, __spreadValues({ onClick: onClose }, closeButtonProps)),
109
+ closeable ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(BoxCloseButton, __spreadValues({ onClick: onClose }, closeButtonProps)) : null,
110
110
  children
111
111
  ]
112
112
  })
@@ -120,7 +120,7 @@ var BoxCloseButton = (0, import_react.forwardRef)(
120
120
  return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
121
121
  "button",
122
122
  __spreadValues({
123
- className: (0, import_clsx.clsx)((0, import_typed_classname.t)("hds-box__close-button"), className),
123
+ className: (0, import_typed_classname.clsx)("hds-box__close-button", className),
124
124
  ref,
125
125
  type: "button"
126
126
  }, rest)
@@ -137,11 +137,11 @@ var Message = (0, import_react2.forwardRef)(
137
137
  return /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(
138
138
  Box,
139
139
  __spreadProps(__spreadValues({
140
- className: (0, import_clsx2.clsx)((0, import_typed_classname2.t)(`hds-message`), (0, import_typed_classname2.t)(`hds-message--${variant}`), className),
140
+ className: (0, import_typed_classname2.clsx)(`hds-message`, `hds-message--${variant}`, className),
141
141
  ref
142
142
  }, rest), {
143
143
  children: [
144
- variant === "neutral" && /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("div", { className: (0, import_clsx2.clsx)((0, import_typed_classname2.t)("hds-message--neutral__icon"), iconClassName), children: icon }),
144
+ variant === "neutral" && /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("div", { className: (0, import_typed_classname2.clsx)("hds-message--neutral__icon", iconClassName), children: icon }),
145
145
  children
146
146
  ]
147
147
  })
@@ -149,7 +149,35 @@ var Message = (0, import_react2.forwardRef)(
149
149
  }
150
150
  );
151
151
  Message.displayName = "Message";
152
+ var MessageTitle = (0, import_react2.forwardRef)(
153
+ (_a, ref) => {
154
+ var _b = _a, { as: Component = "p", className } = _b, rest = __objRest(_b, ["as", "className"]);
155
+ return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
156
+ Component,
157
+ __spreadValues({
158
+ className: (0, import_typed_classname2.clsx)("hds-message__title", className),
159
+ ref
160
+ }, rest)
161
+ );
162
+ }
163
+ );
164
+ MessageTitle.displayName = "MessageTitle";
165
+ var MessageDescription = (0, import_react2.forwardRef)(
166
+ (_a, ref) => {
167
+ var _b = _a, { as: Component = "p", className } = _b, rest = __objRest(_b, ["as", "className"]);
168
+ return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
169
+ Component,
170
+ __spreadValues({
171
+ className: (0, import_typed_classname2.clsx)("hds-message__description", className),
172
+ ref
173
+ }, rest)
174
+ );
175
+ }
176
+ );
177
+ MessageDescription.displayName = "MessageDescription";
152
178
  // Annotate the CommonJS export names for ESM import in node:
153
179
  0 && (module.exports = {
154
- Message
180
+ Message,
181
+ MessageDescription,
182
+ MessageTitle
155
183
  });
@@ -1,8 +1,12 @@
1
1
  import {
2
- Message
3
- } from "../chunk-EKFYWUBE.mjs";
4
- import "../chunk-EX4U7YZF.mjs";
2
+ Message,
3
+ MessageDescription,
4
+ MessageTitle
5
+ } from "../chunk-X4D24ZRP.mjs";
6
+ import "../chunk-RXUPE4MM.mjs";
5
7
  import "../chunk-FUJQIYOF.mjs";
6
8
  export {
7
- Message
9
+ Message,
10
+ MessageDescription,
11
+ MessageTitle
8
12
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@postenbring/hedwig-react",
3
- "version": "0.0.6",
3
+ "version": "0.0.9",
4
4
  "main": "./dist/index.js",
5
5
  "module": "./dist/index.mjs",
6
6
  "types": "./dist/index.d.ts",
@@ -10,7 +10,7 @@
10
10
  "dist/**"
11
11
  ],
12
12
  "devDependencies": {
13
- "@types/react": "^18.2.37",
13
+ "@types/react": "^18.2.39",
14
14
  "@types/react-dom": "^18.2.15",
15
15
  "react": "^18.2.0",
16
16
  "tsup": "^8.0.1",
@@ -19,9 +19,7 @@
19
19
  "hedwig-tsconfig": "0.0.0"
20
20
  },
21
21
  "dependencies": {
22
- "clsx": "^2.0.0",
23
- "@postenbring/hedwig-css": "0.0.6",
24
- "@postenbring/hedwig-tokens": "0.0.3"
22
+ "@postenbring/hedwig-css": "0.0.9"
25
23
  },
26
24
  "publishConfig": {
27
25
  "access": "public"
@@ -1,6 +0,0 @@
1
- // src/message/index.tsx
2
- import "@postenbring/hedwig-tokens/tokens-output/css/fonts.css";
3
- import "@postenbring/hedwig-tokens/tokens-output/css/tokens.css";
4
- import "@postenbring/hedwig-css/dist/base.css";
5
- import "@postenbring/hedwig-css/dist/box.css";
6
- import "@postenbring/hedwig-css/dist/message.css";