@postenbring/hedwig-react 0.0.45 → 0.0.47

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 (167) hide show
  1. package/dist/accordion/accordion-content.d.mts +1 -1
  2. package/dist/accordion/accordion-content.d.ts +1 -1
  3. package/dist/accordion/accordion-content.mjs +2 -2
  4. package/dist/accordion/accordion-header.d.mts +1 -1
  5. package/dist/accordion/accordion-header.d.ts +1 -1
  6. package/dist/accordion/accordion-header.mjs +2 -2
  7. package/dist/accordion/accordion-item.d.mts +1 -1
  8. package/dist/accordion/accordion-item.d.ts +1 -1
  9. package/dist/accordion/accordion-item.mjs +2 -2
  10. package/dist/accordion/accordion.d.mts +1 -1
  11. package/dist/accordion/accordion.d.ts +1 -1
  12. package/dist/accordion/accordion.mjs +2 -2
  13. package/dist/accordion/index.d.mts +1 -1
  14. package/dist/accordion/index.d.ts +1 -1
  15. package/dist/accordion/index.mjs +6 -6
  16. package/dist/badge/badge.mjs +2 -2
  17. package/dist/badge/index.mjs +2 -2
  18. package/dist/box/box.d.mts +1 -1
  19. package/dist/box/box.d.ts +1 -1
  20. package/dist/box/box.mjs +2 -2
  21. package/dist/box/index.d.mts +1 -1
  22. package/dist/box/index.d.ts +1 -1
  23. package/dist/box/index.mjs +3 -3
  24. package/dist/breadcrumb/breadcrumb.mjs +2 -2
  25. package/dist/breadcrumb/index.mjs +2 -2
  26. package/dist/button/button.d.mts +1 -1
  27. package/dist/button/button.d.ts +1 -1
  28. package/dist/button/button.mjs +2 -2
  29. package/dist/button/index.d.mts +1 -1
  30. package/dist/button/index.d.ts +1 -1
  31. package/dist/button/index.mjs +2 -2
  32. package/dist/card/card.d.mts +1 -1
  33. package/dist/card/card.d.ts +1 -1
  34. package/dist/card/card.mjs +2 -2
  35. package/dist/card/index.d.mts +1 -1
  36. package/dist/card/index.d.ts +1 -1
  37. package/dist/card/index.mjs +3 -3
  38. package/dist/{chunk-WTMT5WCJ.mjs → chunk-3EENBGOV.mjs} +1 -1
  39. package/dist/chunk-3WUAXFB3.mjs +34 -0
  40. package/dist/{chunk-BHNQPMEB.mjs → chunk-3Y65IUK4.mjs} +2 -2
  41. package/dist/{chunk-T4IRPRA6.mjs → chunk-4KBVX3Y7.mjs} +2 -2
  42. package/dist/{chunk-G3JPULGO.mjs → chunk-4LB35CUY.mjs} +1 -1
  43. package/dist/{chunk-Q3SWHAU3.mjs → chunk-4M3GIRQZ.mjs} +1 -1
  44. package/dist/{chunk-6IJTNHP4.mjs → chunk-5FM3XK4V.mjs} +1 -1
  45. package/dist/{chunk-SDJXW6U7.mjs → chunk-5HF2PDRZ.mjs} +1 -1
  46. package/dist/{chunk-GBDCEHR7.mjs → chunk-6FKQU7QT.mjs} +1 -1
  47. package/dist/{chunk-JYEDLLKF.mjs → chunk-6KRJB36T.mjs} +2 -2
  48. package/dist/{chunk-N5VPBR6T.mjs → chunk-73MDVYU2.mjs} +2 -2
  49. package/dist/{chunk-MER2HJBC.mjs → chunk-7P6MJKWC.mjs} +1 -1
  50. package/dist/{chunk-6XTXM4YQ.mjs → chunk-A6HNU42U.mjs} +1 -1
  51. package/dist/{chunk-3JNHAMRV.mjs → chunk-AUK3J77R.mjs} +1 -1
  52. package/dist/{chunk-LICHSDMT.mjs → chunk-B3SD7RZV.mjs} +1 -1
  53. package/dist/{chunk-RY53CJI7.mjs → chunk-BEXOLUXV.mjs} +1 -1
  54. package/dist/{chunk-ZLCNSHLT.mjs → chunk-C2VTAQEP.mjs} +1 -1
  55. package/dist/chunk-DOWBGRCN.mjs +29253 -0
  56. package/dist/chunk-FKR5F35B.mjs +70 -0
  57. package/dist/{chunk-5QMPUCNW.mjs → chunk-FPVGZ4VX.mjs} +1 -1
  58. package/dist/chunk-HIRUCFWO.mjs +25 -0
  59. package/dist/{chunk-QMB26PCT.mjs → chunk-J5QNIAFL.mjs} +2 -2
  60. package/dist/{chunk-KYCCTJI6.mjs → chunk-KBR5N6UB.mjs} +4 -4
  61. package/dist/{chunk-E55KF755.mjs → chunk-MUGMWWNN.mjs} +2 -2
  62. package/dist/{chunk-IAPRPJQO.mjs → chunk-R7GQHCN4.mjs} +1 -1
  63. package/dist/{chunk-HZMQWFYP.mjs → chunk-RNALWA7A.mjs} +2 -2
  64. package/dist/{chunk-E5575U2F.mjs → chunk-S7FSULI3.mjs} +1 -1
  65. package/dist/{chunk-TES7CVGU.mjs → chunk-SNLXFZB6.mjs} +1 -1
  66. package/dist/{chunk-Y4KHO6LN.mjs → chunk-TEOA6K5L.mjs} +1 -1
  67. package/dist/{chunk-E2GAXTBX.mjs → chunk-UBQPNSMU.mjs} +1 -1
  68. package/dist/{chunk-FDAXJJHU.mjs → chunk-UGZSXQQQ.mjs} +1 -1
  69. package/dist/{chunk-GRO36EUL.mjs → chunk-UL2XL6BN.mjs} +1 -1
  70. package/dist/{chunk-GD4NFQGX.mjs → chunk-UOEKLXX4.mjs} +1 -1
  71. package/dist/{chunk-BSX4IA3X.mjs → chunk-VO6ZLGZ7.mjs} +3 -3
  72. package/dist/{chunk-QC72RAQS.mjs → chunk-VT7SFAQF.mjs} +1 -1
  73. package/dist/{chunk-WYPGZY5Q.mjs → chunk-WKI6D7BR.mjs} +2 -2
  74. package/dist/{chunk-BRBGRJ2I.mjs → chunk-X5URKHFD.mjs} +2 -2
  75. package/dist/{chunk-ENRMC5K7.mjs → chunk-YBSM5D5N.mjs} +1 -1
  76. package/dist/form/error-message/error-message.mjs +2 -2
  77. package/dist/form/error-message/index.mjs +2 -2
  78. package/dist/form/fieldset/fieldset.mjs +3 -3
  79. package/dist/form/fieldset/index.mjs +3 -3
  80. package/dist/form/index.mjs +7 -7
  81. package/dist/form/input/index.mjs +4 -4
  82. package/dist/form/input/input.mjs +4 -4
  83. package/dist/form/input-group/index.mjs +3 -3
  84. package/dist/form/input-group/input-group.mjs +3 -3
  85. package/dist/form/select/index.mjs +4 -4
  86. package/dist/form/select/select.mjs +4 -4
  87. package/dist/form/textarea/index.mjs +4 -4
  88. package/dist/form/textarea/textarea.mjs +4 -4
  89. package/dist/index.d.mts +2 -1
  90. package/dist/index.d.ts +2 -1
  91. package/dist/index.js +33 -0
  92. package/dist/index.mjs +43 -33
  93. package/dist/layout/container/container.d.mts +1 -1
  94. package/dist/layout/container/container.d.ts +1 -1
  95. package/dist/layout/container/container.mjs +2 -2
  96. package/dist/layout/index.d.mts +1 -1
  97. package/dist/layout/index.d.ts +1 -1
  98. package/dist/layout/index.mjs +2 -2
  99. package/dist/link/index.d.mts +1 -1
  100. package/dist/link/index.d.ts +1 -1
  101. package/dist/link/index.mjs +2 -2
  102. package/dist/link/link.d.mts +1 -1
  103. package/dist/link/link.d.ts +1 -1
  104. package/dist/link/link.mjs +2 -2
  105. package/dist/list/description-list.mjs +2 -2
  106. package/dist/list/index.mjs +4 -4
  107. package/dist/list/link-list.mjs +3 -3
  108. package/dist/list/list.mjs +2 -2
  109. package/dist/message/index.d.mts +1 -1
  110. package/dist/message/index.d.ts +1 -1
  111. package/dist/message/index.mjs +4 -4
  112. package/dist/message/message.d.mts +1 -1
  113. package/dist/message/message.d.ts +1 -1
  114. package/dist/message/message.mjs +3 -3
  115. package/dist/modal/index.d.mts +1 -1
  116. package/dist/modal/index.d.ts +1 -1
  117. package/dist/modal/index.mjs +4 -4
  118. package/dist/modal/modal.d.mts +1 -1
  119. package/dist/modal/modal.d.ts +1 -1
  120. package/dist/modal/modal.mjs +3 -3
  121. package/dist/navbar/icons.d.mts +6 -0
  122. package/dist/navbar/icons.d.ts +6 -0
  123. package/dist/navbar/icons.js +50 -0
  124. package/dist/navbar/icons.mjs +9 -0
  125. package/dist/navbar/index.d.mts +1 -1
  126. package/dist/navbar/index.d.ts +1 -1
  127. package/dist/navbar/index.js +29217 -15
  128. package/dist/navbar/index.mjs +4 -3
  129. package/dist/navbar/navbar-expandable-menu.d.mts +3 -2
  130. package/dist/navbar/navbar-expandable-menu.d.ts +3 -2
  131. package/dist/navbar/navbar-expandable-menu.js +29217 -15
  132. package/dist/navbar/navbar-expandable-menu.mjs +3 -2
  133. package/dist/navbar/navbar.d.mts +1 -1
  134. package/dist/navbar/navbar.d.ts +1 -1
  135. package/dist/navbar/navbar.mjs +2 -2
  136. package/dist/prose/prose.d.mts +2 -2
  137. package/dist/prose/prose.d.ts +2 -2
  138. package/dist/prose/prose.mjs +3 -29
  139. package/dist/tabs/index.d.mts +1 -1
  140. package/dist/tabs/index.d.ts +1 -1
  141. package/dist/tabs/index.mjs +5 -5
  142. package/dist/tabs/tabs-content.d.mts +1 -1
  143. package/dist/tabs/tabs-content.d.ts +1 -1
  144. package/dist/tabs/tabs-content.mjs +2 -2
  145. package/dist/tabs/tabs-list.d.mts +1 -1
  146. package/dist/tabs/tabs-list.d.ts +1 -1
  147. package/dist/tabs/tabs-list.mjs +2 -2
  148. package/dist/tabs/tabs.d.mts +1 -1
  149. package/dist/tabs/tabs.d.ts +1 -1
  150. package/dist/tabs/tabs.mjs +2 -2
  151. package/dist/typography/index.d.mts +1 -1
  152. package/dist/typography/index.d.ts +1 -1
  153. package/dist/typography/index.mjs +2 -2
  154. package/dist/typography/typography.d.mts +1 -1
  155. package/dist/typography/typography.d.ts +1 -1
  156. package/dist/typography/typography.mjs +2 -2
  157. package/dist/warning-banner/index.d.mts +1 -1
  158. package/dist/warning-banner/index.d.ts +1 -1
  159. package/dist/warning-banner/index.mjs +4 -4
  160. package/dist/warning-banner/warning-banner.d.mts +1 -1
  161. package/dist/warning-banner/warning-banner.d.ts +1 -1
  162. package/dist/warning-banner/warning-banner.mjs +4 -4
  163. package/package.json +5 -4
  164. package/dist/chunk-FUJQIYOF.mjs +0 -37
  165. package/dist/chunk-T5W5SKZP.mjs +0 -80
  166. /package/dist/{utils-BfZsjuFH.d.mts → utils-3jLhIyOS.d.mts} +0 -0
  167. /package/dist/{utils-BfZsjuFH.d.ts → utils-3jLhIyOS.d.ts} +0 -0
