@postenbring/hedwig-react 0.0.43 → 0.0.45

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.
Files changed (124) hide show
  1. package/dist/card/card.js +17 -3
  2. package/dist/card/card.mjs +1 -1
  3. package/dist/card/index.js +17 -3
  4. package/dist/card/index.mjs +2 -2
  5. package/dist/{chunk-PF6PZIZS.mjs → chunk-4RAMNETH.mjs} +1 -1
  6. package/dist/{chunk-DOJ2ZKNV.mjs → chunk-5NWYVPBZ.mjs} +1 -1
  7. package/dist/chunk-67OMX7FP.mjs +5 -0
  8. package/dist/{chunk-2QZF65FK.mjs → chunk-6IJTNHP4.mjs} +5 -1
  9. package/dist/{chunk-KOXEIUCU.mjs → chunk-E5575U2F.mjs} +1 -1
  10. package/dist/{chunk-K3BGDNWO.mjs → chunk-E55KF755.mjs} +2 -2
  11. package/dist/chunk-FDAXJJHU.mjs +53 -0
  12. package/dist/{chunk-6KVF3ELJ.mjs → chunk-HZMQWFYP.mjs} +2 -2
  13. package/dist/chunk-IAPRPJQO.mjs +30 -0
  14. package/dist/{chunk-QAYPCD5Z.mjs → chunk-JYEDLLKF.mjs} +21 -12
  15. package/dist/{chunk-4XHA3NGO.mjs → chunk-LICHSDMT.mjs} +17 -3
  16. package/dist/chunk-N5VPBR6T.mjs +129 -0
  17. package/dist/chunk-OKWNTFU5.mjs +5 -0
  18. package/dist/{chunk-SX37JSDS.mjs → chunk-OPW2JS5I.mjs} +1 -1
  19. package/dist/chunk-PPUNMHOX.mjs +0 -0
  20. package/dist/chunk-QMB26PCT.mjs +72 -0
  21. package/dist/{chunk-45BJGKVZ.mjs → chunk-S4F2KVFJ.mjs} +1 -1
  22. package/dist/{chunk-Y2KP4RF2.mjs → chunk-T4IRPRA6.mjs} +2 -2
  23. package/dist/{chunk-CP4CKVIA.mjs → chunk-T5W5SKZP.mjs} +5 -1
  24. package/dist/chunk-Y4KHO6LN.mjs +65 -0
  25. package/dist/form/error-message/error-message.d.mts +12 -0
  26. package/dist/form/error-message/error-message.d.ts +12 -0
  27. package/dist/form/error-message/error-message.js +66 -0
  28. package/dist/form/error-message/error-message.mjs +7 -0
  29. package/dist/form/error-message/index.d.mts +3 -0
  30. package/dist/form/error-message/index.d.ts +3 -0
  31. package/dist/form/error-message/index.js +72 -0
  32. package/dist/form/error-message/index.mjs +8 -0
  33. package/dist/form/fieldset/fieldset.d.mts +20 -0
  34. package/dist/form/fieldset/fieldset.d.ts +20 -0
  35. package/dist/{input-group/input-group.js → form/fieldset/fieldset.js} +65 -61
  36. package/dist/form/fieldset/fieldset.mjs +9 -0
  37. package/dist/form/fieldset/index.d.mts +2 -0
  38. package/dist/form/fieldset/index.d.ts +2 -0
  39. package/dist/form/fieldset/index.js +152 -0
  40. package/dist/form/fieldset/index.mjs +10 -0
  41. package/dist/form/index.d.mts +6 -0
  42. package/dist/form/index.d.ts +6 -0
  43. package/dist/form/index.js +375 -0
  44. package/dist/form/index.mjs +28 -0
  45. package/dist/{input/input.js → form/input/index.js} +70 -27
  46. package/dist/form/input/index.mjs +12 -0
  47. package/dist/{input/index.js → form/input/input.js} +60 -31
  48. package/dist/form/input/input.mjs +11 -0
  49. package/dist/form/input-group/index.d.mts +2 -0
  50. package/dist/form/input-group/index.d.ts +2 -0
  51. package/dist/{textarea/textarea.js → form/input-group/index.js} +60 -50
  52. package/dist/form/input-group/index.mjs +10 -0
  53. package/dist/{input-group → form/input-group}/input-group.d.mts +1 -7
  54. package/dist/{input-group → form/input-group}/input-group.d.ts +1 -7
  55. package/dist/{input-group/index.js → form/input-group/input-group.js} +51 -21
  56. package/dist/form/input-group/input-group.mjs +9 -0
  57. package/dist/{select/select.js → form/select/index.js} +70 -27
  58. package/dist/form/select/index.mjs +12 -0
  59. package/dist/{select/index.js → form/select/select.js} +60 -31
  60. package/dist/form/select/select.mjs +11 -0
  61. package/dist/form/textarea/index.js +217 -0
  62. package/dist/form/textarea/index.mjs +12 -0
  63. package/dist/{textarea/index.js → form/textarea/textarea.js} +60 -31
  64. package/dist/form/textarea/textarea.mjs +11 -0
  65. package/dist/index.d.mts +7 -6
  66. package/dist/index.d.ts +7 -6
  67. package/dist/index.js +429 -243
  68. package/dist/index.mjs +37 -29
  69. package/dist/list/description-list.d.mts +4 -4
  70. package/dist/list/description-list.d.ts +4 -4
  71. package/dist/list/index.mjs +3 -3
  72. package/dist/modal/index.d.mts +5 -2
  73. package/dist/modal/index.d.ts +5 -2
  74. package/dist/modal/index.js +71 -3
  75. package/dist/modal/index.mjs +2 -2
  76. package/dist/modal/modal.d.mts +20 -2
  77. package/dist/modal/modal.d.ts +20 -2
  78. package/dist/modal/modal.js +77 -5
  79. package/dist/modal/modal.mjs +9 -3
  80. package/dist/navbar/index.d.mts +4 -2
  81. package/dist/navbar/index.d.ts +4 -2
  82. package/dist/navbar/index.js +29 -1
  83. package/dist/navbar/index.mjs +7 -3
  84. package/dist/navbar/navbar-expandable-menu.js +5 -1
  85. package/dist/navbar/navbar-expandable-menu.mjs +1 -1
  86. package/dist/navbar/navbar.d.mts +10 -1
  87. package/dist/navbar/navbar.d.ts +10 -1
  88. package/dist/navbar/navbar.js +28 -2
  89. package/dist/navbar/navbar.mjs +7 -3
  90. package/dist/tabs/index.mjs +2 -2
  91. package/dist/typography/index.d.mts +69 -0
  92. package/dist/typography/index.d.ts +69 -0
  93. package/dist/typography/index.js +255 -0
  94. package/dist/typography/index.mjs +110 -0
  95. package/dist/typography/typography.d.mts +18 -0
  96. package/dist/typography/typography.d.ts +18 -0
  97. package/dist/typography/typography.js +112 -0
  98. package/dist/typography/typography.mjs +7 -0
  99. package/package.json +2 -2
  100. package/dist/chunk-FB5VUC62.mjs +0 -29
  101. package/dist/chunk-OB6UNSKV.mjs +0 -60
  102. package/dist/input/index.mjs +0 -10
  103. package/dist/input/input.mjs +0 -9
  104. package/dist/input-group/index.d.mts +0 -2
  105. package/dist/input-group/index.d.ts +0 -2
  106. package/dist/input-group/index.mjs +0 -8
  107. package/dist/input-group/input-group.mjs +0 -7
  108. package/dist/select/index.mjs +0 -10
  109. package/dist/select/select.mjs +0 -9
  110. package/dist/textarea/index.mjs +0 -10
  111. package/dist/textarea/textarea.mjs +0 -9
  112. package/dist/{chunk-WUMZCEIJ.mjs → chunk-BSX4IA3X.mjs} +3 -3
  113. /package/dist/{input → form/input}/index.d.mts +0 -0
  114. /package/dist/{input → form/input}/index.d.ts +0 -0
  115. /package/dist/{input → form/input}/input.d.mts +0 -0
  116. /package/dist/{input → form/input}/input.d.ts +0 -0
  117. /package/dist/{select → form/select}/index.d.mts +0 -0
  118. /package/dist/{select → form/select}/index.d.ts +0 -0
  119. /package/dist/{select → form/select}/select.d.mts +0 -0
  120. /package/dist/{select → form/select}/select.d.ts +0 -0
  121. /package/dist/{textarea → form/textarea}/index.d.mts +0 -0
  122. /package/dist/{textarea → form/textarea}/index.d.ts +0 -0
  123. /package/dist/{textarea → form/textarea}/textarea.d.mts +0 -0
  124. /package/dist/{textarea → form/textarea}/textarea.d.ts +0 -0
