@postenbring/hedwig-react 0.0.0-improve-typed-classname-20231127094705 → 0.0.0-include-css-in-react-package-k6QhqAlv
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/accordion/index.js +2 -2
- package/dist/accordion/index.mjs +4 -4
- package/dist/badge/index.js +2 -2
- package/dist/badge/index.mjs +1 -1
- package/dist/box/box.d.mts +2 -2
- package/dist/box/box.d.ts +2 -2
- package/dist/box/box.js +3 -3
- package/dist/box/box.mjs +1 -1
- package/dist/box/index.js +5 -5
- package/dist/box/index.mjs +2 -2
- package/dist/button/button.d.mts +14 -14
- package/dist/button/button.d.ts +14 -14
- package/dist/button/button.js +59 -44
- package/dist/button/button.mjs +3 -1
- package/dist/button/index.d.mts +2 -2
- package/dist/button/index.d.ts +2 -2
- package/dist/button/index.js +61 -46
- package/dist/button/index.mjs +4 -2
- package/dist/chunk-5NDZ66M6.mjs +5 -0
- package/dist/chunk-6AW5BEDP.mjs +21 -0
- package/dist/chunk-BJANCH4F.mjs +5 -0
- package/dist/chunk-ENRMC5K7.mjs +75 -0
- package/dist/chunk-N3EFZW7T.mjs +5 -0
- package/dist/{chunk-IOOSUX5O.mjs → chunk-QOVAYDPH.mjs} +2 -2
- package/dist/chunk-R55SMUE7.mjs +5 -0
- package/dist/{chunk-KKZOIYEN.mjs → chunk-RXUPE4MM.mjs} +3 -3
- package/dist/{chunk-G5QN3TMC.mjs → chunk-X4D24ZRP.mjs} +30 -2
- package/dist/chunk-XJ44O3HY.mjs +58 -0
- package/dist/chunk-Z36ETKOZ.mjs +5 -0
- package/dist/index.d.mts +5 -4
- package/dist/index.d.ts +5 -4
- package/dist/index.js +139 -87
- package/dist/index.mjs +35 -28
- package/dist/input/index.d.mts +3 -0
- package/dist/input/index.d.ts +3 -0
- package/dist/input/index.js +121 -0
- package/dist/input/index.mjs +13 -0
- package/dist/input/input.mjs +3 -53
- package/dist/link/index.js +2 -2
- package/dist/link/index.mjs +1 -1
- package/dist/list/index.js +2 -2
- package/dist/list/index.mjs +6 -6
- package/dist/message/index.d.mts +14 -2
- package/dist/message/index.d.ts +14 -2
- package/dist/message/index.js +44 -7
- package/dist/message/index.mjs +10 -5
- package/dist/message/message.d.mts +3 -1
- package/dist/message/message.d.ts +3 -1
- package/dist/message/message.js +35 -5
- package/dist/message/message.mjs +8 -4
- package/package.json +5 -5
- package/dist/chunk-4XWB4ZSR.mjs +0 -6
- package/dist/chunk-AYGPUYPZ.mjs +0 -5
- package/dist/chunk-CYW3DUD2.mjs +0 -5
- package/dist/chunk-ID5KKZMK.mjs +0 -5
- package/dist/chunk-PCKWBORI.mjs +0 -5
- package/dist/chunk-RDLHKDI5.mjs +0 -61
- package/dist/chunk-VZNNGRKM.mjs +0 -5
package/dist/accordion/index.js
CHANGED
|
@@ -55,8 +55,8 @@ __export(accordion_exports, {
|
|
|
55
55
|
AccordionTrigger: () => AccordionTrigger
|
|
56
56
|
});
|
|
57
57
|
module.exports = __toCommonJS(accordion_exports);
|
|
58
|
-
var import_fonts = require("@postenbring/hedwig-
|
|
59
|
-
var import_tokens = require("@postenbring/hedwig-
|
|
58
|
+
var import_fonts = require("@postenbring/hedwig-css/dist/fonts.css");
|
|
59
|
+
var import_tokens = require("@postenbring/hedwig-css/dist/tokens.css");
|
|
60
60
|
var import_base = require("@postenbring/hedwig-css/dist/base.css");
|
|
61
61
|
var import_accordion = require("@postenbring/hedwig-css/dist/accordion.css");
|
|
62
62
|
|
package/dist/accordion/index.mjs
CHANGED
|
@@ -1,4 +1,7 @@
|
|
|
1
|
-
import "../chunk-
|
|
1
|
+
import "../chunk-Z36ETKOZ.mjs";
|
|
2
|
+
import {
|
|
3
|
+
Accordion
|
|
4
|
+
} from "../chunk-GMGUONH5.mjs";
|
|
2
5
|
import {
|
|
3
6
|
AccordionContent
|
|
4
7
|
} from "../chunk-J7U4Z726.mjs";
|
|
@@ -8,9 +11,6 @@ import {
|
|
|
8
11
|
import {
|
|
9
12
|
AccordionItem
|
|
10
13
|
} from "../chunk-L7DYK6OS.mjs";
|
|
11
|
-
import {
|
|
12
|
-
Accordion
|
|
13
|
-
} from "../chunk-GMGUONH5.mjs";
|
|
14
14
|
import "../chunk-2V6SWZ5G.mjs";
|
|
15
15
|
import "../chunk-FUJQIYOF.mjs";
|
|
16
16
|
export {
|
package/dist/badge/index.js
CHANGED
|
@@ -55,8 +55,8 @@ __export(badge_exports, {
|
|
|
55
55
|
WhiteBadge: () => WhiteBadge
|
|
56
56
|
});
|
|
57
57
|
module.exports = __toCommonJS(badge_exports);
|
|
58
|
-
var import_fonts = require("@postenbring/hedwig-
|
|
59
|
-
var import_tokens = require("@postenbring/hedwig-
|
|
58
|
+
var import_fonts = require("@postenbring/hedwig-css/dist/fonts.css");
|
|
59
|
+
var import_tokens = require("@postenbring/hedwig-css/dist/tokens.css");
|
|
60
60
|
var import_base = require("@postenbring/hedwig-css/dist/base.css");
|
|
61
61
|
var import_badge = require("@postenbring/hedwig-css/dist/badge.css");
|
|
62
62
|
|
package/dist/badge/index.mjs
CHANGED
package/dist/box/box.d.mts
CHANGED
|
@@ -5,10 +5,10 @@ interface BoxProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
|
5
5
|
variant?: "light-grey" | "lighter" | "white" | "warning";
|
|
6
6
|
children: React.ReactNode;
|
|
7
7
|
/**
|
|
8
|
-
* If `true`,
|
|
8
|
+
* If `true`, a close button will be shown.
|
|
9
9
|
* Use when you want to control the close button using the BoxCloseButton component.
|
|
10
10
|
*/
|
|
11
|
-
|
|
11
|
+
closeable?: boolean;
|
|
12
12
|
/**
|
|
13
13
|
* Callback fired when the component requests to be closed.
|
|
14
14
|
* If not set, the component will be closed without any user interaction.
|
package/dist/box/box.d.ts
CHANGED
|
@@ -5,10 +5,10 @@ interface BoxProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
|
5
5
|
variant?: "light-grey" | "lighter" | "white" | "warning";
|
|
6
6
|
children: React.ReactNode;
|
|
7
7
|
/**
|
|
8
|
-
* If `true`,
|
|
8
|
+
* If `true`, a close button will be shown.
|
|
9
9
|
* Use when you want to control the close button using the BoxCloseButton component.
|
|
10
10
|
*/
|
|
11
|
-
|
|
11
|
+
closeable?: boolean;
|
|
12
12
|
/**
|
|
13
13
|
* Callback fired when the component requests to be closed.
|
|
14
14
|
* If not set, the component will be closed without any user interaction.
|
package/dist/box/box.js
CHANGED
|
@@ -61,7 +61,7 @@ var Box = (0, import_react.forwardRef)(
|
|
|
61
61
|
var _b = _a, {
|
|
62
62
|
as: Component = "div",
|
|
63
63
|
variant = "light-grey",
|
|
64
|
-
|
|
64
|
+
closeable = false,
|
|
65
65
|
onClose: onCloseProp,
|
|
66
66
|
closed: closedProp,
|
|
67
67
|
closeButtonProps,
|
|
@@ -70,7 +70,7 @@ var Box = (0, import_react.forwardRef)(
|
|
|
70
70
|
} = _b, rest = __objRest(_b, [
|
|
71
71
|
"as",
|
|
72
72
|
"variant",
|
|
73
|
-
"
|
|
73
|
+
"closeable",
|
|
74
74
|
"onClose",
|
|
75
75
|
"closed",
|
|
76
76
|
"closeButtonProps",
|
|
@@ -101,7 +101,7 @@ var Box = (0, import_react.forwardRef)(
|
|
|
101
101
|
ref
|
|
102
102
|
}, rest), {
|
|
103
103
|
children: [
|
|
104
|
-
|
|
104
|
+
closeable ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(BoxCloseButton, __spreadValues({ onClick: onClose }, closeButtonProps)) : null,
|
|
105
105
|
children
|
|
106
106
|
]
|
|
107
107
|
})
|
package/dist/box/box.mjs
CHANGED
package/dist/box/index.js
CHANGED
|
@@ -53,8 +53,8 @@ __export(box_exports, {
|
|
|
53
53
|
BoxCloseButton: () => BoxCloseButton
|
|
54
54
|
});
|
|
55
55
|
module.exports = __toCommonJS(box_exports);
|
|
56
|
-
var import_fonts = require("@postenbring/hedwig-
|
|
57
|
-
var import_tokens = require("@postenbring/hedwig-
|
|
56
|
+
var import_fonts = require("@postenbring/hedwig-css/dist/fonts.css");
|
|
57
|
+
var import_tokens = require("@postenbring/hedwig-css/dist/tokens.css");
|
|
58
58
|
var import_base = require("@postenbring/hedwig-css/dist/base.css");
|
|
59
59
|
var import_box = require("@postenbring/hedwig-css/dist/box.css");
|
|
60
60
|
|
|
@@ -67,7 +67,7 @@ var Box = (0, import_react.forwardRef)(
|
|
|
67
67
|
var _b = _a, {
|
|
68
68
|
as: Component = "div",
|
|
69
69
|
variant = "light-grey",
|
|
70
|
-
|
|
70
|
+
closeable = false,
|
|
71
71
|
onClose: onCloseProp,
|
|
72
72
|
closed: closedProp,
|
|
73
73
|
closeButtonProps,
|
|
@@ -76,7 +76,7 @@ var Box = (0, import_react.forwardRef)(
|
|
|
76
76
|
} = _b, rest = __objRest(_b, [
|
|
77
77
|
"as",
|
|
78
78
|
"variant",
|
|
79
|
-
"
|
|
79
|
+
"closeable",
|
|
80
80
|
"onClose",
|
|
81
81
|
"closed",
|
|
82
82
|
"closeButtonProps",
|
|
@@ -107,7 +107,7 @@ var Box = (0, import_react.forwardRef)(
|
|
|
107
107
|
ref
|
|
108
108
|
}, rest), {
|
|
109
109
|
children: [
|
|
110
|
-
|
|
110
|
+
closeable ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(BoxCloseButton, __spreadValues({ onClick: onClose }, closeButtonProps)) : null,
|
|
111
111
|
children
|
|
112
112
|
]
|
|
113
113
|
})
|
package/dist/box/index.mjs
CHANGED
package/dist/button/button.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
1
|
+
import { O as OverridableComponent } from '../utils-BfZsjuFH.mjs';
|
|
2
|
+
import 'react';
|
|
3
3
|
|
|
4
4
|
interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {
|
|
5
5
|
/**
|
|
@@ -15,23 +15,23 @@ interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {
|
|
|
15
15
|
* The background of the button.
|
|
16
16
|
*/
|
|
17
17
|
fill?: "contained" | "outlined";
|
|
18
|
-
|
|
19
|
-
|
|
18
|
+
/**
|
|
19
|
+
* Use an icon inside the button
|
|
20
|
+
*/
|
|
21
|
+
icon?: React.ReactNode;
|
|
22
|
+
children?: React.ReactNode;
|
|
20
23
|
}
|
|
24
|
+
declare const BaseButton: OverridableComponent<ButtonProps & {
|
|
25
|
+
variant: "primary" | "secondary";
|
|
26
|
+
}, HTMLButtonElement>;
|
|
21
27
|
/**
|
|
22
28
|
* ## TODO
|
|
23
29
|
*
|
|
24
|
-
* - [
|
|
30
|
+
* - [x] Handle links that looks like buttons
|
|
25
31
|
* - [ ] Revisit how to handle outline
|
|
26
32
|
* - [ ] Figure out outline-white
|
|
27
33
|
*/
|
|
28
|
-
declare
|
|
29
|
-
declare
|
|
30
|
-
var displayName: string;
|
|
31
|
-
}
|
|
32
|
-
declare function SecondaryButton(props: ButtonProps): react_jsx_runtime.JSX.Element;
|
|
33
|
-
declare namespace SecondaryButton {
|
|
34
|
-
var displayName: string;
|
|
35
|
-
}
|
|
34
|
+
declare const PrimaryButton: OverridableComponent<ButtonProps, HTMLButtonElement>;
|
|
35
|
+
declare const SecondaryButton: OverridableComponent<ButtonProps, HTMLButtonElement>;
|
|
36
36
|
|
|
37
|
-
export { type ButtonProps, PrimaryButton, SecondaryButton };
|
|
37
|
+
export { BaseButton, type ButtonProps, PrimaryButton, SecondaryButton };
|
package/dist/button/button.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
1
|
+
import { O as OverridableComponent } from '../utils-BfZsjuFH.js';
|
|
2
|
+
import 'react';
|
|
3
3
|
|
|
4
4
|
interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {
|
|
5
5
|
/**
|
|
@@ -15,23 +15,23 @@ interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {
|
|
|
15
15
|
* The background of the button.
|
|
16
16
|
*/
|
|
17
17
|
fill?: "contained" | "outlined";
|
|
18
|
-
|
|
19
|
-
|
|
18
|
+
/**
|
|
19
|
+
* Use an icon inside the button
|
|
20
|
+
*/
|
|
21
|
+
icon?: React.ReactNode;
|
|
22
|
+
children?: React.ReactNode;
|
|
20
23
|
}
|
|
24
|
+
declare const BaseButton: OverridableComponent<ButtonProps & {
|
|
25
|
+
variant: "primary" | "secondary";
|
|
26
|
+
}, HTMLButtonElement>;
|
|
21
27
|
/**
|
|
22
28
|
* ## TODO
|
|
23
29
|
*
|
|
24
|
-
* - [
|
|
30
|
+
* - [x] Handle links that looks like buttons
|
|
25
31
|
* - [ ] Revisit how to handle outline
|
|
26
32
|
* - [ ] Figure out outline-white
|
|
27
33
|
*/
|
|
28
|
-
declare
|
|
29
|
-
declare
|
|
30
|
-
var displayName: string;
|
|
31
|
-
}
|
|
32
|
-
declare function SecondaryButton(props: ButtonProps): react_jsx_runtime.JSX.Element;
|
|
33
|
-
declare namespace SecondaryButton {
|
|
34
|
-
var displayName: string;
|
|
35
|
-
}
|
|
34
|
+
declare const PrimaryButton: OverridableComponent<ButtonProps, HTMLButtonElement>;
|
|
35
|
+
declare const SecondaryButton: OverridableComponent<ButtonProps, HTMLButtonElement>;
|
|
36
36
|
|
|
37
|
-
export { type ButtonProps, PrimaryButton, SecondaryButton };
|
|
37
|
+
export { BaseButton, type ButtonProps, PrimaryButton, SecondaryButton };
|
package/dist/button/button.js
CHANGED
|
@@ -49,61 +49,76 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
|
|
|
49
49
|
// src/button/button.tsx
|
|
50
50
|
var button_exports = {};
|
|
51
51
|
__export(button_exports, {
|
|
52
|
+
BaseButton: () => BaseButton,
|
|
52
53
|
PrimaryButton: () => PrimaryButton,
|
|
53
54
|
SecondaryButton: () => SecondaryButton
|
|
54
55
|
});
|
|
55
56
|
module.exports = __toCommonJS(button_exports);
|
|
57
|
+
var import_react = require("react");
|
|
56
58
|
var import_typed_classname = require("@postenbring/hedwig-css/typed-classname/index.mjs");
|
|
57
59
|
var import_jsx_runtime = require("react/jsx-runtime");
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
}
|
|
60
|
+
var BaseButton = (0, import_react.forwardRef)(
|
|
61
|
+
(_a, ref) => {
|
|
62
|
+
var _b = _a, {
|
|
63
|
+
as: Component = "button",
|
|
64
|
+
children,
|
|
65
|
+
variant,
|
|
66
|
+
size = "medium",
|
|
67
|
+
fullWidth = false,
|
|
68
|
+
fill = "contained",
|
|
69
|
+
icon,
|
|
70
|
+
className
|
|
71
|
+
} = _b, rest = __objRest(_b, [
|
|
72
|
+
"as",
|
|
73
|
+
"children",
|
|
74
|
+
"variant",
|
|
75
|
+
"size",
|
|
76
|
+
"fullWidth",
|
|
77
|
+
"fill",
|
|
78
|
+
"icon",
|
|
79
|
+
"className"
|
|
80
|
+
]);
|
|
81
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
|
|
82
|
+
Component,
|
|
83
|
+
__spreadProps(__spreadValues({
|
|
84
|
+
className: (0, import_typed_classname.clsx)(
|
|
85
|
+
"hds-button",
|
|
86
|
+
`hds-button--${size}`,
|
|
87
|
+
{
|
|
88
|
+
[`hds-button--${variant}`]: fill === "contained",
|
|
89
|
+
[`hds-button--outline-${variant}`]: fill === "outlined",
|
|
90
|
+
"hds-button--full": fullWidth === true,
|
|
91
|
+
"hds-button--mobile-full": fullWidth === "mobile",
|
|
92
|
+
"hds-button--icon-only": icon && !children
|
|
93
|
+
},
|
|
94
|
+
className
|
|
95
|
+
),
|
|
96
|
+
ref
|
|
97
|
+
}, rest), {
|
|
98
|
+
children: [
|
|
99
|
+
icon && !children ? icon : null,
|
|
100
|
+
children
|
|
101
|
+
]
|
|
102
|
+
})
|
|
103
|
+
);
|
|
104
|
+
}
|
|
105
|
+
);
|
|
96
106
|
BaseButton.displayName = "BaseButton";
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
}
|
|
107
|
+
var PrimaryButton = (0, import_react.forwardRef)(
|
|
108
|
+
(props, ref) => {
|
|
109
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(BaseButton, __spreadProps(__spreadValues({}, props), { ref, variant: "primary" }));
|
|
110
|
+
}
|
|
111
|
+
);
|
|
100
112
|
PrimaryButton.displayName = "PrimaryButton";
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
}
|
|
113
|
+
var SecondaryButton = (0, import_react.forwardRef)(
|
|
114
|
+
(props, ref) => {
|
|
115
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(BaseButton, __spreadProps(__spreadValues({}, props), { ref, variant: "secondary" }));
|
|
116
|
+
}
|
|
117
|
+
);
|
|
104
118
|
SecondaryButton.displayName = "SecondaryButton";
|
|
105
119
|
// Annotate the CommonJS export names for ESM import in node:
|
|
106
120
|
0 && (module.exports = {
|
|
121
|
+
BaseButton,
|
|
107
122
|
PrimaryButton,
|
|
108
123
|
SecondaryButton
|
|
109
124
|
});
|
package/dist/button/button.mjs
CHANGED
package/dist/button/index.d.mts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { ButtonProps, PrimaryButton, SecondaryButton } from './button.mjs';
|
|
2
|
-
import '
|
|
1
|
+
export { BaseButton, ButtonProps, PrimaryButton, SecondaryButton } from './button.mjs';
|
|
2
|
+
import '../utils-BfZsjuFH.mjs';
|
|
3
3
|
import 'react';
|
package/dist/button/index.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { ButtonProps, PrimaryButton, SecondaryButton } from './button.js';
|
|
2
|
-
import '
|
|
1
|
+
export { BaseButton, ButtonProps, PrimaryButton, SecondaryButton } from './button.js';
|
|
2
|
+
import '../utils-BfZsjuFH.js';
|
|
3
3
|
import 'react';
|
package/dist/button/index.js
CHANGED
|
@@ -49,67 +49,82 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
|
|
|
49
49
|
// src/button/index.tsx
|
|
50
50
|
var button_exports = {};
|
|
51
51
|
__export(button_exports, {
|
|
52
|
+
BaseButton: () => BaseButton,
|
|
52
53
|
PrimaryButton: () => PrimaryButton,
|
|
53
54
|
SecondaryButton: () => SecondaryButton
|
|
54
55
|
});
|
|
55
56
|
module.exports = __toCommonJS(button_exports);
|
|
56
|
-
var import_fonts = require("@postenbring/hedwig-
|
|
57
|
-
var import_tokens = require("@postenbring/hedwig-
|
|
57
|
+
var import_fonts = require("@postenbring/hedwig-css/dist/fonts.css");
|
|
58
|
+
var import_tokens = require("@postenbring/hedwig-css/dist/tokens.css");
|
|
58
59
|
var import_base = require("@postenbring/hedwig-css/dist/base.css");
|
|
59
60
|
var import_button = require("@postenbring/hedwig-css/dist/button.css");
|
|
60
61
|
|
|
61
62
|
// src/button/button.tsx
|
|
63
|
+
var import_react = require("react");
|
|
62
64
|
var import_typed_classname = require("@postenbring/hedwig-css/typed-classname/index.mjs");
|
|
63
65
|
var import_jsx_runtime = require("react/jsx-runtime");
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
}
|
|
66
|
+
var BaseButton = (0, import_react.forwardRef)(
|
|
67
|
+
(_a, ref) => {
|
|
68
|
+
var _b = _a, {
|
|
69
|
+
as: Component = "button",
|
|
70
|
+
children,
|
|
71
|
+
variant,
|
|
72
|
+
size = "medium",
|
|
73
|
+
fullWidth = false,
|
|
74
|
+
fill = "contained",
|
|
75
|
+
icon,
|
|
76
|
+
className
|
|
77
|
+
} = _b, rest = __objRest(_b, [
|
|
78
|
+
"as",
|
|
79
|
+
"children",
|
|
80
|
+
"variant",
|
|
81
|
+
"size",
|
|
82
|
+
"fullWidth",
|
|
83
|
+
"fill",
|
|
84
|
+
"icon",
|
|
85
|
+
"className"
|
|
86
|
+
]);
|
|
87
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
|
|
88
|
+
Component,
|
|
89
|
+
__spreadProps(__spreadValues({
|
|
90
|
+
className: (0, import_typed_classname.clsx)(
|
|
91
|
+
"hds-button",
|
|
92
|
+
`hds-button--${size}`,
|
|
93
|
+
{
|
|
94
|
+
[`hds-button--${variant}`]: fill === "contained",
|
|
95
|
+
[`hds-button--outline-${variant}`]: fill === "outlined",
|
|
96
|
+
"hds-button--full": fullWidth === true,
|
|
97
|
+
"hds-button--mobile-full": fullWidth === "mobile",
|
|
98
|
+
"hds-button--icon-only": icon && !children
|
|
99
|
+
},
|
|
100
|
+
className
|
|
101
|
+
),
|
|
102
|
+
ref
|
|
103
|
+
}, rest), {
|
|
104
|
+
children: [
|
|
105
|
+
icon && !children ? icon : null,
|
|
106
|
+
children
|
|
107
|
+
]
|
|
108
|
+
})
|
|
109
|
+
);
|
|
110
|
+
}
|
|
111
|
+
);
|
|
102
112
|
BaseButton.displayName = "BaseButton";
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
}
|
|
113
|
+
var PrimaryButton = (0, import_react.forwardRef)(
|
|
114
|
+
(props, ref) => {
|
|
115
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(BaseButton, __spreadProps(__spreadValues({}, props), { ref, variant: "primary" }));
|
|
116
|
+
}
|
|
117
|
+
);
|
|
106
118
|
PrimaryButton.displayName = "PrimaryButton";
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
}
|
|
119
|
+
var SecondaryButton = (0, import_react.forwardRef)(
|
|
120
|
+
(props, ref) => {
|
|
121
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(BaseButton, __spreadProps(__spreadValues({}, props), { ref, variant: "secondary" }));
|
|
122
|
+
}
|
|
123
|
+
);
|
|
110
124
|
SecondaryButton.displayName = "SecondaryButton";
|
|
111
125
|
// Annotate the CommonJS export names for ESM import in node:
|
|
112
126
|
0 && (module.exports = {
|
|
127
|
+
BaseButton,
|
|
113
128
|
PrimaryButton,
|
|
114
129
|
SecondaryButton
|
|
115
130
|
});
|
package/dist/button/index.mjs
CHANGED
|
@@ -1,10 +1,12 @@
|
|
|
1
|
-
import "../chunk-
|
|
1
|
+
import "../chunk-N3EFZW7T.mjs";
|
|
2
2
|
import {
|
|
3
|
+
BaseButton,
|
|
3
4
|
PrimaryButton,
|
|
4
5
|
SecondaryButton
|
|
5
|
-
} from "../chunk-
|
|
6
|
+
} from "../chunk-ENRMC5K7.mjs";
|
|
6
7
|
import "../chunk-FUJQIYOF.mjs";
|
|
7
8
|
export {
|
|
9
|
+
BaseButton,
|
|
8
10
|
PrimaryButton,
|
|
9
11
|
SecondaryButton
|
|
10
12
|
};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import {
|
|
2
|
+
Message,
|
|
3
|
+
MessageDescription,
|
|
4
|
+
MessageTitle
|
|
5
|
+
} from "./chunk-X4D24ZRP.mjs";
|
|
6
|
+
|
|
7
|
+
// src/message/index.tsx
|
|
8
|
+
import "@postenbring/hedwig-css/dist/fonts.css";
|
|
9
|
+
import "@postenbring/hedwig-css/dist/tokens.css";
|
|
10
|
+
import "@postenbring/hedwig-css/dist/base.css";
|
|
11
|
+
import "@postenbring/hedwig-css/dist/box.css";
|
|
12
|
+
import "@postenbring/hedwig-css/dist/message.css";
|
|
13
|
+
var MessageComponent = Message;
|
|
14
|
+
MessageComponent.Title = MessageTitle;
|
|
15
|
+
MessageComponent.Description = MessageDescription;
|
|
16
|
+
MessageComponent.Title.displayName = "Message";
|
|
17
|
+
MessageComponent.Description.displayName = "Message";
|
|
18
|
+
|
|
19
|
+
export {
|
|
20
|
+
MessageComponent
|
|
21
|
+
};
|