@@ -2,8 +2,9 @@ import {
2
2
  NavbarExpandableMenu,
3
3
  NavbarExpandableMenuContent,
4
4
  NavbarExpandableMenuTrigger
5
- } from "../chunk-T5W5SKZP.mjs";
6
- import "../chunk-FUJQIYOF.mjs";
5
+ } from "../chunk-DOWBGRCN.mjs";
6
+ import "../chunk-HIRUCFWO.mjs";
7
+ import "../chunk-FKR5F35B.mjs";
7
8
  export {
8
9
  NavbarExpandableMenu,
9
10
  NavbarExpandableMenuContent,
@@ -1,5 +1,5 @@
1
1
  import react__default, { HTMLAttributes } from 'react';
2
- import { O as OverridableComponent } from '../utils-BfZsjuFH.mjs';
2
+ import { O as OverridableComponent } from '../utils-3jLhIyOS.mjs';
3
3
 
4
4
  interface NavbarProps extends HTMLAttributes<HTMLElement> {
5
5
  children: react__default.ReactNode;
@@ -1,5 +1,5 @@
1
1
  import react__default, { HTMLAttributes } from 'react';
2
- import { O as OverridableComponent } from '../utils-BfZsjuFH.js';
2
+ import { O as OverridableComponent } from '../utils-3jLhIyOS.js';
3
3
 
4
4
  interface NavbarProps extends HTMLAttributes<HTMLElement> {
5
5
  children: react__default.ReactNode;
@@ -3,8 +3,8 @@ import {
3
3
  NavbarButton,
4
4
  NavbarLogo,
5
5
  NavbarNavigation
6
- } from "../chunk-FDAXJJHU.mjs";
7
- import "../chunk-FUJQIYOF.mjs";
6
+ } from "../chunk-UGZSXQQQ.mjs";
7
+ import "../chunk-FKR5F35B.mjs";
8
8
  export {
9
9
  Navbar,
10
10
  NavbarButton,
@@ -1,8 +1,8 @@
1
1
  import react__default from 'react';
2
- import { O as OverridableComponent } from '../utils-BfZsjuFH.mjs';
2
+ import { O as OverridableComponent } from '../utils-3jLhIyOS.mjs';
3
3
 
4
4
  interface ProseProps {
5
- children: react__default.ReactNode;
5
+ children?: react__default.ReactNode;
6
6
  size?: "default" | "small";
7
7
  darkmode?: boolean;
8
8
  }
@@ -1,8 +1,8 @@
1
1
  import react__default from 'react';
2
- import { O as OverridableComponent } from '../utils-BfZsjuFH.js';
2
+ import { O as OverridableComponent } from '../utils-3jLhIyOS.js';
3
3
 
4
4
  interface ProseProps {
5
- children: react__default.ReactNode;
5
+ children?: react__default.ReactNode;
6
6
  size?: "default" | "small";
7
7
  darkmode?: boolean;
8
8
  }
@@ -1,33 +1,7 @@
1
1
  import {
2
- __objRest,
3
- __spreadProps,
4
- __spreadValues
5
- } from "../chunk-FUJQIYOF.mjs";
6
-
7
- // src/prose/prose.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 Prose = forwardRef(
12
- (_a, ref) => {
13
- var _b = _a, { as: Component = "div", children, size, darkmode = false, className } = _b, rest = __objRest(_b, ["as", "children", "size", "darkmode", "className"]);
14
- return /* @__PURE__ */ jsx(
15
- Component,
16
- __spreadProps(__spreadValues({
17
- className: clsx(
18
- `hds-prose`,
19
- size === "small" && "hds-prose--small",
20
- darkmode && "hds-prose--darkmode",
21
- className
22
- ),
23
- ref
24
- }, rest), {
25
- children
26
- })
27
- );
28
- }
29
- );
30
- Prose.displayName = "Prose";
2
+ Prose
3
+ } from "../chunk-3WUAXFB3.mjs";
4
+ import "../chunk-FKR5F35B.mjs";
31
5
  export {
32
6
  Prose
33
7
  };
@@ -4,7 +4,7 @@ import { TabsList, Tab } from './tabs-list.mjs';
4
4
  export { TabListProps, TabProps } from './tabs-list.mjs';
5
5
  import { TabsContents, TabsContent } from './tabs-content.mjs';
6
6
  export { TabContentsProps, TabsContentProps } from './tabs-content.mjs';
7
- import '../utils-BfZsjuFH.mjs';
7
+ import '../utils-3jLhIyOS.mjs';
8
8
  import 'react/jsx-runtime';
9
9
 
10
10
  declare const TabsComponent: {
@@ -4,7 +4,7 @@ import { TabsList, Tab } from './tabs-list.js';
4
4
  export { TabListProps, TabProps } from './tabs-list.js';
5
5
  import { TabsContents, TabsContent } from './tabs-content.js';
6
6
  export { TabContentsProps, TabsContentProps } from './tabs-content.js';
7
- import '../utils-BfZsjuFH.js';
7
+ import '../utils-3jLhIyOS.js';
8
8
  import 'react/jsx-runtime';
9
9
 
10
10
  declare const TabsComponent: {
@@ -1,12 +1,12 @@
1
1
  import {
2
2
  TabsComponent
3
- } from "../chunk-BSX4IA3X.mjs";
4
- import "../chunk-GRO36EUL.mjs";
5
- import "../chunk-G3JPULGO.mjs";
6
- import "../chunk-ZLCNSHLT.mjs";
3
+ } from "../chunk-VO6ZLGZ7.mjs";
4
+ import "../chunk-UL2XL6BN.mjs";
5
+ import "../chunk-4LB35CUY.mjs";
6
+ import "../chunk-C2VTAQEP.mjs";
7
7
  import "../chunk-4ZM45P62.mjs";
8
8
  import "../chunk-FSBY3NKV.mjs";
9
- import "../chunk-FUJQIYOF.mjs";
9
+ import "../chunk-FKR5F35B.mjs";
10
10
  export {
11
11
  TabsComponent as Tabs
12
12
  };
@@ -1,6 +1,6 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
2
  import { HTMLAttributes, ReactElement } from 'react';
3
- import { O as OverridableComponent } from '../utils-BfZsjuFH.mjs';
3
+ import { O as OverridableComponent } from '../utils-3jLhIyOS.mjs';
4
4
 
5
5
  interface TabContentsProps extends HTMLAttributes<HTMLDivElement> {
6
6
  children: ReactElement<TabsContentProps> | ReactElement<TabsContentProps>[];
@@ -1,6 +1,6 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
2
  import { HTMLAttributes, ReactElement } from 'react';
3
- import { O as OverridableComponent } from '../utils-BfZsjuFH.js';
3
+ import { O as OverridableComponent } from '../utils-3jLhIyOS.js';
4
4
 
5
5
  interface TabContentsProps extends HTMLAttributes<HTMLDivElement> {
6
6
  children: ReactElement<TabsContentProps> | ReactElement<TabsContentProps>[];
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  TabsContent,
3
3
  TabsContents
4
- } from "../chunk-GRO36EUL.mjs";
4
+ } from "../chunk-UL2XL6BN.mjs";
5
5
  import "../chunk-4ZM45P62.mjs";
6
- import "../chunk-FUJQIYOF.mjs";
6
+ import "../chunk-FKR5F35B.mjs";
7
7
  export {
8
8
  TabsContent,
9
9
  TabsContents
@@ -1,6 +1,6 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
2
  import { HTMLAttributes, ReactElement } from 'react';
3
- import { O as OverridableComponent } from '../utils-BfZsjuFH.mjs';
3
+ import { O as OverridableComponent } from '../utils-3jLhIyOS.mjs';
4
4
 
5
5
  interface TabListProps extends HTMLAttributes<HTMLDivElement> {
6
6
  children: ReactElement<TabProps> | ReactElement<TabProps>[];
@@ -1,6 +1,6 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
2
  import { HTMLAttributes, ReactElement } from 'react';
3
- import { O as OverridableComponent } from '../utils-BfZsjuFH.js';
3
+ import { O as OverridableComponent } from '../utils-3jLhIyOS.js';
4
4
 
5
5
  interface TabListProps extends HTMLAttributes<HTMLDivElement> {
6
6
  children: ReactElement<TabProps> | ReactElement<TabProps>[];
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  Tab,
3
3
  TabsList
4
- } from "../chunk-G3JPULGO.mjs";
4
+ } from "../chunk-4LB35CUY.mjs";
5
5
  import "../chunk-4ZM45P62.mjs";
6
6
  import "../chunk-FSBY3NKV.mjs";
7
- import "../chunk-FUJQIYOF.mjs";
7
+ import "../chunk-FKR5F35B.mjs";
8
8
  export {
9
9
  Tab,
10
10
  TabsList
@@ -1,5 +1,5 @@
1
1
  import { HTMLAttributes, ReactElement } from 'react';
2
- import { O as OverridableComponent } from '../utils-BfZsjuFH.mjs';
2
+ import { O as OverridableComponent } from '../utils-3jLhIyOS.mjs';
3
3
  import { TabContentsProps } from './tabs-content.mjs';
4
4
  import { TabListProps } from './tabs-list.mjs';
5
5
  import 'react/jsx-runtime';
@@ -1,5 +1,5 @@
1
1
  import { HTMLAttributes, ReactElement } from 'react';
2
- import { O as OverridableComponent } from '../utils-BfZsjuFH.js';
2
+ import { O as OverridableComponent } from '../utils-3jLhIyOS.js';
3
3
  import { TabContentsProps } from './tabs-content.js';
4
4
  import { TabListProps } from './tabs-list.js';
5
5
  import 'react/jsx-runtime';
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  Tabs
3
- } from "../chunk-ZLCNSHLT.mjs";
3
+ } from "../chunk-C2VTAQEP.mjs";
4
4
  import "../chunk-4ZM45P62.mjs";
5
- import "../chunk-FUJQIYOF.mjs";
5
+ import "../chunk-FKR5F35B.mjs";
6
6
  export {
7
7
  Tabs
8
8
  };
@@ -1,5 +1,5 @@
1
1
  import * as react from 'react';
2
- import { O as OverridableComponent } from '../utils-BfZsjuFH.mjs';
2
+ import { O as OverridableComponent } from '../utils-3jLhIyOS.mjs';
3
3
  import { TypographyProps } from './typography.mjs';
4
4
  export { Typography } from './typography.mjs';
5
5
 
@@ -1,5 +1,5 @@
1
1
  import * as react from 'react';
2
- import { O as OverridableComponent } from '../utils-BfZsjuFH.js';
2
+ import { O as OverridableComponent } from '../utils-3jLhIyOS.js';
3
3
  import { TypographyProps } from './typography.js';
4
4
  export { Typography } from './typography.js';
5
5
 
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  Typography
3
- } from "../chunk-Y4KHO6LN.mjs";
3
+ } from "../chunk-TEOA6K5L.mjs";
4
4
  import {
5
5
  __spreadValues
6
- } from "../chunk-FUJQIYOF.mjs";
6
+ } from "../chunk-FKR5F35B.mjs";
7
7
 
