@postenbring/hedwig-react 0.0.43 → 0.0.45

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 (124) hide show
  1. package/dist/card/card.js +17 -3
  2. package/dist/card/card.mjs +1 -1
  3. package/dist/card/index.js +17 -3
  4. package/dist/card/index.mjs +2 -2
  5. package/dist/{chunk-PF6PZIZS.mjs → chunk-4RAMNETH.mjs} +1 -1
  6. package/dist/{chunk-DOJ2ZKNV.mjs → chunk-5NWYVPBZ.mjs} +1 -1
  7. package/dist/chunk-67OMX7FP.mjs +5 -0
  8. package/dist/{chunk-2QZF65FK.mjs → chunk-6IJTNHP4.mjs} +5 -1
  9. package/dist/{chunk-KOXEIUCU.mjs → chunk-E5575U2F.mjs} +1 -1
  10. package/dist/{chunk-K3BGDNWO.mjs → chunk-E55KF755.mjs} +2 -2
  11. package/dist/chunk-FDAXJJHU.mjs +53 -0
  12. package/dist/{chunk-6KVF3ELJ.mjs → chunk-HZMQWFYP.mjs} +2 -2
  13. package/dist/chunk-IAPRPJQO.mjs +30 -0
  14. package/dist/{chunk-QAYPCD5Z.mjs → chunk-JYEDLLKF.mjs} +21 -12
  15. package/dist/{chunk-4XHA3NGO.mjs → chunk-LICHSDMT.mjs} +17 -3
  16. package/dist/chunk-N5VPBR6T.mjs +129 -0
  17. package/dist/chunk-OKWNTFU5.mjs +5 -0
  18. package/dist/{chunk-SX37JSDS.mjs → chunk-OPW2JS5I.mjs} +1 -1
  19. package/dist/chunk-PPUNMHOX.mjs +0 -0
  20. package/dist/chunk-QMB26PCT.mjs +72 -0
  21. package/dist/{chunk-45BJGKVZ.mjs → chunk-S4F2KVFJ.mjs} +1 -1
  22. package/dist/{chunk-Y2KP4RF2.mjs → chunk-T4IRPRA6.mjs} +2 -2
  23. package/dist/{chunk-CP4CKVIA.mjs → chunk-T5W5SKZP.mjs} +5 -1
  24. package/dist/chunk-Y4KHO6LN.mjs +65 -0
  25. package/dist/form/error-message/error-message.d.mts +12 -0
  26. package/dist/form/error-message/error-message.d.ts +12 -0
  27. package/dist/form/error-message/error-message.js +66 -0
  28. package/dist/form/error-message/error-message.mjs +7 -0
  29. package/dist/form/error-message/index.d.mts +3 -0
  30. package/dist/form/error-message/index.d.ts +3 -0
  31. package/dist/form/error-message/index.js +72 -0
  32. package/dist/form/error-message/index.mjs +8 -0
  33. package/dist/form/fieldset/fieldset.d.mts +20 -0
  34. package/dist/form/fieldset/fieldset.d.ts +20 -0
  35. package/dist/{input-group/input-group.js → form/fieldset/fieldset.js} +65 -61
  36. package/dist/form/fieldset/fieldset.mjs +9 -0
  37. package/dist/form/fieldset/index.d.mts +2 -0
  38. package/dist/form/fieldset/index.d.ts +2 -0
  39. package/dist/form/fieldset/index.js +152 -0
  40. package/dist/form/fieldset/index.mjs +10 -0
  41. package/dist/form/index.d.mts +6 -0
  42. package/dist/form/index.d.ts +6 -0
  43. package/dist/form/index.js +375 -0
  44. package/dist/form/index.mjs +28 -0
  45. package/dist/{input/input.js → form/input/index.js} +70 -27
  46. package/dist/form/input/index.mjs +12 -0
  47. package/dist/{input/index.js → form/input/input.js} +60 -31
  48. package/dist/form/input/input.mjs +11 -0
  49. package/dist/form/input-group/index.d.mts +2 -0
  50. package/dist/form/input-group/index.d.ts +2 -0
  51. package/dist/{textarea/textarea.js → form/input-group/index.js} +60 -50
  52. package/dist/form/input-group/index.mjs +10 -0
  53. package/dist/{input-group → form/input-group}/input-group.d.mts +1 -7
  54. package/dist/{input-group → form/input-group}/input-group.d.ts +1 -7
  55. package/dist/{input-group/index.js → form/input-group/input-group.js} +51 -21
  56. package/dist/form/input-group/input-group.mjs +9 -0
  57. package/dist/{select/select.js → form/select/index.js} +70 -27
  58. package/dist/form/select/index.mjs +12 -0
  59. package/dist/{select/index.js → form/select/select.js} +60 -31
  60. package/dist/form/select/select.mjs +11 -0
  61. package/dist/form/textarea/index.js +217 -0
  62. package/dist/form/textarea/index.mjs +12 -0
  63. package/dist/{textarea/index.js → form/textarea/textarea.js} +60 -31
  64. package/dist/form/textarea/textarea.mjs +11 -0
  65. package/dist/index.d.mts +7 -6
  66. package/dist/index.d.ts +7 -6
  67. package/dist/index.js +429 -243
  68. package/dist/index.mjs +37 -29
  69. package/dist/list/description-list.d.mts +4 -4
  70. package/dist/list/description-list.d.ts +4 -4
  71. package/dist/list/index.mjs +3 -3
  72. package/dist/modal/index.d.mts +5 -2
  73. package/dist/modal/index.d.ts +5 -2
  74. package/dist/modal/index.js +71 -3
  75. package/dist/modal/index.mjs +2 -2
  76. package/dist/modal/modal.d.mts +20 -2
  77. package/dist/modal/modal.d.ts +20 -2
  78. package/dist/modal/modal.js +77 -5
  79. package/dist/modal/modal.mjs +9 -3
  80. package/dist/navbar/index.d.mts +4 -2
  81. package/dist/navbar/index.d.ts +4 -2
  82. package/dist/navbar/index.js +29 -1
  83. package/dist/navbar/index.mjs +7 -3
  84. package/dist/navbar/navbar-expandable-menu.js +5 -1
  85. package/dist/navbar/navbar-expandable-menu.mjs +1 -1
  86. package/dist/navbar/navbar.d.mts +10 -1
  87. package/dist/navbar/navbar.d.ts +10 -1
  88. package/dist/navbar/navbar.js +28 -2
  89. package/dist/navbar/navbar.mjs +7 -3
  90. package/dist/tabs/index.mjs +2 -2
  91. package/dist/typography/index.d.mts +69 -0
  92. package/dist/typography/index.d.ts +69 -0
  93. package/dist/typography/index.js +255 -0
  94. package/dist/typography/index.mjs +110 -0
  95. package/dist/typography/typography.d.mts +18 -0
  96. package/dist/typography/typography.d.ts +18 -0
  97. package/dist/typography/typography.js +112 -0
  98. package/dist/typography/typography.mjs +7 -0
  99. package/package.json +2 -2
  100. package/dist/chunk-FB5VUC62.mjs +0 -29
  101. package/dist/chunk-OB6UNSKV.mjs +0 -60
  102. package/dist/input/index.mjs +0 -10
  103. package/dist/input/input.mjs +0 -9
  104. package/dist/input-group/index.d.mts +0 -2
  105. package/dist/input-group/index.d.ts +0 -2
  106. package/dist/input-group/index.mjs +0 -8
  107. package/dist/input-group/input-group.mjs +0 -7
  108. package/dist/select/index.mjs +0 -10
  109. package/dist/select/select.mjs +0 -9
  110. package/dist/textarea/index.mjs +0 -10
  111. package/dist/textarea/textarea.mjs +0 -9
  112. package/dist/{chunk-WUMZCEIJ.mjs → chunk-BSX4IA3X.mjs} +3 -3
  113. /package/dist/{input → form/input}/index.d.mts +0 -0
  114. /package/dist/{input → form/input}/index.d.ts +0 -0
  115. /package/dist/{input → form/input}/input.d.mts +0 -0
  116. /package/dist/{input → form/input}/input.d.ts +0 -0
  117. /package/dist/{select → form/select}/index.d.mts +0 -0
  118. /package/dist/{select → form/select}/index.d.ts +0 -0
  119. /package/dist/{select → form/select}/select.d.mts +0 -0
  120. /package/dist/{select → form/select}/select.d.ts +0 -0
  121. /package/dist/{textarea → form/textarea}/index.d.mts +0 -0
  122. /package/dist/{textarea → form/textarea}/index.d.ts +0 -0
  123. /package/dist/{textarea → form/textarea}/textarea.d.mts +0 -0
  124. /package/dist/{textarea → form/textarea}/textarea.d.ts +0 -0
