@postenbring/hedwig-react 0.0.0-improve-typed-classname-20231127094705 → 0.0.0-include-css-in-react-package-k6QhqAlv

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 (58) hide show
  1. package/dist/accordion/index.js +2 -2
  2. package/dist/accordion/index.mjs +4 -4
  3. package/dist/badge/index.js +2 -2
  4. package/dist/badge/index.mjs +1 -1
  5. package/dist/box/box.d.mts +2 -2
  6. package/dist/box/box.d.ts +2 -2
  7. package/dist/box/box.js +3 -3
  8. package/dist/box/box.mjs +1 -1
  9. package/dist/box/index.js +5 -5
  10. package/dist/box/index.mjs +2 -2
  11. package/dist/button/button.d.mts +14 -14
  12. package/dist/button/button.d.ts +14 -14
  13. package/dist/button/button.js +59 -44
  14. package/dist/button/button.mjs +3 -1
  15. package/dist/button/index.d.mts +2 -2
  16. package/dist/button/index.d.ts +2 -2
  17. package/dist/button/index.js +61 -46
  18. package/dist/button/index.mjs +4 -2
  19. package/dist/chunk-5NDZ66M6.mjs +5 -0
  20. package/dist/chunk-6AW5BEDP.mjs +21 -0
  21. package/dist/chunk-BJANCH4F.mjs +5 -0
  22. package/dist/chunk-ENRMC5K7.mjs +75 -0
  23. package/dist/chunk-N3EFZW7T.mjs +5 -0
  24. package/dist/{chunk-IOOSUX5O.mjs → chunk-QOVAYDPH.mjs} +2 -2
  25. package/dist/chunk-R55SMUE7.mjs +5 -0
  26. package/dist/{chunk-KKZOIYEN.mjs → chunk-RXUPE4MM.mjs} +3 -3
  27. package/dist/{chunk-G5QN3TMC.mjs → chunk-X4D24ZRP.mjs} +30 -2
  28. package/dist/chunk-XJ44O3HY.mjs +58 -0
  29. package/dist/chunk-Z36ETKOZ.mjs +5 -0
  30. package/dist/index.d.mts +5 -4
  31. package/dist/index.d.ts +5 -4
  32. package/dist/index.js +139 -87
  33. package/dist/index.mjs +35 -28
  34. package/dist/input/index.d.mts +3 -0
  35. package/dist/input/index.d.ts +3 -0
  36. package/dist/input/index.js +121 -0
  37. package/dist/input/index.mjs +13 -0
  38. package/dist/input/input.mjs +3 -53
  39. package/dist/link/index.js +2 -2
  40. package/dist/link/index.mjs +1 -1
  41. package/dist/list/index.js +2 -2
  42. package/dist/list/index.mjs +6 -6
  43. package/dist/message/index.d.mts +14 -2
  44. package/dist/message/index.d.ts +14 -2
  45. package/dist/message/index.js +44 -7
  46. package/dist/message/index.mjs +10 -5
  47. package/dist/message/message.d.mts +3 -1
  48. package/dist/message/message.d.ts +3 -1
  49. package/dist/message/message.js +35 -5
  50. package/dist/message/message.mjs +8 -4
  51. package/package.json +5 -5
  52. package/dist/chunk-4XWB4ZSR.mjs +0 -6
  53. package/dist/chunk-AYGPUYPZ.mjs +0 -5
  54. package/dist/chunk-CYW3DUD2.mjs +0 -5
  55. package/dist/chunk-ID5KKZMK.mjs +0 -5
  56. package/dist/chunk-PCKWBORI.mjs +0 -5
  57. package/dist/chunk-RDLHKDI5.mjs +0 -61
  58. package/dist/chunk-VZNNGRKM.mjs +0 -5
@@ -55,8 +55,8 @@ __export(accordion_exports, {
55
55
  AccordionTrigger: () => AccordionTrigger
56
56
  });
57
57
  module.exports = __toCommonJS(accordion_exports);