@@ -0,0 +1,112 @@
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/typography/typography.tsx
50
+ var typography_exports = {};
51
+ __export(typography_exports, {
52
+ Typography: () => Typography
53
+ });
54
+ module.exports = __toCommonJS(typography_exports);
55
+ var import_react = require("react");
56
+ var import_typed_classname = require("@postenbring/hedwig-css/typed-classname/index.mjs");
57
+ var import_jsx_runtime = require("react/jsx-runtime");
58
+ var defaultHTMLTag = {
59
+ "h1-display": "h1",
60
+ h1: "h1",
61
+ h2: "h2",
62
+ h3: "h3",
63
+ "h3-title": "h3",
64
+ body: "p",
65
+ "body-title": "p",
66
+ "body-small": "p",
67
+ "body-small-title": "p",
68
+ technical: "p",
69
+ "technical-title": "p",
70
+ caption: "p",
71
+ "caption-title": "p"
72
+ };
73
+ var Typography = (0, import_react.forwardRef)(
74
+ (_a, ref) => {
75
+ var _b = _a, {
76
+ as,
77
+ variant = "body",
78
+ size = "fluid",
79
+ _unstableSpacing: spacing,
80
+ children,
81
+ className
82
+ } = _b, rest = __objRest(_b, [
83
+ "as",
84
+ "variant",
85
+ "size",
86
+ "_unstableSpacing",
87
+ "children",
88
+ "className"
89
+ ]);
90
+ const Component = as != null ? as : defaultHTMLTag[variant];
91
+ const sizeModifier = size !== "fluid" && variant !== "caption" && variant !== "caption-title" && size;
92
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
93
+ Component,
94
+ __spreadProps(__spreadValues({
95
+ className: (0, import_typed_classname.clsx)(
96
+ `hds-typography-${variant}`,
97
+ sizeModifier && `hds-typography--${sizeModifier}`,
98
+ spacing && "hds-typography--spacing",
99
+ className
100
+ ),
101
+ ref
102
+ }, rest), {
103
+ children
104
+ })
105
+ );
106
+ }
107
+ );
108
+ Typography.displayName = "Typography";
109
+ // Annotate the CommonJS export names for ESM import in node:
110
+ 0 && (module.exports = {
111
+ Typography
112
+ });
@@ -0,0 +1,7 @@
1
+ import {
2
+ Typography
3
+ } from "../chunk-Y4KHO6LN.mjs";
4
+ import "../chunk-FUJQIYOF.mjs";
5
+ export {
6
+ Typography
7
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@postenbring/hedwig-react",
3
- "version": "0.0.43",
3
+ "version": "0.0.45",
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.40"
22
+ "@postenbring/hedwig-css": "0.0.41"
23
23
  },
