@postenbring/hedwig-react 0.0.48 → 0.0.50
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/button/button.d.mts +12 -5
- package/dist/button/button.d.ts +12 -5
- package/dist/button/button.js +5 -2
- package/dist/button/button.mjs +1 -1
- package/dist/button/index.js +5 -2
- package/dist/button/index.mjs +1 -1
- package/dist/card/card.d.mts +29 -5
- package/dist/card/card.d.ts +29 -5
- package/dist/card/card.js +26 -32
- package/dist/card/card.mjs +1 -1
- package/dist/card/index.d.mts +9 -8
- package/dist/card/index.d.ts +9 -8
- package/dist/card/index.js +26 -32
- package/dist/card/index.mjs +2 -2
- package/dist/{chunk-3WUAXFB3.mjs → chunk-3WKOOAQL.mjs} +7 -7
- package/dist/{chunk-S7FSULI3.mjs → chunk-52YSOWMY.mjs} +1 -1
- package/dist/{chunk-6KRJB36T.mjs → chunk-CCNB2ABL.mjs} +6 -15
- package/dist/{chunk-J5QNIAFL.mjs → chunk-JAHBNZTG.mjs} +4 -13
- package/dist/{chunk-DOWBGRCN.mjs → chunk-JOKO7Y7O.mjs} +3 -3
- package/dist/{chunk-MUGMWWNN.mjs → chunk-LCFKBPZC.mjs} +1 -1
- package/dist/{chunk-B3SD7RZV.mjs → chunk-OEOI74US.mjs} +26 -32
- package/dist/{chunk-4KBVX3Y7.mjs → chunk-OSCKYUZ3.mjs} +1 -1
- package/dist/{chunk-RNALWA7A.mjs → chunk-OX5NTX6M.mjs} +2 -25
- package/dist/{chunk-YBSM5D5N.mjs → chunk-PTLX7PHW.mjs} +5 -2
- package/dist/chunk-RBOWRO3L.mjs +18 -0
- package/dist/chunk-RSL23FEW.mjs +26 -0
- package/dist/{chunk-JTBZ4UL4.mjs → chunk-SDR3TESK.mjs} +3 -3
- package/dist/{chunk-IXH7S7RI.mjs → chunk-ZDZR5FVC.mjs} +1 -1
- package/dist/form/checkbox/checkbox.js +3 -3
- package/dist/form/checkbox/checkbox.mjs +1 -1
- package/dist/form/checkbox/index.js +3 -3
- package/dist/form/checkbox/index.mjs +1 -1
- package/dist/form/error-message/error-message.d.mts +1 -2
- package/dist/form/error-message/error-message.d.ts +1 -2
- package/dist/form/error-message/error-message.js +4 -28
- package/dist/form/error-message/error-message.mjs +1 -1
- package/dist/form/error-message/index.js +4 -28
- package/dist/form/error-message/index.mjs +1 -1
- package/dist/form/fieldset/fieldset.d.mts +0 -1
- package/dist/form/fieldset/fieldset.d.ts +0 -1
- package/dist/form/fieldset/fieldset.js +7 -23
- package/dist/form/fieldset/fieldset.mjs +2 -2
- package/dist/form/fieldset/index.js +7 -23
- package/dist/form/fieldset/index.mjs +2 -2
- package/dist/form/index.js +17 -65
- package/dist/form/index.mjs +8 -8
- package/dist/form/input/index.js +10 -49
- package/dist/form/input/index.mjs +3 -3
- package/dist/form/input/input.js +10 -49
- package/dist/form/input/input.mjs +3 -3
- package/dist/form/input-group/index.js +9 -25
- package/dist/form/input-group/index.mjs +2 -2
- package/dist/form/input-group/input-group.d.mts +0 -1
- package/dist/form/input-group/input-group.d.ts +0 -1
- package/dist/form/input-group/input-group.js +9 -25
- package/dist/form/input-group/input-group.mjs +2 -2
- package/dist/form/radiobutton/index.js +1 -1
- package/dist/form/radiobutton/index.mjs +1 -1
- package/dist/form/radiobutton/radiobutton.js +1 -1
- package/dist/form/radiobutton/radiobutton.mjs +1 -1
- package/dist/form/select/index.js +9 -25
- package/dist/form/select/index.mjs +3 -3
- package/dist/form/select/select.js +9 -25
- package/dist/form/select/select.mjs +3 -3
- package/dist/form/textarea/index.js +9 -25
- package/dist/form/textarea/index.mjs +3 -3
- package/dist/form/textarea/textarea.js +9 -25
- package/dist/form/textarea/textarea.mjs +3 -3
- package/dist/index.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +93 -136
- package/dist/index.mjs +17 -17
- package/dist/list/index.js +10 -2
- package/dist/list/index.mjs +1 -1
- package/dist/list/link-list.d.mts +1 -1
- package/dist/list/link-list.d.ts +1 -1
- package/dist/list/link-list.js +10 -2
- package/dist/list/link-list.mjs +1 -1
- package/dist/navbar/index.js +3 -3
- package/dist/navbar/index.mjs +1 -1
- package/dist/navbar/navbar-expandable-menu.js +3 -3
- package/dist/navbar/navbar-expandable-menu.mjs +1 -1
- package/dist/{prose/prose.d.mts → styled-html/styled-html.d.mts} +9 -15
- package/dist/{prose/prose.d.ts → styled-html/styled-html.d.ts} +9 -15
- package/dist/{prose/prose.js → styled-html/styled-html.js} +11 -11
- package/dist/styled-html/styled-html.mjs +7 -0
- package/package.json +5 -5
- package/dist/chunk-R7GQHCN4.mjs +0 -30
- package/dist/chunk-X5URKHFD.mjs +0 -18
- package/dist/prose/prose.mjs +0 -7
package/dist/button/button.d.mts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { O as OverridableComponent } from '../utils-3jLhIyOS.mjs';
|
|
2
2
|
import 'react';
|
|
3
3
|
|
|
4
|
-
interface
|
|
4
|
+
interface ButtonPropsInternal extends React.ButtonHTMLAttributes<HTMLButtonElement> {
|
|
5
5
|
/**
|
|
6
6
|
* The height, font size and padding of the button
|
|
7
7
|
*/
|
|
@@ -11,16 +11,23 @@ interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {
|
|
|
11
11
|
* Using the "mobile" it only stretch to full width on smaller screens
|
|
12
12
|
*/
|
|
13
13
|
fullWidth?: boolean | "mobile";
|
|
14
|
-
/**
|
|
15
|
-
* The background of the button.
|
|
16
|
-
*/
|
|
17
|
-
fill?: "contained" | "outlined";
|
|
18
14
|
/**
|
|
19
15
|
* Use an icon inside the button
|
|
20
16
|
*/
|
|
21
17
|
icon?: React.ReactNode;
|
|
22
18
|
children?: React.ReactNode;
|
|
23
19
|
}
|
|
20
|
+
type ButtonProps = ButtonPropsInternal & ({
|
|
21
|
+
/**
|
|
22
|
+
* The background fill of the button
|
|
23
|
+
*/
|
|
24
|
+
fill?: "contained" | "outline";
|
|
25
|
+
} | {
|
|
26
|
+
/**
|
|
27
|
+
* @deprecated use `fill='outline'` instead
|
|
28
|
+
*/
|
|
29
|
+
fill?: "outlined";
|
|
30
|
+
});
|
|
24
31
|
declare const BaseButton: OverridableComponent<ButtonProps & {
|
|
25
32
|
variant: "primary" | "secondary";
|
|
26
33
|
}, HTMLButtonElement>;
|
package/dist/button/button.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { O as OverridableComponent } from '../utils-3jLhIyOS.js';
|
|
2
2
|
import 'react';
|
|
3
3
|
|
|
4
|
-
interface
|
|
4
|
+
interface ButtonPropsInternal extends React.ButtonHTMLAttributes<HTMLButtonElement> {
|
|
5
5
|
/**
|
|
6
6
|
* The height, font size and padding of the button
|
|
7
7
|
*/
|
|
@@ -11,16 +11,23 @@ interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {
|
|
|
11
11
|
* Using the "mobile" it only stretch to full width on smaller screens
|
|
12
12
|
*/
|
|
13
13
|
fullWidth?: boolean | "mobile";
|
|
14
|
-
/**
|
|
15
|
-
* The background of the button.
|
|
16
|
-
*/
|
|
17
|
-
fill?: "contained" | "outlined";
|
|
18
14
|
/**
|
|
19
15
|
* Use an icon inside the button
|
|
20
16
|
*/
|
|
21
17
|
icon?: React.ReactNode;
|
|
22
18
|
children?: React.ReactNode;
|
|
23
19
|
}
|
|
20
|
+
type ButtonProps = ButtonPropsInternal & ({
|
|
21
|
+
/**
|
|
22
|
+
* The background fill of the button
|
|
23
|
+
*/
|
|
24
|
+
fill?: "contained" | "outline";
|
|
25
|
+
} | {
|
|
26
|
+
/**
|
|
27
|
+
* @deprecated use `fill='outline'` instead
|
|
28
|
+
*/
|
|
29
|
+
fill?: "outlined";
|
|
30
|
+
});
|
|
24
31
|
declare const BaseButton: OverridableComponent<ButtonProps & {
|
|
25
32
|
variant: "primary" | "secondary";
|
|
26
33
|
}, HTMLButtonElement>;
|
package/dist/button/button.js
CHANGED
|
@@ -78,6 +78,9 @@ var BaseButton = (0, import_react.forwardRef)(
|
|
|
78
78
|
"icon",
|
|
79
79
|
"className"
|
|
80
80
|
]);
|
|
81
|
+
if (fill === "outlined") {
|
|
82
|
+
console.warn("The `fill` value `outlined` is deprecated, use `fill='outline'` instead");
|
|
83
|
+
}
|
|
81
84
|
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
|
|
82
85
|
Component,
|
|
83
86
|
__spreadProps(__spreadValues({
|
|
@@ -86,8 +89,8 @@ var BaseButton = (0, import_react.forwardRef)(
|
|
|
86
89
|
`hds-button--${size}`,
|
|
87
90
|
{
|
|
88
91
|
[`hds-button--${variant}`]: fill === "contained",
|
|
89
|
-
[`hds-button--outline-${variant}`]: fill === "outlined",
|
|
90
|
-
"hds-button--full": fullWidth
|
|
92
|
+
[`hds-button--outline-${variant}`]: fill === "outline" || fill === "outlined",
|
|
93
|
+
"hds-button--full": fullWidth,
|
|
91
94
|
"hds-button--mobile-full": fullWidth === "mobile",
|
|
92
95
|
"hds-button--icon-only": icon && !children
|
|
93
96
|
},
|
package/dist/button/button.mjs
CHANGED
package/dist/button/index.js
CHANGED
|
@@ -83,6 +83,9 @@ var BaseButton = (0, import_react.forwardRef)(
|
|
|
83
83
|
"icon",
|
|
84
84
|
"className"
|
|
85
85
|
]);
|
|
86
|
+
if (fill === "outlined") {
|
|
87
|
+
console.warn("The `fill` value `outlined` is deprecated, use `fill='outline'` instead");
|
|
88
|
+
}
|
|
86
89
|
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
|
|
87
90
|
Component,
|
|
88
91
|
__spreadProps(__spreadValues({
|
|
@@ -91,8 +94,8 @@ var BaseButton = (0, import_react.forwardRef)(
|
|
|
91
94
|
`hds-button--${size}`,
|
|
92
95
|
{
|
|
93
96
|
[`hds-button--${variant}`]: fill === "contained",
|
|
94
|
-
[`hds-button--outline-${variant}`]: fill === "outlined",
|
|
95
|
-
"hds-button--full": fullWidth
|
|
97
|
+
[`hds-button--outline-${variant}`]: fill === "outline" || fill === "outlined",
|
|
98
|
+
"hds-button--full": fullWidth,
|
|
96
99
|
"hds-button--mobile-full": fullWidth === "mobile",
|
|
97
100
|
"hds-button--icon-only": icon && !children
|
|
98
101
|
},
|
package/dist/button/index.mjs
CHANGED
package/dist/card/card.d.mts
CHANGED
|
@@ -1,21 +1,45 @@
|
|
|
1
|
-
import
|
|
1
|
+
import * as react from 'react';
|
|
2
|
+
import { HTMLAttributes, ReactNode, ElementType } from 'react';
|
|
2
3
|
import { O as OverridableComponent } from '../utils-3jLhIyOS.mjs';
|
|
3
4
|
|
|
4
5
|
interface CardBaseProps extends HTMLAttributes<HTMLDivElement> {
|
|
5
6
|
children: ReactNode;
|
|
6
7
|
}
|
|
7
|
-
declare const Card: OverridableComponent<CardBaseProps
|
|
8
|
+
declare const Card: OverridableComponent<CardBaseProps & {
|
|
9
|
+
/**
|
|
10
|
+
* A Card should in most cases appear as a big link,
|
|
11
|
+
* but the actual link should just be the header title.
|
|
12
|
+
* To make life better for those with screen readers we should not make
|
|
13
|
+
* the entire card a link, as that would cause the entire card to be read
|
|
14
|
+
* as a link to the user. That would be perceived as information overload.
|
|
15
|
+
*/
|
|
16
|
+
as?: Exclude<ElementType, "a">;
|
|
17
|
+
}, HTMLDivElement>;
|
|
8
18
|
declare const CardMedia: OverridableComponent<CardBaseProps, HTMLDivElement>;
|
|
9
19
|
interface CardImageMediaProps extends HTMLAttributes<HTMLDivElement> {
|
|
10
20
|
aspectRatio?: string;
|
|
11
21
|
}
|
|
12
22
|
declare const CardMediaImg: OverridableComponent<CardImageMediaProps, HTMLImageElement>;
|
|
13
23
|
declare const CardBody: OverridableComponent<CardBaseProps, HTMLDivElement>;
|
|
14
|
-
declare const CardBodyHeader:
|
|
24
|
+
declare const CardBodyHeader: react.ForwardRefExoticComponent<CardBaseProps & {
|
|
25
|
+
/**
|
|
26
|
+
* Heading level of the card heading
|
|
27
|
+
*/
|
|
28
|
+
as: "h2" | "h3" | "h4" | "h5" | "h6";
|
|
29
|
+
} & react.RefAttributes<HTMLHeadingElement>>;
|
|
15
30
|
declare const CardBodyHeaderOverline: OverridableComponent<CardBaseProps, HTMLDivElement>;
|
|
16
|
-
declare const CardBodyHeaderTitle: OverridableComponent<CardBaseProps
|
|
31
|
+
declare const CardBodyHeaderTitle: OverridableComponent<CardBaseProps & {
|
|
32
|
+
/**
|
|
33
|
+
* A Card should in most cases appear as a big link,
|
|
34
|
+
* but the actual link should just be this header title.
|
|
35
|
+
* To make life better for those with screen readers we should not make
|
|
36
|
+
* the entire card a link, as that would cause the entire card to be read
|
|
37
|
+
* as a link to the user. That would be perceived as information overload.
|
|
38
|
+
*/
|
|
39
|
+
as: ElementType;
|
|
40
|
+
}, HTMLDivElement>;
|
|
17
41
|
declare const CardBodyDescription: OverridableComponent<CardBaseProps, HTMLDivElement>;
|
|
18
42
|
declare const CardBodyAction: OverridableComponent<CardBaseProps, HTMLDivElement>;
|
|
19
|
-
declare const CardBodyActionArrow: OverridableComponent<HTMLAttributes<
|
|
43
|
+
declare const CardBodyActionArrow: OverridableComponent<HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>;
|
|
20
44
|
|
|
21
45
|
export { Card, type CardBaseProps, CardBody, CardBodyAction, CardBodyActionArrow, CardBodyDescription, CardBodyHeader, CardBodyHeaderOverline, CardBodyHeaderTitle, type CardImageMediaProps, CardMedia, CardMediaImg };
|
package/dist/card/card.d.ts
CHANGED
|
@@ -1,21 +1,45 @@
|
|
|
1
|
-
import
|
|
1
|
+
import * as react from 'react';
|
|
2
|
+
import { HTMLAttributes, ReactNode, ElementType } from 'react';
|
|
2
3
|
import { O as OverridableComponent } from '../utils-3jLhIyOS.js';
|
|
3
4
|
|
|
4
5
|
interface CardBaseProps extends HTMLAttributes<HTMLDivElement> {
|
|
5
6
|
children: ReactNode;
|
|
6
7
|
}
|
|
7
|
-
declare const Card: OverridableComponent<CardBaseProps
|
|
8
|
+
declare const Card: OverridableComponent<CardBaseProps & {
|
|
9
|
+
/**
|
|
10
|
+
* A Card should in most cases appear as a big link,
|
|
11
|
+
* but the actual link should just be the header title.
|
|
12
|
+
* To make life better for those with screen readers we should not make
|
|
13
|
+
* the entire card a link, as that would cause the entire card to be read
|
|
14
|
+
* as a link to the user. That would be perceived as information overload.
|
|
15
|
+
*/
|
|
16
|
+
as?: Exclude<ElementType, "a">;
|
|
17
|
+
}, HTMLDivElement>;
|
|
8
18
|
declare const CardMedia: OverridableComponent<CardBaseProps, HTMLDivElement>;
|
|
9
19
|
interface CardImageMediaProps extends HTMLAttributes<HTMLDivElement> {
|
|
10
20
|
aspectRatio?: string;
|
|
11
21
|
}
|
|
12
22
|
declare const CardMediaImg: OverridableComponent<CardImageMediaProps, HTMLImageElement>;
|
|
13
23
|
declare const CardBody: OverridableComponent<CardBaseProps, HTMLDivElement>;
|
|
14
|
-
declare const CardBodyHeader:
|
|
24
|
+
declare const CardBodyHeader: react.ForwardRefExoticComponent<CardBaseProps & {
|
|
25
|
+
/**
|
|
26
|
+
* Heading level of the card heading
|
|
27
|
+
*/
|
|
28
|
+
as: "h2" | "h3" | "h4" | "h5" | "h6";
|
|
29
|
+
} & react.RefAttributes<HTMLHeadingElement>>;
|
|
15
30
|
declare const CardBodyHeaderOverline: OverridableComponent<CardBaseProps, HTMLDivElement>;
|
|
16
|
-
declare const CardBodyHeaderTitle: OverridableComponent<CardBaseProps
|
|
31
|
+
declare const CardBodyHeaderTitle: OverridableComponent<CardBaseProps & {
|
|
32
|
+
/**
|
|
33
|
+
* A Card should in most cases appear as a big link,
|
|
34
|
+
* but the actual link should just be this header title.
|
|
35
|
+
* To make life better for those with screen readers we should not make
|
|
36
|
+
* the entire card a link, as that would cause the entire card to be read
|
|
37
|
+
* as a link to the user. That would be perceived as information overload.
|
|
38
|
+
*/
|
|
39
|
+
as: ElementType;
|
|
40
|
+
}, HTMLDivElement>;
|
|
17
41
|
declare const CardBodyDescription: OverridableComponent<CardBaseProps, HTMLDivElement>;
|
|
18
42
|
declare const CardBodyAction: OverridableComponent<CardBaseProps, HTMLDivElement>;
|
|
19
|
-
declare const CardBodyActionArrow: OverridableComponent<HTMLAttributes<
|
|
43
|
+
declare const CardBodyActionArrow: OverridableComponent<HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>;
|
|
20
44
|
|
|
21
45
|
export { Card, type CardBaseProps, CardBody, CardBodyAction, CardBodyActionArrow, CardBodyDescription, CardBodyHeader, CardBodyHeaderOverline, CardBodyHeaderTitle, type CardImageMediaProps, CardMedia, CardMediaImg };
|
package/dist/card/card.js
CHANGED
|
@@ -64,12 +64,10 @@ module.exports = __toCommonJS(card_exports);
|
|
|
64
64
|
var import_react = require("react");
|
|
65
65
|
var import_typed_classname = require("@postenbring/hedwig-css/typed-classname/index.mjs");
|
|
66
66
|
var import_jsx_runtime = require("react/jsx-runtime");
|
|
67
|
-
var Card = (0, import_react.forwardRef)(
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
}
|
|
72
|
-
);
|
|
67
|
+
var Card = (0, import_react.forwardRef)((_a, ref) => {
|
|
68
|
+
var _b = _a, { as: Component = "section", className, children } = _b, rest = __objRest(_b, ["as", "className", "children"]);
|
|
69
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Component, __spreadProps(__spreadValues({}, rest), { className: (0, import_typed_classname.clsx)("hds-card", className), ref, children }));
|
|
70
|
+
});
|
|
73
71
|
Card.displayName = "Card";
|
|
74
72
|
var CardMedia = (0, import_react.forwardRef)(
|
|
75
73
|
(_a, ref) => {
|
|
@@ -98,19 +96,17 @@ var CardBody = (0, import_react.forwardRef)(
|
|
|
98
96
|
}
|
|
99
97
|
);
|
|
100
98
|
CardBody.displayName = "Card.Body";
|
|
101
|
-
var CardBodyHeader = (0, import_react.forwardRef)(
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
}
|
|
113
|
-
);
|
|
99
|
+
var CardBodyHeader = (0, import_react.forwardRef)((_a, ref) => {
|
|
100
|
+
var _b = _a, { as: Component, 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
|
+
});
|
|
114
110
|
CardBodyHeader.displayName = "Card.Body.Header";
|
|
115
111
|
var CardBodyHeaderOverline = (0, import_react.forwardRef)((_a, ref) => {
|
|
116
112
|
var _b = _a, { as: Component = "span", className, children } = _b, rest = __objRest(_b, ["as", "className", "children"]);
|
|
@@ -124,19 +120,17 @@ var CardBodyHeaderOverline = (0, import_react.forwardRef)((_a, ref) => {
|
|
|
124
120
|
);
|
|
125
121
|
});
|
|
126
122
|
CardBodyHeaderOverline.displayName = "Card.Body.Header.Overline";
|
|
127
|
-
var CardBodyHeaderTitle = (0, import_react.forwardRef)(
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
}
|
|
139
|
-
);
|
|
123
|
+
var CardBodyHeaderTitle = (0, import_react.forwardRef)((_a, ref) => {
|
|
124
|
+
var _b = _a, { as: Component, className, children } = _b, rest = __objRest(_b, ["as", "className", "children"]);
|
|
125
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
126
|
+
Component,
|
|
127
|
+
__spreadProps(__spreadValues({}, rest), {
|
|
128
|
+
className: (0, import_typed_classname.clsx)("hds-card__body-header-title", className),
|
|
129
|
+
ref,
|
|
130
|
+
children
|
|
131
|
+
})
|
|
132
|
+
);
|
|
133
|
+
});
|
|
140
134
|
CardBodyHeaderTitle.displayName = "Card.Body.Header.Title";
|
|
141
135
|
var CardBodyDescription = (0, import_react.forwardRef)(
|
|
142
136
|
(_a, ref) => {
|
package/dist/card/card.mjs
CHANGED
package/dist/card/index.d.mts
CHANGED
|
@@ -11,12 +11,9 @@ declare const CardMediaComponent: {
|
|
|
11
11
|
} & Pick<react.FC, "displayName"> & {
|
|
12
12
|
Img: typeof CardMediaImg;
|
|
13
13
|
};
|
|
14
|
-
declare const CardBodyHeaderComponent: {
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
as?: As | undefined;
|
|
18
|
-
} & CardBaseProps & Omit<react.ComponentPropsWithRef<As>, keyof CardBaseProps>): react.ReactNode;
|
|
19
|
-
} & Pick<react.FC, "displayName"> & {
|
|
14
|
+
declare const CardBodyHeaderComponent: react.ForwardRefExoticComponent<CardBaseProps & {
|
|
15
|
+
as: "h2" | "h3" | "h4" | "h5" | "h6";
|
|
16
|
+
} & react.RefAttributes<HTMLHeadingElement>> & {
|
|
20
17
|
Overline: typeof CardBodyHeaderOverline;
|
|
21
18
|
Title: typeof CardBodyHeaderTitle;
|
|
22
19
|
};
|
|
@@ -41,10 +38,14 @@ declare const CardBodyComponent: {
|
|
|
41
38
|
Action: typeof CardBodyActionComponent;
|
|
42
39
|
};
|
|
43
40
|
declare const CardComponent: {
|
|
44
|
-
(props: CardBaseProps &
|
|
41
|
+
(props: CardBaseProps & {
|
|
42
|
+
as?: "symbol" | "object" | "abbr" | "address" | "area" | "article" | "aside" | "audio" | "b" | "base" | "bdi" | "bdo" | "big" | "blockquote" | "body" | "br" | "button" | "canvas" | "caption" | "center" | "cite" | "code" | "col" | "colgroup" | "data" | "datalist" | "dd" | "del" | "details" | "dfn" | "dialog" | "div" | "dl" | "dt" | "em" | "embed" | "fieldset" | "figcaption" | "figure" | "footer" | "form" | "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "head" | "header" | "hgroup" | "hr" | "html" | "i" | "iframe" | "img" | "input" | "ins" | "kbd" | "keygen" | "label" | "legend" | "li" | "link" | "main" | "map" | "mark" | "menu" | "menuitem" | "meta" | "meter" | "nav" | "noindex" | "noscript" | "ol" | "optgroup" | "option" | "output" | "p" | "param" | "picture" | "pre" | "progress" | "q" | "rp" | "rt" | "ruby" | "s" | "samp" | "search" | "slot" | "script" | "section" | "select" | "small" | "source" | "span" | "strong" | "style" | "sub" | "summary" | "sup" | "table" | "template" | "tbody" | "td" | "textarea" | "tfoot" | "th" | "thead" | "time" | "title" | "tr" | "track" | "u" | "ul" | "var" | "video" | "wbr" | "webview" | "svg" | "animate" | "animateMotion" | "animateTransform" | "circle" | "clipPath" | "defs" | "desc" | "ellipse" | "feBlend" | "feColorMatrix" | "feComponentTransfer" | "feComposite" | "feConvolveMatrix" | "feDiffuseLighting" | "feDisplacementMap" | "feDistantLight" | "feDropShadow" | "feFlood" | "feFuncA" | "feFuncB" | "feFuncG" | "feFuncR" | "feGaussianBlur" | "feImage" | "feMerge" | "feMergeNode" | "feMorphology" | "feOffset" | "fePointLight" | "feSpecularLighting" | "feSpotLight" | "feTile" | "feTurbulence" | "filter" | "foreignObject" | "g" | "image" | "line" | "linearGradient" | "marker" | "mask" | "metadata" | "mpath" | "path" | "pattern" | "polygon" | "polyline" | "radialGradient" | "rect" | "set" | "stop" | "switch" | "text" | "textPath" | "tspan" | "use" | "view" | react.ComponentType<any> | undefined;
|
|
43
|
+
} & react.RefAttributes<HTMLDivElement>): react.ReactNode;
|
|
45
44
|
<As extends react.ElementType>(props: {
|
|
46
45
|
as?: As | undefined;
|
|
47
|
-
} & CardBaseProps &
|
|
46
|
+
} & CardBaseProps & {
|
|
47
|
+
as?: "symbol" | "object" | "abbr" | "address" | "area" | "article" | "aside" | "audio" | "b" | "base" | "bdi" | "bdo" | "big" | "blockquote" | "body" | "br" | "button" | "canvas" | "caption" | "center" | "cite" | "code" | "col" | "colgroup" | "data" | "datalist" | "dd" | "del" | "details" | "dfn" | "dialog" | "div" | "dl" | "dt" | "em" | "embed" | "fieldset" | "figcaption" | "figure" | "footer" | "form" | "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "head" | "header" | "hgroup" | "hr" | "html" | "i" | "iframe" | "img" | "input" | "ins" | "kbd" | "keygen" | "label" | "legend" | "li" | "link" | "main" | "map" | "mark" | "menu" | "menuitem" | "meta" | "meter" | "nav" | "noindex" | "noscript" | "ol" | "optgroup" | "option" | "output" | "p" | "param" | "picture" | "pre" | "progress" | "q" | "rp" | "rt" | "ruby" | "s" | "samp" | "search" | "slot" | "script" | "section" | "select" | "small" | "source" | "span" | "strong" | "style" | "sub" | "summary" | "sup" | "table" | "template" | "tbody" | "td" | "textarea" | "tfoot" | "th" | "thead" | "time" | "title" | "tr" | "track" | "u" | "ul" | "var" | "video" | "wbr" | "webview" | "svg" | "animate" | "animateMotion" | "animateTransform" | "circle" | "clipPath" | "defs" | "desc" | "ellipse" | "feBlend" | "feColorMatrix" | "feComponentTransfer" | "feComposite" | "feConvolveMatrix" | "feDiffuseLighting" | "feDisplacementMap" | "feDistantLight" | "feDropShadow" | "feFlood" | "feFuncA" | "feFuncB" | "feFuncG" | "feFuncR" | "feGaussianBlur" | "feImage" | "feMerge" | "feMergeNode" | "feMorphology" | "feOffset" | "fePointLight" | "feSpecularLighting" | "feSpotLight" | "feTile" | "feTurbulence" | "filter" | "foreignObject" | "g" | "image" | "line" | "linearGradient" | "marker" | "mask" | "metadata" | "mpath" | "path" | "pattern" | "polygon" | "polyline" | "radialGradient" | "rect" | "set" | "stop" | "switch" | "text" | "textPath" | "tspan" | "use" | "view" | react.ComponentType<any> | undefined;
|
|
48
|
+
} & Omit<react.ComponentPropsWithRef<As>, "as" | keyof CardBaseProps>): react.ReactNode;
|
|
48
49
|
} & Pick<react.FC, "displayName"> & {
|
|
49
50
|
Media: typeof CardMediaComponent;
|
|
50
51
|
Body: typeof CardBodyComponent;
|
package/dist/card/index.d.ts
CHANGED
|
@@ -11,12 +11,9 @@ declare const CardMediaComponent: {
|
|
|
11
11
|
} & Pick<react.FC, "displayName"> & {
|
|
12
12
|
Img: typeof CardMediaImg;
|
|
13
13
|
};
|
|
14
|
-
declare const CardBodyHeaderComponent: {
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
as?: As | undefined;
|
|
18
|
-
} & CardBaseProps & Omit<react.ComponentPropsWithRef<As>, keyof CardBaseProps>): react.ReactNode;
|
|
19
|
-
} & Pick<react.FC, "displayName"> & {
|
|
14
|
+
declare const CardBodyHeaderComponent: react.ForwardRefExoticComponent<CardBaseProps & {
|
|
15
|
+
as: "h2" | "h3" | "h4" | "h5" | "h6";
|
|
16
|
+
} & react.RefAttributes<HTMLHeadingElement>> & {
|
|
20
17
|
Overline: typeof CardBodyHeaderOverline;
|
|
21
18
|
Title: typeof CardBodyHeaderTitle;
|
|
22
19
|
};
|
|
@@ -41,10 +38,14 @@ declare const CardBodyComponent: {
|
|
|
41
38
|
Action: typeof CardBodyActionComponent;
|
|
42
39
|
};
|
|
43
40
|
declare const CardComponent: {
|
|
44
|
-
(props: CardBaseProps &
|
|
41
|
+
(props: CardBaseProps & {
|
|
42
|
+
as?: "symbol" | "object" | "abbr" | "address" | "area" | "article" | "aside" | "audio" | "b" | "base" | "bdi" | "bdo" | "big" | "blockquote" | "body" | "br" | "button" | "canvas" | "caption" | "center" | "cite" | "code" | "col" | "colgroup" | "data" | "datalist" | "dd" | "del" | "details" | "dfn" | "dialog" | "div" | "dl" | "dt" | "em" | "embed" | "fieldset" | "figcaption" | "figure" | "footer" | "form" | "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "head" | "header" | "hgroup" | "hr" | "html" | "i" | "iframe" | "img" | "input" | "ins" | "kbd" | "keygen" | "label" | "legend" | "li" | "link" | "main" | "map" | "mark" | "menu" | "menuitem" | "meta" | "meter" | "nav" | "noindex" | "noscript" | "ol" | "optgroup" | "option" | "output" | "p" | "param" | "picture" | "pre" | "progress" | "q" | "rp" | "rt" | "ruby" | "s" | "samp" | "search" | "slot" | "script" | "section" | "select" | "small" | "source" | "span" | "strong" | "style" | "sub" | "summary" | "sup" | "table" | "template" | "tbody" | "td" | "textarea" | "tfoot" | "th" | "thead" | "time" | "title" | "tr" | "track" | "u" | "ul" | "var" | "video" | "wbr" | "webview" | "svg" | "animate" | "animateMotion" | "animateTransform" | "circle" | "clipPath" | "defs" | "desc" | "ellipse" | "feBlend" | "feColorMatrix" | "feComponentTransfer" | "feComposite" | "feConvolveMatrix" | "feDiffuseLighting" | "feDisplacementMap" | "feDistantLight" | "feDropShadow" | "feFlood" | "feFuncA" | "feFuncB" | "feFuncG" | "feFuncR" | "feGaussianBlur" | "feImage" | "feMerge" | "feMergeNode" | "feMorphology" | "feOffset" | "fePointLight" | "feSpecularLighting" | "feSpotLight" | "feTile" | "feTurbulence" | "filter" | "foreignObject" | "g" | "image" | "line" | "linearGradient" | "marker" | "mask" | "metadata" | "mpath" | "path" | "pattern" | "polygon" | "polyline" | "radialGradient" | "rect" | "set" | "stop" | "switch" | "text" | "textPath" | "tspan" | "use" | "view" | react.ComponentType<any> | undefined;
|
|
43
|
+
} & react.RefAttributes<HTMLDivElement>): react.ReactNode;
|
|
45
44
|
<As extends react.ElementType>(props: {
|
|
46
45
|
as?: As | undefined;
|
|
47
|
-
} & CardBaseProps &
|
|
46
|
+
} & CardBaseProps & {
|
|
47
|
+
as?: "symbol" | "object" | "abbr" | "address" | "area" | "article" | "aside" | "audio" | "b" | "base" | "bdi" | "bdo" | "big" | "blockquote" | "body" | "br" | "button" | "canvas" | "caption" | "center" | "cite" | "code" | "col" | "colgroup" | "data" | "datalist" | "dd" | "del" | "details" | "dfn" | "dialog" | "div" | "dl" | "dt" | "em" | "embed" | "fieldset" | "figcaption" | "figure" | "footer" | "form" | "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "head" | "header" | "hgroup" | "hr" | "html" | "i" | "iframe" | "img" | "input" | "ins" | "kbd" | "keygen" | "label" | "legend" | "li" | "link" | "main" | "map" | "mark" | "menu" | "menuitem" | "meta" | "meter" | "nav" | "noindex" | "noscript" | "ol" | "optgroup" | "option" | "output" | "p" | "param" | "picture" | "pre" | "progress" | "q" | "rp" | "rt" | "ruby" | "s" | "samp" | "search" | "slot" | "script" | "section" | "select" | "small" | "source" | "span" | "strong" | "style" | "sub" | "summary" | "sup" | "table" | "template" | "tbody" | "td" | "textarea" | "tfoot" | "th" | "thead" | "time" | "title" | "tr" | "track" | "u" | "ul" | "var" | "video" | "wbr" | "webview" | "svg" | "animate" | "animateMotion" | "animateTransform" | "circle" | "clipPath" | "defs" | "desc" | "ellipse" | "feBlend" | "feColorMatrix" | "feComponentTransfer" | "feComposite" | "feConvolveMatrix" | "feDiffuseLighting" | "feDisplacementMap" | "feDistantLight" | "feDropShadow" | "feFlood" | "feFuncA" | "feFuncB" | "feFuncG" | "feFuncR" | "feGaussianBlur" | "feImage" | "feMerge" | "feMergeNode" | "feMorphology" | "feOffset" | "fePointLight" | "feSpecularLighting" | "feSpotLight" | "feTile" | "feTurbulence" | "filter" | "foreignObject" | "g" | "image" | "line" | "linearGradient" | "marker" | "mask" | "metadata" | "mpath" | "path" | "pattern" | "polygon" | "polyline" | "radialGradient" | "rect" | "set" | "stop" | "switch" | "text" | "textPath" | "tspan" | "use" | "view" | react.ComponentType<any> | undefined;
|
|
48
|
+
} & Omit<react.ComponentPropsWithRef<As>, "as" | keyof CardBaseProps>): react.ReactNode;
|
|
48
49
|
} & Pick<react.FC, "displayName"> & {
|
|
49
50
|
Media: typeof CardMediaComponent;
|
|
50
51
|
Body: typeof CardBodyComponent;
|
package/dist/card/index.js
CHANGED
|
@@ -61,12 +61,10 @@ var import_card = require("@postenbring/hedwig-css/dist/card.css");
|
|
|
61
61
|
var import_react = require("react");
|
|
62
62
|
var import_typed_classname = require("@postenbring/hedwig-css/typed-classname/index.mjs");
|
|
63
63
|
var import_jsx_runtime = require("react/jsx-runtime");
|
|
64
|
-
var Card = (0, import_react.forwardRef)(
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
}
|
|
69
|
-
);
|
|
64
|
+
var Card = (0, import_react.forwardRef)((_a, ref) => {
|
|
65
|
+
var _b = _a, { as: Component = "section", className, children } = _b, rest = __objRest(_b, ["as", "className", "children"]);
|
|
66
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Component, __spreadProps(__spreadValues({}, rest), { className: (0, import_typed_classname.clsx)("hds-card", className), ref, children }));
|
|
67
|
+
});
|
|
70
68
|
Card.displayName = "Card";
|
|
71
69
|
var CardMedia = (0, import_react.forwardRef)(
|
|
72
70
|
(_a, ref) => {
|
|
@@ -95,19 +93,17 @@ var CardBody = (0, import_react.forwardRef)(
|
|
|
95
93
|
}
|
|
96
94
|
);
|
|
97
95
|
CardBody.displayName = "Card.Body";
|
|
98
|
-
var CardBodyHeader = (0, import_react.forwardRef)(
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
}
|
|
110
|
-
);
|
|
96
|
+
var CardBodyHeader = (0, import_react.forwardRef)((_a, ref) => {
|
|
97
|
+
var _b = _a, { as: Component, className, children } = _b, rest = __objRest(_b, ["as", "className", "children"]);
|
|
98
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
99
|
+
Component,
|
|
100
|
+
__spreadProps(__spreadValues({}, rest), {
|
|
101
|
+
className: (0, import_typed_classname.clsx)("hds-card__body-header", className),
|
|
102
|
+
ref,
|
|
103
|
+
children
|
|
104
|
+
})
|
|
105
|
+
);
|
|
106
|
+
});
|
|
111
107
|
CardBodyHeader.displayName = "Card.Body.Header";
|
|
112
108
|
var CardBodyHeaderOverline = (0, import_react.forwardRef)((_a, ref) => {
|
|
113
109
|
var _b = _a, { as: Component = "span", className, children } = _b, rest = __objRest(_b, ["as", "className", "children"]);
|
|
@@ -121,19 +117,17 @@ var CardBodyHeaderOverline = (0, import_react.forwardRef)((_a, ref) => {
|
|
|
121
117
|
);
|
|
122
118
|
});
|
|
123
119
|
CardBodyHeaderOverline.displayName = "Card.Body.Header.Overline";
|
|
124
|
-
var CardBodyHeaderTitle = (0, import_react.forwardRef)(
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
}
|
|
136
|
-
);
|
|
120
|
+
var CardBodyHeaderTitle = (0, import_react.forwardRef)((_a, ref) => {
|
|
121
|
+
var _b = _a, { as: Component, className, children } = _b, rest = __objRest(_b, ["as", "className", "children"]);
|
|
122
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
123
|
+
Component,
|
|
124
|
+
__spreadProps(__spreadValues({}, rest), {
|
|
125
|
+
className: (0, import_typed_classname.clsx)("hds-card__body-header-title", className),
|
|
126
|
+
ref,
|
|
127
|
+
children
|
|
128
|
+
})
|
|
129
|
+
);
|
|
130
|
+
});
|
|
137
131
|
CardBodyHeaderTitle.displayName = "Card.Body.Header.Title";
|
|
138
132
|
var CardBodyDescription = (0, import_react.forwardRef)(
|
|
139
133
|
(_a, ref) => {
|
package/dist/card/index.mjs
CHANGED
|
@@ -4,20 +4,20 @@ import {
|
|
|
4
4
|
__spreadValues
|
|
5
5
|
} from "./chunk-FKR5F35B.mjs";
|
|
6
6
|
|
|
7
|
-
// src/
|
|
7
|
+
// src/styled-html/styled-html.tsx
|
|
8
8
|
import { forwardRef } from "react";
|
|
9
9
|
import { clsx } from "@postenbring/hedwig-css/typed-classname/index.mjs";
|
|
10
10
|
import { jsx } from "react/jsx-runtime";
|
|
11
|
-
var
|
|
11
|
+
var StyledHtml = forwardRef(
|
|
12
12
|
(_a, ref) => {
|
|
13
13
|
var _b = _a, { as: Component = "div", children, size, darkmode = false, className } = _b, rest = __objRest(_b, ["as", "children", "size", "darkmode", "className"]);
|
|
14
14
|
return /* @__PURE__ */ jsx(
|
|
15
15
|
Component,
|
|
16
16
|
__spreadProps(__spreadValues({
|
|
17
17
|
className: clsx(
|
|
18
|
-
`hds-
|
|
19
|
-
size === "small" && "hds-
|
|
20
|
-
darkmode && "hds-
|
|
18
|
+
`hds-styled-html`,
|
|
19
|
+
size === "small" && "hds-styled-html--small",
|
|
20
|
+
darkmode && "hds-styled-html--darkmode",
|
|
21
21
|
className
|
|
22
22
|
),
|
|
23
23
|
ref
|
|
@@ -27,8 +27,8 @@ var Prose = forwardRef(
|
|
|
27
27
|
);
|
|
28
28
|
}
|
|
29
29
|
);
|
|
30
|
-
|
|
30
|
+
StyledHtml.displayName = "Prose";
|
|
31
31
|
|
|
32
32
|
export {
|
|
33
|
-
|
|
33
|
+
StyledHtml
|
|
34
34
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
ErrorMessage
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-RBOWRO3L.mjs";
|
|
4
4
|
import {
|
|
5
5
|
__objRest,
|
|
6
6
|
__spreadProps,
|
|
@@ -23,8 +23,7 @@ var InputGroup = forwardRef(function InputGroup2(_a, ref) {
|
|
|
23
23
|
label,
|
|
24
24
|
disabled,
|
|
25
25
|
readOnly,
|
|
26
|
-
children
|
|
27
|
-
_unstableAriaLiveOnErrorMessage = false
|
|
26
|
+
children
|
|
28
27
|
} = _e, rest = __objRest(_e, [
|
|
29
28
|
"id",
|
|
30
29
|
"className",
|
|
@@ -35,8 +34,7 @@ var InputGroup = forwardRef(function InputGroup2(_a, ref) {
|
|
|
35
34
|
"label",
|
|
36
35
|
"disabled",
|
|
37
36
|
"readOnly",
|
|
38
|
-
"children"
|
|
39
|
-
"_unstableAriaLiveOnErrorMessage"
|
|
37
|
+
"children"
|
|
40
38
|
]);
|
|
41
39
|
const errorMessageId = useId();
|
|
42
40
|
const inputId = useId();
|
|
@@ -48,7 +46,7 @@ var InputGroup = forwardRef(function InputGroup2(_a, ref) {
|
|
|
48
46
|
return cloneElement(input, __spreadProps(__spreadValues({
|
|
49
47
|
"aria-describedby": errorMessage ? errorMessageId : void 0,
|
|
50
48
|
"aria-invalid": errorMessage ? true : void 0,
|
|
51
|
-
id: id
|
|
49
|
+
id: id != null ? id : inputId
|
|
52
50
|
}, input.props), {
|
|
53
51
|
className: clsx("hds-input-group__input", input.props.className)
|
|
54
52
|
}));
|
|
@@ -73,7 +71,7 @@ var InputGroup = forwardRef(function InputGroup2(_a, ref) {
|
|
|
73
71
|
__spreadProps(__spreadValues({
|
|
74
72
|
className: clsx("hds-input-group__label", labelClassName)
|
|
75
73
|
}, labelProps), {
|
|
76
|
-
htmlFor: id
|
|
74
|
+
htmlFor: id != null ? id : inputId,
|
|
77
75
|
children: label
|
|
78
76
|
})
|
|
79
77
|
),
|
|
@@ -86,14 +84,7 @@ var InputGroup = forwardRef(function InputGroup2(_a, ref) {
|
|
|
86
84
|
children: renderInput()
|
|
87
85
|
}
|
|
88
86
|
),
|
|
89
|
-
/* @__PURE__ */ jsx(
|
|
90
|
-
ErrorMessage,
|
|
91
|
-
{
|
|
92
|
-
_unstableAriaLiveOnErrorMessage,
|
|
93
|
-
id: errorMessageId,
|
|
94
|
-
children: errorMessage
|
|
95
|
-
}
|
|
96
|
-
)
|
|
87
|
+
/* @__PURE__ */ jsx(ErrorMessage, { id: errorMessageId, children: errorMessage })
|
|
97
88
|
]
|
|
98
89
|
})
|
|
99
90
|
);
|