@postenbring/hedwig-react 0.0.23 → 0.0.25

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.
@@ -1,12 +1,12 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
- import * as React from 'react';
2
+ import * as react from 'react';
3
3
 
4
- interface BadgeProps extends React.AnchorHTMLAttributes<HTMLSpanElement> {
4
+ interface BadgeProps extends react.AnchorHTMLAttributes<HTMLSpanElement> {
5
5
  /**
6
6
  * Font size of the badge
7
7
  */
8
8
  size?: "small" | "smaller";
9
- children: React.ReactNode;
9
+ children: react.ReactNode;
10
10
  }
11
11
  declare function Badge(props: BadgeProps): react_jsx_runtime.JSX.Element;
12
12
  declare namespace Badge {
@@ -1,12 +1,12 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
- import * as React from 'react';
2
+ import * as react from 'react';
3
3
 
4
- interface BadgeProps extends React.AnchorHTMLAttributes<HTMLSpanElement> {
4
+ interface BadgeProps extends react.AnchorHTMLAttributes<HTMLSpanElement> {
5
5
  /**
6
6
  * Font size of the badge
7
7
  */
8
8
  size?: "small" | "smaller";
9
- children: React.ReactNode;
9
+ children: react.ReactNode;
10
10
  }
11
11
  declare function Badge(props: BadgeProps): react_jsx_runtime.JSX.Element;
12
12
  declare namespace Badge {
@@ -1,4 +1,4 @@
1
- import * as React$1 from 'react';
1
+ import * as react from 'react';
2
2
  import { O as OverridableComponent } from '../utils-BfZsjuFH.mjs';
3
3
 
4
4
  interface BoxProps extends React.HTMLAttributes<HTMLDivElement> {
@@ -31,6 +31,6 @@ interface BoxProps extends React.HTMLAttributes<HTMLDivElement> {
31
31
  }
32
32
  declare const Box: OverridableComponent<BoxProps, HTMLDivElement>;
33
33
  type BoxCloseButtonProps = Omit<React.HTMLAttributes<HTMLButtonElement>, "children">;
34
- declare const BoxCloseButton: React$1.ForwardRefExoticComponent<BoxCloseButtonProps & React$1.RefAttributes<HTMLButtonElement>>;
34
+ declare const BoxCloseButton: react.ForwardRefExoticComponent<BoxCloseButtonProps & react.RefAttributes<HTMLButtonElement>>;
35
35
 
36
36
  export { Box, BoxCloseButton, type BoxCloseButtonProps, type BoxProps };
package/dist/box/box.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import * as React$1 from 'react';
1
+ import * as react from 'react';
2
2
  import { O as OverridableComponent } from '../utils-BfZsjuFH.js';
3
3
 
4
4
  interface BoxProps extends React.HTMLAttributes<HTMLDivElement> {
@@ -31,6 +31,6 @@ interface BoxProps extends React.HTMLAttributes<HTMLDivElement> {
31
31
  }
32
32
  declare const Box: OverridableComponent<BoxProps, HTMLDivElement>;
33
33
  type BoxCloseButtonProps = Omit<React.HTMLAttributes<HTMLButtonElement>, "children">;
34
- declare const BoxCloseButton: React$1.ForwardRefExoticComponent<BoxCloseButtonProps & React$1.RefAttributes<HTMLButtonElement>>;
34
+ declare const BoxCloseButton: react.ForwardRefExoticComponent<BoxCloseButtonProps & react.RefAttributes<HTMLButtonElement>>;
35
35
 
36
36
  export { Box, BoxCloseButton, type BoxCloseButtonProps, type BoxProps };
@@ -5,27 +5,31 @@ import {
5
5
  } from "./chunk-FUJQIYOF.mjs";
6
6
 
7
7
  // src/input/input.tsx
8
- import * as React from "react";
8
+ import { useId, forwardRef } from "react";
9
9
  import { clsx } from "@postenbring/hedwig-css/typed-classname/index.mjs";
10
10
  import { jsx, jsxs } from "react/jsx-runtime";
11
- function Input(_a) {
11
+ var Input = forwardRef(function Input2(_a, ref) {
12
12
  var _b = _a, {
13
13
  variant = "default",
14
14
  errorMessage,
15
15
  labelProps,
16
16
  label,
17
17
  id,
18
- className
18
+ className,
19
+ disabled,
20
+ readOnly
19
21
  } = _b, rest = __objRest(_b, [
20
22
  "variant",
21
23
  "errorMessage",
22
24
  "labelProps",
23
25
  "label",
24
26
  "id",
25
- "className"
27
+ "className",
28
+ "disabled",
29
+ "readOnly"
26
30
  ]);
27
- const errorMessageId = React.useId();
28
- const inputId = React.useId();
31
+ const errorMessageId = useId();
32
+ const inputId = useId();
29
33
  return /* @__PURE__ */ jsxs(
30
34
  "div",
31
35
  {
@@ -39,19 +43,30 @@ function Input(_a) {
39
43
  ),
40
44
  children: [
41
45
  /* @__PURE__ */ jsx("label", __spreadProps(__spreadValues({ className: "hds-input__label" }, labelProps), { htmlFor: id || inputId, children: label })),
42
- !!errorMessage && /* @__PURE__ */ jsx("span", { className: "hds-input__error-message", id: errorMessageId, children: errorMessage }),
43
46
  /* @__PURE__ */ jsx(
44
- "input",
45
- __spreadProps(__spreadValues({}, rest), {
46
- "aria-describedby": errorMessageId,
47
- className: "hds-input__input",
48
- id: id || inputId
49
- })
50
- )
47
+ "div",
48
+ {
49
+ className: clsx("hds-input__input-wrapper"),
50
+ "data-disabled": disabled,
51
+ "data-readonly": readOnly,
52
+ children: /* @__PURE__ */ jsx(
53
+ "input",
54
+ __spreadProps(__spreadValues({}, rest), {
55
+ "aria-describedby": errorMessage ? errorMessageId : void 0,
56
+ className: "hds-input__input",
57
+ disabled,
58
+ id: id || inputId,
59
+ readOnly,
60
+ ref
61
+ })
62
+ )
63
+ }
64
+ ),
65
+ !!errorMessage && /* @__PURE__ */ jsx("span", { className: "hds-input__error-message", id: errorMessageId, children: errorMessage })
51
66
  ]
52
67
  }
53
68
  );
54
- }
69
+ });
55
70
 
56
71
  export {
57
72
  Input
@@ -0,0 +1,5 @@
1
+ // src/input/index.tsx
2
+ import "@postenbring/hedwig-css/dist/fonts.css";
3
+ import "@postenbring/hedwig-css/dist/tokens.css";
4
+ import "@postenbring/hedwig-css/dist/body.css";
5
+ import "@postenbring/hedwig-css/dist/input.css";
@@ -1,11 +1,11 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
- import * as React from 'react';
2
+ import * as react from 'react';
3
3
 
4
- interface DropdownProps extends Omit<React.SelectHTMLAttributes<HTMLSelectElement>, "children"> {
4
+ interface DropdownProps extends Omit<react.SelectHTMLAttributes<HTMLSelectElement>, "children"> {
5
5
  label: string;
6
6
  variant: "default" | "white" | "lined";
7
7
  errorMessage?: string;
8
- children: React.ReactNode;
8
+ children: react.ReactNode;
9
9
  }
10
10
  declare function Dropdown({ label, variant, errorMessage, className, children, ...rest }: DropdownProps): react_jsx_runtime.JSX.Element;
11
11
  declare namespace Dropdown {
@@ -1,11 +1,11 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
- import * as React from 'react';
2
+ import * as react from 'react';
3
3
 
4
- interface DropdownProps extends Omit<React.SelectHTMLAttributes<HTMLSelectElement>, "children"> {
4
+ interface DropdownProps extends Omit<react.SelectHTMLAttributes<HTMLSelectElement>, "children"> {
5
5
  label: string;
6
6
  variant: "default" | "white" | "lined";
7
7
  errorMessage?: string;
8
- children: React.ReactNode;
8
+ children: react.ReactNode;
9
9
  }
10
10
  declare function Dropdown({ label, variant, errorMessage, className, children, ...rest }: DropdownProps): react_jsx_runtime.JSX.Element;
11
11
  declare namespace Dropdown {
package/dist/index.d.mts CHANGED
@@ -16,6 +16,7 @@ export { Breadcrumbs, BreadcrumbsProps } from './breadcrumb/breadcrumb.mjs';
16
16
  export { Tabs, TabsProps } from './tabs/tabs.mjs';
17
17
  export { Tab, TabList, TabListProps, TabProps } from './tabs/tabs-list.mjs';
18
18
  export { TabContent, TabContentProps, TabContents, TabContentsProps } from './tabs/tabs-content.mjs';
19
+ export { Input, InputProps } from './input/input.mjs';
19
20
  export { MessageDescription, MessageTitle } from './message/message.mjs';
20
21
  export { ModalHeader } from './modal/modal.mjs';
21
22
  import './utils-BfZsjuFH.mjs';
package/dist/index.d.ts CHANGED
@@ -16,6 +16,7 @@ export { Breadcrumbs, BreadcrumbsProps } from './breadcrumb/breadcrumb.js';
16
16
  export { Tabs, TabsProps } from './tabs/tabs.js';
17
17
  export { Tab, TabList, TabListProps, TabProps } from './tabs/tabs-list.js';
18
18
  export { TabContent, TabContentProps, TabContents, TabContentsProps } from './tabs/tabs-content.js';
19
+ export { Input, InputProps } from './input/input.js';
19
20
  export { MessageDescription, MessageTitle } from './message/message.js';
20
21
  export { ModalHeader } from './modal/modal.js';
21
22
  import './utils-BfZsjuFH.js';
package/dist/index.js CHANGED
@@ -73,6 +73,7 @@ __export(src_exports, {
73
73
  DescriptionList: () => DescriptionList,
74
74
  DescriptionTerm: () => DescriptionTerm,
75
75
  Dropdown: () => Dropdown,
76
+ Input: () => Input,
76
77
  Link: () => Link,
77
78
  LinkList: () => LinkList,
78
79
  Message: () => MessageComponent,
@@ -930,6 +931,76 @@ var TabContent = (0, import_react15.forwardRef)(
930
931
  }
931
932
  );
932
933
  TabContent.displayName = "TabContent";
934
+
935
+ // src/input/index.tsx
936
+ var import_fonts12 = require("@postenbring/hedwig-css/dist/fonts.css");
937
+ var import_tokens12 = require("@postenbring/hedwig-css/dist/tokens.css");
938
+ var import_body12 = require("@postenbring/hedwig-css/dist/body.css");
939
+ var import_input = require("@postenbring/hedwig-css/dist/input.css");
940
+
941
+ // src/input/input.tsx
942
+ var import_react16 = require("react");
943
+ var import_typed_classname18 = require("@postenbring/hedwig-css/typed-classname/index.mjs");
944
+ var import_jsx_runtime19 = require("react/jsx-runtime");
945
+ var Input = (0, import_react16.forwardRef)(function Input2(_a, ref) {
946
+ var _b = _a, {
947
+ variant = "default",
948
+ errorMessage,
949
+ labelProps,
950
+ label,
951
+ id,
952
+ className,
953
+ disabled,
954
+ readOnly
955
+ } = _b, rest = __objRest(_b, [
956
+ "variant",
957
+ "errorMessage",
958
+ "labelProps",
959
+ "label",
960
+ "id",
961
+ "className",
962
+ "disabled",
963
+ "readOnly"
964
+ ]);
965
+ const errorMessageId = (0, import_react16.useId)();
966
+ const inputId = (0, import_react16.useId)();
967
+ return /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)(
968
+ "div",
969
+ {
970
+ className: (0, import_typed_classname18.clsx)(
971
+ "hds-input",
972
+ {
973
+ [`hds-input--${variant}`]: variant,
974
+ "hds-input--error": errorMessage
975
+ },
976
+ className
977
+ ),
978
+ children: [
979
+ /* @__PURE__ */ (0, import_jsx_runtime19.jsx)("label", __spreadProps(__spreadValues({ className: "hds-input__label" }, labelProps), { htmlFor: id || inputId, children: label })),
980
+ /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
981
+ "div",
982
+ {
983
+ className: (0, import_typed_classname18.clsx)("hds-input__input-wrapper"),
984
+ "data-disabled": disabled,
985
+ "data-readonly": readOnly,
986
+ children: /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
987
+ "input",
988
+ __spreadProps(__spreadValues({}, rest), {
989
+ "aria-describedby": errorMessage ? errorMessageId : void 0,
990
+ className: "hds-input__input",
991
+ disabled,
992
+ id: id || inputId,
993
+ readOnly,
994
+ ref
995
+ })
996
+ )
997
+ }
998
+ ),
999
+ !!errorMessage && /* @__PURE__ */ (0, import_jsx_runtime19.jsx)("span", { className: "hds-input__error-message", id: errorMessageId, children: errorMessage })
1000
+ ]
1001
+ }
1002
+ );
1003
+ });
933
1004
  // Annotate the CommonJS export names for ESM import in node:
934
1005
  0 && (module.exports = {
935
1006
  Accordion,
@@ -946,6 +1017,7 @@ TabContent.displayName = "TabContent";
946
1017
  DescriptionList,
947
1018
  DescriptionTerm,
948
1019
  Dropdown,
1020
+ Input,
949
1021
  Link,
950
1022
  LinkList,
951
1023
  Message,
package/dist/index.mjs CHANGED
@@ -25,6 +25,10 @@ import {
25
25
  Tabs
26
26
  } from "./chunk-ZLCNSHLT.mjs";
27
27
  import "./chunk-4ZM45P62.mjs";
28
+ import "./chunk-NXFD7TFE.mjs";
29
+ import {
30
+ Input
31
+ } from "./chunk-EW2DCMLN.mjs";
28
32
  import "./chunk-7SCOBRDZ.mjs";
29
33
  import {
30
34
  Link
@@ -98,6 +102,7 @@ export {
98
102
  DescriptionList,
99
103
  DescriptionTerm,
100
104
  Dropdown,
105
+ Input,
101
106
  Link,
102
107
  LinkList,
103
108
  MessageComponent as Message,
@@ -1,3 +1,2 @@
1
1
  export { Input, InputProps } from './input.mjs';
2
- import 'react/jsx-runtime';
3
2
  import 'react';
@@ -1,3 +1,2 @@
1
1
  export { Input, InputProps } from './input.js';
2
- import 'react/jsx-runtime';
3
2
  import 'react';
@@ -1,12 +1,10 @@
1
1
  "use strict";
2
- var __create = Object.create;
3
2
  var __defProp = Object.defineProperty;
4
3
  var __defProps = Object.defineProperties;
5
4
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
6
5
  var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
7
6
  var __getOwnPropNames = Object.getOwnPropertyNames;
8
7
  var __getOwnPropSymbols = Object.getOwnPropertySymbols;
9
- var __getProtoOf = Object.getPrototypeOf;
10
8
  var __hasOwnProp = Object.prototype.hasOwnProperty;
11
9
  var __propIsEnum = Object.prototype.propertyIsEnumerable;
12
10
  var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
@@ -46,14 +44,6 @@ var __copyProps = (to, from, except, desc) => {
46
44
  }
47
45
  return to;
48
46
  };
49
- var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
50
- // If the importer is in node compatibility mode or this is not an ESM
51
- // file that has been converted to a CommonJS file using a Babel-
52
- // compatible transform (i.e. "__esModule" has not been set), then set
53
- // "default" to the CommonJS "module.exports" for node compatibility.
54
- isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
55
- mod
56
- ));
57
47
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
58
48
 
59
49
  // src/input/index.tsx
@@ -68,27 +58,31 @@ var import_body = require("@postenbring/hedwig-css/dist/body.css");
68
58
  var import_input = require("@postenbring/hedwig-css/dist/input.css");
69
59
 
70
60
  // src/input/input.tsx
71
- var React = __toESM(require("react"));
61
+ var import_react = require("react");
72
62
  var import_typed_classname = require("@postenbring/hedwig-css/typed-classname/index.mjs");
73
63
  var import_jsx_runtime = require("react/jsx-runtime");
74
- function Input(_a) {
64
+ var Input = (0, import_react.forwardRef)(function Input2(_a, ref) {
75
65
  var _b = _a, {
76
66
  variant = "default",
77
67
  errorMessage,
78
68
  labelProps,
79
69
  label,
80
70
  id,
81
- className
71
+ className,
72
+ disabled,
73
+ readOnly
82
74
  } = _b, rest = __objRest(_b, [
83
75
  "variant",
84
76
  "errorMessage",
85
77
  "labelProps",
86
78
  "label",
87
79
  "id",
88
- "className"
80
+ "className",
81
+ "disabled",
82
+ "readOnly"
89
83
  ]);
90
- const errorMessageId = React.useId();
91
- const inputId = React.useId();
84
+ const errorMessageId = (0, import_react.useId)();
85
+ const inputId = (0, import_react.useId)();
92
86
  return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
93
87
  "div",
94
88
  {
@@ -102,19 +96,30 @@ function Input(_a) {
102
96
  ),
103
97
  children: [
104
98
  /* @__PURE__ */ (0, import_jsx_runtime.jsx)("label", __spreadProps(__spreadValues({ className: "hds-input__label" }, labelProps), { htmlFor: id || inputId, children: label })),
105
- !!errorMessage && /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { className: "hds-input__error-message", id: errorMessageId, children: errorMessage }),
106
99
  /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
107
- "input",
108
- __spreadProps(__spreadValues({}, rest), {
109
- "aria-describedby": errorMessageId,
110
- className: "hds-input__input",
111
- id: id || inputId
112
- })
113
- )
100
+ "div",
101
+ {
102
+ className: (0, import_typed_classname.clsx)("hds-input__input-wrapper"),
103
+ "data-disabled": disabled,
104
+ "data-readonly": readOnly,
105
+ children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
106
+ "input",
107
+ __spreadProps(__spreadValues({}, rest), {
108
+ "aria-describedby": errorMessage ? errorMessageId : void 0,
109
+ className: "hds-input__input",
110
+ disabled,
111
+ id: id || inputId,
112
+ readOnly,
113
+ ref
114
+ })
115
+ )
116
+ }
117
+ ),
118
+ !!errorMessage && /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { className: "hds-input__error-message", id: errorMessageId, children: errorMessage })
114
119
  ]
115
120
  }
116
121
  );
117
- }
122
+ });
118
123
  // Annotate the CommonJS export names for ESM import in node:
119
124
  0 && (module.exports = {
120
125
  Input
@@ -1,13 +1,8 @@
1
+ import "../chunk-NXFD7TFE.mjs";
1
2
  import {
2
3
  Input
3
- } from "../chunk-XJ44O3HY.mjs";
4
+ } from "../chunk-EW2DCMLN.mjs";
4
5
  import "../chunk-FUJQIYOF.mjs";
5
-
6
- // src/input/index.tsx
7
- import "@postenbring/hedwig-css/dist/fonts.css";
8
- import "@postenbring/hedwig-css/dist/tokens.css";
9
- import "@postenbring/hedwig-css/dist/body.css";
10
- import "@postenbring/hedwig-css/dist/input.css";
11
6
  export {
12
7
  Input
13
8
  };
@@ -1,13 +1,13 @@
1
- import * as react_jsx_runtime from 'react/jsx-runtime';
2
- import * as React from 'react';
1
+ import * as react from 'react';
2
+ import { InputHTMLAttributes, ReactNode, LabelHTMLAttributes } from 'react';
3
3
 
4
- interface InputProps extends Omit<React.InputHTMLAttributes<HTMLInputElement>, "children"> {
4
+ interface InputProps extends Omit<InputHTMLAttributes<HTMLInputElement>, "children"> {
5
5
  id?: string;
6
- variant?: "default" | "white" | "lined";
7
- errorMessage?: React.ReactNode;
8
- labelProps?: React.LabelHTMLAttributes<HTMLLabelElement>;
9
- label: React.ReactNode;
6
+ variant?: "default" | "white";
7
+ errorMessage?: ReactNode;
8
+ labelProps?: LabelHTMLAttributes<HTMLLabelElement>;
9
+ label: ReactNode;
10
10
  }
11
- declare function Input({ variant, errorMessage, labelProps, label, id, className, ...rest }: InputProps): react_jsx_runtime.JSX.Element;
11
+ declare const Input: react.ForwardRefExoticComponent<InputProps & react.RefAttributes<HTMLInputElement>>;
12
12
 
13
13
  export { Input, type InputProps };
@@ -1,13 +1,13 @@
1
- import * as react_jsx_runtime from 'react/jsx-runtime';
2
- import * as React from 'react';
1
+ import * as react from 'react';
2
+ import { InputHTMLAttributes, ReactNode, LabelHTMLAttributes } from 'react';
3
3
 
4
- interface InputProps extends Omit<React.InputHTMLAttributes<HTMLInputElement>, "children"> {
4
+ interface InputProps extends Omit<InputHTMLAttributes<HTMLInputElement>, "children"> {
5
5
  id?: string;
6
- variant?: "default" | "white" | "lined";
7
- errorMessage?: React.ReactNode;
8
- labelProps?: React.LabelHTMLAttributes<HTMLLabelElement>;
9
- label: React.ReactNode;
6
+ variant?: "default" | "white";
7
+ errorMessage?: ReactNode;
8
+ labelProps?: LabelHTMLAttributes<HTMLLabelElement>;
9
+ label: ReactNode;
10
10
  }
11
- declare function Input({ variant, errorMessage, labelProps, label, id, className, ...rest }: InputProps): react_jsx_runtime.JSX.Element;
11
+ declare const Input: react.ForwardRefExoticComponent<InputProps & react.RefAttributes<HTMLInputElement>>;
12
12
 
13
13
  export { Input, type InputProps };
@@ -1,12 +1,10 @@
1
1
  "use strict";
2
- var __create = Object.create;
3
2
  var __defProp = Object.defineProperty;
4
3
  var __defProps = Object.defineProperties;
5
4
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
6
5
  var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
7
6
  var __getOwnPropNames = Object.getOwnPropertyNames;
8
7
  var __getOwnPropSymbols = Object.getOwnPropertySymbols;
9
- var __getProtoOf = Object.getPrototypeOf;
10
8
  var __hasOwnProp = Object.prototype.hasOwnProperty;
11
9
  var __propIsEnum = Object.prototype.propertyIsEnumerable;
12
10
  var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
@@ -46,14 +44,6 @@ var __copyProps = (to, from, except, desc) => {
46
44
  }
47
45
  return to;
48
46
  };
49
- var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
50
- // If the importer is in node compatibility mode or this is not an ESM
51
- // file that has been converted to a CommonJS file using a Babel-
52
- // compatible transform (i.e. "__esModule" has not been set), then set
53
- // "default" to the CommonJS "module.exports" for node compatibility.
54
- isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
55
- mod
56
- ));
57
47
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
58
48
 
59
49
  // src/input/input.tsx
@@ -62,27 +52,31 @@ __export(input_exports, {
62
52
  Input: () => Input
63
53
  });
64
54
  module.exports = __toCommonJS(input_exports);
65
- var React = __toESM(require("react"));
55
+ var import_react = require("react");
66
56
  var import_typed_classname = require("@postenbring/hedwig-css/typed-classname/index.mjs");
67
57
  var import_jsx_runtime = require("react/jsx-runtime");
68
- function Input(_a) {
58
+ var Input = (0, import_react.forwardRef)(function Input2(_a, ref) {
69
59
  var _b = _a, {
70
60
  variant = "default",
71
61
  errorMessage,
72
62
  labelProps,
73
63
  label,
74
64
  id,
75
- className
65
+ className,
66
+ disabled,
67
+ readOnly
76
68
  } = _b, rest = __objRest(_b, [
77
69
  "variant",
78
70
  "errorMessage",
79
71
  "labelProps",
80
72
  "label",
81
73
  "id",
82
- "className"
74
+ "className",
75
+ "disabled",
76
+ "readOnly"
83
77
  ]);
84
- const errorMessageId = React.useId();
85
- const inputId = React.useId();
78
+ const errorMessageId = (0, import_react.useId)();
79
+ const inputId = (0, import_react.useId)();
86
80
  return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
87
81
  "div",
88
82
  {
@@ -96,19 +90,30 @@ function Input(_a) {
96
90
  ),
97
91
  children: [
98
92
  /* @__PURE__ */ (0, import_jsx_runtime.jsx)("label", __spreadProps(__spreadValues({ className: "hds-input__label" }, labelProps), { htmlFor: id || inputId, children: label })),
99
- !!errorMessage && /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { className: "hds-input__error-message", id: errorMessageId, children: errorMessage }),
100
93
  /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
101
- "input",
102
- __spreadProps(__spreadValues({}, rest), {
103
- "aria-describedby": errorMessageId,
104
- className: "hds-input__input",
105
- id: id || inputId
106
- })
107
- )
94
+ "div",
95
+ {
96
+ className: (0, import_typed_classname.clsx)("hds-input__input-wrapper"),
97
+ "data-disabled": disabled,
98
+ "data-readonly": readOnly,
99
+ children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
100
+ "input",
101
+ __spreadProps(__spreadValues({}, rest), {
102
+ "aria-describedby": errorMessage ? errorMessageId : void 0,
103
+ className: "hds-input__input",
104
+ disabled,
105
+ id: id || inputId,
106
+ readOnly,
107
+ ref
108
+ })
109
+ )
110
+ }
111
+ ),
112
+ !!errorMessage && /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { className: "hds-input__error-message", id: errorMessageId, children: errorMessage })
108
113
  ]
109
114
  }
110
115
  );
111
- }
116
+ });
112
117
  // Annotate the CommonJS export names for ESM import in node:
113
118
  0 && (module.exports = {
114
119
  Input
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  Input
3
- } from "../chunk-XJ44O3HY.mjs";
3
+ } from "../chunk-EW2DCMLN.mjs";
4
4
  import "../chunk-FUJQIYOF.mjs";
5
5
  export {
6
6
  Input
@@ -1,7 +1,7 @@
1
- import * as React from 'react';
1
+ import * as react from 'react';
2
2
  import { O as OverridableComponent } from '../utils-BfZsjuFH.mjs';
3
3
 
4
- interface LinkProps extends React.AnchorHTMLAttributes<HTMLAnchorElement> {
4
+ interface LinkProps extends react.AnchorHTMLAttributes<HTMLAnchorElement> {
5
5
  /**
6
6
  * The visual style of the link
7
7
  */
@@ -10,8 +10,8 @@ interface LinkProps extends React.AnchorHTMLAttributes<HTMLAnchorElement> {
10
10
  * Font size of the link
11
11
  */
12
12
  size?: "small" | "medium" | "large";
13
- children: React.ReactNode;
14
- anchorRef?: React.ForwardedRef<HTMLAnchorElement>;
13
+ children: react.ReactNode;
14
+ anchorRef?: react.ForwardedRef<HTMLAnchorElement>;
15
15
  }
16
16
  declare const Link: OverridableComponent<LinkProps, HTMLAnchorElement>;
17
17
 
@@ -1,7 +1,7 @@
1
- import * as React from 'react';
1
+ import * as react from 'react';
2
2
  import { O as OverridableComponent } from '../utils-BfZsjuFH.js';
3
3
 
4
- interface LinkProps extends React.AnchorHTMLAttributes<HTMLAnchorElement> {
4
+ interface LinkProps extends react.AnchorHTMLAttributes<HTMLAnchorElement> {
5
5
  /**
6
6
  * The visual style of the link
7
7
  */
@@ -10,8 +10,8 @@ interface LinkProps extends React.AnchorHTMLAttributes<HTMLAnchorElement> {
10
10
  * Font size of the link
11
11
  */
12
12
  size?: "small" | "medium" | "large";
13
- children: React.ReactNode;
14
- anchorRef?: React.ForwardedRef<HTMLAnchorElement>;
13
+ children: react.ReactNode;
14
+ anchorRef?: react.ForwardedRef<HTMLAnchorElement>;
15
15
  }
16
16
  declare const Link: OverridableComponent<LinkProps, HTMLAnchorElement>;
17
17
 
@@ -1,9 +1,9 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
- import * as React from 'react';
2
+ import * as react from 'react';
3
3
  import { ListProps } from './list.mjs';
4
4
 
5
5
  interface LinkListProps extends Omit<ListProps, "listStyle"> {
6
- children?: React.ReactElement<HTMLLIElement> | React.ReactElement<HTMLLIElement>[];
6
+ children?: react.ReactElement<HTMLLIElement> | react.ReactElement<HTMLLIElement>[];
7
7
  }
8
8
  declare function LinkList(props: LinkListProps): react_jsx_runtime.JSX.Element;
9
9
  declare namespace LinkList {
@@ -1,9 +1,9 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
- import * as React from 'react';
2
+ import * as react from 'react';
3
3
  import { ListProps } from './list.js';
4
4
 
5
5
  interface LinkListProps extends Omit<ListProps, "listStyle"> {
6
- children?: React.ReactElement<HTMLLIElement> | React.ReactElement<HTMLLIElement>[];
6
+ children?: react.ReactElement<HTMLLIElement> | react.ReactElement<HTMLLIElement>[];
7
7
  }
8
8
  declare function LinkList(props: LinkListProps): react_jsx_runtime.JSX.Element;
9
9
  declare namespace LinkList {
@@ -1,9 +1,9 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
- import * as React from 'react';
2
+ import * as react from 'react';
3
3
  import { HTMLAttributes } from 'react';
4
4
 
5
5
  interface ListProps extends HTMLAttributes<HTMLOListElement | HTMLUListElement> {
6
- children?: React.ReactElement<HTMLLIElement> | React.ReactElement<HTMLLIElement>[];
6
+ children?: react.ReactElement<HTMLLIElement> | react.ReactElement<HTMLLIElement>[];
7
7
  /**
8
8
  * Inherit list styles or do not show these
9
9
  */
@@ -1,9 +1,9 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
- import * as React from 'react';
2
+ import * as react from 'react';
3
3
  import { HTMLAttributes } from 'react';
4
4
 
5
5
  interface ListProps extends HTMLAttributes<HTMLOListElement | HTMLUListElement> {
6
- children?: React.ReactElement<HTMLLIElement> | React.ReactElement<HTMLLIElement>[];
6
+ children?: react.ReactElement<HTMLLIElement> | react.ReactElement<HTMLLIElement>[];
7
7
  /**
8
8
  * Inherit list styles or do not show these
9
9
  */
@@ -1,14 +1,14 @@
1
- import * as React from 'react';
1
+ import * as react from 'react';
2
2
  import { MessageProps, MessageTitle, MessageDescription } from './message.mjs';
3
3
  import '../utils-BfZsjuFH.mjs';
4
4
  import '../box/box.mjs';
5
5
 
6
6
  declare const MessageComponent: {
7
- (props: MessageProps & React.RefAttributes<HTMLDivElement>): React.ReactNode;
8
- <As extends React.ElementType>(props: {
7
+ (props: MessageProps & react.RefAttributes<HTMLDivElement>): react.ReactNode;
8
+ <As extends react.ElementType>(props: {
9
9
  as?: As | undefined;
10
- } & MessageProps & Omit<React.ComponentPropsWithRef<As>, "slot" | "style" | "title" | "icon" | "children" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "autoFocus" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "nonce" | "spellCheck" | "tabIndex" | "translate" | "radioGroup" | "role" | "about" | "content" | "datatype" | "inlist" | "prefix" | "property" | "rel" | "resource" | "rev" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-braillelabel" | "aria-brailleroledescription" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colindextext" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-description" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowindextext" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onResize" | "onResizeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "variant" | "onClose" | "closeable" | "closed" | "closeButtonProps" | "iconClassName">): React.ReactNode;
11
- } & Pick<React.FC, "displayName"> & {
10
+ } & MessageProps & Omit<react.ComponentPropsWithRef<As>, "slot" | "style" | "title" | "icon" | "children" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "autoFocus" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "nonce" | "spellCheck" | "tabIndex" | "translate" | "radioGroup" | "role" | "about" | "content" | "datatype" | "inlist" | "prefix" | "property" | "rel" | "resource" | "rev" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-braillelabel" | "aria-brailleroledescription" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colindextext" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-description" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowindextext" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onResize" | "onResizeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "variant" | "onClose" | "closeable" | "closed" | "closeButtonProps" | "iconClassName">): react.ReactNode;
11
+ } & Pick<react.FC, "displayName"> & {
12
12
  Title: typeof MessageTitle;
13
13
  Description: typeof MessageDescription;
14
14
  };
@@ -1,14 +1,14 @@
1
- import * as React from 'react';
1
+ import * as react from 'react';
2
2
  import { MessageProps, MessageTitle, MessageDescription } from './message.js';
3
3
  import '../utils-BfZsjuFH.js';
4
4
  import '../box/box.js';
5
5
 
6
6
  declare const MessageComponent: {
7
- (props: MessageProps & React.RefAttributes<HTMLDivElement>): React.ReactNode;
8
- <As extends React.ElementType>(props: {
7
+ (props: MessageProps & react.RefAttributes<HTMLDivElement>): react.ReactNode;
8
+ <As extends react.ElementType>(props: {
9
9
  as?: As | undefined;
10
- } & MessageProps & Omit<React.ComponentPropsWithRef<As>, "slot" | "style" | "title" | "icon" | "children" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "autoFocus" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "nonce" | "spellCheck" | "tabIndex" | "translate" | "radioGroup" | "role" | "about" | "content" | "datatype" | "inlist" | "prefix" | "property" | "rel" | "resource" | "rev" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-braillelabel" | "aria-brailleroledescription" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colindextext" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-description" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowindextext" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onResize" | "onResizeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "variant" | "onClose" | "closeable" | "closed" | "closeButtonProps" | "iconClassName">): React.ReactNode;
11
- } & Pick<React.FC, "displayName"> & {
10
+ } & MessageProps & Omit<react.ComponentPropsWithRef<As>, "slot" | "style" | "title" | "icon" | "children" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "autoFocus" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "nonce" | "spellCheck" | "tabIndex" | "translate" | "radioGroup" | "role" | "about" | "content" | "datatype" | "inlist" | "prefix" | "property" | "rel" | "resource" | "rev" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-braillelabel" | "aria-brailleroledescription" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colindextext" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-description" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowindextext" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onResize" | "onResizeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "variant" | "onClose" | "closeable" | "closed" | "closeButtonProps" | "iconClassName">): react.ReactNode;
11
+ } & Pick<react.FC, "displayName"> & {
12
12
  Title: typeof MessageTitle;
13
13
  Description: typeof MessageDescription;
14
14
  };
@@ -1,4 +1,4 @@
1
- import React__default from 'react';
1
+ import react__default from 'react';
2
2
  import { O as OverridableComponent } from '../utils-BfZsjuFH.mjs';
3
3
  import { BoxProps } from '../box/box.mjs';
4
4
 
@@ -8,7 +8,7 @@ type MessageProps = ({
8
8
  iconClassName?: never;
9
9
  } | {
10
10
  variant: "neutral";
11
- icon?: React__default.ReactNode;
11
+ icon?: react__default.ReactNode;
12
12
  iconClassName?: string;
13
13
  }) & Omit<BoxProps, "variant">;
14
14
  declare const Message: OverridableComponent<MessageProps, HTMLDivElement>;
@@ -1,4 +1,4 @@
1
- import React__default from 'react';
1
+ import react__default from 'react';
2
2
  import { O as OverridableComponent } from '../utils-BfZsjuFH.js';
3
3
  import { BoxProps } from '../box/box.js';
4
4
 
@@ -8,7 +8,7 @@ type MessageProps = ({
8
8
  iconClassName?: never;
9
9
  } | {
10
10
  variant: "neutral";
11
- icon?: React__default.ReactNode;
11
+ icon?: react__default.ReactNode;
12
12
  iconClassName?: string;
13
13
  }) & Omit<BoxProps, "variant">;
14
14
  declare const Message: OverridableComponent<MessageProps, HTMLDivElement>;
@@ -1,8 +1,8 @@
1
- import * as React from 'react';
1
+ import * as react from 'react';
2
2
  import { ModalProps, ModalHeader } from './modal.mjs';
3
3
  import '../utils-BfZsjuFH.mjs';
4
4
 
5
- declare const ModalComponent: React.ForwardRefExoticComponent<ModalProps & React.RefAttributes<HTMLDialogElement>> & {
5
+ declare const ModalComponent: react.ForwardRefExoticComponent<ModalProps & react.RefAttributes<HTMLDialogElement>> & {
6
6
  Header: typeof ModalHeader;
7
7
  };
8
8
 
@@ -1,8 +1,8 @@
1
- import * as React from 'react';
1
+ import * as react from 'react';
2
2
  import { ModalProps, ModalHeader } from './modal.js';
3
3
  import '../utils-BfZsjuFH.js';
4
4
 
5
- declare const ModalComponent: React.ForwardRefExoticComponent<ModalProps & React.RefAttributes<HTMLDialogElement>> & {
5
+ declare const ModalComponent: react.ForwardRefExoticComponent<ModalProps & react.RefAttributes<HTMLDialogElement>> & {
6
6
  Header: typeof ModalHeader;
7
7
  };
8
8
 
@@ -1,4 +1,4 @@
1
- import * as React$1 from 'react';
1
+ import * as react from 'react';
2
2
  import { O as OverridableComponent } from '../utils-BfZsjuFH.mjs';
3
3
 
4
4
  interface ModalProps extends React.HTMLAttributes<HTMLDialogElement> {
@@ -7,7 +7,7 @@ interface ModalProps extends React.HTMLAttributes<HTMLDialogElement> {
7
7
  /**
8
8
  * # 🚨 WORK IN PROGRESS 🚨
9
9
  */
10
- declare const Modal: React$1.ForwardRefExoticComponent<ModalProps & React$1.RefAttributes<HTMLDialogElement>>;
10
+ declare const Modal: react.ForwardRefExoticComponent<ModalProps & react.RefAttributes<HTMLDialogElement>>;
11
11
  declare const ModalHeader: OverridableComponent<object, HTMLParagraphElement>;
12
12
 
13
13
  export { Modal, ModalHeader, type ModalProps };
@@ -1,4 +1,4 @@
1
- import * as React$1 from 'react';
1
+ import * as react from 'react';
2
2
  import { O as OverridableComponent } from '../utils-BfZsjuFH.js';
3
3
 
4
4
  interface ModalProps extends React.HTMLAttributes<HTMLDialogElement> {
@@ -7,7 +7,7 @@ interface ModalProps extends React.HTMLAttributes<HTMLDialogElement> {
7
7
  /**
8
8
  * # 🚨 WORK IN PROGRESS 🚨
9
9
  */
10
- declare const Modal: React$1.ForwardRefExoticComponent<ModalProps & React$1.RefAttributes<HTMLDialogElement>>;
10
+ declare const Modal: react.ForwardRefExoticComponent<ModalProps & react.RefAttributes<HTMLDialogElement>>;
11
11
  declare const ModalHeader: OverridableComponent<object, HTMLParagraphElement>;
12
12
 
13
13
  export { Modal, ModalHeader, type ModalProps };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@postenbring/hedwig-react",
3
- "version": "0.0.23",
3
+ "version": "0.0.25",
4
4
  "main": "./dist/index.js",
5
5
  "module": "./dist/index.mjs",
6
6
  "types": "./dist/index.d.ts",
@@ -19,7 +19,7 @@
19
19
  "hedwig-tsconfig": "0.0.0"
20
20
  },
21
21
  "dependencies": {
22
- "@postenbring/hedwig-css": "0.0.22"
22
+ "@postenbring/hedwig-css": "0.0.23"
23
23
  },
24
24
  "publishConfig": {
25
25
  "access": "public"