58
- var import_fonts = require("@postenbring/hedwig-tokens/tokens-output/css/fonts.css");
59
- var import_tokens = require("@postenbring/hedwig-tokens/tokens-output/css/tokens.css");
58
+ var import_fonts = require("@postenbring/hedwig-css/dist/fonts.css");
59
+ var import_tokens = require("@postenbring/hedwig-css/dist/tokens.css");
60
60
  var import_base = require("@postenbring/hedwig-css/dist/base.css");
61
61
  var import_accordion = require("@postenbring/hedwig-css/dist/accordion.css");
62
62
 
@@ -1,4 +1,7 @@
1
- import "../chunk-PCKWBORI.mjs";
1
+ import "../chunk-Z36ETKOZ.mjs";
2
+ import {
3
+ Accordion
4
+ } from "../chunk-GMGUONH5.mjs";
2
5
  import {
3
6
  AccordionContent
4
7
  } from "../chunk-J7U4Z726.mjs";
@@ -8,9 +11,6 @@ import {
8
11
  import {
9
12
  AccordionItem
10
13
  } from "../chunk-L7DYK6OS.mjs";
11
- import {
12
- Accordion
13
- } from "../chunk-GMGUONH5.mjs";
14
14
  import "../chunk-2V6SWZ5G.mjs";
15
15
  import "../chunk-FUJQIYOF.mjs";
16
16
  export {
@@ -55,8 +55,8 @@ __export(badge_exports, {
55
55
  WhiteBadge: () => WhiteBadge
56
56
  });
57
57
  module.exports = __toCommonJS(badge_exports);
58
- var import_fonts = require("@postenbring/hedwig-tokens/tokens-output/css/fonts.css");
59
- var import_tokens = require("@postenbring/hedwig-tokens/tokens-output/css/tokens.css");
58
+ var import_fonts = require("@postenbring/hedwig-css/dist/fonts.css");
59
+ var import_tokens = require("@postenbring/hedwig-css/dist/tokens.css");
60
60
  var import_base = require("@postenbring/hedwig-css/dist/base.css");
61
61
  var import_badge = require("@postenbring/hedwig-css/dist/badge.css");
62
62
 
@@ -1,4 +1,4 @@
1
- import "../chunk-CYW3DUD2.mjs";
1
+ import "../chunk-R55SMUE7.mjs";
2
2
  import {
3
3
  Badge,
4
4
  DarkBadge,
@@ -5,10 +5,10 @@ interface BoxProps extends React.HTMLAttributes<HTMLDivElement> {
5
5
  variant?: "light-grey" | "lighter" | "white" | "warning";
6
6
  children: React.ReactNode;
7
7
  /**
8
- * If `true`, the close button will be hidden.
8
+ * If `true`, a close button will be shown.
9
9
  * Use when you want to control the close button using the BoxCloseButton component.
10
10
  */
11
- hideCloseButton?: boolean;
11
+ closeable?: boolean;
12
12
  /**
13
13
  * Callback fired when the component requests to be closed.
14
14
  * If not set, the component will be closed without any user interaction.
package/dist/box/box.d.ts CHANGED
@@ -5,10 +5,10 @@ interface BoxProps extends React.HTMLAttributes<HTMLDivElement> {
5
5
  variant?: "light-grey" | "lighter" | "white" | "warning";
6
6
  children: React.ReactNode;
7
7
  /**
8
- * If `true`, the close button will be hidden.
8
+ * If `true`, a close button will be shown.
9
9
  * Use when you want to control the close button using the BoxCloseButton component.
10
10
  */
11
- hideCloseButton?: boolean;
11
+ closeable?: boolean;
12
12
  /**
13
13
  * Callback fired when the component requests to be closed.
14
14
  * If not set, the component will be closed without any user interaction.
package/dist/box/box.js CHANGED
@@ -61,7 +61,7 @@ var Box = (0, import_react.forwardRef)(
61
61
  var _b = _a, {
62
62
  as: Component = "div",
63
63
  variant = "light-grey",
64
- hideCloseButton,
64
+ closeable = false,
65
65
  onClose: onCloseProp,
66
66
  closed: closedProp,
67
67
  closeButtonProps,
@@ -70,7 +70,7 @@ var Box = (0, import_react.forwardRef)(
70
70
  } = _b, rest = __objRest(_b, [
71
71
  "as",
72
72
  "variant",
73
- "hideCloseButton",
73
+ "closeable",
74
74
  "onClose",
75
75
  "closed",
76
76
  "closeButtonProps",
@@ -101,7 +101,7 @@ var Box = (0, import_react.forwardRef)(
101
101
  ref
102
102
  }, rest), {
103
103
  children: [
104
- !hideCloseButton && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(BoxCloseButton, __spreadValues({ onClick: onClose }, closeButtonProps)),
104
+ closeable ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(BoxCloseButton, __spreadValues({ onClick: onClose }, closeButtonProps)) : null,
105
105
  children
106
106
  ]
107
107
  })
package/dist/box/box.mjs CHANGED
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  Box,
3
3
  BoxCloseButton
4
- } from "../chunk-KKZOIYEN.mjs";
4
+ } from "../chunk-RXUPE4MM.mjs";
5
5
  import "../chunk-FUJQIYOF.mjs";
6
6
  export {
7
7
  Box,
package/dist/box/index.js CHANGED
@@ -53,8 +53,8 @@ __export(box_exports, {
53
53
  BoxCloseButton: () => BoxCloseButton
54
54
  });
55
55
  module.exports = __toCommonJS(box_exports);
56
- var import_fonts = require("@postenbring/hedwig-tokens/tokens-output/css/fonts.css");
57
- var import_tokens = require("@postenbring/hedwig-tokens/tokens-output/css/tokens.css");
56
+ var import_fonts = require("@postenbring/hedwig-css/dist/fonts.css");
57
+ var import_tokens = require("@postenbring/hedwig-css/dist/tokens.css");
58
58
  var import_base = require("@postenbring/hedwig-css/dist/base.css");
59
59
  var import_box = require("@postenbring/hedwig-css/dist/box.css");
60
60
 
@@ -67,7 +67,7 @@ var Box = (0, import_react.forwardRef)(
67
67
  var _b = _a, {
68
68
  as: Component = "div",
69
69
  variant = "light-grey",
70
- hideCloseButton,
70
+ closeable = false,
71
71
  onClose: onCloseProp,
72
72
  closed: closedProp,
73
73
  closeButtonProps,
@@ -76,7 +76,7 @@ var Box = (0, import_react.forwardRef)(
76
76
  } = _b, rest = __objRest(_b, [
77
77
  "as",
78
78
  "variant",
79
- "hideCloseButton",
79
+ "closeable",
80
80
  "onClose",
81
81
  "closed",
82
82
  "closeButtonProps",
@@ -107,7 +107,7 @@ var Box = (0, import_react.forwardRef)(
107
107
  ref
108
108
  }, rest), {
109
109
  children: [
110
- !hideCloseButton && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(BoxCloseButton, __spreadValues({ onClick: onClose }, closeButtonProps)),
110
+ closeable ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(BoxCloseButton, __spreadValues({ onClick: onClose }, closeButtonProps)) : null,
111
111
  children
112
112
  ]
113
113
  })
@@ -1,8 +1,8 @@
1
- import "../chunk-ID5KKZMK.mjs";
1
+ import "../chunk-BJANCH4F.mjs";
2
2
  import {
3
3
  Box,
4
4
  BoxCloseButton
5
- } from "../chunk-KKZOIYEN.mjs";
5
+ } from "../chunk-RXUPE4MM.mjs";
6
6
  import "../chunk-FUJQIYOF.mjs";
7
7
  export {
8
8
  Box,
@@ -1,5 +1,5 @@
1
- import * as react_jsx_runtime from 'react/jsx-runtime';
2
- import * as React from 'react';
1
+ import { O as OverridableComponent } from '../utils-BfZsjuFH.mjs';
2
+ import 'react';
3
3
 
4
4
  interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {
5
5
  /**
@@ -15,23 +15,23 @@ interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {
15
15
  * The background of the button.
16
16
  */
17
17
  fill?: "contained" | "outlined";
18
- children: React.ReactNode;
19
- buttonRef?: React.ForwardedRef<HTMLButtonElement>;
18
+ /**
19
+ * Use an icon inside the button
20
+ */
21
+ icon?: React.ReactNode;
22
+ children?: React.ReactNode;
20
23
  }
24
+ declare const BaseButton: OverridableComponent<ButtonProps & {
25
+ variant: "primary" | "secondary";
26
+ }, HTMLButtonElement>;
21
27
  /**
22
28
  * ## TODO
23
29
  *
24
- * - [ ] Handle links that looks like buttons
30
+ * - [x] Handle links that looks like buttons
25
31
  * - [ ] Revisit how to handle outline
26
32
  * - [ ] Figure out outline-white
27
33
  */
28
- declare function PrimaryButton(props: ButtonProps): react_jsx_runtime.JSX.Element;
29
- declare namespace PrimaryButton {
30
- var displayName: string;
31
- }
32
- declare function SecondaryButton(props: ButtonProps): react_jsx_runtime.JSX.Element;
33
- declare namespace SecondaryButton {
34
- var displayName: string;
35
- }
34
+ declare const PrimaryButton: OverridableComponent<ButtonProps, HTMLButtonElement>;
35
+ declare const SecondaryButton: OverridableComponent<ButtonProps, HTMLButtonElement>;
36
36
 
37
- export { type ButtonProps, PrimaryButton, SecondaryButton };
37
+ export { BaseButton, type ButtonProps, PrimaryButton, SecondaryButton };
@@ -1,5 +1,5 @@
1
- import * as react_jsx_runtime from 'react/jsx-runtime';
2
- import * as React from 'react';
1
+ import { O as OverridableComponent } from '../utils-BfZsjuFH.js';
2
+ import 'react';
3
3
 
4
4
  interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {
5
5
  /**
@@ -15,23 +15,23 @@ interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {
15
15
  * The background of the button.
16
16
  */
17
17
  fill?: "contained" | "outlined";
18
- children: React.ReactNode;
19
- buttonRef?: React.ForwardedRef<HTMLButtonElement>;
18
+ /**
19
+ * Use an icon inside the button
20
+ */
21
+ icon?: React.ReactNode;
22
+ children?: React.ReactNode;
20
23
  }
24
+ declare const BaseButton: OverridableComponent<ButtonProps & {
25
+ variant: "primary" | "secondary";
26
+ }, HTMLButtonElement>;
21
27
  /**
22
28
  * ## TODO
23
29
  *
24
- * - [ ] Handle links that looks like buttons
30
+ * - [x] Handle links that looks like buttons
25
31
  * - [ ] Revisit how to handle outline
26
32
  * - [ ] Figure out outline-white
27
33
  */
28
- declare function PrimaryButton(props: ButtonProps): react_jsx_runtime.JSX.Element;
29
- declare namespace PrimaryButton {
30
- var displayName: string;
31
- }
32
- declare function SecondaryButton(props: ButtonProps): react_jsx_runtime.JSX.Element;
33
- declare namespace SecondaryButton {
34
- var displayName: string;
35
- }
34
+ declare const PrimaryButton: OverridableComponent<ButtonProps, HTMLButtonElement>;
35
+ declare const SecondaryButton: OverridableComponent<ButtonProps, HTMLButtonElement>;
36
36
 
37
- export { type ButtonProps, PrimaryButton, SecondaryButton };
37
+ export { BaseButton, type ButtonProps, PrimaryButton, SecondaryButton };
@@ -49,61 +49,76 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
49
49
  // src/button/button.tsx
50
50
  var button_exports = {};
51
51
  __export(button_exports, {
52
+ BaseButton: () => BaseButton,
52
53
  PrimaryButton: () => PrimaryButton,
53
54
  SecondaryButton: () => SecondaryButton
54
55
  });
55
56
  module.exports = __toCommonJS(button_exports);
57
+ var import_react = require("react");
56
58
  var import_typed_classname = require("@postenbring/hedwig-css/typed-classname/index.mjs");
57
59
  var import_jsx_runtime = require("react/jsx-runtime");
58
- function BaseButton(_a) {
59
- var _b = _a, {
60
- children,
61
- variant,
62
- size = "medium",
63
- fullWidth = false,
64
- fill = "contained",
65
- buttonRef,
66
- className
67
- } = _b, rest = __objRest(_b, [
68
- "children",
69
- "variant",
70
- "size",
71
- "fullWidth",
72
- "fill",
73
- "buttonRef",
74
- "className"
75
- ]);
76
- return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
77
- "button",
78
- __spreadProps(__spreadValues({
79
- className: (0, import_typed_classname.clsx)(
80
- "hds-button",
81
- `hds-button--${size}`,
82
- {
83
- [`hds-button--${variant}`]: fill === "contained",
84
- [`hds-button--outline-${variant}`]: fill === "outlined",
85
- "hds-button--full": fullWidth === true,
86
- "hds-button--mobile-full": fullWidth === "mobile"
87
- },
88
- className
89
- ),
90
- ref: buttonRef
91
- }, rest), {
92
- children
93
- })
94
- );
95
- }
60
+ var BaseButton = (0, import_react.forwardRef)(
61
+ (_a, ref) => {
62
+ var _b = _a, {
63
+ as: Component = "button",
64
+ children,
65
+ variant,
66
+ size = "medium",
67
+ fullWidth = false,
68
+ fill = "contained",
69
+ icon,
70
+ className
71
+ } = _b, rest = __objRest(_b, [
72
+ "as",
73
+ "children",
74
+ "variant",
75
+ "size",
76
+ "fullWidth",
77
+ "fill",
78
+ "icon",
79
+ "className"
80
+ ]);
81
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
82
+ Component,
83
+ __spreadProps(__spreadValues({
84
+ className: (0, import_typed_classname.clsx)(
85
+ "hds-button",
86
+ `hds-button--${size}`,
87
+ {
88
+ [`hds-button--${variant}`]: fill === "contained",
89
+ [`hds-button--outline-${variant}`]: fill === "outlined",
90
+ "hds-button--full": fullWidth === true,
91
+ "hds-button--mobile-full": fullWidth === "mobile",
92
+ "hds-button--icon-only": icon && !children
93
+ },
94
+ className
95
+ ),
96
+ ref
97
+ }, rest), {
98
+ children: [
99
+ icon && !children ? icon : null,
100
+ children
101
+ ]
102
+ })
103
+ );
104
+ }
105
+ );
96
106
  BaseButton.displayName = "BaseButton";
97
- function PrimaryButton(props) {
98
- return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(BaseButton, __spreadProps(__spreadValues({}, props), { variant: "primary" }));
99
- }
107
+ var PrimaryButton = (0, import_react.forwardRef)(
108
+ (props, ref) => {
109
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(BaseButton, __spreadProps(__spreadValues({}, props), { ref, variant: "primary" }));
110
+ }
111
+ );
100
112
  PrimaryButton.displayName = "PrimaryButton";
101
- function SecondaryButton(props) {
102
- return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(BaseButton, __spreadProps(__spreadValues({}, props), { variant: "secondary" }));
103
- }
113
+ var SecondaryButton = (0, import_react.forwardRef)(
114
+ (props, ref) => {
115
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(BaseButton, __spreadProps(__spreadValues({}, props), { ref, variant: "secondary" }));
116
+ }
117
+ );
104
118
  SecondaryButton.displayName = "SecondaryButton";
105
119
  // Annotate the CommonJS export names for ESM import in node:
106
120
  0 && (module.exports = {
121
+ BaseButton,
107
122
  PrimaryButton,
108
123
  SecondaryButton
109
124
  });
@@ -1,9 +1,11 @@
1
1
  import {
2
+ BaseButton,
2
3
  PrimaryButton,
3
4
  SecondaryButton
4
- } from "../chunk-RDLHKDI5.mjs";
5
+ } from "../chunk-ENRMC5K7.mjs";
5
6
  import "../chunk-FUJQIYOF.mjs";