8
8
  // src/typography/index.tsx
9
9
  import "@postenbring/hedwig-css/dist/fonts.css";
@@ -1,5 +1,5 @@
1
1
  import react__default from 'react';
2
- import { O as OverridableComponent } from '../utils-BfZsjuFH.mjs';
2
+ import { O as OverridableComponent } from '../utils-3jLhIyOS.mjs';
3
3
 
4
4
  interface TypographyProps {
5
5
  children: react__default.ReactNode;
@@ -1,5 +1,5 @@
1
1
  import react__default from 'react';
2
- import { O as OverridableComponent } from '../utils-BfZsjuFH.js';
2
+ import { O as OverridableComponent } from '../utils-3jLhIyOS.js';
3
3
 
4
4
  interface TypographyProps {
5
5
  children: react__default.ReactNode;
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  Typography
3
- } from "../chunk-Y4KHO6LN.mjs";
4
- import "../chunk-FUJQIYOF.mjs";
3
+ } from "../chunk-TEOA6K5L.mjs";
4
+ import "../chunk-FKR5F35B.mjs";
5
5
  export {
6
6
  Typography
7
7
  };
@@ -1,3 +1,3 @@
1
1
  export { WarningBanner, WarningBannerProps } from './warning-banner.mjs';
2
2
  import 'react';