@@ -12,5 +12,14 @@ interface NavbarLogoProps {
12
12
  children?: never;
13
13
  }
14
14
  declare const NavbarLogo: OverridableComponent<NavbarLogoProps, HTMLDivElement>;
15
+ interface NavbarButtonProps {
16
+ icon?: react__default.ReactNode;
17
+ children: react__default.ReactNode;
18
+ }
19
+ declare const NavbarButton: OverridableComponent<NavbarButtonProps, HTMLElement>;
20
+ interface NavbarNavigationProps {
21
+ children: react__default.ReactNode;
22
+ }
23
+ declare const NavbarNavigation: OverridableComponent<NavbarNavigationProps, HTMLElement>;
15
24
 
16
- export { Navbar, NavbarLogo, type NavbarProps };
25
+ export { Navbar, NavbarButton, NavbarLogo, NavbarNavigation, type NavbarProps };
@@ -12,5 +12,14 @@ interface NavbarLogoProps {
12
12
  children?: never;
13
13
  }
14
14
  declare const NavbarLogo: OverridableComponent<NavbarLogoProps, HTMLDivElement>;
15
+ interface NavbarButtonProps {
16
+ icon?: react__default.ReactNode;
17
+ children: react__default.ReactNode;
18
+ }
19
+ declare const NavbarButton: OverridableComponent<NavbarButtonProps, HTMLElement>;
20
+ interface NavbarNavigationProps {
21
+ children: react__default.ReactNode;
22
+ }
23
+ declare const NavbarNavigation: OverridableComponent<NavbarNavigationProps, HTMLElement>;
15
24
 
16
- export { Navbar, NavbarLogo, type NavbarProps };
25
+ export { Navbar, NavbarButton, NavbarLogo, NavbarNavigation, type NavbarProps };
@@ -50,7 +50,9 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
50
50
  var navbar_exports = {};
