@postenbring/hedwig-react 0.0.0-dropdown-20231207124551 → 0.0.0-export-input-react-20231221220025
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 +1 -1
- package/dist/accordion/index.mjs +1 -1
- package/dist/badge/badge.d.mts +3 -3
- package/dist/badge/badge.d.ts +3 -3
- package/dist/badge/index.js +1 -1
- 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/index.js +1 -1
- package/dist/box/index.mjs +1 -1
- package/dist/breadcrumb/index.js +1 -1
- package/dist/breadcrumb/index.mjs +1 -1
- package/dist/button/index.js +1 -1
- package/dist/button/index.mjs +1 -1
- package/dist/chunk-4RBJ5GJR.mjs +37 -0
- package/dist/chunk-4ZM45P62.mjs +13 -0
- package/dist/{chunk-QOVAYDPH.mjs → chunk-5OAMKZDX.mjs} +1 -1
- package/dist/{chunk-5NDZ66M6.mjs → chunk-7SCOBRDZ.mjs} +1 -1
- package/dist/{chunk-BJANCH4F.mjs → chunk-AJBQ2EJU.mjs} +1 -1
- package/dist/chunk-BKXVC23Y.mjs +5 -0
- package/dist/{chunk-XJ44O3HY.mjs → chunk-EW2DCMLN.mjs} +30 -15
- package/dist/chunk-FSBY3NKV.mjs +47 -0
- package/dist/{chunk-6AW5BEDP.mjs → chunk-HMESGVY5.mjs} +1 -1
- package/dist/{chunk-R55SMUE7.mjs → chunk-IEY4EQ4E.mjs} +1 -1
- package/dist/{chunk-Z36ETKOZ.mjs → chunk-LNPO2XQW.mjs} +1 -1
- package/dist/{chunk-JNIAIH63.mjs → chunk-LZSDIT5D.mjs} +1 -1
- package/dist/chunk-NVMNXQ5Q.mjs +79 -0
- package/dist/chunk-NXFD7TFE.mjs +5 -0
- package/dist/{chunk-FFQBRM3W.mjs → chunk-QV33ZHNO.mjs} +3 -21
- package/dist/{chunk-N3EFZW7T.mjs → chunk-VX6MSLLO.mjs} +1 -1
- package/dist/{chunk-ROSXRHEW.mjs → chunk-YFBW5ZRC.mjs} +2 -2
- package/dist/{chunk-EMX6J4XG.mjs → chunk-YRAMCYSB.mjs} +1 -1
- package/dist/chunk-ZLCNSHLT.mjs +31 -0
- package/dist/dropdown/dropdown.d.mts +3 -3
- package/dist/dropdown/dropdown.d.ts +3 -3
- package/dist/dropdown/index.js +1 -1
- package/dist/dropdown/index.mjs +1 -1
- package/dist/index.d.mts +4 -0
- package/dist/index.d.ts +4 -0
- package/dist/index.js +244 -14
- package/dist/index.mjs +35 -11
- package/dist/input/index.d.mts +0 -1
- package/dist/input/index.d.ts +0 -1
- package/dist/input/index.js +31 -26
- package/dist/input/index.mjs +2 -7
- package/dist/input/input.d.mts +8 -8
- package/dist/input/input.d.ts +8 -8
- package/dist/input/input.js +30 -25
- package/dist/input/input.mjs +1 -1
- package/dist/link/index.js +1 -1
- package/dist/link/index.mjs +1 -1
- package/dist/link/link.d.mts +4 -4
- package/dist/link/link.d.ts +4 -4
- package/dist/list/index.js +1 -1
- package/dist/list/index.mjs +1 -1
- package/dist/list/link-list.d.mts +2 -2
- package/dist/list/link-list.d.ts +2 -2
- package/dist/list/list.d.mts +2 -2
- package/dist/list/list.d.ts +2 -2
- package/dist/message/index.d.mts +5 -5
- package/dist/message/index.d.ts +5 -5
- package/dist/message/index.js +1 -1
- package/dist/message/index.mjs +1 -1
- package/dist/message/message.d.mts +2 -2
- package/dist/message/message.d.ts +2 -2
- package/dist/modal/index.d.mts +2 -2
- package/dist/modal/index.d.ts +2 -2
- package/dist/modal/index.js +6 -5
- package/dist/modal/index.mjs +3 -2
- package/dist/modal/modal.d.mts +2 -2
- package/dist/modal/modal.d.ts +2 -2
- package/dist/modal/modal.js +5 -4
- package/dist/modal/modal.mjs +2 -1
- package/dist/tabs/index.d.mts +6 -0
- package/dist/tabs/index.d.ts +6 -0
- package/dist/tabs/index.js +227 -0
- package/dist/tabs/index.mjs +22 -0
- package/dist/tabs/tabs-content.d.mts +21 -0
- package/dist/tabs/tabs-content.d.ts +21 -0
- package/dist/tabs/tabs-content.js +94 -0
- package/dist/tabs/tabs-content.mjs +10 -0
- package/dist/tabs/tabs-list.d.mts +26 -0
- package/dist/tabs/tabs-list.d.ts +26 -0
- package/dist/tabs/tabs-list.js +170 -0
- package/dist/tabs/tabs-list.mjs +11 -0
- package/dist/tabs/tabs.d.mts +16 -0
- package/dist/tabs/tabs.d.ts +16 -0
- package/dist/tabs/tabs.js +87 -0
- package/dist/tabs/tabs.mjs +8 -0
- package/package.json +5 -5
package/dist/input/input.d.ts
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
import
|
|
1
|
+
import * as react from 'react';
|
|
2
|
+
import { InputHTMLAttributes, ReactNode, LabelHTMLAttributes } from 'react';
|
|
3
3
|
|
|
4
|
-
interface InputProps extends Omit<
|
|
4
|
+
interface InputProps extends Omit<InputHTMLAttributes<HTMLInputElement>, "children"> {
|
|
5
5
|
id?: string;
|
|
6
|
-
variant?: "default" | "white"
|
|
7
|
-
errorMessage?:
|
|
8
|
-
labelProps?:
|
|
9
|
-
label:
|
|
6
|
+
variant?: "default" | "white";
|
|
7
|
+
errorMessage?: ReactNode;
|
|
8
|
+
labelProps?: LabelHTMLAttributes<HTMLLabelElement>;
|
|
9
|
+
label: ReactNode;
|
|
10
10
|
}
|
|
11
|
-
declare
|
|
11
|
+
declare const Input: react.ForwardRefExoticComponent<InputProps & react.RefAttributes<HTMLInputElement>>;
|
|
12
12
|
|
|
13
13
|
export { Input, type InputProps };
|
package/dist/input/input.js
CHANGED
|
@@ -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
|
|
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
|
-
|
|
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 =
|
|
85
|
-
const inputId =
|
|
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
|
-
"
|
|
102
|
-
|
|
103
|
-
"
|
|
104
|
-
|
|
105
|
-
|
|
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
|
package/dist/input/input.mjs
CHANGED
package/dist/link/index.js
CHANGED
|
@@ -54,7 +54,7 @@ __export(link_exports, {
|
|
|
54
54
|
module.exports = __toCommonJS(link_exports);
|
|
55
55
|
var import_fonts = require("@postenbring/hedwig-css/dist/fonts.css");
|
|
56
56
|
var import_tokens = require("@postenbring/hedwig-css/dist/tokens.css");
|
|
57
|
-
var
|
|
57
|
+
var import_body = require("@postenbring/hedwig-css/dist/body.css");
|
|
58
58
|
var import_link = require("@postenbring/hedwig-css/dist/link.css");
|
|
59
59
|
|
|
60
60
|
// src/link/link.tsx
|
package/dist/link/index.mjs
CHANGED
package/dist/link/link.d.mts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react from 'react';
|
|
2
2
|
import { O as OverridableComponent } from '../utils-BfZsjuFH.mjs';
|
|
3
3
|
|
|
4
|
-
interface LinkProps extends
|
|
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:
|
|
14
|
-
anchorRef?:
|
|
13
|
+
children: react.ReactNode;
|
|
14
|
+
anchorRef?: react.ForwardedRef<HTMLAnchorElement>;
|
|
15
15
|
}
|
|
16
16
|
declare const Link: OverridableComponent<LinkProps, HTMLAnchorElement>;
|
|
17
17
|
|
package/dist/link/link.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react from 'react';
|
|
2
2
|
import { O as OverridableComponent } from '../utils-BfZsjuFH.js';
|
|
3
3
|
|
|
4
|
-
interface LinkProps extends
|
|
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:
|
|
14
|
-
anchorRef?:
|
|
13
|
+
children: react.ReactNode;
|
|
14
|
+
anchorRef?: react.ForwardedRef<HTMLAnchorElement>;
|
|
15
15
|
}
|
|
16
16
|
declare const Link: OverridableComponent<LinkProps, HTMLAnchorElement>;
|
|
17
17
|
|
package/dist/list/index.js
CHANGED
|
@@ -59,7 +59,7 @@ __export(list_exports, {
|
|
|
59
59
|
module.exports = __toCommonJS(list_exports);
|
|
60
60
|
var import_fonts = require("@postenbring/hedwig-css/dist/fonts.css");
|
|
61
61
|
var import_tokens = require("@postenbring/hedwig-css/dist/tokens.css");
|
|
62
|
-
var
|
|
62
|
+
var import_body = require("@postenbring/hedwig-css/dist/body.css");
|
|
63
63
|
var import_description_list = require("@postenbring/hedwig-css/dist/description-list.css");
|
|
64
64
|
var import_list2 = require("@postenbring/hedwig-css/dist/list.css");
|
|
65
65
|
|
package/dist/list/index.mjs
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
import * as
|
|
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?:
|
|
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 {
|
package/dist/list/link-list.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
import * as
|
|
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?:
|
|
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 {
|
package/dist/list/list.d.mts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
import * as
|
|
2
|
+
import * as react from 'react';
|
|
3
3
|
import { HTMLAttributes } from 'react';
|
|
4
4
|
|
|
5
5
|
interface ListProps extends HTMLAttributes<HTMLOListElement | HTMLUListElement> {
|
|
6
|
-
children?:
|
|
6
|
+
children?: react.ReactElement<HTMLLIElement> | react.ReactElement<HTMLLIElement>[];
|
|
7
7
|
/**
|
|
8
8
|
* Inherit list styles or do not show these
|
|
9
9
|
*/
|
package/dist/list/list.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
import * as
|
|
2
|
+
import * as react from 'react';
|
|
3
3
|
import { HTMLAttributes } from 'react';
|
|
4
4
|
|
|
5
5
|
interface ListProps extends HTMLAttributes<HTMLOListElement | HTMLUListElement> {
|
|
6
|
-
children?:
|
|
6
|
+
children?: react.ReactElement<HTMLLIElement> | react.ReactElement<HTMLLIElement>[];
|
|
7
7
|
/**
|
|
8
8
|
* Inherit list styles or do not show these
|
|
9
9
|
*/
|
package/dist/message/index.d.mts
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import * as
|
|
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 &
|
|
8
|
-
<As extends
|
|
7
|
+
(props: MessageProps & react.RefAttributes<HTMLDivElement>): react.ReactNode;
|
|
8
|
+
<As extends react.ElementType>(props: {
|
|
9
9
|
as?: As | undefined;
|
|
10
|
-
} & MessageProps & Omit<
|
|
11
|
-
} & Pick<
|
|
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
|
};
|
package/dist/message/index.d.ts
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import * as
|
|
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 &
|
|
8
|
-
<As extends
|
|
7
|
+
(props: MessageProps & react.RefAttributes<HTMLDivElement>): react.ReactNode;
|
|
8
|
+
<As extends react.ElementType>(props: {
|
|
9
9
|
as?: As | undefined;
|
|
10
|
-
} & MessageProps & Omit<
|
|
11
|
-
} & Pick<
|
|
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
|
};
|
package/dist/message/index.js
CHANGED
|
@@ -56,7 +56,7 @@ __export(message_exports, {
|
|
|
56
56
|
module.exports = __toCommonJS(message_exports);
|
|
57
57
|
var import_fonts = require("@postenbring/hedwig-css/dist/fonts.css");
|
|
58
58
|
var import_tokens = require("@postenbring/hedwig-css/dist/tokens.css");
|
|
59
|
-
var
|
|
59
|
+
var import_body = require("@postenbring/hedwig-css/dist/body.css");
|
|
60
60
|
var import_box2 = require("@postenbring/hedwig-css/dist/box.css");
|
|
61
61
|
var import_message = require("@postenbring/hedwig-css/dist/message.css");
|
|
62
62
|
|
package/dist/message/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
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?:
|
|
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
|
|
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?:
|
|
11
|
+
icon?: react__default.ReactNode;
|
|
12
12
|
iconClassName?: string;
|
|
13
13
|
}) & Omit<BoxProps, "variant">;
|
|
14
14
|
declare const Message: OverridableComponent<MessageProps, HTMLDivElement>;
|
package/dist/modal/index.d.mts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import * as
|
|
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:
|
|
5
|
+
declare const ModalComponent: react.ForwardRefExoticComponent<ModalProps & react.RefAttributes<HTMLDialogElement>> & {
|
|
6
6
|
Header: typeof ModalHeader;
|
|
7
7
|
};
|
|
8
8
|
|
package/dist/modal/index.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import * as
|
|
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:
|
|
5
|
+
declare const ModalComponent: react.ForwardRefExoticComponent<ModalProps & react.RefAttributes<HTMLDialogElement>> & {
|
|
6
6
|
Header: typeof ModalHeader;
|
|
7
7
|
};
|
|
8
8
|
|
package/dist/modal/index.js
CHANGED
|
@@ -65,12 +65,12 @@ __export(modal_exports, {
|
|
|
65
65
|
module.exports = __toCommonJS(modal_exports);
|
|
66
66
|
var import_fonts = require("@postenbring/hedwig-css/dist/fonts.css");
|
|
67
67
|
var import_tokens = require("@postenbring/hedwig-css/dist/tokens.css");
|
|
68
|
-
var
|
|
68
|
+
var import_body = require("@postenbring/hedwig-css/dist/body.css");
|
|
69
69
|
var import_box2 = require("@postenbring/hedwig-css/dist/box.css");
|
|
70
70
|
var import_modal = require("@postenbring/hedwig-css/dist/modal.css");
|
|
71
71
|
|
|
72
72
|
// src/modal/modal.tsx
|
|
73
|
-
var
|
|
73
|
+
var import_react3 = require("react");
|
|
74
74
|
var import_typed_classname2 = require("@postenbring/hedwig-css/typed-classname/index.mjs");
|
|
75
75
|
|
|
76
76
|
// src/box/box.tsx
|
|
@@ -147,6 +147,7 @@ BoxCloseButton.displayName = "BoxCloseButton";
|
|
|
147
147
|
|
|
148
148
|
// src/utils.ts
|
|
149
149
|
var React = __toESM(require("react"));
|
|
150
|
+
var import_react2 = require("react");
|
|
150
151
|
function useMergeRefs(refs) {
|
|
151
152
|
return React.useMemo(() => {
|
|
152
153
|
if (refs.every((ref) => ref === null)) {
|
|
@@ -166,10 +167,10 @@ function useMergeRefs(refs) {
|
|
|
166
167
|
|
|
167
168
|
// src/modal/modal.tsx
|
|
168
169
|
var import_jsx_runtime2 = require("react/jsx-runtime");
|
|
169
|
-
var Modal = (0,
|
|
170
|
+
var Modal = (0, import_react3.forwardRef)(
|
|
170
171
|
(_a, ref) => {
|
|
171
172
|
var _b = _a, { children, className } = _b, rest = __objRest(_b, ["children", "className"]);
|
|
172
|
-
const modalRef = (0,
|
|
173
|
+
const modalRef = (0, import_react3.useRef)(null);
|
|
173
174
|
const mergedRef = useMergeRefs([modalRef, ref]);
|
|
174
175
|
function onClose() {
|
|
175
176
|
var _a2;
|
|
@@ -192,7 +193,7 @@ var Modal = (0, import_react2.forwardRef)(
|
|
|
192
193
|
}
|
|
193
194
|
);
|
|
194
195
|
Modal.displayName = "Modal";
|
|
195
|
-
var ModalHeader = (0,
|
|
196
|
+
var ModalHeader = (0, import_react3.forwardRef)(
|
|
196
197
|
(_a, ref) => {
|
|
197
198
|
var _b = _a, { as: Component = "h1", className } = _b, rest = __objRest(_b, ["as", "className"]);
|
|
198
199
|
return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
|
package/dist/modal/index.mjs
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
ModalComponent
|
|
3
|
-
} from "../chunk-
|
|
3
|
+
} from "../chunk-YFBW5ZRC.mjs";
|
|
4
4
|
import {
|
|
5
5
|
ModalHeader
|
|
6
|
-
} from "../chunk-
|
|
6
|
+
} from "../chunk-QV33ZHNO.mjs";
|
|
7
|
+
import "../chunk-FSBY3NKV.mjs";
|
|
7
8
|
import "../chunk-RXUPE4MM.mjs";
|
|
8
9
|
import "../chunk-FUJQIYOF.mjs";
|
|
9
10
|
export {
|
package/dist/modal/modal.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
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:
|
|
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/dist/modal/modal.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
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:
|
|
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/dist/modal/modal.js
CHANGED
|
@@ -63,7 +63,7 @@ __export(modal_exports, {
|
|
|
63
63
|
ModalHeader: () => ModalHeader
|
|
64
64
|
});
|
|
65
65
|
module.exports = __toCommonJS(modal_exports);
|
|
66
|
-
var
|
|
66
|
+
var import_react3 = require("react");
|
|
67
67
|
var import_typed_classname2 = require("@postenbring/hedwig-css/typed-classname/index.mjs");
|
|
68
68
|
|
|
69
69
|
// src/box/box.tsx
|
|
@@ -140,6 +140,7 @@ BoxCloseButton.displayName = "BoxCloseButton";
|
|
|
140
140
|
|
|
141
141
|
// src/utils.ts
|
|
142
142
|
var React = __toESM(require("react"));
|
|
143
|
+
var import_react2 = require("react");
|
|
143
144
|
function useMergeRefs(refs) {
|
|
144
145
|
return React.useMemo(() => {
|
|
145
146
|
if (refs.every((ref) => ref === null)) {
|
|
@@ -159,10 +160,10 @@ function useMergeRefs(refs) {
|
|
|
159
160
|
|
|
160
161
|
// src/modal/modal.tsx
|
|
161
162
|
var import_jsx_runtime2 = require("react/jsx-runtime");
|
|
162
|
-
var Modal = (0,
|
|
163
|
+
var Modal = (0, import_react3.forwardRef)(
|
|
163
164
|
(_a, ref) => {
|
|
164
165
|
var _b = _a, { children, className } = _b, rest = __objRest(_b, ["children", "className"]);
|
|
165
|
-
const modalRef = (0,
|
|
166
|
+
const modalRef = (0, import_react3.useRef)(null);
|
|
166
167
|
const mergedRef = useMergeRefs([modalRef, ref]);
|
|
167
168
|
function onClose() {
|
|
168
169
|
var _a2;
|
|
@@ -185,7 +186,7 @@ var Modal = (0, import_react2.forwardRef)(
|
|
|
185
186
|
}
|
|
186
187
|
);
|
|
187
188
|
Modal.displayName = "Modal";
|
|
188
|
-
var ModalHeader = (0,
|
|
189
|
+
var ModalHeader = (0, import_react3.forwardRef)(
|
|
189
190
|
(_a, ref) => {
|
|
190
191
|
var _b = _a, { as: Component = "h1", className } = _b, rest = __objRest(_b, ["as", "className"]);
|
|
191
192
|
return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
|
package/dist/modal/modal.mjs
CHANGED
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export { Tabs, TabsProps } from './tabs.mjs';
|
|
2
|
+
export { Tab, TabList, TabListProps, TabProps } from './tabs-list.mjs';
|
|
3
|
+
export { TabContent, TabContentProps, TabContents, TabContentsProps } from './tabs-content.mjs';
|
|
4
|
+
import 'react';
|
|
5
|
+
import '../utils-BfZsjuFH.mjs';
|
|
6
|
+
import 'react/jsx-runtime';
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export { Tabs, TabsProps } from './tabs.js';
|
|
2
|
+
export { Tab, TabList, TabListProps, TabProps } from './tabs-list.js';
|
|
3
|
+
export { TabContent, TabContentProps, TabContents, TabContentsProps } from './tabs-content.js';
|
|
4
|
+
import 'react';
|
|
5
|
+
import '../utils-BfZsjuFH.js';
|
|
6
|
+
import 'react/jsx-runtime';
|