@postenbring/hedwig-react 0.0.37 → 0.0.39
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.
- package/dist/accordion/accordion-content.js +1 -1
- package/dist/accordion/accordion-content.mjs +1 -1
- package/dist/accordion/accordion-item.js +1 -1
- package/dist/accordion/accordion-item.mjs +1 -1
- package/dist/accordion/accordion-trigger.js +1 -1
- package/dist/accordion/accordion-trigger.mjs +1 -1
- package/dist/accordion/index.d.mts +4 -1
- package/dist/accordion/index.d.ts +4 -1
- package/dist/accordion/index.js +5 -14
- package/dist/accordion/index.mjs +5 -14
- package/dist/box/box.js +1 -1
- package/dist/box/box.mjs +1 -1
- package/dist/box/index.d.mts +14 -2
- package/dist/box/index.d.ts +14 -2
- package/dist/box/index.js +7 -5
- package/dist/box/index.mjs +4 -6
- package/dist/button/index.js +0 -2
- package/dist/button/index.mjs +0 -2
- package/dist/card/card.d.mts +5 -3
- package/dist/card/card.d.ts +5 -3
- package/dist/card/card.js +54 -13
- package/dist/card/card.mjs +9 -5
- package/dist/card/index.d.mts +24 -6
- package/dist/card/index.d.ts +24 -6
- package/dist/card/index.js +55 -28
- package/dist/card/index.mjs +3 -18
- package/dist/{chunk-TUJCKNKR.mjs → chunk-2QZF65FK.mjs} +1 -2
- package/dist/{chunk-6XSKLHN6.mjs → chunk-3JNHAMRV.mjs} +1 -16
- package/dist/{chunk-GXKTHQ37.mjs → chunk-4WI2BHHB.mjs} +1 -1
- package/dist/{chunk-LWMZV362.mjs → chunk-4XHA3NGO.mjs} +51 -12
- package/dist/{chunk-VLMLWQKD.mjs → chunk-BHNQPMEB.mjs} +3 -3
- package/dist/chunk-BSX4IA3X.mjs +26 -0
- package/dist/{chunk-AJBQ2EJU.mjs → chunk-E2GAXTBX.mjs} +11 -0
- package/dist/{chunk-YPD2CH5T.mjs → chunk-G3JPULGO.mjs} +4 -4
- package/dist/{chunk-4RBJ5GJR.mjs → chunk-GRO36EUL.mjs} +7 -7
- package/dist/{chunk-RIID2NGR.mjs → chunk-GSYDQFIT.mjs} +3 -6
- package/dist/{chunk-C2SDDGHL.mjs → chunk-JKZ3OR7W.mjs} +1 -1
- package/dist/{chunk-VS4HRMMY.mjs → chunk-KOXEIUCU.mjs} +12 -6
- package/dist/{chunk-5MNVIJJ2.mjs → chunk-MER2HJBC.mjs} +1 -3
- package/dist/{chunk-SQULBVH7.mjs → chunk-OB6UNSKV.mjs} +2 -2
- package/dist/{chunk-SWZLMDKJ.mjs → chunk-WTMT5WCJ.mjs} +1 -1
- package/dist/{chunk-QZIJ2OXE.mjs → chunk-WYPGZY5Q.mjs} +3 -3
- package/dist/{chunk-L7DYK6OS.mjs → chunk-XAIX3HTW.mjs} +1 -1
- package/dist/index.d.mts +16 -14
- package/dist/index.d.ts +16 -14
- package/dist/index.js +84 -90
- package/dist/index.mjs +23 -73
- package/dist/layout/index.d.mts +1 -1
- package/dist/layout/index.d.ts +1 -1
- package/dist/list/description-list.d.mts +30 -14
- package/dist/list/description-list.d.ts +30 -14
- package/dist/list/description-list.js +2 -21
- package/dist/list/description-list.mjs +3 -9
- package/dist/list/index.d.mts +1 -1
- package/dist/list/index.d.ts +1 -1
- package/dist/list/index.js +0 -14
- package/dist/list/index.mjs +2 -6
- package/dist/message/index.d.mts +1 -1
- package/dist/message/index.d.ts +1 -1
- package/dist/message/index.js +5 -11
- package/dist/message/index.mjs +4 -9
- package/dist/message/message.js +3 -3
- package/dist/message/message.mjs +2 -2
- package/dist/modal/index.d.mts +1 -1
- package/dist/modal/index.d.ts +1 -1
- package/dist/modal/index.js +4 -7
- package/dist/modal/index.mjs +4 -7
- package/dist/modal/modal.js +2 -2
- package/dist/modal/modal.mjs +2 -2
- package/dist/navbar/index.d.mts +1 -1
- package/dist/navbar/index.d.ts +1 -1
- package/dist/prose/prose.d.mts +38 -0
- package/dist/prose/prose.d.ts +38 -0
- package/dist/prose/prose.js +81 -0
- package/dist/prose/prose.mjs +33 -0
- package/dist/tabs/index.d.mts +20 -4
- package/dist/tabs/index.d.ts +20 -4
- package/dist/tabs/index.js +16 -17
- package/dist/tabs/index.mjs +6 -16
- package/dist/tabs/tabs-content.d.mts +6 -6
- package/dist/tabs/tabs-content.d.ts +6 -6
- package/dist/tabs/tabs-content.js +9 -9
- package/dist/tabs/tabs-content.mjs +5 -5
- package/dist/tabs/tabs-list.d.mts +3 -3
- package/dist/tabs/tabs-list.d.ts +3 -3
- package/dist/tabs/tabs-list.js +5 -5
- package/dist/tabs/tabs-list.mjs +3 -3
- package/dist/warning-banner/index.js +6 -2
- package/dist/warning-banner/index.mjs +3 -3
- package/dist/warning-banner/warning-banner.js +6 -2
- package/dist/warning-banner/warning-banner.mjs +3 -3
- package/package.json +2 -2
- package/dist/chunk-BKXVC23Y.mjs +0 -5
package/dist/card/index.js
CHANGED
|
@@ -49,14 +49,7 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
|
|
|
49
49
|
// src/card/index.tsx
|
|
50
50
|
var card_exports = {};
|
|
51
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
|
|
52
|
+
Card: () => CardComponent
|
|
60
53
|
});
|
|
61
54
|
module.exports = __toCommonJS(card_exports);
|
|
62
55
|
var import_fonts = require("@postenbring/hedwig-css/dist/fonts.css");
|
|
@@ -70,7 +63,7 @@ var import_typed_classname = require("@postenbring/hedwig-css/typed-classname/in
|
|
|
70
63
|
var import_jsx_runtime = require("react/jsx-runtime");
|
|
71
64
|
var Card = (0, import_react.forwardRef)(
|
|
72
65
|
(_a, ref) => {
|
|
73
|
-
var _b = _a, { as: Component = "
|
|
66
|
+
var _b = _a, { as: Component = "section", className, children } = _b, rest = __objRest(_b, ["as", "className", "children"]);
|
|
74
67
|
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Component, __spreadProps(__spreadValues({}, rest), { className: (0, import_typed_classname.clsx)("hds-card", className), ref, children }));
|
|
75
68
|
}
|
|
76
69
|
);
|
|
@@ -102,20 +95,46 @@ var CardBody = (0, import_react.forwardRef)(
|
|
|
102
95
|
}
|
|
103
96
|
);
|
|
104
97
|
CardBody.displayName = "Card.Body";
|
|
105
|
-
var
|
|
98
|
+
var CardBodyHeader = (0, import_react.forwardRef)(
|
|
106
99
|
(_a, ref) => {
|
|
107
|
-
var _b = _a, { as: Component = "
|
|
108
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
100
|
+
var _b = _a, { as: Component = "h3", className, children } = _b, rest = __objRest(_b, ["as", "className", "children"]);
|
|
101
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
102
|
+
Component,
|
|
103
|
+
__spreadProps(__spreadValues({}, rest), {
|
|
104
|
+
className: (0, import_typed_classname.clsx)("hds-card__body-header", className),
|
|
105
|
+
ref,
|
|
106
|
+
children
|
|
107
|
+
})
|
|
108
|
+
);
|
|
109
109
|
}
|
|
110
110
|
);
|
|
111
|
-
|
|
112
|
-
var
|
|
111
|
+
CardBodyHeader.displayName = "Card.Body.Header";
|
|
112
|
+
var CardBodyHeaderOverline = (0, import_react.forwardRef)((_a, ref) => {
|
|
113
|
+
var _b = _a, { as: Component = "span", className, children } = _b, rest = __objRest(_b, ["as", "className", "children"]);
|
|
114
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
115
|
+
Component,
|
|
116
|
+
__spreadProps(__spreadValues({}, rest), {
|
|
117
|
+
className: (0, import_typed_classname.clsx)("hds-card__body-header-overline", className),
|
|
118
|
+
ref,
|
|
119
|
+
children
|
|
120
|
+
})
|
|
121
|
+
);
|
|
122
|
+
});
|
|
123
|
+
CardBodyHeaderOverline.displayName = "Card.Body.Header.Overline";
|
|
124
|
+
var CardBodyHeaderTitle = (0, import_react.forwardRef)(
|
|
113
125
|
(_a, ref) => {
|
|
114
|
-
var _b = _a, { as: Component = "
|
|
115
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
126
|
+
var _b = _a, { as: Component = "span", className, children } = _b, rest = __objRest(_b, ["as", "className", "children"]);
|
|
127
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
128
|
+
Component,
|
|
129
|
+
__spreadProps(__spreadValues({}, rest), {
|
|
130
|
+
className: (0, import_typed_classname.clsx)("hds-card__body-header-title", className),
|
|
131
|
+
ref,
|
|
132
|
+
children
|
|
133
|
+
})
|
|
134
|
+
);
|
|
116
135
|
}
|
|
117
136
|
);
|
|
118
|
-
|
|
137
|
+
CardBodyHeaderTitle.displayName = "Card.Body.Header.Title";
|
|
119
138
|
var CardBodyDescription = (0, import_react.forwardRef)(
|
|
120
139
|
(_a, ref) => {
|
|
121
140
|
var _b = _a, { as: Component = "p", className, children } = _b, rest = __objRest(_b, ["as", "className", "children"]);
|
|
@@ -130,26 +149,34 @@ var CardBodyAction = (0, import_react.forwardRef)(
|
|
|
130
149
|
}
|
|
131
150
|
);
|
|
132
151
|
CardBodyAction.displayName = "Card.Body.Action";
|
|
152
|
+
var CardBodyActionArrow = (0, import_react.forwardRef)((_a, ref) => {
|
|
153
|
+
var _b = _a, { as: Component = "a", className } = _b, rest = __objRest(_b, ["as", "className"]);
|
|
154
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
155
|
+
Component,
|
|
156
|
+
__spreadProps(__spreadValues({}, rest), {
|
|
157
|
+
className: (0, import_typed_classname.clsx)("hds-card__body-action-arrow", className),
|
|
158
|
+
ref
|
|
159
|
+
})
|
|
160
|
+
);
|
|
161
|
+
});
|
|
162
|
+
CardBodyActionArrow.displayName = "Card.Body.Action.Arrow";
|
|
133
163
|
|
|
134
164
|
// src/card/index.tsx
|
|
135
165
|
var CardMediaComponent = CardMedia;
|
|
136
166
|
CardMediaComponent.Img = CardMediaImg;
|
|
167
|
+
var CardBodyHeaderComponent = CardBodyHeader;
|
|
168
|
+
CardBodyHeaderComponent.Overline = CardBodyHeaderOverline;
|
|
169
|
+
CardBodyHeaderComponent.Title = CardBodyHeaderTitle;
|
|
170
|
+
var CardBodyActionComponent = CardBodyAction;
|
|
171
|
+
CardBodyActionComponent.Arrow = CardBodyActionArrow;
|
|
137
172
|
var CardBodyComponent = CardBody;
|
|
138
|
-
CardBodyComponent.
|
|
139
|
-
CardBodyComponent.Title = CardBodyTitle;
|
|
173
|
+
CardBodyComponent.Header = CardBodyHeaderComponent;
|
|
140
174
|
CardBodyComponent.Description = CardBodyDescription;
|
|
141
|
-
CardBodyComponent.Action =
|
|
175
|
+
CardBodyComponent.Action = CardBodyActionComponent;
|
|
142
176
|
var CardComponent = Card;
|
|
143
177
|
CardComponent.Media = CardMediaComponent;
|
|
144
178
|
CardComponent.Body = CardBodyComponent;
|
|
145
179
|
// Annotate the CommonJS export names for ESM import in node:
|
|
146
180
|
0 && (module.exports = {
|
|
147
|
-
Card
|
|
148
|
-
CardBody,
|
|
149
|
-
CardBodyAction,
|
|
150
|
-
CardBodyDescription,
|
|
151
|
-
CardBodyOverline,
|
|
152
|
-
CardBodyTitle,
|
|
153
|
-
CardMedia,
|
|
154
|
-
CardMediaImg
|
|
181
|
+
Card
|
|
155
182
|
});
|
package/dist/card/index.mjs
CHANGED
|
@@ -1,23 +1,8 @@
|
|
|
1
1
|
import {
|
|
2
2
|
CardComponent
|
|
3
|
-
} from "../chunk-
|
|
4
|
-
import
|
|
5
|
-
CardBody,
|
|
6
|
-
CardBodyAction,
|
|
7
|
-
CardBodyDescription,
|
|
8
|
-
CardBodyOverline,
|
|
9
|
-
CardBodyTitle,
|
|
10
|
-
CardMedia,
|
|
11
|
-
CardMediaImg
|
|
12
|
-
} from "../chunk-LWMZV362.mjs";
|
|
3
|
+
} from "../chunk-KOXEIUCU.mjs";
|
|
4
|
+
import "../chunk-4XHA3NGO.mjs";
|
|
13
5
|
import "../chunk-FUJQIYOF.mjs";
|
|
14
6
|
export {
|
|
15
|
-
CardComponent as Card
|
|
16
|
-
CardBody,
|
|
17
|
-
CardBodyAction,
|
|
18
|
-
CardBodyDescription,
|
|
19
|
-
CardBodyOverline,
|
|
20
|
-
CardBodyTitle,
|
|
21
|
-
CardMedia,
|
|
22
|
-
CardMediaImg
|
|
7
|
+
CardComponent as Card
|
|
23
8
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Modal,
|
|
3
3
|
ModalHeader
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-OB6UNSKV.mjs";
|
|
5
5
|
|
|
6
6
|
// src/modal/index.tsx
|
|
7
7
|
import "@postenbring/hedwig-css/dist/fonts.css";
|
|
@@ -11,7 +11,6 @@ import "@postenbring/hedwig-css/dist/box.css";
|
|
|
11
11
|
import "@postenbring/hedwig-css/dist/modal.css";
|
|
12
12
|
var ModalComponent = Modal;
|
|
13
13
|
ModalComponent.Header = ModalHeader;
|
|
14
|
-
ModalComponent.Header.displayName = "Modal";
|
|
15
14
|
|
|
16
15
|
export {
|
|
17
16
|
ModalComponent
|
|
@@ -1,20 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
__objRest,
|
|
3
|
-
__spreadProps,
|
|
4
3
|
__spreadValues
|
|
5
4
|
} from "./chunk-FUJQIYOF.mjs";
|
|
6
5
|
|
|
7
6
|
// src/list/description-list.tsx
|
|
8
7
|
import { clsx } from "@postenbring/hedwig-css/typed-classname/index.mjs";
|
|
9
8
|
import { jsx } from "react/jsx-runtime";
|
|
10
|
-
function DescriptionDetails(_a) {
|
|
11
|
-
var _b = _a, { children } = _b, rest = __objRest(_b, ["children"]);
|
|
12
|
-
return /* @__PURE__ */ jsx("dd", __spreadProps(__spreadValues({}, rest), { children }));
|
|
13
|
-
}
|
|
14
|
-
function DescriptionTerm(_a) {
|
|
15
|
-
var _b = _a, { children } = _b, rest = __objRest(_b, ["children"]);
|
|
16
|
-
return /* @__PURE__ */ jsx("dt", __spreadProps(__spreadValues({}, rest), { children }));
|
|
17
|
-
}
|
|
18
9
|
function DescriptionList(_a) {
|
|
19
10
|
var _b = _a, {
|
|
20
11
|
variant = "vertical",
|
|
@@ -37,13 +28,7 @@ function DescriptionList(_a) {
|
|
|
37
28
|
);
|
|
38
29
|
}
|
|
39
30
|
DescriptionList.displayName = "DescriptionList";
|
|
40
|
-
DescriptionTerm.displayName = "DescriptionTerm";
|
|
41
|
-
DescriptionDetails.displayName = "DescriptionDetails";
|
|
42
|
-
var description_list_default = DescriptionList;
|
|
43
31
|
|
|
44
32
|
export {
|
|
45
|
-
|
|
46
|
-
DescriptionTerm,
|
|
47
|
-
DescriptionList,
|
|
48
|
-
description_list_default
|
|
33
|
+
DescriptionList
|
|
49
34
|
};
|
|
@@ -10,7 +10,7 @@ import { clsx } from "@postenbring/hedwig-css/typed-classname/index.mjs";
|
|
|
10
10
|
import { jsx } from "react/jsx-runtime";
|
|
11
11
|
var Card = forwardRef(
|
|
12
12
|
(_a, ref) => {
|
|
13
|
-
var _b = _a, { as: Component = "
|
|
13
|
+
var _b = _a, { as: Component = "section", className, children } = _b, rest = __objRest(_b, ["as", "className", "children"]);
|
|
14
14
|
return /* @__PURE__ */ jsx(Component, __spreadProps(__spreadValues({}, rest), { className: clsx("hds-card", className), ref, children }));
|
|
15
15
|
}
|
|
16
16
|
);
|
|
@@ -42,20 +42,46 @@ var CardBody = forwardRef(
|
|
|
42
42
|
}
|
|
43
43
|
);
|
|
44
44
|
CardBody.displayName = "Card.Body";
|
|
45
|
-
var
|
|
45
|
+
var CardBodyHeader = forwardRef(
|
|
46
46
|
(_a, ref) => {
|
|
47
|
-
var _b = _a, { as: Component = "
|
|
48
|
-
return /* @__PURE__ */ jsx(
|
|
47
|
+
var _b = _a, { as: Component = "h3", className, children } = _b, rest = __objRest(_b, ["as", "className", "children"]);
|
|
48
|
+
return /* @__PURE__ */ jsx(
|
|
49
|
+
Component,
|
|
50
|
+
__spreadProps(__spreadValues({}, rest), {
|
|
51
|
+
className: clsx("hds-card__body-header", className),
|
|
52
|
+
ref,
|
|
53
|
+
children
|
|
54
|
+
})
|
|
55
|
+
);
|
|
49
56
|
}
|
|
50
57
|
);
|
|
51
|
-
|
|
52
|
-
var
|
|
58
|
+
CardBodyHeader.displayName = "Card.Body.Header";
|
|
59
|
+
var CardBodyHeaderOverline = forwardRef((_a, ref) => {
|
|
60
|
+
var _b = _a, { as: Component = "span", className, children } = _b, rest = __objRest(_b, ["as", "className", "children"]);
|
|
61
|
+
return /* @__PURE__ */ jsx(
|
|
62
|
+
Component,
|
|
63
|
+
__spreadProps(__spreadValues({}, rest), {
|
|
64
|
+
className: clsx("hds-card__body-header-overline", className),
|
|
65
|
+
ref,
|
|
66
|
+
children
|
|
67
|
+
})
|
|
68
|
+
);
|
|
69
|
+
});
|
|
70
|
+
CardBodyHeaderOverline.displayName = "Card.Body.Header.Overline";
|
|
71
|
+
var CardBodyHeaderTitle = forwardRef(
|
|
53
72
|
(_a, ref) => {
|
|
54
|
-
var _b = _a, { as: Component = "
|
|
55
|
-
return /* @__PURE__ */ jsx(
|
|
73
|
+
var _b = _a, { as: Component = "span", className, children } = _b, rest = __objRest(_b, ["as", "className", "children"]);
|
|
74
|
+
return /* @__PURE__ */ jsx(
|
|
75
|
+
Component,
|
|
76
|
+
__spreadProps(__spreadValues({}, rest), {
|
|
77
|
+
className: clsx("hds-card__body-header-title", className),
|
|
78
|
+
ref,
|
|
79
|
+
children
|
|
80
|
+
})
|
|
81
|
+
);
|
|
56
82
|
}
|
|
57
83
|
);
|
|
58
|
-
|
|
84
|
+
CardBodyHeaderTitle.displayName = "Card.Body.Header.Title";
|
|
59
85
|
var CardBodyDescription = forwardRef(
|
|
60
86
|
(_a, ref) => {
|
|
61
87
|
var _b = _a, { as: Component = "p", className, children } = _b, rest = __objRest(_b, ["as", "className", "children"]);
|
|
@@ -70,14 +96,27 @@ var CardBodyAction = forwardRef(
|
|
|
70
96
|
}
|
|
71
97
|
);
|
|
72
98
|
CardBodyAction.displayName = "Card.Body.Action";
|
|
99
|
+
var CardBodyActionArrow = forwardRef((_a, ref) => {
|
|
100
|
+
var _b = _a, { as: Component = "a", className } = _b, rest = __objRest(_b, ["as", "className"]);
|
|
101
|
+
return /* @__PURE__ */ jsx(
|
|
102
|
+
Component,
|
|
103
|
+
__spreadProps(__spreadValues({}, rest), {
|
|
104
|
+
className: clsx("hds-card__body-action-arrow", className),
|
|
105
|
+
ref
|
|
106
|
+
})
|
|
107
|
+
);
|
|
108
|
+
});
|
|
109
|
+
CardBodyActionArrow.displayName = "Card.Body.Action.Arrow";
|
|
73
110
|
|
|
74
111
|
export {
|
|
75
112
|
Card,
|
|
76
113
|
CardMedia,
|
|
77
114
|
CardMediaImg,
|
|
78
115
|
CardBody,
|
|
79
|
-
|
|
80
|
-
|
|
116
|
+
CardBodyHeader,
|
|
117
|
+
CardBodyHeaderOverline,
|
|
118
|
+
CardBodyHeaderTitle,
|
|
81
119
|
CardBodyDescription,
|
|
82
|
-
CardBodyAction
|
|
120
|
+
CardBodyAction,
|
|
121
|
+
CardBodyActionArrow
|
|
83
122
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
} from "./chunk-
|
|
2
|
+
BoxComponent
|
|
3
|
+
} from "./chunk-E2GAXTBX.mjs";
|
|
4
4
|
import {
|
|
5
5
|
__objRest,
|
|
6
6
|
__spreadProps,
|
|
@@ -15,7 +15,7 @@ var WarningBanner = forwardRef(
|
|
|
15
15
|
(_a, ref) => {
|
|
16
16
|
var _b = _a, { title, description, className } = _b, rest = __objRest(_b, ["title", "description", "className"]);
|
|
17
17
|
const expandable = !!description;
|
|
18
|
-
return /* @__PURE__ */ jsxs(
|
|
18
|
+
return /* @__PURE__ */ jsxs(BoxComponent, __spreadProps(__spreadValues({}, rest), { className: clsx("hds-warning-banner", className), ref, children: [
|
|
19
19
|
/* @__PURE__ */ jsx(WarningBannerTitle, { variant: expandable ? "expandable" : "default", children: title }),
|
|
20
20
|
expandable ? /* @__PURE__ */ jsx(WarningBannerDescription, { children: description }) : null
|
|
21
21
|
] }));
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import {
|
|
2
|
+
TabsContent,
|
|
3
|
+
TabsContents
|
|
4
|
+
} from "./chunk-GRO36EUL.mjs";
|
|
5
|
+
import {
|
|
6
|
+
Tab,
|
|
7
|
+
TabsList
|
|
8
|
+
} from "./chunk-G3JPULGO.mjs";
|
|
9
|
+
import {
|
|
10
|
+
Tabs
|
|
11
|
+
} from "./chunk-ZLCNSHLT.mjs";
|
|
12
|
+
|
|
13
|
+
// src/tabs/index.tsx
|
|
14
|
+
import "@postenbring/hedwig-css/dist/fonts.css";
|
|
15
|
+
import "@postenbring/hedwig-css/dist/tokens.css";
|
|
16
|
+
import "@postenbring/hedwig-css/dist/body.css";
|
|
17
|
+
import "@postenbring/hedwig-css/dist/tabs.css";
|
|
18
|
+
var TabsComponent = Tabs;
|
|
19
|
+
TabsComponent.List = TabsList;
|
|
20
|
+
TabsComponent.Tab = Tab;
|
|
21
|
+
TabsComponent.Contents = TabsContents;
|
|
22
|
+
TabsComponent.Content = TabsContent;
|
|
23
|
+
|
|
24
|
+
export {
|
|
25
|
+
TabsComponent
|
|
26
|
+
};
|
|
@@ -1,5 +1,16 @@
|
|
|
1
|
+
import {
|
|
2
|
+
Box,
|
|
3
|
+
BoxCloseButton
|
|
4
|
+
} from "./chunk-WTMT5WCJ.mjs";
|
|
5
|
+
|
|
1
6
|
// src/box/index.tsx
|
|
2
7
|
import "@postenbring/hedwig-css/dist/fonts.css";
|
|
3
8
|
import "@postenbring/hedwig-css/dist/tokens.css";
|
|
4
9
|
import "@postenbring/hedwig-css/dist/body.css";
|
|
5
10
|
import "@postenbring/hedwig-css/dist/box.css";
|
|
11
|
+
var BoxComponent = Box;
|
|
12
|
+
BoxComponent.CloseButton = BoxCloseButton;
|
|
13
|
+
|
|
14
|
+
export {
|
|
15
|
+
BoxComponent
|
|
16
|
+
};
|
|
@@ -14,7 +14,7 @@ import {
|
|
|
14
14
|
import { forwardRef, useContext, useRef } from "react";
|
|
15
15
|
import { clsx } from "@postenbring/hedwig-css/typed-classname/index.mjs";
|
|
16
16
|
import { jsx } from "react/jsx-runtime";
|
|
17
|
-
function
|
|
17
|
+
function TabsList(_a) {
|
|
18
18
|
var _b = _a, { children, direction = "horizontal", className } = _b, rest = __objRest(_b, ["children", "direction", "className"]);
|
|
19
19
|
const tabsListRef = useRef(null);
|
|
20
20
|
const { width: tabsWidth } = useResize(tabsListRef);
|
|
@@ -40,7 +40,7 @@ function TabList(_a) {
|
|
|
40
40
|
})
|
|
41
41
|
);
|
|
42
42
|
}
|
|
43
|
-
|
|
43
|
+
TabsList.displayName = "Tabs.List";
|
|
44
44
|
var Tab = forwardRef(
|
|
45
45
|
(_a, ref) => {
|
|
46
46
|
var _b = _a, { as: Component = "button", children, tabId, className, onClick } = _b, rest = __objRest(_b, ["as", "children", "tabId", "className", "onClick"]);
|
|
@@ -71,9 +71,9 @@ var Tab = forwardRef(
|
|
|
71
71
|
);
|
|
72
72
|
}
|
|
73
73
|
);
|
|
74
|
-
Tab.displayName = "Tab";
|
|
74
|
+
Tab.displayName = "Tabs.Tab";
|
|
75
75
|
|
|
76
76
|
export {
|
|
77
|
-
|
|
77
|
+
TabsList,
|
|
78
78
|
Tab
|
|
79
79
|
};
|
|
@@ -11,17 +11,17 @@ import {
|
|
|
11
11
|
import { forwardRef, useContext } from "react";
|
|
12
12
|
import { clsx } from "@postenbring/hedwig-css/typed-classname/index.mjs";
|
|
13
13
|
import { jsx } from "react/jsx-runtime";
|
|
14
|
-
function
|
|
14
|
+
function TabsContents(_a) {
|
|
15
15
|
var _b = _a, { children } = _b, rest = __objRest(_b, ["children"]);
|
|
16
16
|
return /* @__PURE__ */ jsx("div", __spreadProps(__spreadValues({ className: clsx("hds-tabs--contents") }, rest), { children }));
|
|
17
17
|
}
|
|
18
|
-
|
|
19
|
-
var
|
|
18
|
+
TabsContents.displayName = "Tabs.Contents";
|
|
19
|
+
var TabsContent = forwardRef(
|
|
20
20
|
(_a, ref) => {
|
|
21
21
|
var _b = _a, { as: Component = "div", forTabId, children } = _b, rest = __objRest(_b, ["as", "forTabId", "children"]);
|
|
22
22
|
const context = useContext(TabsContext);
|
|
23
23
|
if (!context.mounted) {
|
|
24
|
-
throw new Error("Context required. Did you use <
|
|
24
|
+
throw new Error("Context required. Did you use <Tabs.Content /> outside of <Tabs/>?");
|
|
25
25
|
}
|
|
26
26
|
if (context.activeTabId === forTabId) {
|
|
27
27
|
return /* @__PURE__ */ jsx(Component, __spreadProps(__spreadValues({}, rest), { ref, children }));
|
|
@@ -29,9 +29,9 @@ var TabContent = forwardRef(
|
|
|
29
29
|
return null;
|
|
30
30
|
}
|
|
31
31
|
);
|
|
32
|
-
|
|
32
|
+
TabsContent.displayName = "Tabs.Content";
|
|
33
33
|
|
|
34
34
|
export {
|
|
35
|
-
|
|
36
|
-
|
|
35
|
+
TabsContents,
|
|
36
|
+
TabsContent
|
|
37
37
|
};
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
AccordionContent
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-JKZ3OR7W.mjs";
|
|
4
4
|
import {
|
|
5
5
|
AccordionItem
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-XAIX3HTW.mjs";
|
|
7
7
|
import {
|
|
8
8
|
AccordionTrigger
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-4WI2BHHB.mjs";
|
|
10
10
|
import {
|
|
11
11
|
Accordion
|
|
12
12
|
} from "./chunk-GMGUONH5.mjs";
|
|
@@ -20,9 +20,6 @@ var AccordionComponent = Accordion;
|
|
|
20
20
|
AccordionComponent.Item = AccordionItem;
|
|
21
21
|
AccordionComponent.Trigger = AccordionTrigger;
|
|
22
22
|
AccordionComponent.Content = AccordionContent;
|
|
23
|
-
AccordionComponent.Item.displayName = "Accordion.Item";
|
|
24
|
-
AccordionComponent.Trigger.displayName = "Accordion.Trigger";
|
|
25
|
-
AccordionComponent.Content.displayName = "Accordion.Content";
|
|
26
23
|
|
|
27
24
|
export {
|
|
28
25
|
AccordionComponent
|
|
@@ -2,12 +2,14 @@ import {
|
|
|
2
2
|
Card,
|
|
3
3
|
CardBody,
|
|
4
4
|
CardBodyAction,
|
|
5
|
+
CardBodyActionArrow,
|
|
5
6
|
CardBodyDescription,
|
|
6
|
-
|
|
7
|
-
|
|
7
|
+
CardBodyHeader,
|
|
8
|
+
CardBodyHeaderOverline,
|
|
9
|
+
CardBodyHeaderTitle,
|
|
8
10
|
CardMedia,
|
|
9
11
|
CardMediaImg
|
|
10
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-4XHA3NGO.mjs";
|
|
11
13
|
|
|
12
14
|
// src/card/index.tsx
|
|
13
15
|
import "@postenbring/hedwig-css/dist/fonts.css";
|
|
@@ -16,11 +18,15 @@ import "@postenbring/hedwig-css/dist/body.css";
|
|
|
16
18
|
import "@postenbring/hedwig-css/dist/card.css";
|
|
17
19
|
var CardMediaComponent = CardMedia;
|
|
18
20
|
CardMediaComponent.Img = CardMediaImg;
|
|
21
|
+
var CardBodyHeaderComponent = CardBodyHeader;
|
|
22
|
+
CardBodyHeaderComponent.Overline = CardBodyHeaderOverline;
|
|
23
|
+
CardBodyHeaderComponent.Title = CardBodyHeaderTitle;
|
|
24
|
+
var CardBodyActionComponent = CardBodyAction;
|
|
25
|
+
CardBodyActionComponent.Arrow = CardBodyActionArrow;
|
|
19
26
|
var CardBodyComponent = CardBody;
|
|
20
|
-
CardBodyComponent.
|
|
21
|
-
CardBodyComponent.Title = CardBodyTitle;
|
|
27
|
+
CardBodyComponent.Header = CardBodyHeaderComponent;
|
|
22
28
|
CardBodyComponent.Description = CardBodyDescription;
|
|
23
|
-
CardBodyComponent.Action =
|
|
29
|
+
CardBodyComponent.Action = CardBodyActionComponent;
|
|
24
30
|
var CardComponent = Card;
|
|
25
31
|
CardComponent.Media = CardMediaComponent;
|
|
26
32
|
CardComponent.Body = CardBodyComponent;
|
|
@@ -2,7 +2,7 @@ import {
|
|
|
2
2
|
Message,
|
|
3
3
|
MessageDescription,
|
|
4
4
|
MessageTitle
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-WYPGZY5Q.mjs";
|
|
6
6
|
|
|
7
7
|
// src/message/index.tsx
|
|
8
8
|
import "@postenbring/hedwig-css/dist/fonts.css";
|
|
@@ -13,8 +13,6 @@ import "@postenbring/hedwig-css/dist/message.css";
|
|
|
13
13
|
var MessageComponent = Message;
|
|
14
14
|
MessageComponent.Title = MessageTitle;
|
|
15
15
|
MessageComponent.Description = MessageDescription;
|
|
16
|
-
MessageComponent.Title.displayName = "Message.Title";
|
|
17
|
-
MessageComponent.Description.displayName = "Message.Description";
|
|
18
16
|
|
|
19
17
|
export {
|
|
20
18
|
MessageComponent
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
} from "./chunk-FSBY3NKV.mjs";
|
|
4
4
|
import {
|
|
5
5
|
Box
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-WTMT5WCJ.mjs";
|
|
7
7
|
import {
|
|
8
8
|
__objRest,
|
|
9
9
|
__spreadProps,
|
|
@@ -52,7 +52,7 @@ var ModalHeader = forwardRef(
|
|
|
52
52
|
);
|
|
53
53
|
}
|
|
54
54
|
);
|
|
55
|
-
ModalHeader.displayName = "
|
|
55
|
+
ModalHeader.displayName = "Modal.Header";
|
|
56
56
|
|
|
57
57
|
export {
|
|
58
58
|
Modal,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Box
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-WTMT5WCJ.mjs";
|
|
4
4
|
import {
|
|
5
5
|
__objRest,
|
|
6
6
|
__spreadProps,
|
|
@@ -41,7 +41,7 @@ var MessageTitle = forwardRef(
|
|
|
41
41
|
);
|
|
42
42
|
}
|
|
43
43
|
);
|
|
44
|
-
MessageTitle.displayName = "
|
|
44
|
+
MessageTitle.displayName = "Message.Title";
|
|
45
45
|
var MessageDescription = forwardRef(
|
|
46
46
|
(_a, ref) => {
|
|
47
47
|
var _b = _a, { as: Component = "p", className } = _b, rest = __objRest(_b, ["as", "className"]);
|
|
@@ -54,7 +54,7 @@ var MessageDescription = forwardRef(
|
|
|
54
54
|
);
|
|
55
55
|
}
|
|
56
56
|
);
|
|
57
|
-
MessageDescription.displayName = "
|
|
57
|
+
MessageDescription.displayName = "Message.Description";
|
|
58
58
|
|
|
59
59
|
export {
|
|
60
60
|
Message,
|
package/dist/index.d.mts
CHANGED
|
@@ -1,30 +1,32 @@
|
|
|
1
1
|
export { Accordion } from './accordion/index.mjs';
|
|
2
2
|
export { Badge, BadgeProps, DarkBadge, WarningBadge, WhiteBadge } from './badge/badge.mjs';
|
|
3
|
-
export { Box
|
|
3
|
+
export { Box } from './box/index.mjs';
|
|
4
4
|
export { Breadcrumbs, BreadcrumbsProps } from './breadcrumb/breadcrumb.mjs';
|
|
5
5
|
export { BaseButton, ButtonProps, PrimaryButton, SecondaryButton } from './button/button.mjs';
|
|
6
6
|
export { Card } from './card/index.mjs';
|
|
7
7
|
export { Input, InputProps } from './input/input.mjs';
|
|
8
8
|
export { Link, LinkProps } from './link/link.mjs';
|
|
9
|
-
export {
|
|
9
|
+
export { DescriptionList, DescriptionListProps } from './list/description-list.mjs';
|
|
10
10
|
export { ListProps, OrderedList, UnorderedList } from './list/list.mjs';
|
|
11
11
|
export { LinkList, LinkListProps } from './list/link-list.mjs';
|
|
12
12
|
export { Message } from './message/index.mjs';
|
|
13
13
|
export { Modal } from './modal/index.mjs';
|
|
14
14
|
export { Select, SelectProps } from './select/select.mjs';
|
|
15
|
-
export { Tabs
|
|
16
|
-
export { Tab, TabList, TabListProps, TabProps } from './tabs/tabs-list.mjs';
|
|
17
|
-
export { TabContent, TabContentProps, TabContents, TabContentsProps } from './tabs/tabs-content.mjs';
|
|
15
|
+
export { Tabs } from './tabs/index.mjs';
|
|
18
16
|
export { Textarea, TextareaProps } from './textarea/textarea.mjs';
|
|
19
17
|
export { WarningBanner, WarningBannerProps } from './warning-banner/warning-banner.mjs';
|
|
20
|
-
export { Container } from './layout/container/container.mjs';
|
|
21
|
-
export {
|
|
22
|
-
export {
|
|
23
|
-
export {
|
|
24
|
-
export {
|
|
25
|
-
export {
|
|
26
|
-
export {
|
|
18
|
+
export { Container, ContainerProps } from './layout/container/container.mjs';
|
|
19
|
+
export { AccordionProps } from './accordion/accordion.mjs';
|
|
20
|
+
export { AccordionItem, AccordionItemChildrenType, AccordionItemProps } from './accordion/accordion-item.mjs';
|
|
21
|
+
export { AccordionTrigger, AccordionTriggerProps } from './accordion/accordion-trigger.mjs';
|
|
22
|
+
export { AccordionContent, AccordionContentProps } from './accordion/accordion-content.mjs';
|
|
23
|
+
export { BoxCloseButton, BoxCloseButtonProps, BoxProps } from './box/box.mjs';
|
|
24
|
+
export { CardBaseProps, CardBody, CardBodyAction, CardBodyActionArrow, CardBodyDescription, CardBodyHeader, CardBodyHeaderOverline, CardBodyHeaderTitle, CardImageMediaProps, CardMedia, CardMediaImg } from './card/card.mjs';
|
|
25
|
+
export { ModalHeader, ModalProps } from './modal/modal.mjs';
|
|
26
|
+
export { TabsProps } from './tabs/tabs.mjs';
|
|
27
|
+
export { Tab, TabListProps, TabProps, TabsList } from './tabs/tabs-list.mjs';
|
|
28
|
+
export { TabContentsProps, TabsContent, TabsContentProps, TabsContents } from './tabs/tabs-content.mjs';
|
|
27
29
|
import 'react';
|
|
28
|
-
import './accordion/accordion.mjs';
|
|
29
|
-
import './utils-BfZsjuFH.mjs';
|
|
30
30
|
import 'react/jsx-runtime';
|
|
31
|
+
import './utils-BfZsjuFH.mjs';
|
|
32
|
+
import './message/message.mjs';
|