51
51
  __export(navbar_exports, {
52
52
  Navbar: () => Navbar,
53
- NavbarLogo: () => NavbarLogo
53
+ NavbarButton: () => NavbarButton,
54
+ NavbarLogo: () => NavbarLogo,
55
+ NavbarNavigation: () => NavbarNavigation
54
56
  });
55
57
  module.exports = __toCommonJS(navbar_exports);
56
58
  var import_react = require("react");
@@ -70,8 +72,32 @@ var NavbarLogo = (0, import_react.forwardRef)(
70
72
  }
71
73
  );
72
74
  NavbarLogo.displayName = "Navbar.Logo";
75
+ var NavbarButton = (0, import_react.forwardRef)(
76
+ (_a, ref) => {
77
+ var _b = _a, { as: Component = "button", children, icon, className } = _b, rest = __objRest(_b, ["as", "children", "icon", "className"]);
78
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(Component, __spreadProps(__spreadValues({ className: (0, import_typed_classname.clsx)("hds-navbar__button", className), ref }, rest), { children: [
79
+ children,
80
+ " ",
81
+ icon
82
+ ] }));
83
+ }
84
+ );
85
+ NavbarButton.displayName = "Navbar.Button";
86
+ var NavbarNavigation = (0, import_react.forwardRef)((_a, ref) => {
87
+ var _b = _a, { as: Component = "div", className } = _b, rest = __objRest(_b, ["as", "className"]);
88
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
89
+ Component,
90
+ __spreadValues({
91
+ className: (0, import_typed_classname.clsx)("hds-navbar__navigation", className),
92
+ ref
93
+ }, rest)
94
+ );
95
+ });
96
+ NavbarNavigation.displayName = "Navbar.Navigation";
73
97
  // Annotate the CommonJS export names for ESM import in node:
74
98
  0 && (module.exports = {
75
99
  Navbar,
76
- NavbarLogo
100
+ NavbarButton,
101
+ NavbarLogo,
102
+ NavbarNavigation
77
103
  });
@@ -1,9 +1,13 @@
1
1
  import {
2
2
  Navbar,
3
- NavbarLogo
4
- } from "../chunk-FB5VUC62.mjs";
3
+ NavbarButton,
4
+ NavbarLogo,
5
+ NavbarNavigation
6
+ } from "../chunk-FDAXJJHU.mjs";
5
7
  import "../chunk-FUJQIYOF.mjs";
6
8
  export {
7
9
  Navbar,
8
- NavbarLogo
10
+ NavbarButton,
11
+ NavbarLogo,
12
+ NavbarNavigation
9
13
  };
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  TabsComponent
3
- } from "../chunk-WUMZCEIJ.mjs";
4
- import "../chunk-ZLCNSHLT.mjs";
3
+ } from "../chunk-BSX4IA3X.mjs";
5
4
  import "../chunk-GRO36EUL.mjs";
6
5
  import "../chunk-G3JPULGO.mjs";
6
+ import "../chunk-ZLCNSHLT.mjs";
7
7
  import "../chunk-4ZM45P62.mjs";
8
8
  import "../chunk-FSBY3NKV.mjs";
9
9
  import "../chunk-FUJQIYOF.mjs";
