@postenbring/hedwig-react 0.0.33 → 0.0.35

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 (71) hide show
  1. package/dist/box/box.js +2 -2
  2. package/dist/box/box.mjs +1 -1
  3. package/dist/box/index.js +2 -2
  4. package/dist/box/index.mjs +1 -1
  5. package/dist/card/card.d.mts +19 -0
  6. package/dist/card/card.d.ts +19 -0
  7. package/dist/card/card.js +137 -0
  8. package/dist/card/card.mjs +21 -0
  9. package/dist/card/index.d.mts +35 -0
  10. package/dist/card/index.d.ts +35 -0
  11. package/dist/card/index.js +155 -0
  12. package/dist/card/index.mjs +23 -0
  13. package/dist/{chunk-CB472XH7.mjs → chunk-5MNVIJJ2.mjs} +1 -1
  14. package/dist/chunk-CP4CKVIA.mjs +76 -0
  15. package/dist/chunk-FB5VUC62.mjs +29 -0
  16. package/dist/chunk-FJQCHTJZ.mjs +5 -0
  17. package/dist/chunk-GD4NFQGX.mjs +32 -0
  18. package/dist/chunk-K2HIKZ7F.mjs +5 -0
  19. package/dist/chunk-LWMZV362.mjs +83 -0
  20. package/dist/{chunk-X4D24ZRP.mjs → chunk-QZIJ2OXE.mjs} +1 -1
  21. package/dist/{chunk-QV33ZHNO.mjs → chunk-SQULBVH7.mjs} +1 -1
  22. package/dist/{chunk-RXUPE4MM.mjs → chunk-SWZLMDKJ.mjs} +2 -2
  23. package/dist/{chunk-YFBW5ZRC.mjs → chunk-TUJCKNKR.mjs} +1 -1
  24. package/dist/chunk-VLMLWQKD.mjs +100 -0
  25. package/dist/chunk-VS4HRMMY.mjs +30 -0
  26. package/dist/index.d.mts +13 -9
  27. package/dist/index.d.ts +13 -9
  28. package/dist/index.js +797 -569
  29. package/dist/index.mjs +52 -22
  30. package/dist/layout/container/container.d.mts +10 -0
  31. package/dist/layout/container/container.d.ts +10 -0
  32. package/dist/layout/container/container.js +79 -0
  33. package/dist/layout/container/container.mjs +7 -0
  34. package/dist/layout/index.d.mts +3 -0
  35. package/dist/layout/index.d.ts +3 -0
  36. package/dist/layout/index.js +85 -0
  37. package/dist/layout/index.mjs +8 -0
  38. package/dist/message/index.d.mts +1 -1
  39. package/dist/message/index.d.ts +1 -1
  40. package/dist/message/index.js +2 -2
  41. package/dist/message/index.mjs +3 -3
  42. package/dist/message/message.js +2 -2
  43. package/dist/message/message.mjs +2 -2
  44. package/dist/modal/index.js +2 -2
  45. package/dist/modal/index.mjs +3 -3
  46. package/dist/modal/modal.js +2 -2
  47. package/dist/modal/modal.mjs +2 -2
  48. package/dist/navbar/index.d.mts +16 -0
  49. package/dist/navbar/index.d.ts +16 -0
  50. package/dist/navbar/index.js +154 -0
  51. package/dist/navbar/index.mjs +25 -0
  52. package/dist/navbar/navbar-expandable-menu.d.mts +38 -0
  53. package/dist/navbar/navbar-expandable-menu.d.ts +38 -0
  54. package/dist/navbar/navbar-expandable-menu.js +125 -0
  55. package/dist/navbar/navbar-expandable-menu.mjs +11 -0
  56. package/dist/navbar/navbar.d.mts +16 -0
  57. package/dist/navbar/navbar.d.ts +16 -0
  58. package/dist/navbar/navbar.js +77 -0
  59. package/dist/navbar/navbar.mjs +9 -0
  60. package/dist/tabs/index.mjs +2 -2
  61. package/dist/tabs/tabs-list.mjs +2 -2
  62. package/dist/warning-banner/index.d.mts +3 -0
  63. package/dist/warning-banner/index.d.ts +3 -0
  64. package/dist/warning-banner/index.js +230 -0
  65. package/dist/warning-banner/index.mjs +10 -0
  66. package/dist/warning-banner/warning-banner.d.mts +10 -0
  67. package/dist/warning-banner/warning-banner.d.ts +10 -0
  68. package/dist/warning-banner/warning-banner.js +224 -0
  69. package/dist/warning-banner/warning-banner.mjs +9 -0
  70. package/package.json +3 -3
  71. package/dist/{chunk-NVMNXQ5Q.mjs → chunk-YPD2CH5T.mjs} +3 -3