3
- import '../utils-BfZsjuFH.mjs';
3
+ import '../utils-3jLhIyOS.mjs';
@@ -1,3 +1,3 @@
1
1
  export { WarningBanner, WarningBannerProps } from './warning-banner.js';
2
2
  import 'react';
3
- import '../utils-BfZsjuFH.js';
3
+ import '../utils-3jLhIyOS.js';
@@ -1,10 +1,10 @@
1
1
  import "../chunk-K2HIKZ7F.mjs";
2
2
  import {
3
3
  WarningBanner
4
- } from "../chunk-BHNQPMEB.mjs";
5
- import "../chunk-E2GAXTBX.mjs";
6
- import "../chunk-WTMT5WCJ.mjs";
7
- import "../chunk-FUJQIYOF.mjs";
4
+ } from "../chunk-3Y65IUK4.mjs";
5
+ import "../chunk-UBQPNSMU.mjs";
6
+ import "../chunk-3EENBGOV.mjs";
7
+ import "../chunk-FKR5F35B.mjs";
8
8
  export {
9
9
  WarningBanner
10
10
  };
@@ -1,5 +1,5 @@
1
1
  import { ReactNode } from 'react';
2
- import { O as OverridableComponent } from '../utils-BfZsjuFH.mjs';
2
+ import { O as OverridableComponent } from '../utils-3jLhIyOS.mjs';
3
3
 
