@postenbring/hedwig-react 0.0.43 → 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.
- package/dist/card/card.js +17 -3
- package/dist/card/card.mjs +1 -1
- package/dist/card/index.js +17 -3
- package/dist/card/index.mjs +2 -2
- package/dist/{chunk-KOXEIUCU.mjs → chunk-E5575U2F.mjs} +1 -1
- package/dist/chunk-FDAXJJHU.mjs +53 -0
- package/dist/{chunk-4XHA3NGO.mjs → chunk-LICHSDMT.mjs} +17 -3
- package/dist/{chunk-CP4CKVIA.mjs → chunk-T5W5SKZP.mjs} +5 -1
- package/dist/chunk-Y4KHO6LN.mjs +65 -0
- package/dist/index.js +17 -3
- package/dist/index.mjs +2 -2
- package/dist/navbar/index.d.mts +4 -2
- package/dist/navbar/index.d.ts +4 -2
- package/dist/navbar/index.js +29 -1
- package/dist/navbar/index.mjs +7 -3
- package/dist/navbar/navbar-expandable-menu.js +5 -1
- package/dist/navbar/navbar-expandable-menu.mjs +1 -1
- package/dist/navbar/navbar.d.mts +10 -1
- package/dist/navbar/navbar.d.ts +10 -1
- package/dist/navbar/navbar.js +28 -2
- package/dist/navbar/navbar.mjs +7 -3
- package/dist/typography/index.d.mts +69 -0
- package/dist/typography/index.d.ts +69 -0
- package/dist/typography/index.js +255 -0
- package/dist/typography/index.mjs +110 -0
- package/dist/typography/typography.d.mts +18 -0
- package/dist/typography/typography.d.ts +18 -0
- package/dist/typography/typography.js +112 -0
- package/dist/typography/typography.mjs +7 -0
- package/package.json +1 -1
- package/dist/chunk-FB5VUC62.mjs +0 -29
package/dist/card/card.js
CHANGED
|
@@ -141,19 +141,33 @@ CardBodyHeaderTitle.displayName = "Card.Body.Header.Title";
|
|
|
141
141
|
var CardBodyDescription = (0, import_react.forwardRef)(
|
|
142
142
|
(_a, ref) => {
|
|
143
143
|
var _b = _a, { as: Component = "p", className, children } = _b, rest = __objRest(_b, ["as", "className", "children"]);
|
|
144
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
144
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
145
|
+
Component,
|
|
146
|
+
__spreadProps(__spreadValues({}, rest), {
|
|
147
|
+
className: (0, import_typed_classname.clsx)("hds-card__body-description", className),
|
|
148
|
+
ref,
|
|
149
|
+
children
|
|
150
|
+
})
|
|
151
|
+
);
|
|
145
152
|
}
|
|
146
153
|
);
|
|
147
154
|
CardBodyDescription.displayName = "Card.Body.Description";
|
|
148
155
|
var CardBodyAction = (0, import_react.forwardRef)(
|
|
149
156
|
(_a, ref) => {
|
|
150
157
|
var _b = _a, { as: Component = "div", className, children } = _b, rest = __objRest(_b, ["as", "className", "children"]);
|
|
151
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
158
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
159
|
+
Component,
|
|
160
|
+
__spreadProps(__spreadValues({}, rest), {
|
|
161
|
+
className: (0, import_typed_classname.clsx)("hds-card__body-action", className),
|
|
162
|
+
ref,
|
|
163
|
+
children
|
|
164
|
+
})
|
|
165
|
+
);
|
|
152
166
|
}
|
|
153
167
|
);
|
|
154
168
|
CardBodyAction.displayName = "Card.Body.Action";
|
|
155
169
|
var CardBodyActionArrow = (0, import_react.forwardRef)((_a, ref) => {
|
|
156
|
-
var _b = _a, { as: Component = "
|
|
170
|
+
var _b = _a, { as: Component = "span", className } = _b, rest = __objRest(_b, ["as", "className"]);
|
|
157
171
|
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
158
172
|
Component,
|
|
159
173
|
__spreadProps(__spreadValues({}, rest), {
|
package/dist/card/card.mjs
CHANGED
package/dist/card/index.js
CHANGED
|
@@ -138,19 +138,33 @@ CardBodyHeaderTitle.displayName = "Card.Body.Header.Title";
|
|
|
138
138
|
var CardBodyDescription = (0, import_react.forwardRef)(
|
|
139
139
|
(_a, ref) => {
|
|
140
140
|
var _b = _a, { as: Component = "p", className, children } = _b, rest = __objRest(_b, ["as", "className", "children"]);
|
|
141
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
141
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
142
|
+
Component,
|
|
143
|
+
__spreadProps(__spreadValues({}, rest), {
|
|
144
|
+
className: (0, import_typed_classname.clsx)("hds-card__body-description", className),
|
|
145
|
+
ref,
|
|
146
|
+
children
|
|
147
|
+
})
|
|
148
|
+
);
|
|
142
149
|
}
|
|
143
150
|
);
|
|
144
151
|
CardBodyDescription.displayName = "Card.Body.Description";
|
|
145
152
|
var CardBodyAction = (0, import_react.forwardRef)(
|
|
146
153
|
(_a, ref) => {
|
|
147
154
|
var _b = _a, { as: Component = "div", className, children } = _b, rest = __objRest(_b, ["as", "className", "children"]);
|
|
148
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
155
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
156
|
+
Component,
|
|
157
|
+
__spreadProps(__spreadValues({}, rest), {
|
|
158
|
+
className: (0, import_typed_classname.clsx)("hds-card__body-action", className),
|
|
159
|
+
ref,
|
|
160
|
+
children
|
|
161
|
+
})
|
|
162
|
+
);
|
|
149
163
|
}
|
|
150
164
|
);
|
|
151
165
|
CardBodyAction.displayName = "Card.Body.Action";
|
|
152
166
|
var CardBodyActionArrow = (0, import_react.forwardRef)((_a, ref) => {
|
|
153
|
-
var _b = _a, { as: Component = "
|
|
167
|
+
var _b = _a, { as: Component = "span", className } = _b, rest = __objRest(_b, ["as", "className"]);
|
|
154
168
|
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
155
169
|
Component,
|
|
156
170
|
__spreadProps(__spreadValues({}, rest), {
|
package/dist/card/index.mjs
CHANGED
|
@@ -0,0 +1,53 @@
|
|
|
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, jsxs } 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
|
+
var NavbarButton = forwardRef(
|
|
26
|
+
(_a, ref) => {
|
|
27
|
+
var _b = _a, { as: Component = "button", children, icon, className } = _b, rest = __objRest(_b, ["as", "children", "icon", "className"]);
|
|
28
|
+
return /* @__PURE__ */ jsxs(Component, __spreadProps(__spreadValues({ className: clsx("hds-navbar__button", className), ref }, rest), { children: [
|
|
29
|
+
children,
|
|
30
|
+
" ",
|
|
31
|
+
icon
|
|
32
|
+
] }));
|
|
33
|
+
}
|
|
34
|
+
);
|
|
35
|
+
NavbarButton.displayName = "Navbar.Button";
|
|
36
|
+
var NavbarNavigation = forwardRef((_a, ref) => {
|
|
37
|
+
var _b = _a, { as: Component = "div", className } = _b, rest = __objRest(_b, ["as", "className"]);
|
|
38
|
+
return /* @__PURE__ */ jsx(
|
|
39
|
+
Component,
|
|
40
|
+
__spreadValues({
|
|
41
|
+
className: clsx("hds-navbar__navigation", className),
|
|
42
|
+
ref
|
|
43
|
+
}, rest)
|
|
44
|
+
);
|
|
45
|
+
});
|
|
46
|
+
NavbarNavigation.displayName = "Navbar.Navigation";
|
|
47
|
+
|
|
48
|
+
export {
|
|
49
|
+
Navbar,
|
|
50
|
+
NavbarLogo,
|
|
51
|
+
NavbarButton,
|
|
52
|
+
NavbarNavigation
|
|
53
|
+
};
|
|
@@ -85,19 +85,33 @@ CardBodyHeaderTitle.displayName = "Card.Body.Header.Title";
|
|
|
85
85
|
var CardBodyDescription = forwardRef(
|
|
86
86
|
(_a, ref) => {
|
|
87
87
|
var _b = _a, { as: Component = "p", className, children } = _b, rest = __objRest(_b, ["as", "className", "children"]);
|
|
88
|
-
return /* @__PURE__ */ jsx(
|
|
88
|
+
return /* @__PURE__ */ jsx(
|
|
89
|
+
Component,
|
|
90
|
+
__spreadProps(__spreadValues({}, rest), {
|
|
91
|
+
className: clsx("hds-card__body-description", className),
|
|
92
|
+
ref,
|
|
93
|
+
children
|
|
94
|
+
})
|
|
95
|
+
);
|
|
89
96
|
}
|
|
90
97
|
);
|
|
91
98
|
CardBodyDescription.displayName = "Card.Body.Description";
|
|
92
99
|
var CardBodyAction = forwardRef(
|
|
93
100
|
(_a, ref) => {
|
|
94
101
|
var _b = _a, { as: Component = "div", className, children } = _b, rest = __objRest(_b, ["as", "className", "children"]);
|
|
95
|
-
return /* @__PURE__ */ jsx(
|
|
102
|
+
return /* @__PURE__ */ jsx(
|
|
103
|
+
Component,
|
|
104
|
+
__spreadProps(__spreadValues({}, rest), {
|
|
105
|
+
className: clsx("hds-card__body-action", className),
|
|
106
|
+
ref,
|
|
107
|
+
children
|
|
108
|
+
})
|
|
109
|
+
);
|
|
96
110
|
}
|
|
97
111
|
);
|
|
98
112
|
CardBodyAction.displayName = "Card.Body.Action";
|
|
99
113
|
var CardBodyActionArrow = forwardRef((_a, ref) => {
|
|
100
|
-
var _b = _a, { as: Component = "
|
|
114
|
+
var _b = _a, { as: Component = "span", className } = _b, rest = __objRest(_b, ["as", "className"]);
|
|
101
115
|
return /* @__PURE__ */ jsx(
|
|
102
116
|
Component,
|
|
103
117
|
__spreadProps(__spreadValues({}, rest), {
|
|
@@ -42,7 +42,11 @@ var NavbarExpandableMenuTrigger = forwardRef(
|
|
|
42
42
|
return /* @__PURE__ */ jsx(
|
|
43
43
|
"button",
|
|
44
44
|
__spreadProps(__spreadValues({
|
|
45
|
-
className: clsx(
|
|
45
|
+
className: clsx(
|
|
46
|
+
"hds-navbar__expandable-menu-trigger",
|
|
47
|
+
"hds-navbar__button",
|
|
48
|
+
className
|
|
49
|
+
),
|
|
46
50
|
onClick: toggleOpen,
|
|
47
51
|
ref,
|
|
48
52
|
title,
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import {
|
|
2
|
+
__objRest,
|
|
3
|
+
__spreadProps,
|
|
4
|
+
__spreadValues
|
|
5
|
+
} from "./chunk-FUJQIYOF.mjs";
|
|
6
|
+
|
|
7
|
+
// src/typography/typography.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 defaultHTMLTag = {
|
|
12
|
+
"h1-display": "h1",
|
|
13
|
+
h1: "h1",
|
|
14
|
+
h2: "h2",
|
|
15
|
+
h3: "h3",
|
|
16
|
+
"h3-title": "h3",
|
|
17
|
+
body: "p",
|
|
18
|
+
"body-title": "p",
|
|
19
|
+
"body-small": "p",
|
|
20
|
+
"body-small-title": "p",
|
|
21
|
+
technical: "p",
|
|
22
|
+
"technical-title": "p",
|
|
23
|
+
caption: "p",
|
|
24
|
+
"caption-title": "p"
|
|
25
|
+
};
|
|
26
|
+
var Typography = forwardRef(
|
|
27
|
+
(_a, ref) => {
|
|
28
|
+
var _b = _a, {
|
|
29
|
+
as,
|
|
30
|
+
variant = "body",
|
|
31
|
+
size = "fluid",
|
|
32
|
+
_unstableSpacing: spacing,
|
|
33
|
+
children,
|
|
34
|
+
className
|
|
35
|
+
} = _b, rest = __objRest(_b, [
|
|
36
|
+
"as",
|
|
37
|
+
"variant",
|
|
38
|
+
"size",
|
|
39
|
+
"_unstableSpacing",
|
|
40
|
+
"children",
|
|
41
|
+
"className"
|
|
42
|
+
]);
|
|
43
|
+
const Component = as != null ? as : defaultHTMLTag[variant];
|
|
44
|
+
const sizeModifier = size !== "fluid" && variant !== "caption" && variant !== "caption-title" && size;
|
|
45
|
+
return /* @__PURE__ */ jsx(
|
|
46
|
+
Component,
|
|
47
|
+
__spreadProps(__spreadValues({
|
|
48
|
+
className: clsx(
|
|
49
|
+
`hds-typography-${variant}`,
|
|
50
|
+
sizeModifier && `hds-typography--${sizeModifier}`,
|
|
51
|
+
spacing && "hds-typography--spacing",
|
|
52
|
+
className
|
|
53
|
+
),
|
|
54
|
+
ref
|
|
55
|
+
}, rest), {
|
|
56
|
+
children
|
|
57
|
+
})
|
|
58
|
+
);
|
|
59
|
+
}
|
|
60
|
+
);
|
|
61
|
+
Typography.displayName = "Typography";
|
|
62
|
+
|
|
63
|
+
export {
|
|
64
|
+
Typography
|
|
65
|
+
};
|
package/dist/index.js
CHANGED
|
@@ -545,19 +545,33 @@ CardBodyHeaderTitle.displayName = "Card.Body.Header.Title";
|
|
|
545
545
|
var CardBodyDescription = (0, import_react8.forwardRef)(
|
|
546
546
|
(_a, ref) => {
|
|
547
547
|
var _b = _a, { as: Component = "p", className, children } = _b, rest = __objRest(_b, ["as", "className", "children"]);
|
|
548
|
-
return /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
|
|
548
|
+
return /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
|
|
549
|
+
Component,
|
|
550
|
+
__spreadProps(__spreadValues({}, rest), {
|
|
551
|
+
className: (0, import_typed_classname9.clsx)("hds-card__body-description", className),
|
|
552
|
+
ref,
|
|
553
|
+
children
|
|
554
|
+
})
|
|
555
|
+
);
|
|
549
556
|
}
|
|
550
557
|
);
|
|
551
558
|
CardBodyDescription.displayName = "Card.Body.Description";
|
|
552
559
|
var CardBodyAction = (0, import_react8.forwardRef)(
|
|
553
560
|
(_a, ref) => {
|
|
554
561
|
var _b = _a, { as: Component = "div", className, children } = _b, rest = __objRest(_b, ["as", "className", "children"]);
|
|
555
|
-
return /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
|
|
562
|
+
return /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
|
|
563
|
+
Component,
|
|
564
|
+
__spreadProps(__spreadValues({}, rest), {
|
|
565
|
+
className: (0, import_typed_classname9.clsx)("hds-card__body-action", className),
|
|
566
|
+
ref,
|
|
567
|
+
children
|
|
568
|
+
})
|
|
569
|
+
);
|
|
556
570
|
}
|
|
557
571
|
);
|
|
558
572
|
CardBodyAction.displayName = "Card.Body.Action";
|
|
559
573
|
var CardBodyActionArrow = (0, import_react8.forwardRef)((_a, ref) => {
|
|
560
|
-
var _b = _a, { as: Component = "
|
|
574
|
+
var _b = _a, { as: Component = "span", className } = _b, rest = __objRest(_b, ["as", "className"]);
|
|
561
575
|
return /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
|
|
562
576
|
Component,
|
|
563
577
|
__spreadProps(__spreadValues({}, rest), {
|
package/dist/index.mjs
CHANGED
|
@@ -66,8 +66,8 @@ import {
|
|
|
66
66
|
} from "./chunk-ENRMC5K7.mjs";
|
|
67
67
|
import {
|
|
68
68
|
CardComponent
|
|
69
|
-
} from "./chunk-
|
|
70
|
-
import "./chunk-
|
|
69
|
+
} from "./chunk-E5575U2F.mjs";
|
|
70
|
+
import "./chunk-LICHSDMT.mjs";
|
|
71
71
|
import {
|
|
72
72
|
AccordionComponent
|
|
73
73
|
} from "./chunk-KYCCTJI6.mjs";
|
package/dist/navbar/index.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as react from 'react';
|
|
2
|
-
import { NavbarProps, NavbarLogo } from './navbar.mjs';
|
|
2
|
+
import { NavbarProps, NavbarLogo, NavbarButton, NavbarNavigation } from './navbar.mjs';
|
|
3
3
|
import { NavbarExpandableMenu, NavbarExpandableMenuTrigger, NavbarExpandableMenuContent } from './navbar-expandable-menu.mjs';
|
|
4
4
|
import '../utils-BfZsjuFH.mjs';
|
|
5
5
|
import 'react/jsx-runtime';
|
|
@@ -11,6 +11,8 @@ declare const NavbarExpandableMenuComponent: typeof NavbarExpandableMenu & {
|
|
|
11
11
|
declare const NavbarComponent: react.ForwardRefExoticComponent<NavbarProps & react.RefAttributes<HTMLElement>> & {
|
|
12
12
|
Logo: typeof NavbarLogo;
|
|
13
13
|
ExpandableMenu: typeof NavbarExpandableMenuComponent;
|
|
14
|
+
Button: typeof NavbarButton;
|
|
15
|
+
Navigation: typeof NavbarNavigation;
|
|
14
16
|
};
|
|
15
17
|
|
|
16
|
-
export { NavbarComponent as Navbar, NavbarLogo, NavbarProps };
|
|
18
|
+
export { NavbarComponent as Navbar, NavbarButton, NavbarLogo, NavbarNavigation, NavbarProps };
|
package/dist/navbar/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as react from 'react';
|
|
2
|
-
import { NavbarProps, NavbarLogo } from './navbar.js';
|
|
2
|
+
import { NavbarProps, NavbarLogo, NavbarButton, NavbarNavigation } from './navbar.js';
|
|
3
3
|
import { NavbarExpandableMenu, NavbarExpandableMenuTrigger, NavbarExpandableMenuContent } from './navbar-expandable-menu.js';
|
|
4
4
|
import '../utils-BfZsjuFH.js';
|
|
5
5
|
import 'react/jsx-runtime';
|
|
@@ -11,6 +11,8 @@ declare const NavbarExpandableMenuComponent: typeof NavbarExpandableMenu & {
|
|
|
11
11
|
declare const NavbarComponent: react.ForwardRefExoticComponent<NavbarProps & react.RefAttributes<HTMLElement>> & {
|
|
12
12
|
Logo: typeof NavbarLogo;
|
|
13
13
|
ExpandableMenu: typeof NavbarExpandableMenuComponent;
|
|
14
|
+
Button: typeof NavbarButton;
|
|
15
|
+
Navigation: typeof NavbarNavigation;
|
|
14
16
|
};
|
|
15
17
|
|
|
16
|
-
export { NavbarComponent as Navbar, NavbarLogo, NavbarProps };
|
|
18
|
+
export { NavbarComponent as Navbar, NavbarButton, NavbarLogo, NavbarNavigation, NavbarProps };
|
package/dist/navbar/index.js
CHANGED
|
@@ -75,6 +75,28 @@ var NavbarLogo = (0, import_react.forwardRef)(
|
|
|
75
75
|
}
|
|
76
76
|
);
|
|
77
77
|
NavbarLogo.displayName = "Navbar.Logo";
|
|
78
|
+
var NavbarButton = (0, import_react.forwardRef)(
|
|
79
|
+
(_a, ref) => {
|
|
80
|
+
var _b = _a, { as: Component = "button", children, icon, className } = _b, rest = __objRest(_b, ["as", "children", "icon", "className"]);
|
|
81
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(Component, __spreadProps(__spreadValues({ className: (0, import_typed_classname.clsx)("hds-navbar__button", className), ref }, rest), { children: [
|
|
82
|
+
children,
|
|
83
|
+
" ",
|
|
84
|
+
icon
|
|
85
|
+
] }));
|
|
86
|
+
}
|
|
87
|
+
);
|
|
88
|
+
NavbarButton.displayName = "Navbar.Button";
|
|
89
|
+
var NavbarNavigation = (0, import_react.forwardRef)((_a, ref) => {
|
|
90
|
+
var _b = _a, { as: Component = "div", className } = _b, rest = __objRest(_b, ["as", "className"]);
|
|
91
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
92
|
+
Component,
|
|
93
|
+
__spreadValues({
|
|
94
|
+
className: (0, import_typed_classname.clsx)("hds-navbar__navigation", className),
|
|
95
|
+
ref
|
|
96
|
+
}, rest)
|
|
97
|
+
);
|
|
98
|
+
});
|
|
99
|
+
NavbarNavigation.displayName = "Navbar.Navigation";
|
|
78
100
|
|
|
79
101
|
// src/navbar/navbar-expandable-menu.tsx
|
|
80
102
|
var import_react2 = require("react");
|
|
@@ -114,7 +136,11 @@ var NavbarExpandableMenuTrigger = (0, import_react2.forwardRef)(
|
|
|
114
136
|
return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
|
|
115
137
|
"button",
|
|
116
138
|
__spreadProps(__spreadValues({
|
|
117
|
-
className: (0, import_typed_classname2.clsx)(
|
|
139
|
+
className: (0, import_typed_classname2.clsx)(
|
|
140
|
+
"hds-navbar__expandable-menu-trigger",
|
|
141
|
+
"hds-navbar__button",
|
|
142
|
+
className
|
|
143
|
+
),
|
|
118
144
|
onClick: toggleOpen,
|
|
119
145
|
ref,
|
|
120
146
|
title,
|
|
@@ -148,6 +174,8 @@ NavbarExpandableMenuComponent.Content = NavbarExpandableMenuContent;
|
|
|
148
174
|
var NavbarComponent = Navbar;
|
|
149
175
|
NavbarComponent.Logo = NavbarLogo;
|
|
150
176
|
NavbarComponent.ExpandableMenu = NavbarExpandableMenuComponent;
|
|
177
|
+
NavbarComponent.Button = NavbarButton;
|
|
178
|
+
NavbarComponent.Navigation = NavbarNavigation;
|
|
151
179
|
// Annotate the CommonJS export names for ESM import in node:
|
|
152
180
|
0 && (module.exports = {
|
|
153
181
|
Navbar
|
package/dist/navbar/index.mjs
CHANGED
|
@@ -2,11 +2,13 @@ import {
|
|
|
2
2
|
NavbarExpandableMenu,
|
|
3
3
|
NavbarExpandableMenuContent,
|
|
4
4
|
NavbarExpandableMenuTrigger
|
|
5
|
-
} from "../chunk-
|
|
5
|
+
} from "../chunk-T5W5SKZP.mjs";
|
|
6
6
|
import {
|
|
7
7
|
Navbar,
|
|
8
|
-
|
|
9
|
-
|
|
8
|
+
NavbarButton,
|
|
9
|
+
NavbarLogo,
|
|
10
|
+
NavbarNavigation
|
|
11
|
+
} from "../chunk-FDAXJJHU.mjs";
|
|
10
12
|
import "../chunk-FUJQIYOF.mjs";
|
|
11
13
|
|
|
12
14
|
// src/navbar/index.tsx
|
|
@@ -20,6 +22,8 @@ NavbarExpandableMenuComponent.Content = NavbarExpandableMenuContent;
|
|
|
20
22
|
var NavbarComponent = Navbar;
|
|
21
23
|
NavbarComponent.Logo = NavbarLogo;
|
|
22
24
|
NavbarComponent.ExpandableMenu = NavbarExpandableMenuComponent;
|
|
25
|
+
NavbarComponent.Button = NavbarButton;
|
|
26
|
+
NavbarComponent.Navigation = NavbarNavigation;
|
|
23
27
|
export {
|
|
24
28
|
NavbarComponent as Navbar
|
|
25
29
|
};
|
|
@@ -91,7 +91,11 @@ var NavbarExpandableMenuTrigger = (0, import_react.forwardRef)(
|
|
|
91
91
|
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
92
92
|
"button",
|
|
93
93
|
__spreadProps(__spreadValues({
|
|
94
|
-
className: (0, import_typed_classname.clsx)(
|
|
94
|
+
className: (0, import_typed_classname.clsx)(
|
|
95
|
+
"hds-navbar__expandable-menu-trigger",
|
|
96
|
+
"hds-navbar__button",
|
|
97
|
+
className
|
|
98
|
+
),
|
|
95
99
|
onClick: toggleOpen,
|
|
96
100
|
ref,
|
|
97
101
|
title,
|
package/dist/navbar/navbar.d.mts
CHANGED
|
@@ -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 };
|
package/dist/navbar/navbar.d.ts
CHANGED
|
@@ -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 };
|
package/dist/navbar/navbar.js
CHANGED
|
@@ -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
|
-
|
|
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
|
-
|
|
100
|
+
NavbarButton,
|
|
101
|
+
NavbarLogo,
|
|
102
|
+
NavbarNavigation
|
|
77
103
|
});
|
package/dist/navbar/navbar.mjs
CHANGED
|
@@ -1,9 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Navbar,
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+
NavbarButton,
|
|
4
|
+
NavbarLogo,
|
|
5
|
+
NavbarNavigation
|
|
6
|
+
} from "../chunk-FDAXJJHU.mjs";
|
|
5
7
|
import "../chunk-FUJQIYOF.mjs";
|
|
6
8
|
export {
|
|
7
9
|
Navbar,
|
|
8
|
-
|
|
10
|
+
NavbarButton,
|
|
11
|
+
NavbarLogo,
|
|
12
|
+
NavbarNavigation
|
|
9
13
|
};
|
|
@@ -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 };
|
|
@@ -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
|
+
});
|
package/package.json
CHANGED
package/dist/chunk-FB5VUC62.mjs
DELETED
|
@@ -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
|
-
};
|