6
7
  export {
8
+ BaseButton,
7
9
  PrimaryButton,
8
10
  SecondaryButton
9
11
  };
@@ -1,3 +1,3 @@
1
- export { ButtonProps, PrimaryButton, SecondaryButton } from './button.mjs';
2
- import 'react/jsx-runtime';
1
+ export { BaseButton, ButtonProps, PrimaryButton, SecondaryButton } from './button.mjs';
2
+ import '../utils-BfZsjuFH.mjs';
3
3
  import 'react';
@@ -1,3 +1,3 @@
1
- export { ButtonProps, PrimaryButton, SecondaryButton } from './button.js';
2
- import 'react/jsx-runtime';
1
+ export { BaseButton, ButtonProps, PrimaryButton, SecondaryButton } from './button.js';
2
+ import '../utils-BfZsjuFH.js';
3
3
  import 'react';
@@ -49,67 +49,82 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
49
49
  // src/button/index.tsx
50
50
  var button_exports = {};
51
51
  __export(button_exports, {
52
+ BaseButton: () => BaseButton,
52
53
  PrimaryButton: () => PrimaryButton,
53
54
  SecondaryButton: () => SecondaryButton
54
55
  });
55
56
  module.exports = __toCommonJS(button_exports);
56
- var import_fonts = require("@postenbring/hedwig-tokens/tokens-output/css/fonts.css");
57
- 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");
58
59
  var import_base = require("@postenbring/hedwig-css/dist/base.css");