4
4
  interface WarningBannerProps {
5
5
  title: ReactNode;
@@ -1,5 +1,5 @@
1
1
  import { ReactNode } from 'react';
2
- import { O as OverridableComponent } from '../utils-BfZsjuFH.js';
2
+ import { O as OverridableComponent } from '../utils-3jLhIyOS.js';
3
3
 
4
4
  interface WarningBannerProps {
5
5
  title: ReactNode;
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  WarningBanner
3
- } from "../chunk-BHNQPMEB.mjs";
4
- import "../chunk-E2GAXTBX.mjs";
5
- import "../chunk-WTMT5WCJ.mjs";
6
- import "../chunk-FUJQIYOF.mjs";
3
+ } from "../chunk-3Y65IUK4.mjs";
4
+ import "../chunk-UBQPNSMU.mjs";
5
+ import "../chunk-3EENBGOV.mjs";
6
+ import "../chunk-FKR5F35B.mjs";
7
7
  export {
8
8
  WarningBanner
9
9
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@postenbring/hedwig-react",
3
- "version": "0.0.45",
3
+ "version": "0.0.47",
4
4
  "main": "./dist/index.js",
5
5
  "module": "./dist/index.mjs",
6
6
  "types": "./dist/index.d.ts",
@@ -10,16 +10,17 @@
10
10
  "dist/**"
11
11
  ],