package/dist/box/box.js CHANGED
@@ -60,7 +60,7 @@ var Box = (0, import_react.forwardRef)(
60
60
  (_a, ref) => {
61
61
  var _b = _a, {
62
62
  as: Component = "div",
63
- variant = "light-grey",
63
+ variant,
64
64
  closeable = false,
65
65
  onClose: onCloseProp,
66
66
  closed: closedProp,
@@ -94,7 +94,7 @@ var Box = (0, import_react.forwardRef)(
94
94
  __spreadProps(__spreadValues({
95
95
  className: (0, import_typed_classname.clsx)(
96
96
  "hds-box",
97
- `hds-box--${variant}`,
97
+ variant && `hds-box--${variant}`,
98
98
  { "hds-box--closed": closed },
99
99
  className
100
100
  ),
package/dist/box/box.mjs CHANGED
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  Box,
3
3
  BoxCloseButton
4
- } from "../chunk-RXUPE4MM.mjs";
4
+ } from "../chunk-SWZLMDKJ.mjs";
5
5
  import "../chunk-FUJQIYOF.mjs";
6
6
  export {
7
7
  Box,
package/dist/box/index.js CHANGED
@@ -66,7 +66,7 @@ var Box = (0, import_react.forwardRef)(
66
66
  (_a, ref) => {
67
67
  var _b = _a, {
68
68
  as: Component = "div",
69
- variant = "light-grey",
69
+ variant,
70
70
  closeable = false,
71
71
  onClose: onCloseProp,
72
72
  closed: closedProp,
@@ -100,7 +100,7 @@ var Box = (0, import_react.forwardRef)(
100
100
  __spreadProps(__spreadValues({
101
101
  className: (0, import_typed_classname.clsx)(
102
102
  "hds-box",
103
- `hds-box--${variant}`,
103
+ variant && `hds-box--${variant}`,
104
104
  { "hds-box--closed": closed },
105
105
  className
106
106
  ),
@@ -2,7 +2,7 @@ import "../chunk-AJBQ2EJU.mjs";
2
2
  import {
3
3
  Box,
4
4
  BoxCloseButton
5
- } from "../chunk-RXUPE4MM.mjs";
5
+ } from "../chunk-SWZLMDKJ.mjs";
6
6
  import "../chunk-FUJQIYOF.mjs";
7
7
  export {
8
8
  Box,
@@ -0,0 +1,19 @@
1
+ import { HTMLAttributes, ReactNode } from 'react';
2
+ import { O as OverridableComponent } from '../utils-BfZsjuFH.mjs';
3
+
4
+ interface CardBaseProps extends HTMLAttributes<HTMLDivElement> {
5
+ children: ReactNode;
6
+ }
7
+ declare const Card: OverridableComponent<CardBaseProps, HTMLDivElement>;
8
+ declare const CardMedia: OverridableComponent<CardBaseProps, HTMLDivElement>;
9
+ interface CardImageMediaProps extends HTMLAttributes<HTMLDivElement> {
10
+ aspectRatio?: string;
11
+ }
12
+ declare const CardMediaImg: OverridableComponent<CardImageMediaProps, HTMLImageElement>;
13
+ declare const CardBody: OverridableComponent<CardBaseProps, HTMLDivElement>;
14
+ declare const CardBodyOverline: OverridableComponent<CardBaseProps, HTMLDivElement>;
15
+ declare const CardBodyTitle: OverridableComponent<CardBaseProps, HTMLDivElement>;
16
+ declare const CardBodyDescription: OverridableComponent<CardBaseProps, HTMLDivElement>;
17
+ declare const CardBodyAction: OverridableComponent<CardBaseProps, HTMLDivElement>;
18
+
19
+ export { Card, type CardBaseProps, CardBody, CardBodyAction, CardBodyDescription, CardBodyOverline, CardBodyTitle, type CardImageMediaProps, CardMedia, CardMediaImg };
@@ -0,0 +1,19 @@
1
+ import { HTMLAttributes, ReactNode } from 'react';
2
+ import { O as OverridableComponent } from '../utils-BfZsjuFH.js';
3
+
4
+ interface CardBaseProps extends HTMLAttributes<HTMLDivElement> {
5
+ children: ReactNode;
6
+ }
7
+ declare const Card: OverridableComponent<CardBaseProps, HTMLDivElement>;
8
+ declare const CardMedia: OverridableComponent<CardBaseProps, HTMLDivElement>;
9
+ interface CardImageMediaProps extends HTMLAttributes<HTMLDivElement> {
10
+ aspectRatio?: string;
11
+ }
12
+ declare const CardMediaImg: OverridableComponent<CardImageMediaProps, HTMLImageElement>;
13
+ declare const CardBody: OverridableComponent<CardBaseProps, HTMLDivElement>;
14
+ declare const CardBodyOverline: OverridableComponent<CardBaseProps, HTMLDivElement>;
15
+ declare const CardBodyTitle: OverridableComponent<CardBaseProps, HTMLDivElement>;
16
+ declare const CardBodyDescription: OverridableComponent<CardBaseProps, HTMLDivElement>;
17
+ declare const CardBodyAction: OverridableComponent<CardBaseProps, HTMLDivElement>;
18
+
19
+ export { Card, type CardBaseProps, CardBody, CardBodyAction, CardBodyDescription, CardBodyOverline, CardBodyTitle, type CardImageMediaProps, CardMedia, CardMediaImg };
@@ -0,0 +1,137 @@
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/card/card.tsx
50
+ var card_exports = {};
51
+ __export(card_exports, {
52
+ Card: () => Card,
53
+ CardBody: () => CardBody,
54
+ CardBodyAction: () => CardBodyAction,
55
+ CardBodyDescription: () => CardBodyDescription,
56
+ CardBodyOverline: () => CardBodyOverline,
57
+ CardBodyTitle: () => CardBodyTitle,
58
+ CardMedia: () => CardMedia,
59
+ CardMediaImg: () => CardMediaImg
60
+ });
61
+ module.exports = __toCommonJS(card_exports);
62
+ var import_react = require("react");
63
+ var import_typed_classname = require("@postenbring/hedwig-css/typed-classname/index.mjs");
64
+ var import_jsx_runtime = require("react/jsx-runtime");
65
+ var Card = (0, import_react.forwardRef)(
66
+ (_a, ref) => {
67
+ var _b = _a, { as: Component = "div", className, children } = _b, rest = __objRest(_b, ["as", "className", "children"]);
68
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Component, __spreadProps(__spreadValues({}, rest), { className: (0, import_typed_classname.clsx)("hds-card", className), ref, children }));
69
+ }
70
+ );
71
+ Card.displayName = "Card";
72
+ var CardMedia = (0, import_react.forwardRef)(
73
+ (_a, ref) => {
74
+ var _b = _a, { as: Component = "div", className, children } = _b, rest = __objRest(_b, ["as", "className", "children"]);
75
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Component, __spreadProps(__spreadValues({}, rest), { className: (0, import_typed_classname.clsx)("hds-card__media", className), ref, children }));
76
+ }
77
+ );
78
+ CardMedia.displayName = "Card.Media";
79
+ var CardMediaImg = (0, import_react.forwardRef)(
80
+ (_a, ref) => {
81
+ var _b = _a, { as: Component = "img", className } = _b, rest = __objRest(_b, ["as", "className"]);
82
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
83
+ Component,
84
+ __spreadProps(__spreadValues({}, rest), {
85
+ className: (0, import_typed_classname.clsx)("hds-card__media__img", className),
86
+ ref
87
+ })
88
+ );
89
+ }
90
+ );
91
+ CardMediaImg.displayName = "Card.Media.Img";
92
+ var CardBody = (0, import_react.forwardRef)(
93
+ (_a, ref) => {
94
+ var _b = _a, { as: Component = "div", className, children } = _b, rest = __objRest(_b, ["as", "className", "children"]);
95
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Component, __spreadProps(__spreadValues({}, rest), { className: (0, import_typed_classname.clsx)("hds-card__body", className), ref, children }));
96
+ }
97
+ );
98
+ CardBody.displayName = "Card.Body";
99
+ var CardBodyOverline = (0, import_react.forwardRef)(
100
+ (_a, ref) => {
101
+ var _b = _a, { as: Component = "p", className, children } = _b, rest = __objRest(_b, ["as", "className", "children"]);
102
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Component, __spreadProps(__spreadValues({}, rest), { className: (0, import_typed_classname.clsx)("hds-card__overline", className), ref, children }));
103
+ }
104
+ );
105
+ CardBodyOverline.displayName = "Card.Body.Overline";
106
+ var CardBodyTitle = (0, import_react.forwardRef)(
107
+ (_a, ref) => {
108
+ var _b = _a, { as: Component = "h3", className, children } = _b, rest = __objRest(_b, ["as", "className", "children"]);
109
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Component, __spreadProps(__spreadValues({}, rest), { className: (0, import_typed_classname.clsx)("hds-card__title", className), ref, children }));
110
+ }
111
+ );
112
+ CardBodyTitle.displayName = "Card.Body.Title";
113
+ var CardBodyDescription = (0, import_react.forwardRef)(
114
+ (_a, ref) => {
115
+ var _b = _a, { as: Component = "p", className, children } = _b, rest = __objRest(_b, ["as", "className", "children"]);
116
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Component, __spreadProps(__spreadValues({}, rest), { className: (0, import_typed_classname.clsx)(className), ref, children }));
117
+ }
118
+ );
119
+ CardBodyDescription.displayName = "Card.Body.Description";
120
+ var CardBodyAction = (0, import_react.forwardRef)(
121
+ (_a, ref) => {
122
+ var _b = _a, { as: Component = "div", className, children } = _b, rest = __objRest(_b, ["as", "className", "children"]);
123
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Component, __spreadProps(__spreadValues({}, rest), { className, ref, children }));
124
+ }
125
+ );
126
+ CardBodyAction.displayName = "Card.Body.Action";
127
+ // Annotate the CommonJS export names for ESM import in node:
128
+ 0 && (module.exports = {
129
+ Card,
130
+ CardBody,
131
+ CardBodyAction,
132
+ CardBodyDescription,
133
+ CardBodyOverline,
134
+ CardBodyTitle,
135
+ CardMedia,
136
+ CardMediaImg
137
+ });
@@ -0,0 +1,21 @@
1
+ import {
2
+ Card,
3
+ CardBody,
4
+ CardBodyAction,
5
+ CardBodyDescription,
6
+ CardBodyOverline,
7
+ CardBodyTitle,
8
+ CardMedia,
9
+ CardMediaImg
10
+ } from "../chunk-LWMZV362.mjs";
11
+ import "../chunk-FUJQIYOF.mjs";
12
+ export {
13
+ Card,
14
+ CardBody,
15
+ CardBodyAction,
16
+ CardBodyDescription,
17
+ CardBodyOverline,
18
+ CardBodyTitle,
19
+ CardMedia,
20
+ CardMediaImg
21
+ };
@@ -0,0 +1,35 @@
1
+ import * as react from 'react';
2
+ import { CardBaseProps, CardMediaImg, CardBodyOverline, CardBodyTitle, CardBodyDescription, CardBodyAction } from './card.mjs';
3
+ export { CardBody, CardImageMediaProps, CardMedia } from './card.mjs';
4
+ import '../utils-BfZsjuFH.mjs';
5
+
6
+ declare const CardMediaComponent: {
7
+ (props: CardBaseProps & react.RefAttributes<HTMLDivElement>): react.ReactNode;
8
+ <As extends react.ElementType>(props: {
9
+ as?: As | undefined;
10
+ } & CardBaseProps & Omit<react.ComponentPropsWithRef<As>, keyof CardBaseProps>): react.ReactNode;
11
+ } & Pick<react.FC, "displayName"> & {
12
+ Img: typeof CardMediaImg;
13
+ };
14
+ declare const CardBodyComponent: {
15
+ (props: CardBaseProps & react.RefAttributes<HTMLDivElement>): react.ReactNode;
16
+ <As extends react.ElementType>(props: {
17
+ as?: As | undefined;
18
+ } & CardBaseProps & Omit<react.ComponentPropsWithRef<As>, keyof CardBaseProps>): react.ReactNode;
19
+ } & Pick<react.FC, "displayName"> & {
20
+ Overline: typeof CardBodyOverline;
21
+ Title: typeof CardBodyTitle;
22
+ Description: typeof CardBodyDescription;
23
+ Action: typeof CardBodyAction;
24
+ };
25
+ declare const CardComponent: {
26
+ (props: CardBaseProps & react.RefAttributes<HTMLDivElement>): react.ReactNode;
27
+ <As extends react.ElementType>(props: {
28
+ as?: As | undefined;
29
+ } & CardBaseProps & Omit<react.ComponentPropsWithRef<As>, keyof CardBaseProps>): react.ReactNode;
30
+ } & Pick<react.FC, "displayName"> & {
31
+ Media: typeof CardMediaComponent;
32
+ Body: typeof CardBodyComponent;
33
+ };
34
+
35
+ export { CardComponent as Card, CardBaseProps, CardBodyAction, CardBodyDescription, CardBodyOverline, CardBodyTitle, CardMediaImg };
@@ -0,0 +1,35 @@
1
+ import * as react from 'react';
2
+ import { CardBaseProps, CardMediaImg, CardBodyOverline, CardBodyTitle, CardBodyDescription, CardBodyAction } from './card.js';
3
+ export { CardBody, CardImageMediaProps, CardMedia } from './card.js';
4
+ import '../utils-BfZsjuFH.js';
5
+
6
+ declare const CardMediaComponent: {
7
+ (props: CardBaseProps & react.RefAttributes<HTMLDivElement>): react.ReactNode;
8
+ <As extends react.ElementType>(props: {
9
+ as?: As | undefined;
10
+ } & CardBaseProps & Omit<react.ComponentPropsWithRef<As>, keyof CardBaseProps>): react.ReactNode;
11
+ } & Pick<react.FC, "displayName"> & {
12
+ Img: typeof CardMediaImg;
13
+ };
14
+ declare const CardBodyComponent: {
15
+ (props: CardBaseProps & react.RefAttributes<HTMLDivElement>): react.ReactNode;
16
+ <As extends react.ElementType>(props: {
17
+ as?: As | undefined;
18
+ } & CardBaseProps & Omit<react.ComponentPropsWithRef<As>, keyof CardBaseProps>): react.ReactNode;
19
+ } & Pick<react.FC, "displayName"> & {
20
+ Overline: typeof CardBodyOverline;
21
+ Title: typeof CardBodyTitle;
22
+ Description: typeof CardBodyDescription;
23
+ Action: typeof CardBodyAction;
24
+ };
25
+ declare const CardComponent: {
26
+ (props: CardBaseProps & react.RefAttributes<HTMLDivElement>): react.ReactNode;
27
+ <As extends react.ElementType>(props: {
28
+ as?: As | undefined;
29
+ } & CardBaseProps & Omit<react.ComponentPropsWithRef<As>, keyof CardBaseProps>): react.ReactNode;
30
+ } & Pick<react.FC, "displayName"> & {
31
+ Media: typeof CardMediaComponent;
32
+ Body: typeof CardBodyComponent;
33
+ };
34
+
35
+ export { CardComponent as Card, CardBaseProps, CardBodyAction, CardBodyDescription, CardBodyOverline, CardBodyTitle, CardMediaImg };
@@ -0,0 +1,155 @@
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/card/index.tsx
50
+ var card_exports = {};
51
+ __export(card_exports, {
52
+ Card: () => CardComponent,
53
+ CardBody: () => CardBody,
54
+ CardBodyAction: () => CardBodyAction,
55
+ CardBodyDescription: () => CardBodyDescription,
56
+ CardBodyOverline: () => CardBodyOverline,
57
+ CardBodyTitle: () => CardBodyTitle,
58
+ CardMedia: () => CardMedia,
59
+ CardMediaImg: () => CardMediaImg
60
+ });
61
+ module.exports = __toCommonJS(card_exports);
62
+ var import_fonts = require("@postenbring/hedwig-css/dist/fonts.css");
63
+ var import_tokens = require("@postenbring/hedwig-css/dist/tokens.css");
64
+ var import_body = require("@postenbring/hedwig-css/dist/body.css");
65
+ var import_card = require("@postenbring/hedwig-css/dist/card.css");
66
+
67
+ // src/card/card.tsx
68
+ var import_react = require("react");
69
+ var import_typed_classname = require("@postenbring/hedwig-css/typed-classname/index.mjs");
70
+ var import_jsx_runtime = require("react/jsx-runtime");
71
+ var Card = (0, import_react.forwardRef)(
72
+ (_a, ref) => {
73
+ var _b = _a, { as: Component = "div", className, children } = _b, rest = __objRest(_b, ["as", "className", "children"]);
74
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Component, __spreadProps(__spreadValues({}, rest), { className: (0, import_typed_classname.clsx)("hds-card", className), ref, children }));
75
+ }
76
+ );
77
+ Card.displayName = "Card";
78
+ var CardMedia = (0, import_react.forwardRef)(
79
+ (_a, ref) => {
80
+ var _b = _a, { as: Component = "div", className, children } = _b, rest = __objRest(_b, ["as", "className", "children"]);
81
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Component, __spreadProps(__spreadValues({}, rest), { className: (0, import_typed_classname.clsx)("hds-card__media", className), ref, children }));
82
+ }
83
+ );
84
+ CardMedia.displayName = "Card.Media";
85
+ var CardMediaImg = (0, import_react.forwardRef)(
86
+ (_a, ref) => {
87
+ var _b = _a, { as: Component = "img", className } = _b, rest = __objRest(_b, ["as", "className"]);
88
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
89
+ Component,
90
+ __spreadProps(__spreadValues({}, rest), {
91
+ className: (0, import_typed_classname.clsx)("hds-card__media__img", className),
92
+ ref
93
+ })
94
+ );
95
+ }
96
+ );
97
+ CardMediaImg.displayName = "Card.Media.Img";
98
+ var CardBody = (0, import_react.forwardRef)(
99
+ (_a, ref) => {
100
+ var _b = _a, { as: Component = "div", className, children } = _b, rest = __objRest(_b, ["as", "className", "children"]);
101
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Component, __spreadProps(__spreadValues({}, rest), { className: (0, import_typed_classname.clsx)("hds-card__body", className), ref, children }));
102
+ }
103
+ );
104
+ CardBody.displayName = "Card.Body";
105
+ var CardBodyOverline = (0, import_react.forwardRef)(
106
+ (_a, ref) => {
107
+ var _b = _a, { as: Component = "p", className, children } = _b, rest = __objRest(_b, ["as", "className", "children"]);
108
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Component, __spreadProps(__spreadValues({}, rest), { className: (0, import_typed_classname.clsx)("hds-card__overline", className), ref, children }));
109
+ }
110
+ );
111
+ CardBodyOverline.displayName = "Card.Body.Overline";
112
+ var CardBodyTitle = (0, import_react.forwardRef)(
113
+ (_a, ref) => {
114
+ var _b = _a, { as: Component = "h3", className, children } = _b, rest = __objRest(_b, ["as", "className", "children"]);
115
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Component, __spreadProps(__spreadValues({}, rest), { className: (0, import_typed_classname.clsx)("hds-card__title", className), ref, children }));
116
+ }
117
+ );
118
+ CardBodyTitle.displayName = "Card.Body.Title";
119
+ var CardBodyDescription = (0, import_react.forwardRef)(
120
+ (_a, ref) => {
121
+ var _b = _a, { as: Component = "p", className, children } = _b, rest = __objRest(_b, ["as", "className", "children"]);
122
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Component, __spreadProps(__spreadValues({}, rest), { className: (0, import_typed_classname.clsx)(className), ref, children }));
123
+ }
124
+ );
125
+ CardBodyDescription.displayName = "Card.Body.Description";
126
+ var CardBodyAction = (0, import_react.forwardRef)(
127
+ (_a, ref) => {
128
+ var _b = _a, { as: Component = "div", className, children } = _b, rest = __objRest(_b, ["as", "className", "children"]);
129
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Component, __spreadProps(__spreadValues({}, rest), { className, ref, children }));
130
+ }
131
+ );
132
+ CardBodyAction.displayName = "Card.Body.Action";
133
+
134
+ // src/card/index.tsx
135
+ var CardMediaComponent = CardMedia;
136
+ CardMediaComponent.Img = CardMediaImg;
137
+ var CardBodyComponent = CardBody;
138
+ CardBodyComponent.Overline = CardBodyOverline;
139
+ CardBodyComponent.Title = CardBodyTitle;
140
+ CardBodyComponent.Description = CardBodyDescription;
141
+ CardBodyComponent.Action = CardBodyAction;
142
+ var CardComponent = Card;
143
+ CardComponent.Media = CardMediaComponent;
144
+ CardComponent.Body = CardBodyComponent;
145
+ // Annotate the CommonJS export names for ESM import in node:
146
+ 0 && (module.exports = {
147
+ Card,
148
+ CardBody,
149
+ CardBodyAction,
150
+ CardBodyDescription,
151
+ CardBodyOverline,
152
+ CardBodyTitle,
153
+ CardMedia,
154
+ CardMediaImg
155
+ });
@@ -0,0 +1,23 @@
1
+ import {
2
+ CardComponent
3
+ } from "../chunk-VS4HRMMY.mjs";
4
+ import {
5
+ CardBody,
6
+ CardBodyAction,
7
+ CardBodyDescription,
8
+ CardBodyOverline,
9
+ CardBodyTitle,
10
+ CardMedia,
11
+ CardMediaImg
12
+ } from "../chunk-LWMZV362.mjs";
13
+ import "../chunk-FUJQIYOF.mjs";
14
+ export {
15
+ CardComponent as Card,
16
+ CardBody,
17
+ CardBodyAction,
18
+ CardBodyDescription,
19
+ CardBodyOverline,
20
+ CardBodyTitle,
21
+ CardMedia,
22
+ CardMediaImg
23
+ };
@@ -2,7 +2,7 @@ import {
2
2
  Message,
3
3
  MessageDescription,
4
4
  MessageTitle
5
- } from "./chunk-X4D24ZRP.mjs";
5
+ } from "./chunk-QZIJ2OXE.mjs";
6
6
 