59
60
  var import_button = require("@postenbring/hedwig-css/dist/button.css");
60
61
 
61
62
  // src/button/button.tsx
63
+ var import_react = require("react");
62
64
  var import_typed_classname = require("@postenbring/hedwig-css/typed-classname/index.mjs");
63
65
  var import_jsx_runtime = require("react/jsx-runtime");
64
- function BaseButton(_a) {
65
- var _b = _a, {
66
- children,
67
- variant,
68
- size = "medium",
69
- fullWidth = false,
70
- fill = "contained",
71
- buttonRef,
72
- className
73
- } = _b, rest = __objRest(_b, [
74
- "children",
75
- "variant",
76
- "size",
77
- "fullWidth",
78
- "fill",
79
- "buttonRef",
80
- "className"
81
- ]);
82
- return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
83
- "button",
84
- __spreadProps(__spreadValues({
85
- className: (0, import_typed_classname.clsx)(
86
- "hds-button",
87
- `hds-button--${size}`,
88
- {
89
- [`hds-button--${variant}`]: fill === "contained",
90
- [`hds-button--outline-${variant}`]: fill === "outlined",
91
- "hds-button--full": fullWidth === true,
92
- "hds-button--mobile-full": fullWidth === "mobile"
93
- },
94
- className
95
- ),
96
- ref: buttonRef
97
- }, rest), {
98
- children
99
- })
100
- );
101
- }
66
+ var BaseButton = (0, import_react.forwardRef)(
67
+ (_a, ref) => {
68
+ var _b = _a, {
69
+ as: Component = "button",
70
+ children,
71
+ variant,
72
+ size = "medium",
73
+ fullWidth = false,
74
+ fill = "contained",
75
+ icon,
76
+ className
77
+ } = _b, rest = __objRest(_b, [
78
+ "as",
79
+ "children",
80
+ "variant",
81
+ "size",
82
+ "fullWidth",
83
+ "fill",
84
+ "icon",
85
+ "className"
86
+ ]);
87
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
88
+ Component,
89
+ __spreadProps(__spreadValues({
90
+ className: (0, import_typed_classname.clsx)(
91
+ "hds-button",
92
+ `hds-button--${size}`,
93
+ {
94
+ [`hds-button--${variant}`]: fill === "contained",
95
+ [`hds-button--outline-${variant}`]: fill === "outlined",
96
+ "hds-button--full": fullWidth === true,
97
+ "hds-button--mobile-full": fullWidth === "mobile",
98
+ "hds-button--icon-only": icon && !children
99
+ },
100
+ className
101
+ ),
102
+ ref
103
+ }, rest), {
104
+ children: [
105
+ icon && !children ? icon : null,
106
+ children
107
+ ]
108
+ })
109
+ );
110
+ }
111
+ );
102
112
  BaseButton.displayName = "BaseButton";