24
24
  "publishConfig": {
25
25
  "access": "public"
@@ -1,29 +0,0 @@
1
- import {
2
- __objRest,
3
- __spreadProps,
4
- __spreadValues
5
- } from "./chunk-FUJQIYOF.mjs";
6
-
7
- // src/navbar/navbar.tsx
8
- import { forwardRef } from "react";
9
- import { clsx } from "@postenbring/hedwig-css/typed-classname/index.mjs";
10
- import { jsx } from "react/jsx-runtime";
11
- var Navbar = forwardRef(
12
- (_a, ref) => {
13
- var _b = _a, { children, className } = _b, rest = __objRest(_b, ["children", "className"]);
14
- return /* @__PURE__ */ jsx("header", __spreadProps(__spreadValues({ className: clsx("hds-navbar", className), ref }, rest), { children }));
15
- }
16
- );
17
- Navbar.displayName = "Navbar";
18
- var NavbarLogo = forwardRef(
19
- (_a, ref) => {
20
- var _b = _a, { as: Component = "div", className } = _b, rest = __objRest(_b, ["as", "className"]);
21
- return /* @__PURE__ */ jsx(Component, __spreadValues({ className: clsx("hds-navbar__logo", className), ref }, rest));
22
- }
23
- );
24
- NavbarLogo.displayName = "Navbar.Logo";
25
-
26
- export {
27
- Navbar,
28
- NavbarLogo
29
- };
@@ -1,60 +0,0 @@
1
- import {
2
- useMergeRefs
3
- } from "./chunk-FSBY3NKV.mjs";
4
- import {
5
- Box
6
- } from "./chunk-WTMT5WCJ.mjs";
7
- import {
8
- __objRest,
9
- __spreadProps,
10
- __spreadValues
11
- } from "./chunk-FUJQIYOF.mjs";
12
-
13
- // src/modal/modal.tsx
14
- import { forwardRef, useRef } from "react";
15
- import { clsx } from "@postenbring/hedwig-css/typed-classname/index.mjs";
16
- import { jsx } from "react/jsx-runtime";
17
- var Modal = forwardRef(
18
- (_a, ref) => {
19
- var _b = _a, { children, className } = _b, rest = __objRest(_b, ["children", "className"]);
20
- const modalRef = useRef(null);
21
- const mergedRef = useMergeRefs([modalRef, ref]);
22
- function onClose() {
23
- var _a2;
24
- (_a2 = modalRef.current) == null ? void 0 : _a2.close();
25
- return false;
26
- }
27
- return /* @__PURE__ */ jsx(
28
- Box,
29
- __spreadProps(__spreadValues({
30
- as: "dialog",
31
- className: clsx("hds-modal", className),
32
- closeable: true,
33
- onClose,
34
- ref: mergedRef,
35
- variant: "white"
36
- }, rest), {
37
- children
38
- })
39
- );
40
- }
41
- );
42
- Modal.displayName = "Modal";
43
- var ModalHeader = forwardRef(
44
- (_a, ref) => {
45
- var _b = _a, { as: Component = "h1", className } = _b, rest = __objRest(_b, ["as", "className"]);
46
- return /* @__PURE__ */ jsx(
47
- Component,
48
- __spreadValues({
49
- className: clsx("hds-modal__header", className),
50
- ref
51
- }, rest)
52
- );
53
- }
54
- );
55
- ModalHeader.displayName = "Modal.Header";
56
-
57
- export {
58
- Modal,
59
- ModalHeader
60
- };
@@ -1,10 +0,0 @@
1
- import "../chunk-PF6PZIZS.mjs";
2
- import {
3
- Input
4
- } from "../chunk-6KVF3ELJ.mjs";
5
- import "../chunk-45BJGKVZ.mjs";
6
- import "../chunk-QAYPCD5Z.mjs";
7
- import "../chunk-FUJQIYOF.mjs";
8
- export {
9
- Input
10
- };
@@ -1,9 +0,0 @@
1
- import {
2
- Input
3
- } from "../chunk-6KVF3ELJ.mjs";
4
- import "../chunk-45BJGKVZ.mjs";
5
- import "../chunk-QAYPCD5Z.mjs";
6
- import "../chunk-FUJQIYOF.mjs";
7
- export {
8
- Input
9
- };
@@ -1,2 +0,0 @@
1
- export { InputGroup, InputGroupProps, InputProps } from './input-group.mjs';
2
- import 'react';
@@ -1,2 +0,0 @@
1
- export { InputGroup, InputGroupProps, InputProps } from './input-group.js';
2
- import 'react';
@@ -1,8 +0,0 @@
1
- import "../chunk-45BJGKVZ.mjs";
2
- import {
3
- InputGroup
4
- } from "../chunk-QAYPCD5Z.mjs";
5
- import "../chunk-FUJQIYOF.mjs";
6
- export {
7
- InputGroup
8
- };
@@ -1,7 +0,0 @@
1
- import {
2
- InputGroup
3
- } from "../chunk-QAYPCD5Z.mjs";
4
- import "../chunk-FUJQIYOF.mjs";
5
- export {
6
- InputGroup
7
- };
@@ -1,10 +0,0 @@
1
- import "../chunk-SX37JSDS.mjs";
2
- import {
3
- Select
4
- } from "../chunk-K3BGDNWO.mjs";
5
- import "../chunk-45BJGKVZ.mjs";
6
- import "../chunk-QAYPCD5Z.mjs";
7
- import "../chunk-FUJQIYOF.mjs";
8
- export {
9
- Select
10
- };
@@ -1,9 +0,0 @@
1
- import {
2
- Select
3
- } from "../chunk-K3BGDNWO.mjs";
4
- import "../chunk-45BJGKVZ.mjs";
5
- import "../chunk-QAYPCD5Z.mjs";
6
- import "../chunk-FUJQIYOF.mjs";
7
- export {
8
- Select
9
- };
@@ -1,10 +0,0 @@
1
- import "../chunk-DOJ2ZKNV.mjs";
2
- import {
3
- Textarea
4
- } from "../chunk-Y2KP4RF2.mjs";
5
- import "../chunk-45BJGKVZ.mjs";
6
- import "../chunk-QAYPCD5Z.mjs";
7
- import "../chunk-FUJQIYOF.mjs";
8
- export {
9
- Textarea
10
- };
@@ -1,9 +0,0 @@
1
- import {
2
- Textarea
3
- } from "../chunk-Y2KP4RF2.mjs";
4
- import "../chunk-45BJGKVZ.mjs";
5
- import "../chunk-QAYPCD5Z.mjs";
6
- import "../chunk-FUJQIYOF.mjs";
7
- export {
8
- Textarea
9
- };
@@ -1,6 +1,3 @@
1
- import {
2
- Tabs
3
- } from "./chunk-ZLCNSHLT.mjs";
4
1
  import {
5
2
  TabsContent,
6
3
  TabsContents
@@ -9,6 +6,9 @@ import {
9
6
  Tab,
10
7
  TabsList
11
8
  } from "./chunk-G3JPULGO.mjs";
9
+ import {
10
+ Tabs
11
+ } from "./chunk-ZLCNSHLT.mjs";
12
12
 
13
13
  // src/tabs/index.tsx
14
14
  import "@postenbring/hedwig-css/dist/fonts.css";
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes