@postenbring/hedwig-react 0.0.0-FPfHEZ66-tabs-component-20231214140156
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/accordion-item-content.d.mts +9 -0
- package/dist/accordion/accordion-item-content.d.ts +9 -0
- package/dist/accordion/accordion-item-content.js +97 -0
- package/dist/accordion/accordion-item-content.mjs +8 -0
- package/dist/accordion/accordion-item-trigger.d.mts +9 -0
- package/dist/accordion/accordion-item-trigger.d.ts +9 -0
- package/dist/accordion/accordion-item-trigger.js +121 -0
- package/dist/accordion/accordion-item-trigger.mjs +8 -0
- package/dist/accordion/accordion-item.d.mts +15 -0
- package/dist/accordion/accordion-item.d.ts +15 -0
- package/dist/accordion/accordion-item.js +115 -0
- package/dist/accordion/accordion-item.mjs +8 -0
- package/dist/accordion/accordion.d.mts +28 -0
- package/dist/accordion/accordion.d.ts +28 -0
- package/dist/accordion/accordion.js +92 -0
- package/dist/accordion/accordion.mjs +8 -0
- package/dist/accordion/index.d.mts +6 -0
- package/dist/accordion/index.d.ts +6 -0
- package/dist/accordion/index.js +227 -0
- package/dist/accordion/index.mjs +21 -0
- package/dist/badge/badge.d.mts +28 -0
- package/dist/badge/badge.d.ts +28 -0
- package/dist/badge/badge.js +109 -0
- package/dist/badge/badge.mjs +13 -0
- package/dist/badge/index.d.mts +3 -0
- package/dist/badge/index.d.ts +3 -0
- package/dist/badge/index.js +115 -0
- package/dist/badge/index.mjs +14 -0
- package/dist/box/box.d.mts +36 -0
- package/dist/box/box.d.ts +36 -0
- package/dist/box/box.js +130 -0
- package/dist/box/box.mjs +9 -0
- package/dist/box/index.d.mts +3 -0
- package/dist/box/index.d.ts +3 -0
- package/dist/box/index.js +136 -0
- package/dist/box/index.mjs +10 -0
- package/dist/breadcrumb/breadcrumb.d.mts +43 -0
- package/dist/breadcrumb/breadcrumb.d.ts +43 -0
- package/dist/breadcrumb/breadcrumb.js +52 -0
- package/dist/breadcrumb/breadcrumb.mjs +7 -0
- package/dist/breadcrumb/index.d.mts +3 -0
- package/dist/breadcrumb/index.d.ts +3 -0
- package/dist/breadcrumb/index.js +58 -0
- package/dist/breadcrumb/index.mjs +8 -0
- package/dist/button/button.d.mts +37 -0
- package/dist/button/button.d.ts +37 -0
- package/dist/button/button.js +124 -0
- package/dist/button/button.mjs +11 -0
- package/dist/button/index.d.mts +3 -0
- package/dist/button/index.d.ts +3 -0
- package/dist/button/index.js +130 -0
- package/dist/button/index.mjs +12 -0
- package/dist/chunk-2QSL2PSS.mjs +63 -0
- package/dist/chunk-2V6SWZ5G.mjs +16 -0
- package/dist/chunk-3VUAKZB2.mjs +48 -0
- package/dist/chunk-5OAMKZDX.mjs +6 -0
- package/dist/chunk-6XSKLHN6.mjs +49 -0
- package/dist/chunk-74UG2OYZ.mjs +111 -0
- package/dist/chunk-7SCOBRDZ.mjs +5 -0
- package/dist/chunk-AJBQ2EJU.mjs +5 -0
- package/dist/chunk-BRBGRJ2I.mjs +18 -0
- package/dist/chunk-ENRMC5K7.mjs +75 -0
- package/dist/chunk-FSBY3NKV.mjs +47 -0
- package/dist/chunk-FUJQIYOF.mjs +37 -0
- package/dist/chunk-GMGUONH5.mjs +34 -0
- package/dist/chunk-HMESGVY5.mjs +21 -0
- package/dist/chunk-IEY4EQ4E.mjs +5 -0
- package/dist/chunk-J7U4Z726.mjs +39 -0
- package/dist/chunk-L7DYK6OS.mjs +58 -0
- package/dist/chunk-LNPO2XQW.mjs +5 -0
- package/dist/chunk-LZSDIT5D.mjs +5 -0
- package/dist/chunk-MNSMCSAR.mjs +59 -0
- package/dist/chunk-Q2HYT3Z7.mjs +16 -0
- package/dist/chunk-QV33ZHNO.mjs +60 -0
- package/dist/chunk-RXUPE4MM.mjs +82 -0
- package/dist/chunk-RY53CJI7.mjs +53 -0
- package/dist/chunk-TES7CVGU.mjs +34 -0
- package/dist/chunk-TFY7NZMU.mjs +5 -0
- package/dist/chunk-VX6MSLLO.mjs +5 -0
- package/dist/chunk-X4D24ZRP.mjs +63 -0
- package/dist/chunk-XJ44O3HY.mjs +58 -0
- package/dist/chunk-YFBW5ZRC.mjs +18 -0
- package/dist/chunk-YRAMCYSB.mjs +5 -0
- package/dist/dropdown/dropdown.d.mts +15 -0
- package/dist/dropdown/dropdown.d.ts +15 -0
- package/dist/dropdown/dropdown.js +95 -0
- package/dist/dropdown/dropdown.mjs +7 -0
- package/dist/dropdown/index.d.mts +3 -0
- package/dist/dropdown/index.d.ts +3 -0
- package/dist/dropdown/index.js +101 -0
- package/dist/dropdown/index.mjs +8 -0
- package/dist/index.d.mts +21 -0
- package/dist/index.d.ts +21 -0
- package/dist/index.js +944 -0
- package/dist/index.mjs +114 -0
- 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.d.mts +13 -0
- package/dist/input/input.d.ts +13 -0
- package/dist/input/input.js +115 -0
- package/dist/input/input.mjs +7 -0
- package/dist/link/index.d.mts +3 -0
- package/dist/link/index.d.ts +3 -0
- package/dist/link/index.js +87 -0
- package/dist/link/index.mjs +8 -0
- package/dist/link/link.d.mts +18 -0
- package/dist/link/link.d.ts +18 -0
- package/dist/link/link.js +81 -0
- package/dist/link/link.mjs +7 -0
- package/dist/list/description-list.d.mts +32 -0
- package/dist/list/description-list.d.ts +32 -0
- package/dist/list/description-list.js +98 -0
- package/dist/list/description-list.mjs +13 -0
- package/dist/list/index.d.mts +5 -0
- package/dist/list/index.d.ts +5 -0
- package/dist/list/index.js +159 -0
- package/dist/list/index.mjs +22 -0
- package/dist/list/link-list.d.mts +13 -0
- package/dist/list/link-list.d.ts +13 -0
- package/dist/list/link-list.js +108 -0
- package/dist/list/link-list.mjs +8 -0
- package/dist/list/list.d.mts +25 -0
- package/dist/list/list.d.ts +25 -0
- package/dist/list/list.js +101 -0
- package/dist/list/list.mjs +9 -0
- package/dist/message/index.d.mts +16 -0
- package/dist/message/index.d.ts +16 -0
- package/dist/message/index.js +197 -0
- package/dist/message/index.mjs +14 -0
- package/dist/message/message.d.mts +18 -0
- package/dist/message/message.d.ts +18 -0
- package/dist/message/message.js +183 -0
- package/dist/message/message.mjs +12 -0
- package/dist/modal/index.d.mts +9 -0
- package/dist/modal/index.d.ts +9 -0
- package/dist/modal/index.js +218 -0
- package/dist/modal/index.mjs +13 -0
- package/dist/modal/modal.d.mts +13 -0
- package/dist/modal/modal.d.ts +13 -0
- package/dist/modal/modal.js +206 -0
- package/dist/modal/modal.mjs +11 -0
- package/dist/tabs/index.d.mts +4 -0
- package/dist/tabs/index.d.ts +4 -0
- package/dist/tabs/index.js +202 -0
- package/dist/tabs/index.mjs +17 -0
- package/dist/tabs/tabs.d.mts +49 -0
- package/dist/tabs/tabs.d.ts +49 -0
- package/dist/tabs/tabs.js +196 -0
- package/dist/tabs/tabs.mjs +16 -0
- package/dist/utils-BfZsjuFH.d.mts +17 -0
- package/dist/utils-BfZsjuFH.d.ts +17 -0
- package/package.json +34 -0
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import {
|
|
2
|
+
Box
|
|
3
|
+
} from "./chunk-RXUPE4MM.mjs";
|
|
4
|
+
import {
|
|
5
|
+
__objRest,
|
|
6
|
+
__spreadProps,
|
|
7
|
+
__spreadValues
|
|
8
|
+
} from "./chunk-FUJQIYOF.mjs";
|
|
9
|
+
|
|
10
|
+
// src/message/message.tsx
|
|
11
|
+
import { forwardRef } from "react";
|
|
12
|
+
import { clsx } from "@postenbring/hedwig-css/typed-classname/index.mjs";
|
|
13
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
14
|
+
var Message = forwardRef(
|
|
15
|
+
(_a, ref) => {
|
|
16
|
+
var _b = _a, { children, className, variant = "success", icon, iconClassName } = _b, rest = __objRest(_b, ["children", "className", "variant", "icon", "iconClassName"]);
|
|
17
|
+
return /* @__PURE__ */ jsxs(
|
|
18
|
+
Box,
|
|
19
|
+
__spreadProps(__spreadValues({
|
|
20
|
+
className: clsx(`hds-message`, `hds-message--${variant}`, className),
|
|
21
|
+
ref
|
|
22
|
+
}, rest), {
|
|
23
|
+
children: [
|
|
24
|
+
variant === "neutral" && /* @__PURE__ */ jsx("div", { className: clsx("hds-message--neutral__icon", iconClassName), children: icon }),
|
|
25
|
+
children
|
|
26
|
+
]
|
|
27
|
+
})
|
|
28
|
+
);
|
|
29
|
+
}
|
|
30
|
+
);
|
|
31
|
+
Message.displayName = "Message";
|
|
32
|
+
var MessageTitle = forwardRef(
|
|
33
|
+
(_a, ref) => {
|
|
34
|
+
var _b = _a, { as: Component = "p", className } = _b, rest = __objRest(_b, ["as", "className"]);
|
|
35
|
+
return /* @__PURE__ */ jsx(
|
|
36
|
+
Component,
|
|
37
|
+
__spreadValues({
|
|
38
|
+
className: clsx("hds-message__title", className),
|
|
39
|
+
ref
|
|
40
|
+
}, rest)
|
|
41
|
+
);
|
|
42
|
+
}
|
|
43
|
+
);
|
|
44
|
+
MessageTitle.displayName = "MessageTitle";
|
|
45
|
+
var MessageDescription = forwardRef(
|
|
46
|
+
(_a, ref) => {
|
|
47
|
+
var _b = _a, { as: Component = "p", className } = _b, rest = __objRest(_b, ["as", "className"]);
|
|
48
|
+
return /* @__PURE__ */ jsx(
|
|
49
|
+
Component,
|
|
50
|
+
__spreadValues({
|
|
51
|
+
className: clsx("hds-message__description", className),
|
|
52
|
+
ref
|
|
53
|
+
}, rest)
|
|
54
|
+
);
|
|
55
|
+
}
|
|
56
|
+
);
|
|
57
|
+
MessageDescription.displayName = "MessageDescription";
|
|
58
|
+
|
|
59
|
+
export {
|
|
60
|
+
Message,
|
|
61
|
+
MessageTitle,
|
|
62
|
+
MessageDescription
|
|
63
|
+
};
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import {
|
|
2
|
+
__objRest,
|
|
3
|
+
__spreadProps,
|
|
4
|
+
__spreadValues
|
|
5
|
+
} from "./chunk-FUJQIYOF.mjs";
|
|
6
|
+
|
|
7
|
+
// src/input/input.tsx
|
|
8
|
+
import * as React from "react";
|
|
9
|
+
import { clsx } from "@postenbring/hedwig-css/typed-classname/index.mjs";
|
|
10
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
11
|
+
function Input(_a) {
|
|
12
|
+
var _b = _a, {
|
|
13
|
+
variant = "default",
|
|
14
|
+
errorMessage,
|
|
15
|
+
labelProps,
|
|
16
|
+
label,
|
|
17
|
+
id,
|
|
18
|
+
className
|
|
19
|
+
} = _b, rest = __objRest(_b, [
|
|
20
|
+
"variant",
|
|
21
|
+
"errorMessage",
|
|
22
|
+
"labelProps",
|
|
23
|
+
"label",
|
|
24
|
+
"id",
|
|
25
|
+
"className"
|
|
26
|
+
]);
|
|
27
|
+
const errorMessageId = React.useId();
|
|
28
|
+
const inputId = React.useId();
|
|
29
|
+
return /* @__PURE__ */ jsxs(
|
|
30
|
+
"div",
|
|
31
|
+
{
|
|
32
|
+
className: clsx(
|
|
33
|
+
"hds-input",
|
|
34
|
+
{
|
|
35
|
+
[`hds-input--${variant}`]: variant,
|
|
36
|
+
"hds-input--error": errorMessage
|
|
37
|
+
},
|
|
38
|
+
className
|
|
39
|
+
),
|
|
40
|
+
children: [
|
|
41
|
+
/* @__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
|
+
/* @__PURE__ */ jsx(
|
|
44
|
+
"input",
|
|
45
|
+
__spreadProps(__spreadValues({}, rest), {
|
|
46
|
+
"aria-describedby": errorMessageId,
|
|
47
|
+
className: "hds-input__input",
|
|
48
|
+
id: id || inputId
|
|
49
|
+
})
|
|
50
|
+
)
|
|
51
|
+
]
|
|
52
|
+
}
|
|
53
|
+
);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
export {
|
|
57
|
+
Input
|
|
58
|
+
};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import {
|
|
2
|
+
Modal,
|
|
3
|
+
ModalHeader
|
|
4
|
+
} from "./chunk-QV33ZHNO.mjs";
|
|
5
|
+
|
|
6
|
+
// src/modal/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/box.css";
|
|
11
|
+
import "@postenbring/hedwig-css/dist/modal.css";
|
|
12
|
+
var ModalComponent = Modal;
|
|
13
|
+
ModalComponent.Header = ModalHeader;
|
|
14
|
+
ModalComponent.Header.displayName = "Modal";
|
|
15
|
+
|
|
16
|
+
export {
|
|
17
|
+
ModalComponent
|
|
18
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
|
|
4
|
+
interface DropdownProps extends Omit<React.SelectHTMLAttributes<HTMLSelectElement>, "children"> {
|
|
5
|
+
label: string;
|
|
6
|
+
variant: "default" | "white" | "lined";
|
|
7
|
+
errorMessage?: string;
|
|
8
|
+
children: React.ReactNode;
|
|
9
|
+
}
|
|
10
|
+
declare function Dropdown({ label, variant, errorMessage, className, children, ...rest }: DropdownProps): react_jsx_runtime.JSX.Element;
|
|
11
|
+
declare namespace Dropdown {
|
|
12
|
+
var displayName: string;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
export { Dropdown, type DropdownProps };
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
|
|
4
|
+
interface DropdownProps extends Omit<React.SelectHTMLAttributes<HTMLSelectElement>, "children"> {
|
|
5
|
+
label: string;
|
|
6
|
+
variant: "default" | "white" | "lined";
|
|
7
|
+
errorMessage?: string;
|
|
8
|
+
children: React.ReactNode;
|
|
9
|
+
}
|
|
10
|
+
declare function Dropdown({ label, variant, errorMessage, className, children, ...rest }: DropdownProps): react_jsx_runtime.JSX.Element;
|
|
11
|
+
declare namespace Dropdown {
|
|
12
|
+
var displayName: string;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
export { Dropdown, type DropdownProps };
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __defProps = Object.defineProperties;
|
|
4
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
+
var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
|
|
6
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
7
|
+
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
8
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
9
|
+
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
10
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
11
|
+
var __spreadValues = (a, b) => {
|
|
12
|
+
for (var prop in b || (b = {}))
|
|
13
|
+
if (__hasOwnProp.call(b, prop))
|
|
14
|
+
__defNormalProp(a, prop, b[prop]);
|
|
15
|
+
if (__getOwnPropSymbols)
|
|
16
|
+
for (var prop of __getOwnPropSymbols(b)) {
|
|
17
|
+
if (__propIsEnum.call(b, prop))
|
|
18
|
+
__defNormalProp(a, prop, b[prop]);
|
|
19
|
+
}
|
|
20
|
+
return a;
|
|
21
|
+
};
|
|
22
|
+
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
23
|
+
var __objRest = (source, exclude) => {
|
|
24
|
+
var target = {};
|
|
25
|
+
for (var prop in source)
|
|
26
|
+
if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
27
|
+
target[prop] = source[prop];
|
|
28
|
+
if (source != null && __getOwnPropSymbols)
|
|
29
|
+
for (var prop of __getOwnPropSymbols(source)) {
|
|
30
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop))
|
|
31
|
+
target[prop] = source[prop];
|
|
32
|
+
}
|
|
33
|
+
return target;
|
|
34
|
+
};
|
|
35
|
+
var __export = (target, all) => {
|
|
36
|
+
for (var name in all)
|
|
37
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
38
|
+
};
|
|
39
|
+
var __copyProps = (to, from, except, desc) => {
|
|
40
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
41
|
+
for (let key of __getOwnPropNames(from))
|
|
42
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
43
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
44
|
+
}
|
|
45
|
+
return to;
|
|
46
|
+
};
|
|
47
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
48
|
+
|
|
49
|
+
// src/dropdown/dropdown.tsx
|
|
50
|
+
var dropdown_exports = {};
|
|
51
|
+
__export(dropdown_exports, {
|
|
52
|
+
Dropdown: () => Dropdown
|
|
53
|
+
});
|
|
54
|
+
module.exports = __toCommonJS(dropdown_exports);
|
|
55
|
+
var import_typed_classname = require("@postenbring/hedwig-css/typed-classname/index.mjs");
|
|
56
|
+
var import_jsx_runtime = require("react/jsx-runtime");
|
|
57
|
+
function Dropdown(_a) {
|
|
58
|
+
var _b = _a, {
|
|
59
|
+
label,
|
|
60
|
+
variant,
|
|
61
|
+
errorMessage,
|
|
62
|
+
className,
|
|
63
|
+
children
|
|
64
|
+
} = _b, rest = __objRest(_b, [
|
|
65
|
+
"label",
|
|
66
|
+
"variant",
|
|
67
|
+
"errorMessage",
|
|
68
|
+
"className",
|
|
69
|
+
"children"
|
|
70
|
+
]);
|
|
71
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("label", { className: (0, import_typed_classname.clsx)("hds-dropdown__label", { "hds-dropdown--error": errorMessage }), children: [
|
|
72
|
+
label,
|
|
73
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
74
|
+
"select",
|
|
75
|
+
__spreadProps(__spreadValues({
|
|
76
|
+
className: (0, import_typed_classname.clsx)(
|
|
77
|
+
"hds-dropdown",
|
|
78
|
+
{
|
|
79
|
+
[`hds-dropdown--${variant}`]: variant,
|
|
80
|
+
"hds-dropdown--error": errorMessage
|
|
81
|
+
},
|
|
82
|
+
className
|
|
83
|
+
)
|
|
84
|
+
}, rest), {
|
|
85
|
+
children
|
|
86
|
+
})
|
|
87
|
+
),
|
|
88
|
+
errorMessage ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: "hds-dropdown-message", children: errorMessage }) : null
|
|
89
|
+
] });
|
|
90
|
+
}
|
|
91
|
+
Dropdown.displayName = "Dropdown";
|
|
92
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
93
|
+
0 && (module.exports = {
|
|
94
|
+
Dropdown
|
|
95
|
+
});
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __defProps = Object.defineProperties;
|
|
4
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
+
var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
|
|
6
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
7
|
+
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
8
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
9
|
+
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
10
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
11
|
+
var __spreadValues = (a, b) => {
|
|
12
|
+
for (var prop in b || (b = {}))
|
|
13
|
+
if (__hasOwnProp.call(b, prop))
|
|
14
|
+
__defNormalProp(a, prop, b[prop]);
|
|
15
|
+
if (__getOwnPropSymbols)
|
|
16
|
+
for (var prop of __getOwnPropSymbols(b)) {
|
|
17
|
+
if (__propIsEnum.call(b, prop))
|
|
18
|
+
__defNormalProp(a, prop, b[prop]);
|
|
19
|
+
}
|
|
20
|
+
return a;
|
|
21
|
+
};
|
|
22
|
+
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
23
|
+
var __objRest = (source, exclude) => {
|
|
24
|
+
var target = {};
|
|
25
|
+
for (var prop in source)
|
|
26
|
+
if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
27
|
+
target[prop] = source[prop];
|
|
28
|
+
if (source != null && __getOwnPropSymbols)
|
|
29
|
+
for (var prop of __getOwnPropSymbols(source)) {
|
|
30
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop))
|
|
31
|
+
target[prop] = source[prop];
|
|
32
|
+
}
|
|
33
|
+
return target;
|
|
34
|
+
};
|
|
35
|
+
var __export = (target, all) => {
|
|
36
|
+
for (var name in all)
|
|
37
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
38
|
+
};
|
|
39
|
+
var __copyProps = (to, from, except, desc) => {
|
|
40
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
41
|
+
for (let key of __getOwnPropNames(from))
|
|
42
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
43
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
44
|
+
}
|
|
45
|
+
return to;
|
|
46
|
+
};
|
|
47
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
48
|
+
|
|
49
|
+
// src/dropdown/index.tsx
|
|
50
|
+
var dropdown_exports = {};
|
|
51
|
+
__export(dropdown_exports, {
|
|
52
|
+
Dropdown: () => Dropdown
|
|
53
|
+
});
|
|
54
|
+
module.exports = __toCommonJS(dropdown_exports);
|
|
55
|
+
var import_fonts = require("@postenbring/hedwig-css/dist/fonts.css");
|
|
56
|
+
var import_tokens = require("@postenbring/hedwig-css/dist/tokens.css");
|
|
57
|
+
var import_body = require("@postenbring/hedwig-css/dist/body.css");
|
|
58
|
+
var import_dropdown = require("@postenbring/hedwig-css/dist/dropdown.css");
|
|
59
|
+
|
|
60
|
+
// src/dropdown/dropdown.tsx
|
|
61
|
+
var import_typed_classname = require("@postenbring/hedwig-css/typed-classname/index.mjs");
|
|
62
|
+
var import_jsx_runtime = require("react/jsx-runtime");
|
|
63
|
+
function Dropdown(_a) {
|
|
64
|
+
var _b = _a, {
|
|
65
|
+
label,
|
|
66
|
+
variant,
|
|
67
|
+
errorMessage,
|
|
68
|
+
className,
|
|
69
|
+
children
|
|
70
|
+
} = _b, rest = __objRest(_b, [
|
|
71
|
+
"label",
|
|
72
|
+
"variant",
|
|
73
|
+
"errorMessage",
|
|
74
|
+
"className",
|
|
75
|
+
"children"
|
|
76
|
+
]);
|
|
77
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("label", { className: (0, import_typed_classname.clsx)("hds-dropdown__label", { "hds-dropdown--error": errorMessage }), children: [
|
|
78
|
+
label,
|
|
79
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
80
|
+
"select",
|
|
81
|
+
__spreadProps(__spreadValues({
|
|
82
|
+
className: (0, import_typed_classname.clsx)(
|
|
83
|
+
"hds-dropdown",
|
|
84
|
+
{
|
|
85
|
+
[`hds-dropdown--${variant}`]: variant,
|
|
86
|
+
"hds-dropdown--error": errorMessage
|
|
87
|
+
},
|
|
88
|
+
className
|
|
89
|
+
)
|
|
90
|
+
}, rest), {
|
|
91
|
+
children
|
|
92
|
+
})
|
|
93
|
+
),
|
|
94
|
+
errorMessage ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: "hds-dropdown-message", children: errorMessage }) : null
|
|
95
|
+
] });
|
|
96
|
+
}
|
|
97
|
+
Dropdown.displayName = "Dropdown";
|
|
98
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
99
|
+
0 && (module.exports = {
|
|
100
|
+
Dropdown
|
|
101
|
+
});
|
package/dist/index.d.mts
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
export { BaseButton, ButtonProps, PrimaryButton, SecondaryButton } from './button/button.mjs';
|
|
2
|
+
export { Link, LinkProps } from './link/link.mjs';
|
|
3
|
+
export { Badge, BadgeProps, DarkBadge, WarningBadge, WhiteBadge } from './badge/badge.mjs';
|
|
4
|
+
export { DescriptionDetails, DescriptionDetailsProps, default as DescriptionList, DescriptionListProps, DescriptionTerm, DescriptionTermProps } from './list/description-list.mjs';
|
|
5
|
+
export { ListProps, OrderedList, UnorderedList } from './list/list.mjs';
|
|
6
|
+
export { LinkList, LinkListProps } from './list/link-list.mjs';
|
|
7
|
+
export { Box, BoxCloseButton, BoxCloseButtonProps, BoxProps } from './box/box.mjs';
|
|
8
|
+
export { Message } from './message/index.mjs';
|
|
9
|
+
export { Accordion, AccordionProps } from './accordion/accordion.mjs';
|
|
10
|
+
export { AccordionItem, AccordionItemChildrenType, AccordionItemProps } from './accordion/accordion-item.mjs';
|
|
11
|
+
export { AccordionTrigger, AccordionTriggerProps } from './accordion/accordion-item-trigger.mjs';
|
|
12
|
+
export { AccordionContent, AccordionContentProps } from './accordion/accordion-item-content.mjs';
|
|
13
|
+
export { Dropdown, DropdownProps } from './dropdown/dropdown.mjs';
|
|
14
|
+
export { Modal } from './modal/index.mjs';
|
|
15
|
+
export { Breadcrumbs, BreadcrumbsProps } from './breadcrumb/breadcrumb.mjs';
|
|
16
|
+
export { Tab, TabContent, TabContentProps, TabContents, TabContentsProps, TabList, TabListProps, TabProps, Tabs, TabsProps } from './tabs/tabs.mjs';
|
|
17
|
+
export { MessageDescription, MessageTitle } from './message/message.mjs';
|
|
18
|
+
export { ModalHeader } from './modal/modal.mjs';
|
|
19
|
+
import './utils-BfZsjuFH.mjs';
|
|
20
|
+
import 'react';
|
|
21
|
+
import 'react/jsx-runtime';
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
export { BaseButton, ButtonProps, PrimaryButton, SecondaryButton } from './button/button.js';
|
|
2
|
+
export { Link, LinkProps } from './link/link.js';
|
|
3
|
+
export { Badge, BadgeProps, DarkBadge, WarningBadge, WhiteBadge } from './badge/badge.js';
|
|
4
|
+
export { DescriptionDetails, DescriptionDetailsProps, default as DescriptionList, DescriptionListProps, DescriptionTerm, DescriptionTermProps } from './list/description-list.js';
|
|
5
|
+
export { ListProps, OrderedList, UnorderedList } from './list/list.js';
|
|
6
|
+
export { LinkList, LinkListProps } from './list/link-list.js';
|
|
7
|
+
export { Box, BoxCloseButton, BoxCloseButtonProps, BoxProps } from './box/box.js';
|
|
8
|
+
export { Message } from './message/index.js';
|
|
9
|
+
export { Accordion, AccordionProps } from './accordion/accordion.js';
|
|
10
|
+
export { AccordionItem, AccordionItemChildrenType, AccordionItemProps } from './accordion/accordion-item.js';
|
|
11
|
+
export { AccordionTrigger, AccordionTriggerProps } from './accordion/accordion-item-trigger.js';
|
|
12
|
+
export { AccordionContent, AccordionContentProps } from './accordion/accordion-item-content.js';
|
|
13
|
+
export { Dropdown, DropdownProps } from './dropdown/dropdown.js';
|
|
14
|
+
export { Modal } from './modal/index.js';
|
|
15
|
+
export { Breadcrumbs, BreadcrumbsProps } from './breadcrumb/breadcrumb.js';
|
|
16
|
+
export { Tab, TabContent, TabContentProps, TabContents, TabContentsProps, TabList, TabListProps, TabProps, Tabs, TabsProps } from './tabs/tabs.js';
|
|
17
|
+
export { MessageDescription, MessageTitle } from './message/message.js';
|
|
18
|
+
export { ModalHeader } from './modal/modal.js';
|
|
19
|
+
import './utils-BfZsjuFH.js';
|
|
20
|
+
import 'react';
|
|
21
|
+
import 'react/jsx-runtime';
|