103
- function PrimaryButton(props) {
104
- return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(BaseButton, __spreadProps(__spreadValues({}, props), { variant: "primary" }));
105
- }
113
+ var PrimaryButton = (0, import_react.forwardRef)(
114
+ (props, ref) => {
115
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(BaseButton, __spreadProps(__spreadValues({}, props), { ref, variant: "primary" }));
116
+ }
117
+ );
106
118
  PrimaryButton.displayName = "PrimaryButton";
107
- function SecondaryButton(props) {
108
- return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(BaseButton, __spreadProps(__spreadValues({}, props), { variant: "secondary" }));
109
- }
119
+ var SecondaryButton = (0, import_react.forwardRef)(
120
+ (props, ref) => {
121
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(BaseButton, __spreadProps(__spreadValues({}, props), { ref, variant: "secondary" }));
122
+ }
123
+ );
110
124
  SecondaryButton.displayName = "SecondaryButton";
111
125
  // Annotate the CommonJS export names for ESM import in node:
112
126
  0 && (module.exports = {
127
+ BaseButton,
113
128
  PrimaryButton,
114
129
  SecondaryButton
115
130
  });
@@ -1,10 +1,12 @@
1
- import "../chunk-VZNNGRKM.mjs";
1
+ import "../chunk-N3EFZW7T.mjs";
2
2
  import {
3
+ BaseButton,
3
4
  PrimaryButton,
4
5
  SecondaryButton
5
- } from "../chunk-RDLHKDI5.mjs";
6
+ } from "../chunk-ENRMC5K7.mjs";
6
7
  import "../chunk-FUJQIYOF.mjs";
7
8
  export {
9
+ BaseButton,
8
10
  PrimaryButton,
9
11
  SecondaryButton
10
12
  };
@@ -0,0 +1,5 @@
1
+ // src/link/index.tsx
2
+ import "@postenbring/hedwig-css/dist/fonts.css";
3
+ import "@postenbring/hedwig-css/dist/tokens.css";
4
+ import "@postenbring/hedwig-css/dist/base.css";
5
+ import "@postenbring/hedwig-css/dist/link.css";
@@ -0,0 +1,21 @@
1
+ import {
2
+ Message,
3
+ MessageDescription,
4
+ MessageTitle
5
+ } from "./chunk-X4D24ZRP.mjs";
6
+
7
+ // src/message/index.tsx
8
+ import "@postenbring/hedwig-css/dist/fonts.css";
9
+ import "@postenbring/hedwig-css/dist/tokens.css";
10
+ import "@postenbring/hedwig-css/dist/base.css";
11
+ import "@postenbring/hedwig-css/dist/box.css";
12
+ import "@postenbring/hedwig-css/dist/message.css";
13
+ var MessageComponent = Message;
14
+ MessageComponent.Title = MessageTitle;
15
+ MessageComponent.Description = MessageDescription;
16
+ MessageComponent.Title.displayName = "Message";
17
+ MessageComponent.Description.displayName = "Message";
18
+
19
+ export {
20
+ MessageComponent
21
+ };
@@ -0,0 +1,5 @@
1
+ // src/box/index.tsx
2
+ import "@postenbring/hedwig-css/dist/fonts.css";
3
+ import "@postenbring/hedwig-css/dist/tokens.css";
4
+ import "@postenbring/hedwig-css/dist/base.css";
5
+ import "@postenbring/hedwig-css/dist/box.css";