7
7
  // src/message/index.tsx
8
8
  import "@postenbring/hedwig-css/dist/fonts.css";
@@ -0,0 +1,76 @@
1
+ import {
2
+ __objRest,
3
+ __spreadProps,
4
+ __spreadValues
5
+ } from "./chunk-FUJQIYOF.mjs";
6
+
7
+ // src/navbar/navbar-expandable-menu.tsx
8
+ import { createContext, useContext, forwardRef, useState } from "react";
9
+ import { clsx } from "@postenbring/hedwig-css/typed-classname/index.mjs";
10
+ import { jsx } from "react/jsx-runtime";
11
+ var navbarContext = createContext([
12
+ false,
13
+ () => {
14
+ }
15
+ ]);
16
+ function NavbarExpandableMenu({ children }) {
17
+ const [open, setOpen] = useState(false);
18
+ const toggleOpen = () => {
19
+ setOpen((currentOpen) => !currentOpen);
20
+ };
21
+ return /* @__PURE__ */ jsx(navbarContext.Provider, { value: [open, toggleOpen], children });
22
+ }
23
+ NavbarExpandableMenu.displayName = "NavbarExpandableMenu";
24
+ var NavbarExpandableMenuTrigger = forwardRef(
25
+ (_a, ref) => {
26
+ var _b = _a, {
27
+ whenClosedText,
28
+ whenClosedHelperTitle,
29
+ whenOpenText,
30
+ whenOpenHelperTitle,
31
+ className
32
+ } = _b, rest = __objRest(_b, [
33
+ "whenClosedText",
34
+ "whenClosedHelperTitle",
35
+ "whenOpenText",
36
+ "whenOpenHelperTitle",
37
+ "className"
38
+ ]);
39
+ const [open, toggleOpen] = useContext(navbarContext);
40
+ const text = open ? whenOpenText : whenClosedText;
41
+ const title = open ? whenOpenHelperTitle : whenClosedHelperTitle;
42
+ return /* @__PURE__ */ jsx(
43
+ "button",
44
+ __spreadProps(__spreadValues({
45
+ className: clsx("hds-navbar__expandable-menu-trigger", className),
46
+ onClick: toggleOpen,
47
+ ref,
48
+ title,
49
+ type: "button"
50
+ }, rest), {
51
+ children: text
52
+ })
53
+ );
54
+ }
55
+ );
56
+ NavbarExpandableMenuTrigger.displayName = "Navbar.ExpandableMenu.Trigger";
57
+ var NavbarExpandableMenuContent = forwardRef((_a, ref) => {
58
+ var _b = _a, { as: Component = "div", children, className } = _b, rest = __objRest(_b, ["as", "children", "className"]);
59
+ const [open] = useContext(navbarContext);
60
+ return /* @__PURE__ */ jsx(
61
+ Component,
62
+ __spreadProps(__spreadValues({}, rest), {
63
+ className: clsx("hds-navbar__expandable-menu-content", className),
64
+ "data-state": open ? "open" : "closed",
65
+ ref,
66
+ children
67
+ })
68
+ );
69
+ });
70
+ NavbarExpandableMenuContent.displayName = "Navbar.ExpandableMenu.Content";
71
+
72
+ export {
73
+ NavbarExpandableMenu,
74
+ NavbarExpandableMenuTrigger,
75
+ NavbarExpandableMenuContent
76
+ };
@@ -0,0 +1,29 @@
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
+ };
@@ -0,0 +1,5 @@
1
+ // src/layout/index.tsx
2
+ import "@postenbring/hedwig-css/dist/fonts.css";
3
+ import "@postenbring/hedwig-css/dist/tokens.css";
4
+ import "@postenbring/hedwig-css/dist/body.css";
5
+ import "@postenbring/hedwig-css/dist/container.css";
@@ -0,0 +1,32 @@
1
+ import {
2
+ __objRest,
3
+ __spreadProps,
4
+ __spreadValues
5
+ } from "./chunk-FUJQIYOF.mjs";
6
+
7
+ // src/layout/container/container.tsx
8
+ import { clsx } from "@postenbring/hedwig-css/typed-classname/index.mjs";
9
+ import { forwardRef } from "react";
10
+ import { jsx } from "react/jsx-runtime";
11
+ var Container = forwardRef(
12
+ (_a, ref) => {
13
+ var _b = _a, { as: Component = "div", className, children, variant } = _b, rest = __objRest(_b, ["as", "className", "children", "variant"]);
14
+ return /* @__PURE__ */ jsx(
15
+ Component,
16
+ __spreadProps(__spreadValues({}, rest), {
17
+ className: clsx(
18
+ "hds-container",
19
+ { "hds-container--slim": variant === "slim" },
20
+ className
21
+ ),
22
+ ref,
23
+ children
24
+ })
25
+ );
26
+ }
27
+ );
28
+ Container.displayName = "Container";
29
+
30
+ export {
31
+ Container
32
+ };
@@ -0,0 +1,5 @@
1
+ // src/warning-banner/index.tsx
2
+ import "@postenbring/hedwig-css/dist/fonts.css";
3
+ import "@postenbring/hedwig-css/dist/tokens.css";
4
+ import "@postenbring/hedwig-css/dist/body.css";
5
+ import "@postenbring/hedwig-css/dist/warning-banner.css";