@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.
- package/dist/accordion/accordion-content.d.mts +1 -1
- package/dist/accordion/accordion-content.d.ts +1 -1
- package/dist/accordion/accordion-content.mjs +2 -2
- package/dist/accordion/accordion-header.d.mts +1 -1
- package/dist/accordion/accordion-header.d.ts +1 -1
- package/dist/accordion/accordion-header.mjs +2 -2
- package/dist/accordion/accordion-item.d.mts +1 -1
- package/dist/accordion/accordion-item.d.ts +1 -1
- package/dist/accordion/accordion-item.mjs +2 -2
- package/dist/accordion/accordion.d.mts +1 -1
- package/dist/accordion/accordion.d.ts +1 -1
- package/dist/accordion/accordion.mjs +2 -2
- package/dist/accordion/index.d.mts +1 -1
- package/dist/accordion/index.d.ts +1 -1
- package/dist/accordion/index.mjs +6 -6
- package/dist/badge/badge.mjs +2 -2
- package/dist/badge/index.mjs +2 -2
- package/dist/box/box.d.mts +1 -1
- package/dist/box/box.d.ts +1 -1
- package/dist/box/box.mjs +2 -2
- package/dist/box/index.d.mts +1 -1
- package/dist/box/index.d.ts +1 -1
- package/dist/box/index.mjs +3 -3
- package/dist/breadcrumb/breadcrumb.mjs +2 -2
- package/dist/breadcrumb/index.mjs +2 -2
- package/dist/button/button.d.mts +1 -1
- package/dist/button/button.d.ts +1 -1
- package/dist/button/button.mjs +2 -2
- package/dist/button/index.d.mts +1 -1
- package/dist/button/index.d.ts +1 -1
- package/dist/button/index.mjs +2 -2
- package/dist/card/card.d.mts +1 -1
- package/dist/card/card.d.ts +1 -1
- package/dist/card/card.mjs +2 -2
- package/dist/card/index.d.mts +1 -1
- package/dist/card/index.d.ts +1 -1
- package/dist/card/index.mjs +3 -3
- package/dist/{chunk-WTMT5WCJ.mjs → chunk-3EENBGOV.mjs} +1 -1
- package/dist/chunk-3WUAXFB3.mjs +34 -0
- package/dist/{chunk-BHNQPMEB.mjs → chunk-3Y65IUK4.mjs} +2 -2
- package/dist/{chunk-T4IRPRA6.mjs → chunk-4KBVX3Y7.mjs} +2 -2
- package/dist/{chunk-G3JPULGO.mjs → chunk-4LB35CUY.mjs} +1 -1
- package/dist/{chunk-Q3SWHAU3.mjs → chunk-4M3GIRQZ.mjs} +1 -1
- package/dist/{chunk-6IJTNHP4.mjs → chunk-5FM3XK4V.mjs} +1 -1
- package/dist/{chunk-SDJXW6U7.mjs → chunk-5HF2PDRZ.mjs} +1 -1
- package/dist/{chunk-GBDCEHR7.mjs → chunk-6FKQU7QT.mjs} +1 -1
- package/dist/{chunk-JYEDLLKF.mjs → chunk-6KRJB36T.mjs} +2 -2
- package/dist/{chunk-N5VPBR6T.mjs → chunk-73MDVYU2.mjs} +2 -2
- package/dist/{chunk-MER2HJBC.mjs → chunk-7P6MJKWC.mjs} +1 -1
- package/dist/{chunk-6XTXM4YQ.mjs → chunk-A6HNU42U.mjs} +1 -1
- package/dist/{chunk-3JNHAMRV.mjs → chunk-AUK3J77R.mjs} +1 -1
- package/dist/{chunk-LICHSDMT.mjs → chunk-B3SD7RZV.mjs} +1 -1
- package/dist/{chunk-RY53CJI7.mjs → chunk-BEXOLUXV.mjs} +1 -1
- package/dist/{chunk-ZLCNSHLT.mjs → chunk-C2VTAQEP.mjs} +1 -1
- package/dist/chunk-DOWBGRCN.mjs +29253 -0
- package/dist/chunk-FKR5F35B.mjs +70 -0
- package/dist/{chunk-5QMPUCNW.mjs → chunk-FPVGZ4VX.mjs} +1 -1
- package/dist/chunk-HIRUCFWO.mjs +25 -0
- package/dist/{chunk-QMB26PCT.mjs → chunk-J5QNIAFL.mjs} +2 -2
- package/dist/{chunk-KYCCTJI6.mjs → chunk-KBR5N6UB.mjs} +4 -4
- package/dist/{chunk-E55KF755.mjs → chunk-MUGMWWNN.mjs} +2 -2
- package/dist/{chunk-IAPRPJQO.mjs → chunk-R7GQHCN4.mjs} +1 -1
- package/dist/{chunk-HZMQWFYP.mjs → chunk-RNALWA7A.mjs} +2 -2
- package/dist/{chunk-E5575U2F.mjs → chunk-S7FSULI3.mjs} +1 -1
- package/dist/{chunk-TES7CVGU.mjs → chunk-SNLXFZB6.mjs} +1 -1
- package/dist/{chunk-Y4KHO6LN.mjs → chunk-TEOA6K5L.mjs} +1 -1
- package/dist/{chunk-E2GAXTBX.mjs → chunk-UBQPNSMU.mjs} +1 -1
- package/dist/{chunk-FDAXJJHU.mjs → chunk-UGZSXQQQ.mjs} +1 -1
- package/dist/{chunk-GRO36EUL.mjs → chunk-UL2XL6BN.mjs} +1 -1
- package/dist/{chunk-GD4NFQGX.mjs → chunk-UOEKLXX4.mjs} +1 -1
- package/dist/{chunk-BSX4IA3X.mjs → chunk-VO6ZLGZ7.mjs} +3 -3
- package/dist/{chunk-QC72RAQS.mjs → chunk-VT7SFAQF.mjs} +1 -1
- package/dist/{chunk-WYPGZY5Q.mjs → chunk-WKI6D7BR.mjs} +2 -2
- package/dist/{chunk-BRBGRJ2I.mjs → chunk-X5URKHFD.mjs} +2 -2
- package/dist/{chunk-ENRMC5K7.mjs → chunk-YBSM5D5N.mjs} +1 -1
- package/dist/form/error-message/error-message.mjs +2 -2
- package/dist/form/error-message/index.mjs +2 -2
- package/dist/form/fieldset/fieldset.mjs +3 -3
- package/dist/form/fieldset/index.mjs +3 -3
- package/dist/form/index.mjs +7 -7
- package/dist/form/input/index.mjs +4 -4
- package/dist/form/input/input.mjs +4 -4
- package/dist/form/input-group/index.mjs +3 -3
- package/dist/form/input-group/input-group.mjs +3 -3
- package/dist/form/select/index.mjs +4 -4
- package/dist/form/select/select.mjs +4 -4
- package/dist/form/textarea/index.mjs +4 -4
- package/dist/form/textarea/textarea.mjs +4 -4
- package/dist/index.d.mts +2 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.js +33 -0
- package/dist/index.mjs +43 -33
- package/dist/layout/container/container.d.mts +1 -1
- package/dist/layout/container/container.d.ts +1 -1
- package/dist/layout/container/container.mjs +2 -2
- package/dist/layout/index.d.mts +1 -1
- package/dist/layout/index.d.ts +1 -1
- package/dist/layout/index.mjs +2 -2
- package/dist/link/index.d.mts +1 -1
- package/dist/link/index.d.ts +1 -1
- package/dist/link/index.mjs +2 -2
- package/dist/link/link.d.mts +1 -1
- package/dist/link/link.d.ts +1 -1
- package/dist/link/link.mjs +2 -2
- package/dist/list/description-list.mjs +2 -2
- package/dist/list/index.mjs +4 -4
- package/dist/list/link-list.mjs +3 -3
- package/dist/list/list.mjs +2 -2
- package/dist/message/index.d.mts +1 -1
- package/dist/message/index.d.ts +1 -1
- package/dist/message/index.mjs +4 -4
- package/dist/message/message.d.mts +1 -1
- package/dist/message/message.d.ts +1 -1
- package/dist/message/message.mjs +3 -3
- package/dist/modal/index.d.mts +1 -1
- package/dist/modal/index.d.ts +1 -1
- package/dist/modal/index.mjs +4 -4
- package/dist/modal/modal.d.mts +1 -1
- package/dist/modal/modal.d.ts +1 -1
- package/dist/modal/modal.mjs +3 -3
- package/dist/navbar/icons.d.mts +6 -0
- package/dist/navbar/icons.d.ts +6 -0
- package/dist/navbar/icons.js +50 -0
- package/dist/navbar/icons.mjs +9 -0
- package/dist/navbar/index.d.mts +1 -1
- package/dist/navbar/index.d.ts +1 -1
- package/dist/navbar/index.js +29217 -15
- package/dist/navbar/index.mjs +4 -3
- package/dist/navbar/navbar-expandable-menu.d.mts +3 -2
- package/dist/navbar/navbar-expandable-menu.d.ts +3 -2
- package/dist/navbar/navbar-expandable-menu.js +29217 -15
- package/dist/navbar/navbar-expandable-menu.mjs +3 -2
- package/dist/navbar/navbar.d.mts +1 -1
- package/dist/navbar/navbar.d.ts +1 -1
- package/dist/navbar/navbar.mjs +2 -2
- package/dist/prose/prose.d.mts +2 -2
- package/dist/prose/prose.d.ts +2 -2
- package/dist/prose/prose.mjs +3 -29
- package/dist/tabs/index.d.mts +1 -1
- package/dist/tabs/index.d.ts +1 -1
- package/dist/tabs/index.mjs +5 -5
- package/dist/tabs/tabs-content.d.mts +1 -1
- package/dist/tabs/tabs-content.d.ts +1 -1
- package/dist/tabs/tabs-content.mjs +2 -2
- package/dist/tabs/tabs-list.d.mts +1 -1
- package/dist/tabs/tabs-list.d.ts +1 -1
- package/dist/tabs/tabs-list.mjs +2 -2
- package/dist/tabs/tabs.d.mts +1 -1
- package/dist/tabs/tabs.d.ts +1 -1
- package/dist/tabs/tabs.mjs +2 -2
- package/dist/typography/index.d.mts +1 -1
- package/dist/typography/index.d.ts +1 -1
- package/dist/typography/index.mjs +2 -2
- package/dist/typography/typography.d.mts +1 -1
- package/dist/typography/typography.d.ts +1 -1
- package/dist/typography/typography.mjs +2 -2
- package/dist/warning-banner/index.d.mts +1 -1
- package/dist/warning-banner/index.d.ts +1 -1
- package/dist/warning-banner/index.mjs +4 -4
- package/dist/warning-banner/warning-banner.d.mts +1 -1
- package/dist/warning-banner/warning-banner.d.ts +1 -1
- package/dist/warning-banner/warning-banner.mjs +4 -4
- package/package.json +5 -4
- package/dist/chunk-FUJQIYOF.mjs +0 -37
- package/dist/chunk-T5W5SKZP.mjs +0 -80
- /package/dist/{utils-BfZsjuFH.d.mts → utils-3jLhIyOS.d.mts} +0 -0
- /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-
|
|
6
|
-
import "../chunk-
|
|
5
|
+
} from "../chunk-DOWBGRCN.mjs";
|
|
6
|
+
import "../chunk-HIRUCFWO.mjs";
|
|
7
|
+
import "../chunk-FKR5F35B.mjs";
|
|
7
8
|
export {
|
|
8
9
|
NavbarExpandableMenu,
|
|
9
10
|
NavbarExpandableMenuContent,
|
package/dist/navbar/navbar.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import react__default, { HTMLAttributes } from 'react';
|
|
2
|
-
import { O as OverridableComponent } from '../utils-
|
|
2
|
+
import { O as OverridableComponent } from '../utils-3jLhIyOS.mjs';
|
|
3
3
|
|
|
4
4
|
interface NavbarProps extends HTMLAttributes<HTMLElement> {
|
|
5
5
|
children: react__default.ReactNode;
|
package/dist/navbar/navbar.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import react__default, { HTMLAttributes } from 'react';
|
|
2
|
-
import { O as OverridableComponent } from '../utils-
|
|
2
|
+
import { O as OverridableComponent } from '../utils-3jLhIyOS.js';
|
|
3
3
|
|
|
4
4
|
interface NavbarProps extends HTMLAttributes<HTMLElement> {
|
|
5
5
|
children: react__default.ReactNode;
|
package/dist/navbar/navbar.mjs
CHANGED
package/dist/prose/prose.d.mts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import react__default from 'react';
|
|
2
|
-
import { O as OverridableComponent } from '../utils-
|
|
2
|
+
import { O as OverridableComponent } from '../utils-3jLhIyOS.mjs';
|
|
3
3
|
|
|
4
4
|
interface ProseProps {
|
|
5
|
-
children
|
|
5
|
+
children?: react__default.ReactNode;
|
|
6
6
|
size?: "default" | "small";
|
|
7
7
|
darkmode?: boolean;
|
|
8
8
|
}
|
package/dist/prose/prose.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import react__default from 'react';
|
|
2
|
-
import { O as OverridableComponent } from '../utils-
|
|
2
|
+
import { O as OverridableComponent } from '../utils-3jLhIyOS.js';
|
|
3
3
|
|
|
4
4
|
interface ProseProps {
|
|
5
|
-
children
|
|
5
|
+
children?: react__default.ReactNode;
|
|
6
6
|
size?: "default" | "small";
|
|
7
7
|
darkmode?: boolean;
|
|
8
8
|
}
|
package/dist/prose/prose.mjs
CHANGED
|
@@ -1,33 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
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
|
};
|
package/dist/tabs/index.d.mts
CHANGED
|
@@ -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-
|
|
7
|
+
import '../utils-3jLhIyOS.mjs';
|
|
8
8
|
import 'react/jsx-runtime';
|
|
9
9
|
|
|
10
10
|
declare const TabsComponent: {
|
package/dist/tabs/index.d.ts
CHANGED
|
@@ -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-
|
|
7
|
+
import '../utils-3jLhIyOS.js';
|
|
8
8
|
import 'react/jsx-runtime';
|
|
9
9
|
|
|
10
10
|
declare const TabsComponent: {
|
package/dist/tabs/index.mjs
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
TabsComponent
|
|
3
|
-
} from "../chunk-
|
|
4
|
-
import "../chunk-
|
|
5
|
-
import "../chunk-
|
|
6
|
-
import "../chunk-
|
|
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-
|
|
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-
|
|
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-
|
|
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,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-
|
|
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>[];
|
package/dist/tabs/tabs-list.d.ts
CHANGED
|
@@ -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-
|
|
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>[];
|
package/dist/tabs/tabs-list.mjs
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Tab,
|
|
3
3
|
TabsList
|
|
4
|
-
} from "../chunk-
|
|
4
|
+
} from "../chunk-4LB35CUY.mjs";
|
|
5
5
|
import "../chunk-4ZM45P62.mjs";
|
|
6
6
|
import "../chunk-FSBY3NKV.mjs";
|
|
7
|
-
import "../chunk-
|
|
7
|
+
import "../chunk-FKR5F35B.mjs";
|
|
8
8
|
export {
|
|
9
9
|
Tab,
|
|
10
10
|
TabsList
|
package/dist/tabs/tabs.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { HTMLAttributes, ReactElement } from 'react';
|
|
2
|
-
import { O as OverridableComponent } from '../utils-
|
|
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';
|
package/dist/tabs/tabs.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { HTMLAttributes, ReactElement } from 'react';
|
|
2
|
-
import { O as OverridableComponent } from '../utils-
|
|
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';
|
package/dist/tabs/tabs.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as react from 'react';
|
|
2
|
-
import { O as OverridableComponent } from '../utils-
|
|
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-
|
|
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-
|
|
3
|
+
} from "../chunk-TEOA6K5L.mjs";
|
|
4
4
|
import {
|
|
5
5
|
__spreadValues
|
|
6
|
-
} from "../chunk-
|
|
6
|
+
} from "../chunk-FKR5F35B.mjs";
|
|
7
7
|
|
|
8
8
|
// src/typography/index.tsx
|
|
9
9
|
import "@postenbring/hedwig-css/dist/fonts.css";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import "../chunk-K2HIKZ7F.mjs";
|
|
2
2
|
import {
|
|
3
3
|
WarningBanner
|
|
4
|
-
} from "../chunk-
|
|
5
|
-
import "../chunk-
|
|
6
|
-
import "../chunk-
|
|
7
|
-
import "../chunk-
|
|
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,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
WarningBanner
|
|
3
|
-
} from "../chunk-
|
|
4
|
-
import "../chunk-
|
|
5
|
-
import "../chunk-
|
|
6
|
-
import "../chunk-
|
|
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.
|
|
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.
|
|
14
|
-
"@types/react-dom": "^18.2.
|
|
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.
|
|
23
|
+
"@postenbring/hedwig-css": "0.0.42"
|
|
23
24
|
},
|
|
24
25
|
"publishConfig": {
|
|
25
26
|
"access": "public"
|
package/dist/chunk-FUJQIYOF.mjs
DELETED
|
@@ -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
|
-
};
|
package/dist/chunk-T5W5SKZP.mjs
DELETED
|
@@ -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
|
-
};
|
|
File without changes
|
|
File without changes
|