@postenbring/hedwig-react 0.0.42 → 0.0.44

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 (46) 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-Y34HUVFV.mjs → chunk-6KVF3ELJ.mjs} +5 -2
  6. package/dist/{chunk-KOXEIUCU.mjs → chunk-E5575U2F.mjs} +1 -1
  7. package/dist/chunk-FDAXJJHU.mjs +53 -0
  8. package/dist/{chunk-2Y3E37N3.mjs → chunk-K3BGDNWO.mjs} +4 -3
  9. package/dist/{chunk-4XHA3NGO.mjs → chunk-LICHSDMT.mjs} +17 -3
  10. package/dist/{chunk-CP4CKVIA.mjs → chunk-T5W5SKZP.mjs} +5 -1
  11. package/dist/{chunk-SBHXDOBW.mjs → chunk-Y2KP4RF2.mjs} +4 -3
  12. package/dist/chunk-Y4KHO6LN.mjs +65 -0
  13. package/dist/index.js +30 -11
  14. package/dist/index.mjs +5 -5
  15. package/dist/input/index.js +5 -2
  16. package/dist/input/index.mjs +1 -1
  17. package/dist/input/input.js +5 -2
  18. package/dist/input/input.mjs +1 -1
  19. package/dist/navbar/index.d.mts +4 -2
  20. package/dist/navbar/index.d.ts +4 -2
  21. package/dist/navbar/index.js +29 -1
  22. package/dist/navbar/index.mjs +7 -3
  23. package/dist/navbar/navbar-expandable-menu.js +5 -1
  24. package/dist/navbar/navbar-expandable-menu.mjs +1 -1
  25. package/dist/navbar/navbar.d.mts +10 -1
  26. package/dist/navbar/navbar.d.ts +10 -1
  27. package/dist/navbar/navbar.js +28 -2
  28. package/dist/navbar/navbar.mjs +7 -3
  29. package/dist/select/index.js +4 -3
  30. package/dist/select/index.mjs +1 -1
  31. package/dist/select/select.js +4 -3
  32. package/dist/select/select.mjs +1 -1
  33. package/dist/textarea/index.js +4 -3
  34. package/dist/textarea/index.mjs +1 -1
  35. package/dist/textarea/textarea.js +4 -3
  36. package/dist/textarea/textarea.mjs +1 -1
  37. package/dist/typography/index.d.mts +69 -0
  38. package/dist/typography/index.d.ts +69 -0
  39. package/dist/typography/index.js +255 -0
  40. package/dist/typography/index.mjs +110 -0
  41. package/dist/typography/typography.d.mts +18 -0
  42. package/dist/typography/typography.d.ts +18 -0
  43. package/dist/typography/typography.js +112 -0
  44. package/dist/typography/typography.mjs +7 -0
  45. package/package.json +1 -1
  46. package/dist/chunk-FB5VUC62.mjs +0 -29
@@ -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 };
@@ -0,0 +1,112 @@
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/typography.tsx
50
+ var typography_exports = {};
51
+ __export(typography_exports, {
52
+ Typography: () => Typography
53
+ });
54
+ module.exports = __toCommonJS(typography_exports);
55
+ var import_react = require("react");
56
+ var import_typed_classname = require("@postenbring/hedwig-css/typed-classname/index.mjs");
57
+ var import_jsx_runtime = require("react/jsx-runtime");
58
+ var defaultHTMLTag = {
59
+ "h1-display": "h1",
60
+ h1: "h1",
61
+ h2: "h2",
62
+ h3: "h3",
63
+ "h3-title": "h3",
64
+ body: "p",
65
+ "body-title": "p",
66
+ "body-small": "p",
67
+ "body-small-title": "p",
68
+ technical: "p",
69
+ "technical-title": "p",
70
+ caption: "p",
71
+ "caption-title": "p"
72
+ };
73
+ var Typography = (0, import_react.forwardRef)(
74
+ (_a, ref) => {
75
+ var _b = _a, {
76
+ as,
77
+ variant = "body",
78
+ size = "fluid",
79
+ _unstableSpacing: spacing,
80
+ children,
81
+ className
82
+ } = _b, rest = __objRest(_b, [
83
+ "as",
84
+ "variant",
85
+ "size",
86
+ "_unstableSpacing",
87
+ "children",
88
+ "className"
89
+ ]);
90
+ const Component = as != null ? as : defaultHTMLTag[variant];
91
+ const sizeModifier = size !== "fluid" && variant !== "caption" && variant !== "caption-title" && size;
92
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
93
+ Component,
94
+ __spreadProps(__spreadValues({
95
+ className: (0, import_typed_classname.clsx)(
96
+ `hds-typography-${variant}`,
97
+ sizeModifier && `hds-typography--${sizeModifier}`,
98
+ spacing && "hds-typography--spacing",
99
+ className
100
+ ),
101
+ ref
102
+ }, rest), {
103
+ children
104
+ })
105
+ );
106
+ }
107
+ );
108
+ Typography.displayName = "Typography";
109
+ // Annotate the CommonJS export names for ESM import in node:
110
+ 0 && (module.exports = {
111
+ Typography
112
+ });
@@ -0,0 +1,7 @@
1
+ import {
2
+ Typography
3
+ } from "../chunk-Y4KHO6LN.mjs";
4
+ import "../chunk-FUJQIYOF.mjs";
5
+ export {
6
+ Typography
7
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@postenbring/hedwig-react",
3
- "version": "0.0.42",
3
+ "version": "0.0.44",
4
4
  "main": "./dist/index.js",
5
5
  "module": "./dist/index.mjs",
6
6
  "types": "./dist/index.d.ts",
@@ -1,29 +0,0 @@
1
- import {
2
- __objRest,
3
- __spreadProps,
4
- __spreadValues
5
- } from "./chunk-FUJQIYOF.mjs";
6
-
7
- // src/navbar/navbar.tsx
8
- import { forwardRef } from "react";
9
- import { clsx } from "@postenbring/hedwig-css/typed-classname/index.mjs";
10
- import { jsx } from "react/jsx-runtime";
11
- var Navbar = forwardRef(
12
- (_a, ref) => {
13
- var _b = _a, { children, className } = _b, rest = __objRest(_b, ["children", "className"]);
14
- return /* @__PURE__ */ jsx("header", __spreadProps(__spreadValues({ className: clsx("hds-navbar", className), ref }, rest), { children }));
15
- }
16
- );
17
- Navbar.displayName = "Navbar";
18
- var NavbarLogo = forwardRef(
19
- (_a, ref) => {
20
- var _b = _a, { as: Component = "div", className } = _b, rest = __objRest(_b, ["as", "className"]);
21
- return /* @__PURE__ */ jsx(Component, __spreadValues({ className: clsx("hds-navbar__logo", className), ref }, rest));
22
- }
23
- );
24
- NavbarLogo.displayName = "Navbar.Logo";
25
-
26
- export {
27
- Navbar,
28
- NavbarLogo
29
- };