@postenbring/hedwig-react 0.0.37 → 0.0.39
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.js +1 -1
- package/dist/accordion/accordion-content.mjs +1 -1
- package/dist/accordion/accordion-item.js +1 -1
- package/dist/accordion/accordion-item.mjs +1 -1
- package/dist/accordion/accordion-trigger.js +1 -1
- package/dist/accordion/accordion-trigger.mjs +1 -1
- package/dist/accordion/index.d.mts +4 -1
- package/dist/accordion/index.d.ts +4 -1
- package/dist/accordion/index.js +5 -14
- package/dist/accordion/index.mjs +5 -14
- package/dist/box/box.js +1 -1
- package/dist/box/box.mjs +1 -1
- package/dist/box/index.d.mts +14 -2
- package/dist/box/index.d.ts +14 -2
- package/dist/box/index.js +7 -5
- package/dist/box/index.mjs +4 -6
- package/dist/button/index.js +0 -2
- package/dist/button/index.mjs +0 -2
- package/dist/card/card.d.mts +5 -3
- package/dist/card/card.d.ts +5 -3
- package/dist/card/card.js +54 -13
- package/dist/card/card.mjs +9 -5
- package/dist/card/index.d.mts +24 -6
- package/dist/card/index.d.ts +24 -6
- package/dist/card/index.js +55 -28
- package/dist/card/index.mjs +3 -18
- package/dist/{chunk-TUJCKNKR.mjs → chunk-2QZF65FK.mjs} +1 -2
- package/dist/{chunk-6XSKLHN6.mjs → chunk-3JNHAMRV.mjs} +1 -16
- package/dist/{chunk-GXKTHQ37.mjs → chunk-4WI2BHHB.mjs} +1 -1
- package/dist/{chunk-LWMZV362.mjs → chunk-4XHA3NGO.mjs} +51 -12
- package/dist/{chunk-VLMLWQKD.mjs → chunk-BHNQPMEB.mjs} +3 -3
- package/dist/chunk-BSX4IA3X.mjs +26 -0
- package/dist/{chunk-AJBQ2EJU.mjs → chunk-E2GAXTBX.mjs} +11 -0
- package/dist/{chunk-YPD2CH5T.mjs → chunk-G3JPULGO.mjs} +4 -4
- package/dist/{chunk-4RBJ5GJR.mjs → chunk-GRO36EUL.mjs} +7 -7
- package/dist/{chunk-RIID2NGR.mjs → chunk-GSYDQFIT.mjs} +3 -6
- package/dist/{chunk-C2SDDGHL.mjs → chunk-JKZ3OR7W.mjs} +1 -1
- package/dist/{chunk-VS4HRMMY.mjs → chunk-KOXEIUCU.mjs} +12 -6
- package/dist/{chunk-5MNVIJJ2.mjs → chunk-MER2HJBC.mjs} +1 -3
- package/dist/{chunk-SQULBVH7.mjs → chunk-OB6UNSKV.mjs} +2 -2
- package/dist/{chunk-SWZLMDKJ.mjs → chunk-WTMT5WCJ.mjs} +1 -1
- package/dist/{chunk-QZIJ2OXE.mjs → chunk-WYPGZY5Q.mjs} +3 -3
- package/dist/{chunk-L7DYK6OS.mjs → chunk-XAIX3HTW.mjs} +1 -1
- package/dist/index.d.mts +16 -14
- package/dist/index.d.ts +16 -14
- package/dist/index.js +84 -90
- package/dist/index.mjs +23 -73
- package/dist/layout/index.d.mts +1 -1
- package/dist/layout/index.d.ts +1 -1
- package/dist/list/description-list.d.mts +30 -14
- package/dist/list/description-list.d.ts +30 -14
- package/dist/list/description-list.js +2 -21
- package/dist/list/description-list.mjs +3 -9
- package/dist/list/index.d.mts +1 -1
- package/dist/list/index.d.ts +1 -1
- package/dist/list/index.js +0 -14
- package/dist/list/index.mjs +2 -6
- package/dist/message/index.d.mts +1 -1
- package/dist/message/index.d.ts +1 -1
- package/dist/message/index.js +5 -11
- package/dist/message/index.mjs +4 -9
- package/dist/message/message.js +3 -3
- package/dist/message/message.mjs +2 -2
- package/dist/modal/index.d.mts +1 -1
- package/dist/modal/index.d.ts +1 -1
- package/dist/modal/index.js +4 -7
- package/dist/modal/index.mjs +4 -7
- package/dist/modal/modal.js +2 -2
- package/dist/modal/modal.mjs +2 -2
- package/dist/navbar/index.d.mts +1 -1
- package/dist/navbar/index.d.ts +1 -1
- package/dist/prose/prose.d.mts +38 -0
- package/dist/prose/prose.d.ts +38 -0
- package/dist/prose/prose.js +81 -0
- package/dist/prose/prose.mjs +33 -0
- package/dist/tabs/index.d.mts +20 -4
- package/dist/tabs/index.d.ts +20 -4
- package/dist/tabs/index.js +16 -17
- package/dist/tabs/index.mjs +6 -16
- package/dist/tabs/tabs-content.d.mts +6 -6
- package/dist/tabs/tabs-content.d.ts +6 -6
- package/dist/tabs/tabs-content.js +9 -9
- package/dist/tabs/tabs-content.mjs +5 -5
- package/dist/tabs/tabs-list.d.mts +3 -3
- package/dist/tabs/tabs-list.d.ts +3 -3
- package/dist/tabs/tabs-list.js +5 -5
- package/dist/tabs/tabs-list.mjs +3 -3
- package/dist/warning-banner/index.js +6 -2
- package/dist/warning-banner/index.mjs +3 -3
- package/dist/warning-banner/warning-banner.js +6 -2
- package/dist/warning-banner/warning-banner.mjs +3 -3
- package/package.json +2 -2
- package/dist/chunk-BKXVC23Y.mjs +0 -5
package/dist/tabs/index.d.mts
CHANGED
|
@@ -1,6 +1,22 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import * as react from 'react';
|
|
2
|
+
import { TabsProps } from './tabs.mjs';
|
|
3
|
+
import { TabsList, Tab } from './tabs-list.mjs';
|
|
4
|
+
export { TabListProps, TabProps } from './tabs-list.mjs';
|
|
5
|
+
import { TabsContents, TabsContent } from './tabs-content.mjs';
|
|
6
|
+
export { TabContentsProps, TabsContentProps } from './tabs-content.mjs';
|
|
5
7
|
import '../utils-BfZsjuFH.mjs';
|
|
6
8
|
import 'react/jsx-runtime';
|
|
9
|
+
|
|
10
|
+
declare const TabsComponent: {
|
|
11
|
+
(props: TabsProps & react.RefAttributes<HTMLDivElement>): react.ReactNode;
|
|
12
|
+
<As extends react.ElementType>(props: {
|
|
13
|
+
as?: As | undefined;
|
|
14
|
+
} & TabsProps & Omit<react.ComponentPropsWithRef<As>, keyof TabsProps>): react.ReactNode;
|
|
15
|
+
} & Pick<react.FC, "displayName"> & {
|
|
16
|
+
List: typeof TabsList;
|
|
17
|
+
Tab: typeof Tab;
|
|
18
|
+
Contents: typeof TabsContents;
|
|
19
|
+
Content: typeof TabsContent;
|
|
20
|
+
};
|
|
21
|
+
|
|
22
|
+
export { Tab, TabsComponent as Tabs, TabsContent, TabsContents, TabsList, TabsProps };
|
package/dist/tabs/index.d.ts
CHANGED
|
@@ -1,6 +1,22 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import * as react from 'react';
|
|
2
|
+
import { TabsProps } from './tabs.js';
|
|
3
|
+
import { TabsList, Tab } from './tabs-list.js';
|
|
4
|
+
export { TabListProps, TabProps } from './tabs-list.js';
|
|
5
|
+
import { TabsContents, TabsContent } from './tabs-content.js';
|
|
6
|
+
export { TabContentsProps, TabsContentProps } from './tabs-content.js';
|
|
5
7
|
import '../utils-BfZsjuFH.js';
|
|
6
8
|
import 'react/jsx-runtime';
|
|
9
|
+
|
|
10
|
+
declare const TabsComponent: {
|
|
11
|
+
(props: TabsProps & react.RefAttributes<HTMLDivElement>): react.ReactNode;
|
|
12
|
+
<As extends react.ElementType>(props: {
|
|
13
|
+
as?: As | undefined;
|
|
14
|
+
} & TabsProps & Omit<react.ComponentPropsWithRef<As>, keyof TabsProps>): react.ReactNode;
|
|
15
|
+
} & Pick<react.FC, "displayName"> & {
|
|
16
|
+
List: typeof TabsList;
|
|
17
|
+
Tab: typeof Tab;
|
|
18
|
+
Contents: typeof TabsContents;
|
|
19
|
+
Content: typeof TabsContent;
|
|
20
|
+
};
|
|
21
|
+
|
|
22
|
+
export { Tab, TabsComponent as Tabs, TabsContent, TabsContents, TabsList, TabsProps };
|
package/dist/tabs/index.js
CHANGED
|
@@ -59,11 +59,7 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
|
|
|
59
59
|
// src/tabs/index.tsx
|
|
60
60
|
var tabs_exports = {};
|
|
61
61
|
__export(tabs_exports, {
|
|
62
|
-
|
|
63
|
-
TabContent: () => TabContent,
|
|
64
|
-
TabContents: () => TabContents,
|
|
65
|
-
TabList: () => TabList,
|
|
66
|
-
Tabs: () => Tabs
|
|
62
|
+
Tabs: () => TabsComponent
|
|
67
63
|
});
|
|
68
64
|
module.exports = __toCommonJS(tabs_exports);
|
|
69
65
|
var import_fonts = require("@postenbring/hedwig-css/dist/fonts.css");
|
|
@@ -135,7 +131,7 @@ function useResize(ref) {
|
|
|
135
131
|
|
|
136
132
|
// src/tabs/tabs-list.tsx
|
|
137
133
|
var import_jsx_runtime2 = require("react/jsx-runtime");
|
|
138
|
-
function
|
|
134
|
+
function TabsList(_a) {
|
|
139
135
|
var _b = _a, { children, direction = "horizontal", className } = _b, rest = __objRest(_b, ["children", "direction", "className"]);
|
|
140
136
|
const tabsListRef = (0, import_react4.useRef)(null);
|
|
141
137
|
const { width: tabsWidth } = useResize(tabsListRef);
|
|
@@ -161,7 +157,7 @@ function TabList(_a) {
|
|
|
161
157
|
})
|
|
162
158
|
);
|
|
163
159
|
}
|
|
164
|
-
|
|
160
|
+
TabsList.displayName = "Tabs.List";
|
|
165
161
|
var Tab = (0, import_react4.forwardRef)(
|
|
166
162
|
(_a, ref) => {
|
|
167
163
|
var _b = _a, { as: Component = "button", children, tabId, className, onClick } = _b, rest = __objRest(_b, ["as", "children", "tabId", "className", "onClick"]);
|
|
@@ -192,23 +188,23 @@ var Tab = (0, import_react4.forwardRef)(
|
|
|
192
188
|
);
|
|
193
189
|
}
|
|
194
190
|
);
|
|
195
|
-
Tab.displayName = "Tab";
|
|
191
|
+
Tab.displayName = "Tabs.Tab";
|
|
196
192
|
|
|
197
193
|
// src/tabs/tabs-content.tsx
|
|
198
194
|
var import_react5 = require("react");
|
|
199
195
|
var import_typed_classname3 = require("@postenbring/hedwig-css/typed-classname/index.mjs");
|
|
200
196
|
var import_jsx_runtime3 = require("react/jsx-runtime");
|
|
201
|
-
function
|
|
197
|
+
function TabsContents(_a) {
|
|
202
198
|
var _b = _a, { children } = _b, rest = __objRest(_b, ["children"]);
|
|
203
199
|
return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("div", __spreadProps(__spreadValues({ className: (0, import_typed_classname3.clsx)("hds-tabs--contents") }, rest), { children }));
|
|
204
200
|
}
|
|
205
|
-
|
|
206
|
-
var
|
|
201
|
+
TabsContents.displayName = "Tabs.Contents";
|
|
202
|
+
var TabsContent = (0, import_react5.forwardRef)(
|
|
207
203
|
(_a, ref) => {
|
|
208
204
|
var _b = _a, { as: Component = "div", forTabId, children } = _b, rest = __objRest(_b, ["as", "forTabId", "children"]);
|
|
209
205
|
const context = (0, import_react5.useContext)(TabsContext);
|
|
210
206
|
if (!context.mounted) {
|
|
211
|
-
throw new Error("Context required. Did you use <
|
|
207
|
+
throw new Error("Context required. Did you use <Tabs.Content /> outside of <Tabs/>?");
|
|
212
208
|
}
|
|
213
209
|
if (context.activeTabId === forTabId) {
|
|
214
210
|
return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(Component, __spreadProps(__spreadValues({}, rest), { ref, children }));
|
|
@@ -216,12 +212,15 @@ var TabContent = (0, import_react5.forwardRef)(
|
|
|
216
212
|
return null;
|
|
217
213
|
}
|
|
218
214
|
);
|
|
219
|
-
|
|
215
|
+
TabsContent.displayName = "Tabs.Content";
|
|
216
|
+
|
|
217
|
+
// src/tabs/index.tsx
|
|
218
|
+
var TabsComponent = Tabs;
|
|
219
|
+
TabsComponent.List = TabsList;
|
|
220
|
+
TabsComponent.Tab = Tab;
|
|
221
|
+
TabsComponent.Contents = TabsContents;
|
|
222
|
+
TabsComponent.Content = TabsContent;
|
|
220
223
|
// Annotate the CommonJS export names for ESM import in node:
|
|
221
224
|
0 && (module.exports = {
|
|
222
|
-
Tab,
|
|
223
|
-
TabContent,
|
|
224
|
-
TabContents,
|
|
225
|
-
TabList,
|
|
226
225
|
Tabs
|
|
227
226
|
});
|
package/dist/tabs/index.mjs
CHANGED
|
@@ -1,22 +1,12 @@
|
|
|
1
|
-
import "../chunk-BKXVC23Y.mjs";
|
|
2
1
|
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
import
|
|
7
|
-
|
|
8
|
-
TabList
|
|
9
|
-
} from "../chunk-YPD2CH5T.mjs";
|
|
10
|
-
import {
|
|
11
|
-
Tabs
|
|
12
|
-
} from "../chunk-ZLCNSHLT.mjs";
|
|
2
|
+
TabsComponent
|
|
3
|
+
} from "../chunk-BSX4IA3X.mjs";
|
|
4
|
+
import "../chunk-GRO36EUL.mjs";
|
|
5
|
+
import "../chunk-G3JPULGO.mjs";
|
|
6
|
+
import "../chunk-ZLCNSHLT.mjs";
|
|
13
7
|
import "../chunk-4ZM45P62.mjs";
|
|
14
8
|
import "../chunk-FSBY3NKV.mjs";
|
|
15
9
|
import "../chunk-FUJQIYOF.mjs";
|
|
16
10
|
export {
|
|
17
|
-
|
|
18
|
-
TabContent,
|
|
19
|
-
TabContents,
|
|
20
|
-
TabList,
|
|
21
|
-
Tabs
|
|
11
|
+
TabsComponent as Tabs
|
|
22
12
|
};
|
|
@@ -3,19 +3,19 @@ import { HTMLAttributes, ReactElement } from 'react';
|
|
|
3
3
|
import { O as OverridableComponent } from '../utils-BfZsjuFH.mjs';
|
|
4
4
|
|
|
5
5
|
interface TabContentsProps extends HTMLAttributes<HTMLDivElement> {
|
|
6
|
-
children: ReactElement<
|
|
6
|
+
children: ReactElement<TabsContentProps> | ReactElement<TabsContentProps>[];
|
|
7
7
|
}
|
|
8
|
-
declare function
|
|
9
|
-
declare namespace
|
|
8
|
+
declare function TabsContents({ children, ...rest }: TabContentsProps): react_jsx_runtime.JSX.Element;
|
|
9
|
+
declare namespace TabsContents {
|
|
10
10
|
var displayName: string;
|
|
11
11
|
}
|
|
12
|
-
interface
|
|
12
|
+
interface TabsContentProps extends HTMLAttributes<HTMLElement> {
|
|
13
13
|
children: ReactElement<HTMLElement> | ReactElement<HTMLElement>[] | string;
|
|
14
14
|
/**
|
|
15
15
|
* Content for the referenced tabId
|
|
16
16
|
*/
|
|
17
17
|
forTabId: string;
|
|
18
18
|
}
|
|
19
|
-
declare const
|
|
19
|
+
declare const TabsContent: OverridableComponent<TabsContentProps, HTMLElement>;
|
|
20
20
|
|
|
21
|
-
export {
|
|
21
|
+
export { type TabContentsProps, TabsContent, type TabsContentProps, TabsContents };
|
|
@@ -3,19 +3,19 @@ import { HTMLAttributes, ReactElement } from 'react';
|
|
|
3
3
|
import { O as OverridableComponent } from '../utils-BfZsjuFH.js';
|
|
4
4
|
|
|
5
5
|
interface TabContentsProps extends HTMLAttributes<HTMLDivElement> {
|
|
6
|
-
children: ReactElement<
|
|
6
|
+
children: ReactElement<TabsContentProps> | ReactElement<TabsContentProps>[];
|
|
7
7
|
}
|
|
8
|
-
declare function
|
|
9
|
-
declare namespace
|
|
8
|
+
declare function TabsContents({ children, ...rest }: TabContentsProps): react_jsx_runtime.JSX.Element;
|
|
9
|
+
declare namespace TabsContents {
|
|
10
10
|
var displayName: string;
|
|
11
11
|
}
|
|
12
|
-
interface
|
|
12
|
+
interface TabsContentProps extends HTMLAttributes<HTMLElement> {
|
|
13
13
|
children: ReactElement<HTMLElement> | ReactElement<HTMLElement>[] | string;
|
|
14
14
|
/**
|
|
15
15
|
* Content for the referenced tabId
|
|
16
16
|
*/
|
|
17
17
|
forTabId: string;
|
|
18
18
|
}
|
|
19
|
-
declare const
|
|
19
|
+
declare const TabsContent: OverridableComponent<TabsContentProps, HTMLElement>;
|
|
20
20
|
|
|
21
|
-
export {
|
|
21
|
+
export { type TabContentsProps, TabsContent, type TabsContentProps, TabsContents };
|
|
@@ -49,8 +49,8 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
|
|
|
49
49
|
// src/tabs/tabs-content.tsx
|
|
50
50
|
var tabs_content_exports = {};
|
|
51
51
|
__export(tabs_content_exports, {
|
|
52
|
-
|
|
53
|
-
|
|
52
|
+
TabsContent: () => TabsContent,
|
|
53
|
+
TabsContents: () => TabsContents
|
|
54
54
|
});
|
|
55
55
|
module.exports = __toCommonJS(tabs_content_exports);
|
|
56
56
|
var import_react2 = require("react");
|
|
@@ -68,17 +68,17 @@ var TabsContext = (0, import_react.createContext)({
|
|
|
68
68
|
|
|
69
69
|
// src/tabs/tabs-content.tsx
|
|
70
70
|
var import_jsx_runtime = require("react/jsx-runtime");
|
|
71
|
-
function
|
|
71
|
+
function TabsContents(_a) {
|
|
72
72
|
var _b = _a, { children } = _b, rest = __objRest(_b, ["children"]);
|
|
73
73
|
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", __spreadProps(__spreadValues({ className: (0, import_typed_classname.clsx)("hds-tabs--contents") }, rest), { children }));
|
|
74
74
|
}
|
|
75
|
-
|
|
76
|
-
var
|
|
75
|
+
TabsContents.displayName = "Tabs.Contents";
|
|
76
|
+
var TabsContent = (0, import_react2.forwardRef)(
|
|
77
77
|
(_a, ref) => {
|
|
78
78
|
var _b = _a, { as: Component = "div", forTabId, children } = _b, rest = __objRest(_b, ["as", "forTabId", "children"]);
|
|
79
79
|
const context = (0, import_react2.useContext)(TabsContext);
|
|
80
80
|
if (!context.mounted) {
|
|
81
|
-
throw new Error("Context required. Did you use <
|
|
81
|
+
throw new Error("Context required. Did you use <Tabs.Content /> outside of <Tabs/>?");
|
|
82
82
|
}
|
|
83
83
|
if (context.activeTabId === forTabId) {
|
|
84
84
|
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Component, __spreadProps(__spreadValues({}, rest), { ref, children }));
|
|
@@ -86,9 +86,9 @@ var TabContent = (0, import_react2.forwardRef)(
|
|
|
86
86
|
return null;
|
|
87
87
|
}
|
|
88
88
|
);
|
|
89
|
-
|
|
89
|
+
TabsContent.displayName = "Tabs.Content";
|
|
90
90
|
// Annotate the CommonJS export names for ESM import in node:
|
|
91
91
|
0 && (module.exports = {
|
|
92
|
-
|
|
93
|
-
|
|
92
|
+
TabsContent,
|
|
93
|
+
TabsContents
|
|
94
94
|
});
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
} from "../chunk-
|
|
2
|
+
TabsContent,
|
|
3
|
+
TabsContents
|
|
4
|
+
} from "../chunk-GRO36EUL.mjs";
|
|
5
5
|
import "../chunk-4ZM45P62.mjs";
|
|
6
6
|
import "../chunk-FUJQIYOF.mjs";
|
|
7
7
|
export {
|
|
8
|
-
|
|
9
|
-
|
|
8
|
+
TabsContent,
|
|
9
|
+
TabsContents
|
|
10
10
|
};
|
|
@@ -10,8 +10,8 @@ interface TabListProps extends HTMLAttributes<HTMLDivElement> {
|
|
|
10
10
|
*/
|
|
11
11
|
direction?: "vertical" | "horizontal";
|
|
12
12
|
}
|
|
13
|
-
declare function
|
|
14
|
-
declare namespace
|
|
13
|
+
declare function TabsList({ children, direction, className, ...rest }: TabListProps): react_jsx_runtime.JSX.Element;
|
|
14
|
+
declare namespace TabsList {
|
|
15
15
|
var displayName: string;
|
|
16
16
|
}
|
|
17
17
|
interface TabProps extends HTMLAttributes<HTMLButtonElement> {
|
|
@@ -23,4 +23,4 @@ interface TabProps extends HTMLAttributes<HTMLButtonElement> {
|
|
|
23
23
|
}
|
|
24
24
|
declare const Tab: OverridableComponent<TabProps, HTMLButtonElement>;
|
|
25
25
|
|
|
26
|
-
export { Tab,
|
|
26
|
+
export { Tab, type TabListProps, type TabProps, TabsList };
|
package/dist/tabs/tabs-list.d.ts
CHANGED
|
@@ -10,8 +10,8 @@ interface TabListProps extends HTMLAttributes<HTMLDivElement> {
|
|
|
10
10
|
*/
|
|
11
11
|
direction?: "vertical" | "horizontal";
|
|
12
12
|
}
|
|
13
|
-
declare function
|
|
14
|
-
declare namespace
|
|
13
|
+
declare function TabsList({ children, direction, className, ...rest }: TabListProps): react_jsx_runtime.JSX.Element;
|
|
14
|
+
declare namespace TabsList {
|
|
15
15
|
var displayName: string;
|
|
16
16
|
}
|
|
17
17
|
interface TabProps extends HTMLAttributes<HTMLButtonElement> {
|
|
@@ -23,4 +23,4 @@ interface TabProps extends HTMLAttributes<HTMLButtonElement> {
|
|
|
23
23
|
}
|
|
24
24
|
declare const Tab: OverridableComponent<TabProps, HTMLButtonElement>;
|
|
25
25
|
|
|
26
|
-
export { Tab,
|
|
26
|
+
export { Tab, type TabListProps, type TabProps, TabsList };
|
package/dist/tabs/tabs-list.js
CHANGED
|
@@ -60,7 +60,7 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
|
|
|
60
60
|
var tabs_list_exports = {};
|
|
61
61
|
__export(tabs_list_exports, {
|
|
62
62
|
Tab: () => Tab,
|
|
63
|
-
|
|
63
|
+
TabsList: () => TabsList
|
|
64
64
|
});
|
|
65
65
|
module.exports = __toCommonJS(tabs_list_exports);
|
|
66
66
|
var import_react3 = require("react");
|
|
@@ -105,7 +105,7 @@ var TabsContext = (0, import_react2.createContext)({
|
|
|
105
105
|
|
|
106
106
|
// src/tabs/tabs-list.tsx
|
|
107
107
|
var import_jsx_runtime = require("react/jsx-runtime");
|
|
108
|
-
function
|
|
108
|
+
function TabsList(_a) {
|
|
109
109
|
var _b = _a, { children, direction = "horizontal", className } = _b, rest = __objRest(_b, ["children", "direction", "className"]);
|
|
110
110
|
const tabsListRef = (0, import_react3.useRef)(null);
|
|
111
111
|
const { width: tabsWidth } = useResize(tabsListRef);
|
|
@@ -131,7 +131,7 @@ function TabList(_a) {
|
|
|
131
131
|
})
|
|
132
132
|
);
|
|
133
133
|
}
|
|
134
|
-
|
|
134
|
+
TabsList.displayName = "Tabs.List";
|
|
135
135
|
var Tab = (0, import_react3.forwardRef)(
|
|
136
136
|
(_a, ref) => {
|
|
137
137
|
var _b = _a, { as: Component = "button", children, tabId, className, onClick } = _b, rest = __objRest(_b, ["as", "children", "tabId", "className", "onClick"]);
|
|
@@ -162,9 +162,9 @@ var Tab = (0, import_react3.forwardRef)(
|
|
|
162
162
|
);
|
|
163
163
|
}
|
|
164
164
|
);
|
|
165
|
-
Tab.displayName = "Tab";
|
|
165
|
+
Tab.displayName = "Tabs.Tab";
|
|
166
166
|
// Annotate the CommonJS export names for ESM import in node:
|
|
167
167
|
0 && (module.exports = {
|
|
168
168
|
Tab,
|
|
169
|
-
|
|
169
|
+
TabsList
|
|
170
170
|
});
|
package/dist/tabs/tabs-list.mjs
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Tab,
|
|
3
|
-
|
|
4
|
-
} from "../chunk-
|
|
3
|
+
TabsList
|
|
4
|
+
} from "../chunk-G3JPULGO.mjs";
|
|
5
5
|
import "../chunk-4ZM45P62.mjs";
|
|
6
6
|
import "../chunk-FSBY3NKV.mjs";
|
|
7
7
|
import "../chunk-FUJQIYOF.mjs";
|
|
8
8
|
export {
|
|
9
9
|
Tab,
|
|
10
|
-
|
|
10
|
+
TabsList
|
|
11
11
|
};
|
|
@@ -137,7 +137,11 @@ var BoxCloseButton = (0, import_react.forwardRef)(
|
|
|
137
137
|
);
|
|
138
138
|
}
|
|
139
139
|
);
|
|
140
|
-
BoxCloseButton.displayName = "
|
|
140
|
+
BoxCloseButton.displayName = "Box.CloseButton";
|
|
141
|
+
|
|
142
|
+
// src/box/index.tsx
|
|
143
|
+
var BoxComponent = Box;
|
|
144
|
+
BoxComponent.CloseButton = BoxCloseButton;
|
|
141
145
|
|
|
142
146
|
// src/warning-banner/warning-banner.tsx
|
|
143
147
|
var import_jsx_runtime2 = require("react/jsx-runtime");
|
|
@@ -145,7 +149,7 @@ var WarningBanner = (0, import_react2.forwardRef)(
|
|
|
145
149
|
(_a, ref) => {
|
|
146
150
|
var _b = _a, { title, description, className } = _b, rest = __objRest(_b, ["title", "description", "className"]);
|
|
147
151
|
const expandable = !!description;
|
|
148
|
-
return /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(
|
|
152
|
+
return /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(BoxComponent, __spreadProps(__spreadValues({}, rest), { className: (0, import_typed_classname2.clsx)("hds-warning-banner", className), ref, children: [
|
|
149
153
|
/* @__PURE__ */ (0, import_jsx_runtime2.jsx)(WarningBannerTitle, { variant: expandable ? "expandable" : "default", children: title }),
|
|
150
154
|
expandable ? /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(WarningBannerDescription, { children: description }) : null
|
|
151
155
|
] }));
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import "../chunk-K2HIKZ7F.mjs";
|
|
2
2
|
import {
|
|
3
3
|
WarningBanner
|
|
4
|
-
} from "../chunk-
|
|
5
|
-
import "../chunk-
|
|
6
|
-
import "../chunk-
|
|
4
|
+
} from "../chunk-BHNQPMEB.mjs";
|
|
5
|
+
import "../chunk-E2GAXTBX.mjs";
|
|
6
|
+
import "../chunk-WTMT5WCJ.mjs";
|
|
7
7
|
import "../chunk-FUJQIYOF.mjs";
|
|
8
8
|
export {
|
|
9
9
|
WarningBanner
|
|
@@ -131,7 +131,11 @@ var BoxCloseButton = (0, import_react.forwardRef)(
|
|
|
131
131
|
);
|
|
132
132
|
}
|
|
133
133
|
);
|
|
134
|
-
BoxCloseButton.displayName = "
|
|
134
|
+
BoxCloseButton.displayName = "Box.CloseButton";
|
|
135
|
+
|
|
136
|
+
// src/box/index.tsx
|
|
137
|
+
var BoxComponent = Box;
|
|
138
|
+
BoxComponent.CloseButton = BoxCloseButton;
|
|
135
139
|
|
|
136
140
|
// src/warning-banner/warning-banner.tsx
|
|
137
141
|
var import_jsx_runtime2 = require("react/jsx-runtime");
|
|
@@ -139,7 +143,7 @@ var WarningBanner = (0, import_react2.forwardRef)(
|
|
|
139
143
|
(_a, ref) => {
|
|
140
144
|
var _b = _a, { title, description, className } = _b, rest = __objRest(_b, ["title", "description", "className"]);
|
|
141
145
|
const expandable = !!description;
|
|
142
|
-
return /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(
|
|
146
|
+
return /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(BoxComponent, __spreadProps(__spreadValues({}, rest), { className: (0, import_typed_classname2.clsx)("hds-warning-banner", className), ref, children: [
|
|
143
147
|
/* @__PURE__ */ (0, import_jsx_runtime2.jsx)(WarningBannerTitle, { variant: expandable ? "expandable" : "default", children: title }),
|
|
144
148
|
expandable ? /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(WarningBannerDescription, { children: description }) : null
|
|
145
149
|
] }));
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import {
|
|
2
2
|
WarningBanner
|
|
3
|
-
} from "../chunk-
|
|
4
|
-
import "../chunk-
|
|
5
|
-
import "../chunk-
|
|
3
|
+
} from "../chunk-BHNQPMEB.mjs";
|
|
4
|
+
import "../chunk-E2GAXTBX.mjs";
|
|
5
|
+
import "../chunk-WTMT5WCJ.mjs";
|
|
6
6
|
import "../chunk-FUJQIYOF.mjs";
|
|
7
7
|
export {
|
|
8
8
|
WarningBanner
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@postenbring/hedwig-react",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.39",
|
|
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.
|
|
22
|
+
"@postenbring/hedwig-css": "0.0.37"
|
|
23
23
|
},
|
|
24
24
|
"publishConfig": {
|
|
25
25
|
"access": "public"
|