12
12
  "devDependencies": {
13
- "@types/react": "^18.2.48",
14
- "@types/react-dom": "^18.2.18",
13
+ "@types/react": "^18.2.57",
14
+ "@types/react-dom": "^18.2.19",
15
15
  "react": "^18.2.0",
16
+ "react-dom": "18.2.0",
16
17
  "tsup": "^8.0.1",
17
18
  "typescript": "^5.3.3",
18
19
  "eslint-config-custom": "0.0.1",
19
20
  "hedwig-tsconfig": "0.0.0"
20
21
  },
21
22
  "dependencies": {
22
- "@postenbring/hedwig-css": "0.0.41"
23
+ "@postenbring/hedwig-css": "0.0.42"
23
24
  },
24
25
  "publishConfig": {
25
26
  "access": "public"
@@ -1,37 +0,0 @@
1
- var __defProp = Object.defineProperty;
2
- var __defProps = Object.defineProperties;
3
- var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
4
- var __getOwnPropSymbols = Object.getOwnPropertySymbols;
5
- var __hasOwnProp = Object.prototype.hasOwnProperty;
6
- var __propIsEnum = Object.prototype.propertyIsEnumerable;
7
- var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
8
- var __spreadValues = (a, b) => {
9
- for (var prop in b || (b = {}))
10
- if (__hasOwnProp.call(b, prop))
11
- __defNormalProp(a, prop, b[prop]);
12
- if (__getOwnPropSymbols)
13
- for (var prop of __getOwnPropSymbols(b)) {
14
- if (__propIsEnum.call(b, prop))
15
- __defNormalProp(a, prop, b[prop]);
16
- }
17
- return a;
18
- };
19
- var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
20
- var __objRest = (source, exclude) => {
21
- var target = {};
22
- for (var prop in source)
23
- if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0)
24
- target[prop] = source[prop];
25
- if (source != null && __getOwnPropSymbols)
26
- for (var prop of __getOwnPropSymbols(source)) {
27
- if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop))
28
- target[prop] = source[prop];
29
- }
30
- return target;
31
- };
32
-
33
- export {
34
- __spreadValues,
35
- __spreadProps,
36
- __objRest
37
- };
@@ -1,80 +0,0 @@
1
- import {
2
- __objRest,
3
- __spreadProps,
4
- __spreadValues
5
- } from "./chunk-FUJQIYOF.mjs";
6
-
7
- // src/navbar/navbar-expandable-menu.tsx
8
- import { createContext, useContext, forwardRef, useState } from "react";
9
- import { clsx } from "@postenbring/hedwig-css/typed-classname/index.mjs";
10
- import { jsx } from "react/jsx-runtime";
11
- var navbarContext = createContext([
12
- false,
13
- () => {
14
- }
15
- ]);
16
- function NavbarExpandableMenu({ children }) {
17
- const [open, setOpen] = useState(false);
18
- const toggleOpen = () => {
19
- setOpen((currentOpen) => !currentOpen);
20
- };
21
- return /* @__PURE__ */ jsx(navbarContext.Provider, { value: [open, toggleOpen], children });
22
- }
23
- NavbarExpandableMenu.displayName = "NavbarExpandableMenu";
24
- var NavbarExpandableMenuTrigger = forwardRef(
25
- (_a, ref) => {
26
- var _b = _a, {
27
- whenClosedText,
28
- whenClosedHelperTitle,
29
- whenOpenText,
30
- whenOpenHelperTitle,
31
- className
32
- } = _b, rest = __objRest(_b, [
33
- "whenClosedText",
34
- "whenClosedHelperTitle",
35
- "whenOpenText",
36
- "whenOpenHelperTitle",
37
- "className"
38
- ]);
39
- const [open, toggleOpen] = useContext(navbarContext);
40
- const text = open ? whenOpenText : whenClosedText;
41
- const title = open ? whenOpenHelperTitle : whenClosedHelperTitle;
42
- return /* @__PURE__ */ jsx(
43
- "button",
44
- __spreadProps(__spreadValues({
45
- className: clsx(
46
- "hds-navbar__expandable-menu-trigger",
47
- "hds-navbar__button",
48
- className
49
- ),
50
- onClick: toggleOpen,
51
- ref,
52
- title,
53
- type: "button"
54
- }, rest), {
55
- children: text
56
- })
57
- );
58
- }
59
- );
60
- NavbarExpandableMenuTrigger.displayName = "Navbar.ExpandableMenu.Trigger";
61
- var NavbarExpandableMenuContent = forwardRef((_a, ref) => {
62
- var _b = _a, { as: Component = "div", children, className } = _b, rest = __objRest(_b, ["as", "children", "className"]);
63
- const [open] = useContext(navbarContext);
64
- return /* @__PURE__ */ jsx(
65
- Component,
66
- __spreadProps(__spreadValues({}, rest), {
67
- className: clsx("hds-navbar__expandable-menu-content", className),
68
- "data-state": open ? "open" : "closed",
69
- ref,
70
- children
71
- })
72
- );
73
- });
74
- NavbarExpandableMenuContent.displayName = "Navbar.ExpandableMenu.Content";
75
-
76
- export {
77
- NavbarExpandableMenu,
78
- NavbarExpandableMenuTrigger,
79
- NavbarExpandableMenuContent
80
- };