@@ -0,0 +1,69 @@
1
+ import * as react from 'react';
2
+ import { O as OverridableComponent } from '../utils-BfZsjuFH.mjs';
3
+ import { TypographyProps } from './typography.mjs';
4
+ export { Typography } from './typography.mjs';
5
+
6
+ /**
7
+ * Alternative: Named `Text`
8
+ *
9
+ * ## Alias to @see Typography
10
+ *
11
+ * Only one component will remain
12
+ */
13
+ declare const Text: OverridableComponent<TypographyProps, HTMLDivElement>;
14
+ /**
15
+ * Alternative: Named as the different typography levels
16
+ *
17
+ * ## Alias to @see Typography
18
+ */
19
+ declare const H1Display: react.FunctionComponent<Omit<TypographyProps, "variant">>;
20
+ declare const H1: react.FunctionComponent<Omit<TypographyProps, "variant">>;
21
+ declare const H2: react.FunctionComponent<Omit<TypographyProps, "variant">>;
22
+ declare const H3: react.FunctionComponent<Omit<TypographyProps, "variant">>;
23
+ declare const H3Title: react.FunctionComponent<Omit<TypographyProps, "variant">>;
24
+ declare const Body: react.FunctionComponent<Omit<TypographyProps, "variant">>;
25
+ declare const BodyTitle: react.FunctionComponent<Omit<TypographyProps, "variant">>;
26
+ declare const BodySmall: react.FunctionComponent<Omit<TypographyProps, "variant">>;
27
+ declare const BodySmallTitle: react.FunctionComponent<Omit<TypographyProps, "variant">>;
28
+ declare const Technical: react.FunctionComponent<Omit<TypographyProps, "variant">>;
29
+ declare const TechnicalTitle: react.FunctionComponent<Omit<TypographyProps, "variant">>;
30
+ declare const Caption: react.FunctionComponent<Omit<TypographyProps, "variant">>;
31
+ declare const CaptionTitle: react.FunctionComponent<Omit<TypographyProps, "variant">>;
32
+ /**
33
+ * Alternative: Named as the different typography levels with Text prefix
34
+ *
35
+ * ## Alias to @see Typography
36
+ */
37
+ declare const TextH1Display: react.FunctionComponent<Omit<TypographyProps, "variant">>;
38
+ declare const TextH1: react.FunctionComponent<Omit<TypographyProps, "variant">>;
39
+ declare const TextH2: react.FunctionComponent<Omit<TypographyProps, "variant">>;
40
+ declare const TextH3: react.FunctionComponent<Omit<TypographyProps, "variant">>;
41
+ declare const TextH3Title: react.FunctionComponent<Omit<TypographyProps, "variant">>;
42
+ declare const TextBody: react.FunctionComponent<Omit<TypographyProps, "variant">>;
43
+ declare const TextBodyTitle: react.FunctionComponent<Omit<TypographyProps, "variant">>;
44
+ declare const TextBodySmall: react.FunctionComponent<Omit<TypographyProps, "variant">>;
45
+ declare const TextBodySmallTitle: react.FunctionComponent<Omit<TypographyProps, "variant">>;
46
+ declare const TextTechnical: react.FunctionComponent<Omit<TypographyProps, "variant">>;
47
+ declare const TextTechnicalTitle: react.FunctionComponent<Omit<TypographyProps, "variant">>;
48
+ declare const TextCaption: react.FunctionComponent<Omit<TypographyProps, "variant">>;
49
+ declare const TextCaptionTitle: react.FunctionComponent<Omit<TypographyProps, "variant">>;
50
+ /**
51
+ * Alternative: Named as the different typography levels with Typography prefix
52
+ *
53
+ * ## Alias to @see Typography
54
+ */
55
+ declare const TypographyH1Display: react.FunctionComponent<Omit<TypographyProps, "variant">>;
56
+ declare const TypographyH1: react.FunctionComponent<Omit<TypographyProps, "variant">>;
57
+ declare const TypographyH2: react.FunctionComponent<Omit<TypographyProps, "variant">>;
58
+ declare const TypographyH3: react.FunctionComponent<Omit<TypographyProps, "variant">>;
59
+ declare const TypographyH3Title: react.FunctionComponent<Omit<TypographyProps, "variant">>;
60
+ declare const TypographyBody: react.FunctionComponent<Omit<TypographyProps, "variant">>;
61
+ declare const TypographyBodyTitle: react.FunctionComponent<Omit<TypographyProps, "variant">>;
62
+ declare const TypographyBodySmall: react.FunctionComponent<Omit<TypographyProps, "variant">>;
63
+ declare const TypographyBodySmallTitle: react.FunctionComponent<Omit<TypographyProps, "variant">>;
64
+ declare const TypographyTechnical: react.FunctionComponent<Omit<TypographyProps, "variant">>;
65
+ declare const TypographyTechnicalTitle: react.FunctionComponent<Omit<TypographyProps, "variant">>;
66
+ declare const TypographyCaption: react.FunctionComponent<Omit<TypographyProps, "variant">>;
67
+ declare const TypographyCaptionTitle: react.FunctionComponent<Omit<TypographyProps, "variant">>;
68
+
69
+ export { Body, BodySmall, BodySmallTitle, BodyTitle, Caption, CaptionTitle, H1, H1Display, H2, H3, H3Title, Technical, TechnicalTitle, Text, TextBody, TextBodySmall, TextBodySmallTitle, TextBodyTitle, TextCaption, TextCaptionTitle, TextH1, TextH1Display, TextH2, TextH3, TextH3Title, TextTechnical, TextTechnicalTitle, TypographyBody, TypographyBodySmall, TypographyBodySmallTitle, TypographyBodyTitle, TypographyCaption, TypographyCaptionTitle, TypographyH1, TypographyH1Display, TypographyH2, TypographyH3, TypographyH3Title, TypographyProps, TypographyTechnical, TypographyTechnicalTitle };
@@ -0,0 +1,69 @@
1
+ import * as react from 'react';
2
+ import { O as OverridableComponent } from '../utils-BfZsjuFH.js';
3
+ import { TypographyProps } from './typography.js';
4
+ export { Typography } from './typography.js';
5
+
6
+ /**
7
+ * Alternative: Named `Text`
8
+ *
9
+ * ## Alias to @see Typography
10
+ *
11
+ * Only one component will remain
12
+ */
13
+ declare const Text: OverridableComponent<TypographyProps, HTMLDivElement>;
14
+ /**
15
+ * Alternative: Named as the different typography levels
16
+ *
17
+ * ## Alias to @see Typography
18
+ */
19
+ declare const H1Display: react.FunctionComponent<Omit<TypographyProps, "variant">>;
20
+ declare const H1: react.FunctionComponent<Omit<TypographyProps, "variant">>;
21
+ declare const H2: react.FunctionComponent<Omit<TypographyProps, "variant">>;
22
+ declare const H3: react.FunctionComponent<Omit<TypographyProps, "variant">>;
23
+ declare const H3Title: react.FunctionComponent<Omit<TypographyProps, "variant">>;
24
+ declare const Body: react.FunctionComponent<Omit<TypographyProps, "variant">>;
25
+ declare const BodyTitle: react.FunctionComponent<Omit<TypographyProps, "variant">>;
26
+ declare const BodySmall: react.FunctionComponent<Omit<TypographyProps, "variant">>;
27
+ declare const BodySmallTitle: react.FunctionComponent<Omit<TypographyProps, "variant">>;
28
+ declare const Technical: react.FunctionComponent<Omit<TypographyProps, "variant">>;
29
+ declare const TechnicalTitle: react.FunctionComponent<Omit<TypographyProps, "variant">>;
30
+ declare const Caption: react.FunctionComponent<Omit<TypographyProps, "variant">>;
31
+ declare const CaptionTitle: react.FunctionComponent<Omit<TypographyProps, "variant">>;
32
+ /**
33
+ * Alternative: Named as the different typography levels with Text prefix
34
+ *
35
+ * ## Alias to @see Typography
36
+ */
37
+ declare const TextH1Display: react.FunctionComponent<Omit<TypographyProps, "variant">>;
38
+ declare const TextH1: react.FunctionComponent<Omit<TypographyProps, "variant">>;
39
+ declare const TextH2: react.FunctionComponent<Omit<TypographyProps, "variant">>;
40
+ declare const TextH3: react.FunctionComponent<Omit<TypographyProps, "variant">>;
41
+ declare const TextH3Title: react.FunctionComponent<Omit<TypographyProps, "variant">>;
42
+ declare const TextBody: react.FunctionComponent<Omit<TypographyProps, "variant">>;
43
+ declare const TextBodyTitle: react.FunctionComponent<Omit<TypographyProps, "variant">>;
44
+ declare const TextBodySmall: react.FunctionComponent<Omit<TypographyProps, "variant">>;
45
+ declare const TextBodySmallTitle: react.FunctionComponent<Omit<TypographyProps, "variant">>;
46
+ declare const TextTechnical: react.FunctionComponent<Omit<TypographyProps, "variant">>;
47
+ declare const TextTechnicalTitle: react.FunctionComponent<Omit<TypographyProps, "variant">>;
48
+ declare const TextCaption: react.FunctionComponent<Omit<TypographyProps, "variant">>;
49
+ declare const TextCaptionTitle: react.FunctionComponent<Omit<TypographyProps, "variant">>;
50
+ /**
51
+ * Alternative: Named as the different typography levels with Typography prefix
52
+ *
53
+ * ## Alias to @see Typography
54
+ */
55
+ declare const TypographyH1Display: react.FunctionComponent<Omit<TypographyProps, "variant">>;
56
+ declare const TypographyH1: react.FunctionComponent<Omit<TypographyProps, "variant">>;
57
+ declare const TypographyH2: react.FunctionComponent<Omit<TypographyProps, "variant">>;
58
+ declare const TypographyH3: react.FunctionComponent<Omit<TypographyProps, "variant">>;
59
+ declare const TypographyH3Title: react.FunctionComponent<Omit<TypographyProps, "variant">>;
60
+ declare const TypographyBody: react.FunctionComponent<Omit<TypographyProps, "variant">>;
61
+ declare const TypographyBodyTitle: react.FunctionComponent<Omit<TypographyProps, "variant">>;
62
+ declare const TypographyBodySmall: react.FunctionComponent<Omit<TypographyProps, "variant">>;
63
+ declare const TypographyBodySmallTitle: react.FunctionComponent<Omit<TypographyProps, "variant">>;
64
+ declare const TypographyTechnical: react.FunctionComponent<Omit<TypographyProps, "variant">>;
65
+ declare const TypographyTechnicalTitle: react.FunctionComponent<Omit<TypographyProps, "variant">>;
66
+ declare const TypographyCaption: react.FunctionComponent<Omit<TypographyProps, "variant">>;
67
+ declare const TypographyCaptionTitle: react.FunctionComponent<Omit<TypographyProps, "variant">>;
68
+
69
+ export { Body, BodySmall, BodySmallTitle, BodyTitle, Caption, CaptionTitle, H1, H1Display, H2, H3, H3Title, Technical, TechnicalTitle, Text, TextBody, TextBodySmall, TextBodySmallTitle, TextBodyTitle, TextCaption, TextCaptionTitle, TextH1, TextH1Display, TextH2, TextH3, TextH3Title, TextTechnical, TextTechnicalTitle, TypographyBody, TypographyBodySmall, TypographyBodySmallTitle, TypographyBodyTitle, TypographyCaption, TypographyCaptionTitle, TypographyH1, TypographyH1Display, TypographyH2, TypographyH3, TypographyH3Title, TypographyProps, TypographyTechnical, TypographyTechnicalTitle };
@@ -0,0 +1,255 @@
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/typography/index.tsx
50
+ var typography_exports = {};
51
+ __export(typography_exports, {
52
+ Body: () => Body,
53
+ BodySmall: () => BodySmall,
54
+ BodySmallTitle: () => BodySmallTitle,
55
+ BodyTitle: () => BodyTitle,
56
+ Caption: () => Caption,
57
+ CaptionTitle: () => CaptionTitle,
58
+ H1: () => H1,
59
+ H1Display: () => H1Display,
60
+ H2: () => H2,
61
+ H3: () => H3,
62
+ H3Title: () => H3Title,
63
+ Technical: () => Technical,
64
+ TechnicalTitle: () => TechnicalTitle,
65
+ Text: () => Text,
66
+ TextBody: () => TextBody,
67
+ TextBodySmall: () => TextBodySmall,
68
+ TextBodySmallTitle: () => TextBodySmallTitle,
69
+ TextBodyTitle: () => TextBodyTitle,
70
+ TextCaption: () => TextCaption,
71
+ TextCaptionTitle: () => TextCaptionTitle,
72
+ TextH1: () => TextH1,
73
+ TextH1Display: () => TextH1Display,
74
+ TextH2: () => TextH2,
75
+ TextH3: () => TextH3,
76
+ TextH3Title: () => TextH3Title,
77
+ TextTechnical: () => TextTechnical,
78
+ TextTechnicalTitle: () => TextTechnicalTitle,
79
+ Typography: () => Typography,
80
+ TypographyBody: () => TypographyBody,
81
+ TypographyBodySmall: () => TypographyBodySmall,
82
+ TypographyBodySmallTitle: () => TypographyBodySmallTitle,
83
+ TypographyBodyTitle: () => TypographyBodyTitle,
84
+ TypographyCaption: () => TypographyCaption,
85
+ TypographyCaptionTitle: () => TypographyCaptionTitle,
86
+ TypographyH1: () => TypographyH1,
87
+ TypographyH1Display: () => TypographyH1Display,
88
+ TypographyH2: () => TypographyH2,
89
+ TypographyH3: () => TypographyH3,
90
+ TypographyH3Title: () => TypographyH3Title,
91
+ TypographyTechnical: () => TypographyTechnical,
92
+ TypographyTechnicalTitle: () => TypographyTechnicalTitle
93
+ });
94
+ module.exports = __toCommonJS(typography_exports);
95
+ var import_fonts = require("@postenbring/hedwig-css/dist/fonts.css");
96
+ var import_tokens = require("@postenbring/hedwig-css/dist/tokens.css");
97
+ var import_body = require("@postenbring/hedwig-css/dist/body.css");
98
+ var import_typography = require("@postenbring/hedwig-css/dist/typography.css");
99
+
100
+ // src/typography/typography.tsx
101
+ var import_react = require("react");
102
+ var import_typed_classname = require("@postenbring/hedwig-css/typed-classname/index.mjs");
103
+ var import_jsx_runtime = require("react/jsx-runtime");
104
+ var defaultHTMLTag = {
105
+ "h1-display": "h1",
106
+ h1: "h1",
107
+ h2: "h2",
108
+ h3: "h3",
109
+ "h3-title": "h3",
110
+ body: "p",
111
+ "body-title": "p",
112
+ "body-small": "p",
113
+ "body-small-title": "p",
114
+ technical: "p",
115
+ "technical-title": "p",
116
+ caption: "p",
117
+ "caption-title": "p"
118
+ };
119
+ var Typography = (0, import_react.forwardRef)(
120
+ (_a, ref) => {
121
+ var _b = _a, {
122
+ as,
123
+ variant = "body",
124
+ size = "fluid",
125
+ _unstableSpacing: spacing,
126
+ children,
127
+ className
128
+ } = _b, rest = __objRest(_b, [
129
+ "as",
130
+ "variant",
131
+ "size",
132
+ "_unstableSpacing",
133
+ "children",
134
+ "className"
135
+ ]);
136
+ const Component = as != null ? as : defaultHTMLTag[variant];
137
+ const sizeModifier = size !== "fluid" && variant !== "caption" && variant !== "caption-title" && size;
138
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
139
+ Component,
140
+ __spreadProps(__spreadValues({
141
+ className: (0, import_typed_classname.clsx)(
142
+ `hds-typography-${variant}`,
143
+ sizeModifier && `hds-typography--${sizeModifier}`,
144
+ spacing && "hds-typography--spacing",
145
+ className
146
+ ),
147
+ ref
148
+ }, rest), {
149
+ children
150
+ })
151
+ );
152
+ }
153
+ );
154
+ Typography.displayName = "Typography";
155
+
156
+ // src/typography/index.tsx
157
+ var import_jsx_runtime2 = require("react/jsx-runtime");
158
+ var Text = Typography;
159
+ Text.displayName = "Text";
160
+ var H1Display = typographyVariant("h1-display", "H1Display");
161
+ var H1 = typographyVariant("h1", "H1");
162
+ var H2 = typographyVariant("h2", "H2");
163
+ var H3 = typographyVariant("h3", "H3");
164
+ var H3Title = typographyVariant("h3-title", "H3Title");
165
+ var Body = typographyVariant("body", "Body");
166
+ var BodyTitle = typographyVariant("body-title", "BodyTitle");
167
+ var BodySmall = typographyVariant("body-small", "BodySmall");
168
+ var BodySmallTitle = typographyVariant("body-small-title", "BodySmallTitle");
169
+ var Technical = typographyVariant("technical", "Technical");
170
+ var TechnicalTitle = typographyVariant("technical-title", "TechnicalTitle");
171
+ var Caption = typographyVariant("caption", "Caption");
172
+ var CaptionTitle = typographyVariant("caption-title", "CaptionTitle");
173
+ var TextH1Display = typographyVariant("h1-display", "TextH1Display");
174
+ var TextH1 = typographyVariant("h1", "TextH1");
175
+ var TextH2 = typographyVariant("h2", "TextH2");
176
+ var TextH3 = typographyVariant("h3", "TextH3");
177
+ var TextH3Title = typographyVariant("h3-title", "TextH3Title");
178
+ var TextBody = typographyVariant("body", "TextBody");
179
+ var TextBodyTitle = typographyVariant("body-title", "TextBodyTitle");
180
+ var TextBodySmall = typographyVariant("body-small", "TextBodySmall");
181
+ var TextBodySmallTitle = typographyVariant("body-small-title", "TextBodySmallTitle");
182
+ var TextTechnical = typographyVariant("technical", "TextTechnical");
183
+ var TextTechnicalTitle = typographyVariant("technical-title", "TextTechnicalTitle");
184
+ var TextCaption = typographyVariant("caption", "TextCaption");
185
+ var TextCaptionTitle = typographyVariant("caption-title", "TextCaptionTitle");
186
+ var TypographyH1Display = typographyVariant("h1-display", "TypographyH1Display");
187
+ var TypographyH1 = typographyVariant("h1", "TypographyH1");
188
+ var TypographyH2 = typographyVariant("h2", "TypographyH2");
189
+ var TypographyH3 = typographyVariant("h3", "TypographyH3");
190
+ var TypographyH3Title = typographyVariant("h3-title", "TypographyH3Title");
191
+ var TypographyBody = typographyVariant("body", "TypographyBody");
192
+ var TypographyBodyTitle = typographyVariant("body-title", "TypographyBodyTitle");
193
+ var TypographyBodySmall = typographyVariant("body-small", "TypographyBodySmall");
194
+ var TypographyBodySmallTitle = typographyVariant(
195
+ "body-small-title",
196
+ "TypographyBodySmallTitle"
197
+ );
198
+ var TypographyTechnical = typographyVariant("technical", "TypographyTechnical");
199
+ var TypographyTechnicalTitle = typographyVariant(
200
+ "technical-title",
201
+ "TypographyTechnicalTitle"
202
+ );
203
+ var TypographyCaption = typographyVariant("caption", "TypographyCaption");
204
+ var TypographyCaptionTitle = typographyVariant("caption-title", "TypographyCaptionTitle");
205
+ function typographyVariant(variant, displayName) {
206
+ function WrappedTypography(props) {
207
+ return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(Typography, __spreadValues({ variant }, props));
208
+ }
209
+ WrappedTypography.displayName = displayName;
210
+ return WrappedTypography;
211
+ }
212
+ // Annotate the CommonJS export names for ESM import in node:
213
+ 0 && (module.exports = {
214
+ Body,
215
+ BodySmall,
216
+ BodySmallTitle,
217
+ BodyTitle,
218
+ Caption,
219
+ CaptionTitle,
220
+ H1,
221
+ H1Display,
222
+ H2,
223
+ H3,
224
+ H3Title,
225
+ Technical,
226
+ TechnicalTitle,
227
+ Text,
228
+ TextBody,
229
+ TextBodySmall,
230
+ TextBodySmallTitle,
231
+ TextBodyTitle,
232
+ TextCaption,
233
+ TextCaptionTitle,
234
+ TextH1,
235
+ TextH1Display,
236
+ TextH2,
237
+ TextH3,
238
+ TextH3Title,
239
+ TextTechnical,
240
+ TextTechnicalTitle,
241
+ Typography,
242
+ TypographyBody,
243
+ TypographyBodySmall,
244
+ TypographyBodySmallTitle,
245
+ TypographyBodyTitle,
246
+ TypographyCaption,
247
+ TypographyCaptionTitle,
248
+ TypographyH1,
249
+ TypographyH1Display,
250
+ TypographyH2,
251
+ TypographyH3,
252
+ TypographyH3Title,
253
+ TypographyTechnical,
254
+ TypographyTechnicalTitle
255
+ });
@@ -0,0 +1,110 @@
1
+ import {
2
+ Typography
3
+ } from "../chunk-Y4KHO6LN.mjs";
4
+ import {
5
+ __spreadValues
6
+ } from "../chunk-FUJQIYOF.mjs";
7
+
8
+ // src/typography/index.tsx
9
+ import "@postenbring/hedwig-css/dist/fonts.css";
10
+ import "@postenbring/hedwig-css/dist/tokens.css";
11
+ import "@postenbring/hedwig-css/dist/body.css";
12
+ import "@postenbring/hedwig-css/dist/typography.css";
13
+ import { jsx } from "react/jsx-runtime";
14
+ var Text = Typography;
15
+ Text.displayName = "Text";
16
+ var H1Display = typographyVariant("h1-display", "H1Display");
17
+ var H1 = typographyVariant("h1", "H1");
18
+ var H2 = typographyVariant("h2", "H2");
19
+ var H3 = typographyVariant("h3", "H3");
20
+ var H3Title = typographyVariant("h3-title", "H3Title");
21
+ var Body = typographyVariant("body", "Body");
22
+ var BodyTitle = typographyVariant("body-title", "BodyTitle");
23
+ var BodySmall = typographyVariant("body-small", "BodySmall");
24
+ var BodySmallTitle = typographyVariant("body-small-title", "BodySmallTitle");
25
+ var Technical = typographyVariant("technical", "Technical");
26
+ var TechnicalTitle = typographyVariant("technical-title", "TechnicalTitle");
27
+ var Caption = typographyVariant("caption", "Caption");
28
+ var CaptionTitle = typographyVariant("caption-title", "CaptionTitle");
29
+ var TextH1Display = typographyVariant("h1-display", "TextH1Display");
30
+ var TextH1 = typographyVariant("h1", "TextH1");
31
+ var TextH2 = typographyVariant("h2", "TextH2");
32
+ var TextH3 = typographyVariant("h3", "TextH3");
33
+ var TextH3Title = typographyVariant("h3-title", "TextH3Title");
34
+ var TextBody = typographyVariant("body", "TextBody");
35
+ var TextBodyTitle = typographyVariant("body-title", "TextBodyTitle");
36
+ var TextBodySmall = typographyVariant("body-small", "TextBodySmall");
37
+ var TextBodySmallTitle = typographyVariant("body-small-title", "TextBodySmallTitle");
38
+ var TextTechnical = typographyVariant("technical", "TextTechnical");
39
+ var TextTechnicalTitle = typographyVariant("technical-title", "TextTechnicalTitle");
40
+ var TextCaption = typographyVariant("caption", "TextCaption");
41
+ var TextCaptionTitle = typographyVariant("caption-title", "TextCaptionTitle");
42
+ var TypographyH1Display = typographyVariant("h1-display", "TypographyH1Display");
43
+ var TypographyH1 = typographyVariant("h1", "TypographyH1");
44
+ var TypographyH2 = typographyVariant("h2", "TypographyH2");
45
+ var TypographyH3 = typographyVariant("h3", "TypographyH3");
46
+ var TypographyH3Title = typographyVariant("h3-title", "TypographyH3Title");
47
+ var TypographyBody = typographyVariant("body", "TypographyBody");
48
+ var TypographyBodyTitle = typographyVariant("body-title", "TypographyBodyTitle");
49
+ var TypographyBodySmall = typographyVariant("body-small", "TypographyBodySmall");
50
+ var TypographyBodySmallTitle = typographyVariant(
51
+ "body-small-title",
52
+ "TypographyBodySmallTitle"
53
+ );
54
+ var TypographyTechnical = typographyVariant("technical", "TypographyTechnical");
55
+ var TypographyTechnicalTitle = typographyVariant(
56
+ "technical-title",
57
+ "TypographyTechnicalTitle"
58
+ );
59
+ var TypographyCaption = typographyVariant("caption", "TypographyCaption");
60
+ var TypographyCaptionTitle = typographyVariant("caption-title", "TypographyCaptionTitle");
61
+ function typographyVariant(variant, displayName) {
62
+ function WrappedTypography(props) {
63
+ return /* @__PURE__ */ jsx(Typography, __spreadValues({ variant }, props));
64
+ }
65
+ WrappedTypography.displayName = displayName;
66
+ return WrappedTypography;
67
+ }
68
+ export {
69
+ Body,
70
+ BodySmall,
71
+ BodySmallTitle,
72
+ BodyTitle,
73
+ Caption,
74
+ CaptionTitle,
75
+ H1,
76
+ H1Display,
77
+ H2,
78
+ H3,
79
+ H3Title,
80
+ Technical,
81
+ TechnicalTitle,
82
+ Text,
83
+ TextBody,
84
+ TextBodySmall,
85
+ TextBodySmallTitle,
86
+ TextBodyTitle,
87
+ TextCaption,
88
+ TextCaptionTitle,
89
+ TextH1,
90
+ TextH1Display,
91
+ TextH2,
92
+ TextH3,
93
+ TextH3Title,
94
+ TextTechnical,
95
+ TextTechnicalTitle,
96
+ Typography,
97
+ TypographyBody,
98
+ TypographyBodySmall,
99
+ TypographyBodySmallTitle,
100
+ TypographyBodyTitle,
101
+ TypographyCaption,
102
+ TypographyCaptionTitle,
103
+ TypographyH1,
104
+ TypographyH1Display,
105
+ TypographyH2,
106
+ TypographyH3,
107
+ TypographyH3Title,
108
+ TypographyTechnical,
109
+ TypographyTechnicalTitle
110
+ };
@@ -0,0 +1,18 @@
1
+ import react__default from 'react';
2
+ import { O as OverridableComponent } from '../utils-BfZsjuFH.mjs';
3
+
4
+ interface TypographyProps {
5
+ children: react__default.ReactNode;
6
+ variant?: "h1-display" | "h1" | "h2" | "h3" | "h3-title" | "body" | "body-title" | "body-small" | "body-small-title" | "technical" | "technical-title" | "caption" | "caption-title";
7
+ size?: "min" | "max" | "fluid";
8
+ /**
9
+ * 🚧 Experimental spacing
10
+ */
11
+ _unstableSpacing?: boolean;
12
+ }
13
+ /**
14
+ * ## 🚨 WORK IN PROGRESS 🚨
15
+ */
16
+ declare const Typography: OverridableComponent<TypographyProps, HTMLDivElement>;
17
+
18
+ export { Typography, type TypographyProps };
@@ -0,0 +1,18 @@
1
+ import react__default from 'react';
2
+ import { O as OverridableComponent } from '../utils-BfZsjuFH.js';
3
+
4
+ interface TypographyProps {
5
+ children: react__default.ReactNode;
6
+ variant?: "h1-display" | "h1" | "h2" | "h3" | "h3-title" | "body" | "body-title" | "body-small" | "body-small-title" | "technical" | "technical-title" | "caption" | "caption-title";
7
+ size?: "min" | "max" | "fluid";
8
+ /**
9
+ * 🚧 Experimental spacing
10
+ */
11
+ _unstableSpacing?: boolean;
12
+ }
13
+ /**
14
+ * ## 🚨 WORK IN PROGRESS 🚨
15
+ */
16
+ declare const Typography: OverridableComponent<TypographyProps, HTMLDivElement>;
17
+
18
+ export { Typography, type TypographyProps };