@accelint/design-toolkit 9.8.0 → 9.9.1
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/catalog-info.yaml +7 -4
- package/dist/components/accordion/context.d.ts +2 -2
- package/dist/components/accordion/group.d.ts +2 -2
- package/dist/components/accordion/header.d.ts +2 -2
- package/dist/components/accordion/index.d.ts +2 -2
- package/dist/components/accordion/panel.d.ts +2 -2
- package/dist/components/accordion/trigger.d.ts +2 -2
- package/dist/components/action-bar/index.d.ts +2 -2
- package/dist/components/audio/index.d.ts +2 -2
- package/dist/components/avatar/context.d.ts +4 -4
- package/dist/components/avatar/index.d.ts +2 -2
- package/dist/components/badge/context.d.ts +4 -4
- package/dist/components/badge/index.d.ts +2 -2
- package/dist/components/breadcrumbs/index.d.ts +2 -2
- package/dist/components/button/__internal__/clear.js +1 -0
- package/dist/components/button/__internal__/clear.js.map +1 -1
- package/dist/components/button/context.d.ts +8 -8
- package/dist/components/button/index.d.ts +2 -2
- package/dist/components/button/link.d.ts +2 -2
- package/dist/components/button/toggle.d.ts +2 -2
- package/dist/components/checkbox/context.d.ts +3 -3
- package/dist/components/checkbox/group.d.ts +2 -2
- package/dist/components/checkbox/index.d.ts +2 -2
- package/dist/components/chip/context.d.ts +4 -4
- package/dist/components/chip/deletable.d.ts +2 -2
- package/dist/components/chip/index.d.ts +2 -2
- package/dist/components/chip/list.d.ts +4 -4
- package/dist/components/chip/selectable.d.ts +2 -2
- package/dist/components/classification-badge/context.d.ts +4 -4
- package/dist/components/classification-badge/index.d.ts +2 -2
- package/dist/components/classification-banner/context.d.ts +4 -4
- package/dist/components/classification-banner/index.d.ts +2 -2
- package/dist/components/clock/index.d.ts +2 -2
- package/dist/components/color-picker/index.d.ts +7 -45
- package/dist/components/color-picker/index.js +34 -52
- package/dist/components/color-picker/index.js.map +1 -1
- package/dist/components/color-picker/styles.module.css +5 -1
- package/dist/components/color-picker/types.d.ts +17 -4
- package/dist/components/combobox-field/context.d.ts +4 -4
- package/dist/components/combobox-field/index.d.ts +2 -2
- package/dist/components/combobox-field/index.js +19 -1
- package/dist/components/combobox-field/index.js.map +1 -1
- package/dist/components/coordinate-field/context.d.ts +6 -6
- package/dist/components/coordinate-field/index.d.ts +2 -2
- package/dist/components/coordinate-field/index.js +49 -42
- package/dist/components/coordinate-field/index.js.map +1 -1
- package/dist/components/coordinate-field/segment.d.ts +2 -2
- package/dist/components/coordinate-field/types.d.ts +5 -0
- package/dist/components/coordinate-field/types.js.map +1 -1
- package/dist/components/date-field/index.d.ts +2 -2
- package/dist/components/deferred-collection/index.d.ts +2 -2
- package/dist/components/details-list/context.d.ts +4 -4
- package/dist/components/details-list/index.d.ts +2 -2
- package/dist/components/details-list/label.d.ts +2 -2
- package/dist/components/details-list/value.d.ts +2 -2
- package/dist/components/dialog/content.d.ts +2 -2
- package/dist/components/dialog/context.d.ts +2 -2
- package/dist/components/dialog/footer.d.ts +2 -2
- package/dist/components/dialog/index.d.ts +2 -2
- package/dist/components/dialog/title.d.ts +2 -2
- package/dist/components/divider/context.d.ts +4 -4
- package/dist/components/divider/index.d.ts +2 -2
- package/dist/components/drawer/back.d.ts +2 -2
- package/dist/components/drawer/close.d.ts +2 -2
- package/dist/components/drawer/content.d.ts +2 -2
- package/dist/components/drawer/context.d.ts +3 -3
- package/dist/components/drawer/footer.d.ts +2 -2
- package/dist/components/drawer/header-title.d.ts +2 -2
- package/dist/components/drawer/header.d.ts +2 -2
- package/dist/components/drawer/index.d.ts +2 -2
- package/dist/components/drawer/layout-main.d.ts +2 -2
- package/dist/components/drawer/layout.d.ts +2 -2
- package/dist/components/drawer/menu-item.d.ts +2 -2
- package/dist/components/drawer/menu-item.js +2 -2
- package/dist/components/drawer/menu.d.ts +2 -2
- package/dist/components/drawer/panel.d.ts +2 -2
- package/dist/components/drawer/trigger.d.ts +2 -2
- package/dist/components/drawer/types.d.ts +1 -1
- package/dist/components/drawer/view.d.ts +2 -2
- package/dist/components/flashcard/index.d.ts +9 -9
- package/dist/components/floating-card/context.d.ts +2 -2
- package/dist/components/floating-card/index.d.ts +2 -2
- package/dist/components/floating-card/provider.d.ts +2 -2
- package/dist/components/floating-card/provider.js +2 -2
- package/dist/components/floating-card/provider.js.map +1 -1
- package/dist/components/floating-card/styles.module.css +1 -1
- package/dist/components/hero/context.d.ts +2 -2
- package/dist/components/hero/index.d.ts +2 -2
- package/dist/components/hero/subtitle.d.ts +3 -3
- package/dist/components/hero/title.d.ts +2 -2
- package/dist/components/hotkey/context.d.ts +4 -4
- package/dist/components/hotkey/index.d.ts +2 -2
- package/dist/components/hotkey/set.d.ts +2 -2
- package/dist/components/icon/context.d.ts +4 -4
- package/dist/components/icon/index.d.ts +2 -2
- package/dist/components/input/context.d.ts +2 -2
- package/dist/components/input/index.d.ts +2 -2
- package/dist/components/input/styles.module.css +8 -0
- package/dist/components/kanban/card-body.d.ts +2 -2
- package/dist/components/kanban/card-header-actions.d.ts +2 -2
- package/dist/components/kanban/card-header-title.d.ts +2 -2
- package/dist/components/kanban/card-header.d.ts +2 -2
- package/dist/components/kanban/card.d.ts +2 -2
- package/dist/components/kanban/column-actions.d.ts +2 -2
- package/dist/components/kanban/column-container.d.ts +2 -2
- package/dist/components/kanban/column-content.d.ts +2 -2
- package/dist/components/kanban/column-header-actions.d.ts +2 -2
- package/dist/components/kanban/column-header-drag-handle.d.ts +2 -2
- package/dist/components/kanban/column-header-title.d.ts +2 -2
- package/dist/components/kanban/column-header.d.ts +2 -2
- package/dist/components/kanban/column.d.ts +2 -2
- package/dist/components/kanban/context.d.ts +2 -2
- package/dist/components/kanban/header-actions.d.ts +2 -2
- package/dist/components/kanban/header-search.d.ts +2 -2
- package/dist/components/kanban/header-title.d.ts +2 -2
- package/dist/components/kanban/header.d.ts +2 -2
- package/dist/components/kanban/kanban.d.ts +4 -4
- package/dist/components/label/context.d.ts +4 -4
- package/dist/components/label/index.d.ts +2 -2
- package/dist/components/lines/index.d.ts +2 -2
- package/dist/components/link/context.d.ts +2 -2
- package/dist/components/link/index.d.ts +2 -2
- package/dist/components/list/context.d.ts +2 -2
- package/dist/components/list/index.d.ts +2 -2
- package/dist/components/list/item-content.d.ts +2 -2
- package/dist/components/list/item-description.d.ts +2 -2
- package/dist/components/list/item-title.d.ts +2 -2
- package/dist/components/list/item.d.ts +2 -2
- package/dist/components/media-controls/context.d.ts +4 -4
- package/dist/components/media-controls/fullscreen-button.d.ts +2 -2
- package/dist/components/media-controls/index.d.ts +2 -2
- package/dist/components/media-controls/mute-button.d.ts +2 -2
- package/dist/components/media-controls/play-button.d.ts +2 -2
- package/dist/components/media-controls/playback-rate.d.ts +2 -2
- package/dist/components/media-controls/seek-button.d.ts +2 -2
- package/dist/components/media-controls/time-display.d.ts +2 -2
- package/dist/components/media-controls/time-range.d.ts +2 -2
- package/dist/components/media-controls/volume-slider.d.ts +2 -2
- package/dist/components/menu/context.d.ts +2 -2
- package/dist/components/menu/index.d.ts +2 -2
- package/dist/components/menu/item-description.d.ts +2 -2
- package/dist/components/menu/item-label.d.ts +2 -2
- package/dist/components/menu/item.d.ts +2 -2
- package/dist/components/menu/section.d.ts +2 -2
- package/dist/components/menu/separator.d.ts +2 -2
- package/dist/components/menu/submenu.d.ts +3 -3
- package/dist/components/notice/index.d.ts +2 -2
- package/dist/components/notice/list.d.ts +2 -2
- package/dist/components/notice/list.js +1 -1
- package/dist/components/notice/notice-icon.d.ts +2 -2
- package/dist/components/notice/types.d.ts +1 -1
- package/dist/components/options/context.d.ts +2 -2
- package/dist/components/options/index.d.ts +2 -2
- package/dist/components/options/item-content.d.ts +2 -2
- package/dist/components/options/item-description.d.ts +2 -2
- package/dist/components/options/item-label.d.ts +3 -2
- package/dist/components/options/item-label.js +20 -4
- package/dist/components/options/item-label.js.map +1 -1
- package/dist/components/options/item.d.ts +2 -2
- package/dist/components/options/section.d.ts +2 -2
- package/dist/components/options/styles.module.css +20 -0
- package/dist/components/pagination/context.d.ts +2 -2
- package/dist/components/pagination/pages.d.ts +2 -2
- package/dist/components/popover/content.d.ts +2 -2
- package/dist/components/popover/footer.d.ts +2 -2
- package/dist/components/popover/index.d.ts +2 -2
- package/dist/components/popover/title.d.ts +2 -2
- package/dist/components/popover/trigger.d.ts +2 -2
- package/dist/components/query-builder/action-element.d.ts +2 -2
- package/dist/components/query-builder/actions.d.ts +4 -4
- package/dist/components/query-builder/combinator-selector.d.ts +2 -2
- package/dist/components/query-builder/index.d.ts +2 -2
- package/dist/components/query-builder/rule-group.d.ts +4 -4
- package/dist/components/query-builder/rule.d.ts +2 -2
- package/dist/components/query-builder/value-editor.d.ts +2 -2
- package/dist/components/query-builder/value-selector.d.ts +2 -2
- package/dist/components/radio/context.d.ts +3 -3
- package/dist/components/radio/group.d.ts +2 -2
- package/dist/components/radio/index.d.ts +2 -2
- package/dist/components/search-field/context.d.ts +4 -4
- package/dist/components/search-field/index.d.ts +2 -2
- package/dist/components/select-field/context.d.ts +4 -4
- package/dist/components/select-field/index.d.ts +2 -2
- package/dist/components/sidenav/avatar.d.ts +2 -2
- package/dist/components/sidenav/content.d.ts +2 -2
- package/dist/components/sidenav/context.d.ts +2 -2
- package/dist/components/sidenav/footer.d.ts +2 -2
- package/dist/components/sidenav/header.d.ts +2 -2
- package/dist/components/sidenav/index.d.ts +2 -2
- package/dist/components/sidenav/item.d.ts +2 -2
- package/dist/components/sidenav/link.d.ts +2 -2
- package/dist/components/sidenav/menu-item.d.ts +2 -2
- package/dist/components/sidenav/menu.d.ts +2 -2
- package/dist/components/sidenav/trigger.d.ts +2 -2
- package/dist/components/sidenav/trigger.js +1 -1
- package/dist/components/sidenav/types.d.ts +1 -1
- package/dist/components/skeleton/index.d.ts +2 -2
- package/dist/components/slider/index.d.ts +2 -2
- package/dist/components/slider/styles.module.css +3 -2
- package/dist/components/status-indicator/index.d.ts +2 -2
- package/dist/components/switch/context.d.ts +4 -4
- package/dist/components/switch/index.d.ts +2 -2
- package/dist/components/table/body.d.ts +2 -2
- package/dist/components/table/cell.d.ts +2 -2
- package/dist/components/table/context.d.ts +2 -2
- package/dist/components/table/header-cell.d.ts +2 -2
- package/dist/components/table/header.d.ts +2 -2
- package/dist/components/table/index.d.ts +2 -2
- package/dist/components/table/row.d.ts +2 -2
- package/dist/components/tabs/context.d.ts +6 -6
- package/dist/components/tabs/index.d.ts +2 -2
- package/dist/components/tabs/list.d.ts +2 -2
- package/dist/components/tabs/panel.d.ts +2 -2
- package/dist/components/tabs/tab.d.ts +2 -2
- package/dist/components/text-area-field/context.d.ts +4 -4
- package/dist/components/text-area-field/index.d.ts +2 -2
- package/dist/components/text-field/context.d.ts +4 -4
- package/dist/components/text-field/index.d.ts +2 -2
- package/dist/components/time-field/index.d.ts +2 -2
- package/dist/components/tooltip/index.d.ts +2 -2
- package/dist/components/tooltip/trigger.d.ts +2 -2
- package/dist/components/tooltip/trigger.js +1 -1
- package/dist/components/tree/index.d.ts +2 -2
- package/dist/components/tree/index.js +6 -4
- package/dist/components/tree/index.js.map +1 -1
- package/dist/components/tree/item-actions.d.ts +2 -2
- package/dist/components/tree/item-content.d.ts +2 -2
- package/dist/components/tree/item-content.js +9 -5
- package/dist/components/tree/item-content.js.map +1 -1
- package/dist/components/tree/item-description.d.ts +2 -2
- package/dist/components/tree/item-label.d.ts +2 -2
- package/dist/components/tree/item-prefix-icon.d.ts +2 -2
- package/dist/components/tree/item.d.ts +2 -2
- package/dist/components/tree/lines.d.ts +4 -2
- package/dist/components/tree/lines.js +8 -4
- package/dist/components/tree/lines.js.map +1 -1
- package/dist/components/tree/styles.module.css +23 -3
- package/dist/components/video/index.d.ts +2 -2
- package/dist/components/view-stack/context.d.ts +2 -2
- package/dist/components/view-stack/index.d.ts +2 -2
- package/dist/components/view-stack/index.js +1 -1
- package/dist/components/view-stack/trigger.d.ts +2 -2
- package/dist/components/view-stack/types.d.ts +1 -1
- package/dist/components/view-stack/view.d.ts +2 -2
- package/dist/hooks/use-tree/state/index.js +7 -14
- package/dist/hooks/use-tree/state/index.js.map +1 -1
- package/dist/index.js +3 -3
- package/dist/node_modules/.pnpm/@react-aria_collections@3.0.0-rc.7_react-dom@19.2.3_react@19.2.3__react@19.2.3/node_modules/@react-aria/collections/dist/BaseCollection.js +134 -0
- package/dist/node_modules/.pnpm/@react-aria_collections@3.0.0-rc.7_react-dom@19.2.3_react@19.2.3__react@19.2.3/node_modules/@react-aria/collections/dist/BaseCollection.js.map +1 -0
- package/dist/providers/portal.js +1 -1
- package/dist/providers/theme-provider.d.ts +2 -2
- package/package.json +14 -9
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
*/
|
|
12
12
|
|
|
13
13
|
import { ComponentPropsWithRef } from "react";
|
|
14
|
-
import * as
|
|
14
|
+
import * as react_jsx_runtime25 from "react/jsx-runtime";
|
|
15
15
|
|
|
16
16
|
//#region src/components/drawer/content.d.ts
|
|
17
17
|
|
|
@@ -37,7 +37,7 @@ import * as react_jsx_runtime44 from "react/jsx-runtime";
|
|
|
37
37
|
declare function DrawerContent({
|
|
38
38
|
className,
|
|
39
39
|
...rest
|
|
40
|
-
}: ComponentPropsWithRef<'div'>):
|
|
40
|
+
}: ComponentPropsWithRef<'div'>): react_jsx_runtime25.JSX.Element;
|
|
41
41
|
//#endregion
|
|
42
42
|
export { DrawerContent };
|
|
43
43
|
//# sourceMappingURL=content.d.ts.map
|
|
@@ -12,9 +12,9 @@
|
|
|
12
12
|
|
|
13
13
|
import { DrawerContextValue, DrawerEvent } from "./types.js";
|
|
14
14
|
import "client-only";
|
|
15
|
-
import * as
|
|
16
|
-
import { Broadcast } from "@accelint/bus";
|
|
15
|
+
import * as react2 from "react";
|
|
17
16
|
import { UniqueId } from "@accelint/core";
|
|
17
|
+
import { Broadcast } from "@accelint/bus";
|
|
18
18
|
|
|
19
19
|
//#region src/components/drawer/context.d.ts
|
|
20
20
|
/**
|
|
@@ -25,7 +25,7 @@ import { UniqueId } from "@accelint/core";
|
|
|
25
25
|
* const { register, unregister, placement } = useContext(DrawerContext);
|
|
26
26
|
* ```
|
|
27
27
|
*/
|
|
28
|
-
declare const DrawerContext:
|
|
28
|
+
declare const DrawerContext: react2.Context<DrawerContextValue>;
|
|
29
29
|
/**
|
|
30
30
|
* Event bus instance for drawer-related events.
|
|
31
31
|
*
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
*/
|
|
12
12
|
|
|
13
13
|
import { ComponentPropsWithRef } from "react";
|
|
14
|
-
import * as
|
|
14
|
+
import * as react_jsx_runtime2 from "react/jsx-runtime";
|
|
15
15
|
|
|
16
16
|
//#region src/components/drawer/footer.d.ts
|
|
17
17
|
|
|
@@ -39,7 +39,7 @@ import * as react_jsx_runtime81 from "react/jsx-runtime";
|
|
|
39
39
|
declare function DrawerFooter({
|
|
40
40
|
className,
|
|
41
41
|
...rest
|
|
42
|
-
}: ComponentPropsWithRef<'footer'>):
|
|
42
|
+
}: ComponentPropsWithRef<'footer'>): react_jsx_runtime2.JSX.Element;
|
|
43
43
|
//#endregion
|
|
44
44
|
export { DrawerFooter };
|
|
45
45
|
//# sourceMappingURL=footer.d.ts.map
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
*/
|
|
12
12
|
|
|
13
13
|
import { DrawerTitleProps } from "./types.js";
|
|
14
|
-
import * as
|
|
14
|
+
import * as react_jsx_runtime10 from "react/jsx-runtime";
|
|
15
15
|
|
|
16
16
|
//#region src/components/drawer/header-title.d.ts
|
|
17
17
|
|
|
@@ -41,7 +41,7 @@ declare function DrawerHeaderTitle({
|
|
|
41
41
|
className,
|
|
42
42
|
level,
|
|
43
43
|
...rest
|
|
44
|
-
}: DrawerTitleProps):
|
|
44
|
+
}: DrawerTitleProps): react_jsx_runtime10.JSX.Element;
|
|
45
45
|
//#endregion
|
|
46
46
|
export { DrawerHeaderTitle };
|
|
47
47
|
//# sourceMappingURL=header-title.d.ts.map
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
|
|
13
13
|
import "client-only";
|
|
14
14
|
import { ComponentPropsWithRef } from "react";
|
|
15
|
-
import * as
|
|
15
|
+
import * as react_jsx_runtime19 from "react/jsx-runtime";
|
|
16
16
|
|
|
17
17
|
//#region src/components/drawer/header.d.ts
|
|
18
18
|
|
|
@@ -52,7 +52,7 @@ declare function DrawerHeader({
|
|
|
52
52
|
title,
|
|
53
53
|
children,
|
|
54
54
|
...rest
|
|
55
|
-
}: ComponentPropsWithRef<'header'>):
|
|
55
|
+
}: ComponentPropsWithRef<'header'>): react_jsx_runtime19.JSX.Element;
|
|
56
56
|
//#endregion
|
|
57
57
|
export { DrawerHeader };
|
|
58
58
|
//# sourceMappingURL=header.d.ts.map
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
|
|
13
13
|
import { DrawerProps } from "./types.js";
|
|
14
14
|
import "client-only";
|
|
15
|
-
import * as
|
|
15
|
+
import * as react_jsx_runtime166 from "react/jsx-runtime";
|
|
16
16
|
|
|
17
17
|
//#region src/components/drawer/index.d.ts
|
|
18
18
|
|
|
@@ -63,7 +63,7 @@ declare function Drawer({
|
|
|
63
63
|
size,
|
|
64
64
|
onChange,
|
|
65
65
|
...rest
|
|
66
|
-
}: DrawerProps):
|
|
66
|
+
}: DrawerProps): react_jsx_runtime166.JSX.Element;
|
|
67
67
|
//#endregion
|
|
68
68
|
export { Drawer };
|
|
69
69
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
*/
|
|
12
12
|
|
|
13
13
|
import { ComponentPropsWithRef } from "react";
|
|
14
|
-
import * as
|
|
14
|
+
import * as react_jsx_runtime74 from "react/jsx-runtime";
|
|
15
15
|
|
|
16
16
|
//#region src/components/drawer/layout-main.d.ts
|
|
17
17
|
|
|
@@ -38,7 +38,7 @@ import * as react_jsx_runtime105 from "react/jsx-runtime";
|
|
|
38
38
|
declare function DrawerLayoutMain({
|
|
39
39
|
className,
|
|
40
40
|
...rest
|
|
41
|
-
}: ComponentPropsWithRef<'main'>):
|
|
41
|
+
}: ComponentPropsWithRef<'main'>): react_jsx_runtime74.JSX.Element;
|
|
42
42
|
//#endregion
|
|
43
43
|
export { DrawerLayoutMain };
|
|
44
44
|
//# sourceMappingURL=layout-main.d.ts.map
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
*/
|
|
12
12
|
|
|
13
13
|
import { DrawerLayoutProps } from "./types.js";
|
|
14
|
-
import * as
|
|
14
|
+
import * as react_jsx_runtime75 from "react/jsx-runtime";
|
|
15
15
|
|
|
16
16
|
//#region src/components/drawer/layout.d.ts
|
|
17
17
|
|
|
@@ -42,7 +42,7 @@ declare function DrawerLayout({
|
|
|
42
42
|
extend,
|
|
43
43
|
push,
|
|
44
44
|
...rest
|
|
45
|
-
}: DrawerLayoutProps):
|
|
45
|
+
}: DrawerLayoutProps): react_jsx_runtime75.JSX.Element;
|
|
46
46
|
//#endregion
|
|
47
47
|
export { DrawerLayout };
|
|
48
48
|
//# sourceMappingURL=layout.d.ts.map
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
|
|
13
13
|
import { DrawerMenuItemProps } from "./types.js";
|
|
14
14
|
import "client-only";
|
|
15
|
-
import * as
|
|
15
|
+
import * as react_jsx_runtime76 from "react/jsx-runtime";
|
|
16
16
|
|
|
17
17
|
//#region src/components/drawer/menu-item.d.ts
|
|
18
18
|
|
|
@@ -45,7 +45,7 @@ declare function DrawerMenuItem({
|
|
|
45
45
|
toggle,
|
|
46
46
|
textValue,
|
|
47
47
|
...rest
|
|
48
|
-
}: DrawerMenuItemProps):
|
|
48
|
+
}: DrawerMenuItemProps): react_jsx_runtime76.JSX.Element | null;
|
|
49
49
|
//#endregion
|
|
50
50
|
export { DrawerMenuItem };
|
|
51
51
|
//# sourceMappingURL=menu-item.d.ts.map
|
|
@@ -15,11 +15,11 @@
|
|
|
15
15
|
|
|
16
16
|
import { Icon } from "../icon/index.js";
|
|
17
17
|
import { ToggleButton as ToggleButton$1 } from "../button/toggle.js";
|
|
18
|
+
import { Tooltip as Tooltip$1 } from "../tooltip/index.js";
|
|
19
|
+
import { TooltipTrigger as TooltipTrigger$1 } from "../tooltip/trigger.js";
|
|
18
20
|
import { ViewStackContext } from "../view-stack/context.js";
|
|
19
21
|
import { DrawerContext } from "./context.js";
|
|
20
22
|
import { DrawerTrigger } from "./trigger.js";
|
|
21
|
-
import { Tooltip as Tooltip$1 } from "../tooltip/index.js";
|
|
22
|
-
import { TooltipTrigger as TooltipTrigger$1 } from "../tooltip/trigger.js";
|
|
23
23
|
import "client-only";
|
|
24
24
|
import { useContext, useRef } from "react";
|
|
25
25
|
import { clsx } from "@accelint/design-foundation/lib/utils";
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
*/
|
|
12
12
|
|
|
13
13
|
import { DrawerMenuProps } from "./types.js";
|
|
14
|
-
import * as
|
|
14
|
+
import * as react_jsx_runtime77 from "react/jsx-runtime";
|
|
15
15
|
|
|
16
16
|
//#region src/components/drawer/menu.d.ts
|
|
17
17
|
|
|
@@ -39,7 +39,7 @@ declare function DrawerMenu({
|
|
|
39
39
|
position,
|
|
40
40
|
children,
|
|
41
41
|
...rest
|
|
42
|
-
}: DrawerMenuProps):
|
|
42
|
+
}: DrawerMenuProps): react_jsx_runtime77.JSX.Element;
|
|
43
43
|
//#endregion
|
|
44
44
|
export { DrawerMenu };
|
|
45
45
|
//# sourceMappingURL=menu.d.ts.map
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
*/
|
|
12
12
|
|
|
13
13
|
import { ComponentPropsWithRef } from "react";
|
|
14
|
-
import * as
|
|
14
|
+
import * as react_jsx_runtime78 from "react/jsx-runtime";
|
|
15
15
|
|
|
16
16
|
//#region src/components/drawer/panel.d.ts
|
|
17
17
|
|
|
@@ -36,7 +36,7 @@ import * as react_jsx_runtime23 from "react/jsx-runtime";
|
|
|
36
36
|
declare function DrawerPanel({
|
|
37
37
|
className,
|
|
38
38
|
...rest
|
|
39
|
-
}: ComponentPropsWithRef<'div'>):
|
|
39
|
+
}: ComponentPropsWithRef<'div'>): react_jsx_runtime78.JSX.Element;
|
|
40
40
|
//#endregion
|
|
41
41
|
export { DrawerPanel };
|
|
42
42
|
//# sourceMappingURL=panel.d.ts.map
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
|
|
13
13
|
import { DrawerTriggerProps } from "./types.js";
|
|
14
14
|
import "client-only";
|
|
15
|
-
import * as
|
|
15
|
+
import * as react_jsx_runtime79 from "react/jsx-runtime";
|
|
16
16
|
|
|
17
17
|
//#region src/components/drawer/trigger.d.ts
|
|
18
18
|
|
|
@@ -47,7 +47,7 @@ import * as react_jsx_runtime27 from "react/jsx-runtime";
|
|
|
47
47
|
declare function DrawerTrigger({
|
|
48
48
|
for: events,
|
|
49
49
|
...rest
|
|
50
|
-
}: DrawerTriggerProps):
|
|
50
|
+
}: DrawerTriggerProps): react_jsx_runtime79.JSX.Element;
|
|
51
51
|
//#endregion
|
|
52
52
|
export { DrawerTrigger };
|
|
53
53
|
//# sourceMappingURL=trigger.d.ts.map
|
|
@@ -16,8 +16,8 @@ import { ViewStackEvent } from "../view-stack/types.js";
|
|
|
16
16
|
import { DrawerEventTypes } from "./events.js";
|
|
17
17
|
import { ComponentPropsWithRef, DOMAttributes, ReactElement, RefAttributes } from "react";
|
|
18
18
|
import { HeadingProps } from "react-aria-components";
|
|
19
|
-
import { Payload } from "@accelint/bus";
|
|
20
19
|
import { UniqueId } from "@accelint/core";
|
|
20
|
+
import { Payload } from "@accelint/bus";
|
|
21
21
|
import { FocusableElement } from "@react-types/shared";
|
|
22
22
|
|
|
23
23
|
//#region src/components/drawer/types.d.ts
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
import { ViewStackViewProps } from "../view-stack/types.js";
|
|
14
14
|
import "client-only";
|
|
15
15
|
import { ComponentPropsWithRef } from "react";
|
|
16
|
-
import * as
|
|
16
|
+
import * as react_jsx_runtime80 from "react/jsx-runtime";
|
|
17
17
|
|
|
18
18
|
//#region src/components/drawer/view.d.ts
|
|
19
19
|
|
|
@@ -44,7 +44,7 @@ declare function DrawerView({
|
|
|
44
44
|
children,
|
|
45
45
|
className,
|
|
46
46
|
...rest
|
|
47
|
-
}: ViewStackViewProps & ComponentPropsWithRef<'div'>):
|
|
47
|
+
}: ViewStackViewProps & ComponentPropsWithRef<'div'>): react_jsx_runtime80.JSX.Element;
|
|
48
48
|
//#endregion
|
|
49
49
|
export { DrawerView };
|
|
50
50
|
//# sourceMappingURL=view.d.ts.map
|
|
@@ -12,14 +12,14 @@
|
|
|
12
12
|
|
|
13
13
|
import { FlashcardComponentProps, FlashcardDetailsListProps, FlashcardProps } from "./types.js";
|
|
14
14
|
import "client-only";
|
|
15
|
-
import * as
|
|
16
|
-
import * as
|
|
15
|
+
import * as react22 from "react";
|
|
16
|
+
import * as react_jsx_runtime83 from "react/jsx-runtime";
|
|
17
17
|
|
|
18
18
|
//#region src/components/flashcard/index.d.ts
|
|
19
19
|
/**
|
|
20
20
|
* Context for sharing Flashcard state across child components.
|
|
21
21
|
*/
|
|
22
|
-
declare const FlashcardContext:
|
|
22
|
+
declare const FlashcardContext: react22.Context<FlashcardProps>;
|
|
23
23
|
/**
|
|
24
24
|
* Flashcard - A quick visual identifier for map entity data.
|
|
25
25
|
*
|
|
@@ -46,7 +46,7 @@ declare const FlashcardContext: react14.Context<FlashcardProps>;
|
|
|
46
46
|
* </Flashcard>
|
|
47
47
|
* ```
|
|
48
48
|
*/
|
|
49
|
-
declare function Flashcard(props: FlashcardProps):
|
|
49
|
+
declare function Flashcard(props: FlashcardProps): react_jsx_runtime83.JSX.Element;
|
|
50
50
|
declare namespace Flashcard {
|
|
51
51
|
var displayName: string;
|
|
52
52
|
}
|
|
@@ -68,7 +68,7 @@ declare namespace Flashcard {
|
|
|
68
68
|
* </Flashcard>
|
|
69
69
|
* ```
|
|
70
70
|
*/
|
|
71
|
-
declare function FlashcardHero(props: FlashcardComponentProps):
|
|
71
|
+
declare function FlashcardHero(props: FlashcardComponentProps): react_jsx_runtime83.JSX.Element;
|
|
72
72
|
declare namespace FlashcardHero {
|
|
73
73
|
var displayName: string;
|
|
74
74
|
}
|
|
@@ -92,7 +92,7 @@ declare namespace FlashcardHero {
|
|
|
92
92
|
* </Flashcard>
|
|
93
93
|
* ```
|
|
94
94
|
*/
|
|
95
|
-
declare function FlashcardAdditionalData(props: FlashcardComponentProps):
|
|
95
|
+
declare function FlashcardAdditionalData(props: FlashcardComponentProps): react_jsx_runtime83.JSX.Element | null;
|
|
96
96
|
declare namespace FlashcardAdditionalData {
|
|
97
97
|
var displayName: string;
|
|
98
98
|
}
|
|
@@ -119,7 +119,7 @@ declare namespace FlashcardAdditionalData {
|
|
|
119
119
|
* </Flashcard>
|
|
120
120
|
* ```
|
|
121
121
|
*/
|
|
122
|
-
declare function FlashcardDetailsList(props: FlashcardDetailsListProps):
|
|
122
|
+
declare function FlashcardDetailsList(props: FlashcardDetailsListProps): react_jsx_runtime83.JSX.Element;
|
|
123
123
|
declare namespace FlashcardDetailsList {
|
|
124
124
|
var displayName: string;
|
|
125
125
|
}
|
|
@@ -141,7 +141,7 @@ declare namespace FlashcardDetailsList {
|
|
|
141
141
|
* </FlashcardDetailsList>
|
|
142
142
|
* ```
|
|
143
143
|
*/
|
|
144
|
-
declare function FlashcardDetailsLabel(props: FlashcardComponentProps):
|
|
144
|
+
declare function FlashcardDetailsLabel(props: FlashcardComponentProps): react_jsx_runtime83.JSX.Element;
|
|
145
145
|
declare namespace FlashcardDetailsLabel {
|
|
146
146
|
var displayName: string;
|
|
147
147
|
}
|
|
@@ -163,7 +163,7 @@ declare namespace FlashcardDetailsLabel {
|
|
|
163
163
|
* </FlashcardDetailsList>
|
|
164
164
|
* ```
|
|
165
165
|
*/
|
|
166
|
-
declare function FlashcardDetailsValue(props: FlashcardComponentProps):
|
|
166
|
+
declare function FlashcardDetailsValue(props: FlashcardComponentProps): react_jsx_runtime83.JSX.Element;
|
|
167
167
|
declare namespace FlashcardDetailsValue {
|
|
168
168
|
var displayName: string;
|
|
169
169
|
}
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* governing permissions and limitations under the License.
|
|
11
11
|
*/
|
|
12
12
|
|
|
13
|
-
import * as
|
|
13
|
+
import * as react33 from "react";
|
|
14
14
|
import { DockviewApi } from "dockview-react";
|
|
15
15
|
import { UniqueId } from "@accelint/core/utility/uuid";
|
|
16
16
|
|
|
@@ -22,7 +22,7 @@ type FloatingCardContextValue = {
|
|
|
22
22
|
closeCard: (id: UniqueId) => void;
|
|
23
23
|
api: DockviewApi | null;
|
|
24
24
|
};
|
|
25
|
-
declare const FloatingCardContext:
|
|
25
|
+
declare const FloatingCardContext: react33.Context<FloatingCardContextValue | null>;
|
|
26
26
|
/**
|
|
27
27
|
* Hook to access the floating card context.
|
|
28
28
|
* Must be used within a FloatingCardProvider.
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* governing permissions and limitations under the License.
|
|
11
11
|
*/
|
|
12
12
|
|
|
13
|
-
import * as
|
|
13
|
+
import * as react34 from "react";
|
|
14
14
|
import { PropsWithChildren } from "react";
|
|
15
15
|
import { UniqueId } from "@accelint/core";
|
|
16
16
|
|
|
@@ -59,7 +59,7 @@ declare function FloatingCard({
|
|
|
59
59
|
title,
|
|
60
60
|
isOpen,
|
|
61
61
|
initialDimensions
|
|
62
|
-
}: PropsWithChildren<FloatingCardProps>):
|
|
62
|
+
}: PropsWithChildren<FloatingCardProps>): react34.ReactPortal | null;
|
|
63
63
|
//#endregion
|
|
64
64
|
export { FloatingCard, FloatingCardProps };
|
|
65
65
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
*/
|
|
12
12
|
|
|
13
13
|
import { PropsWithChildren, ReactNode } from "react";
|
|
14
|
-
import * as
|
|
14
|
+
import * as react_jsx_runtime161 from "react/jsx-runtime";
|
|
15
15
|
|
|
16
16
|
//#region src/components/floating-card/provider.d.ts
|
|
17
17
|
/** A value that is either `T` directly, or a function that receives the active card id and returns `T`. */
|
|
@@ -58,7 +58,7 @@ declare function FloatingCardProvider({
|
|
|
58
58
|
icon,
|
|
59
59
|
headerActions,
|
|
60
60
|
className
|
|
61
|
-
}: FloatingCardProviderProps):
|
|
61
|
+
}: FloatingCardProviderProps): react_jsx_runtime161.JSX.Element;
|
|
62
62
|
//#endregion
|
|
63
63
|
export { FloatingCardProvider, FloatingCardProviderProps };
|
|
64
64
|
//# sourceMappingURL=provider.d.ts.map
|
|
@@ -11,14 +11,14 @@
|
|
|
11
11
|
*/
|
|
12
12
|
|
|
13
13
|
|
|
14
|
+
import { Icon } from "../icon/index.js";
|
|
15
|
+
import { Button } from "../button/index.js";
|
|
14
16
|
import { Divider } from "../divider/index.js";
|
|
15
17
|
import { FloatingCardContext, useFloatingCard } from "./context.js";
|
|
16
18
|
import { useCallback, useEffect, useMemo, useState } from "react";
|
|
17
19
|
import { clsx } from "@accelint/design-foundation/lib/utils";
|
|
18
20
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
19
21
|
import Cancel from "@accelint/icons/cancel";
|
|
20
|
-
import { Button } from "@accelint/design-toolkit/components/button";
|
|
21
|
-
import { Icon } from "@accelint/design-toolkit/components/icon";
|
|
22
22
|
import { DockviewReact } from "dockview-react";
|
|
23
23
|
import styles from "./styles.module.css";
|
|
24
24
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"provider.js","names":["CloseIcon","components: Record<string, FunctionComponent<IDockviewPanelProps>>"],"sources":["../../../src/components/floating-card/provider.tsx"],"sourcesContent":["/*\n * Copyright 2026 Hypergiant Galactic Systems Inc. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\nimport { clsx } from '@accelint/design-foundation/lib/utils';\nimport { Button } from '@accelint/design-toolkit/components/button';\nimport { Icon } from '@accelint/design-toolkit/components/icon';\nimport CloseIcon from '@accelint/icons/cancel';\nimport {\n type DockviewApi,\n DockviewReact,\n type DockviewReadyEvent,\n type IDockviewHeaderActionsProps,\n type IDockviewPanelProps,\n} from 'dockview-react';\nimport {\n type FunctionComponent,\n type PropsWithChildren,\n type ReactNode,\n useCallback,\n useEffect,\n useMemo,\n useState,\n} from 'react';\nimport { Divider } from '../divider';\nimport {\n FloatingCardContext,\n type FloatingCardContextValue,\n useFloatingCard,\n} from './context';\nimport styles from './styles.module.css';\nimport type { UniqueId } from '@accelint/core/utility/uuid';\n\n/** A value that is either `T` directly, or a function that receives the active card id and returns `T`. */\ntype MaybeFactory<T> = T | ((cardId: string) => T);\n\ntype FloatingCardHeaderProps = {\n id?: string;\n title?: string;\n icon?: ReactNode;\n closeGroup: () => void;\n headerActions?: (\n | {\n icon: ReactNode;\n onClick: () => void;\n }\n | 'divider'\n )[];\n};\n\n/**\n * Internal component that registers a DOM ref for a card container.\n * Used by the floating card engine to mount portal targets.\n */\nfunction FloatingCardContainer(props: Readonly<IDockviewPanelProps>) {\n const { addRef } = useFloatingCard();\n\n const refCallback = useCallback(\n (ref: HTMLDivElement | null) => {\n addRef(props.api.id as UniqueId, ref);\n },\n [addRef, props.api.id],\n );\n\n return <div className={styles.cardContent} ref={refCallback} />;\n}\n\n/**\n * Default left header showing an optional custom icon (or a placeholder) and the card's title.\n */\nfunction DefaultLeftHeader({\n title,\n icon,\n id,\n}: Readonly<FloatingCardHeaderProps>) {\n return (\n <div className={styles.headerSide}>\n {icon ? <Icon size='small'>{icon}</Icon> : null}\n {title && title !== id ? (\n <div className={styles.headerTitle}>{title}</div>\n ) : null}\n </div>\n );\n}\n\n/**\n * Default right header showing optional action buttons and an always-present close button.\n */\nfunction DefaultRightHeader({\n closeGroup,\n headerActions,\n id,\n}: Readonly<FloatingCardHeaderProps>) {\n return (\n <div className={styles.headerSide}>\n {headerActions?.map((action, index) => {\n if (action === 'divider') {\n return (\n // biome-ignore lint/suspicious/noArrayIndexKey: Using index as key is acceptable here because the order of actions is unlikely to change.\n <Divider key={`${id}-divider-${index}`} orientation='vertical' />\n );\n }\n return (\n <Button\n key={`${id}-${\n // biome-ignore lint/suspicious/noArrayIndexKey: Using index as key is acceptable here because the order of actions is unlikely to change.\n index\n }`}\n variant='icon'\n size='small'\n onClick={action.onClick}\n >\n <Icon>{action.icon}</Icon>\n </Button>\n );\n })}\n <Button variant='icon' size='small' onClick={closeGroup}>\n <Icon>\n <CloseIcon />\n </Icon>\n </Button>\n </div>\n );\n}\n\ntype HeaderAdapterOptions = {\n icon?: MaybeFactory<ReactNode>;\n headerActions?: MaybeFactory<FloatingCardHeaderProps['headerActions']>;\n};\n\n/**\n * Creates an adapter component to map Dockview's header action props to our custom header component props.\n */\nfunction createHeaderAdapter(\n Component: FunctionComponent<FloatingCardHeaderProps>,\n options?: HeaderAdapterOptions,\n): FunctionComponent<IDockviewHeaderActionsProps> {\n function HeaderAdapter(props: Readonly<IDockviewHeaderActionsProps>) {\n const panelId = props.panels[0]?.id ?? '';\n const [title, setTitle] = useState(props.activePanel?.title);\n\n useEffect(() => {\n const panel = props.activePanel;\n\n if (!panel) {\n return;\n }\n\n setTitle(panel.title);\n\n const disposable = panel.api.onDidTitleChange(() => {\n setTitle(panel.title);\n });\n\n return () => {\n disposable.dispose();\n };\n }, [props.activePanel]);\n const icon = props.activePanel\n ? typeof options?.icon === 'function'\n ? options.icon(panelId)\n : options?.icon\n : undefined;\n const headerActions =\n typeof options?.headerActions === 'function'\n ? options.headerActions(panelId)\n : options?.headerActions;\n return (\n <Component\n icon={icon}\n headerActions={headerActions}\n title={title}\n id={props.activePanel?.id}\n closeGroup={() => props.api.close()}\n />\n );\n }\n\n HeaderAdapter.displayName = `HeaderAdapter(${Component.displayName ?? Component.name ?? 'Anonymous'})`;\n return HeaderAdapter;\n}\n\nexport type FloatingCardProviderProps = Readonly<\n PropsWithChildren<{\n /**\n * Optional icon rendered at the very start of the floating card header.\n * Can be a `ReactNode` or a function `(cardId: string) => ReactNode`.\n */\n icon?: MaybeFactory<ReactNode>;\n /**\n * Optional action buttons rendered in the floating card header before the close button.\n * Can include dividers to separate groups of actions.\n * Can be an array or a function `(cardId: string) => array` to return\n * per-floating card actions.\n */\n headerActions?: MaybeFactory<\n (\n | {\n icon: ReactNode;\n onClick: () => void;\n }\n | 'divider'\n )[]\n >;\n className?: string;\n }>\n>;\n\nconst components: Record<string, FunctionComponent<IDockviewPanelProps>> = {\n default: FloatingCardContainer,\n};\n\n/**\n * Provides a context and layout area for floating cards within the application.\n *\n * Wraps its children with floating card context and renders a floating card engine instance\n * to manage docking and layout.\n *\n * @param props - The props for the FloatingCardProvider component.\n * @param props.children - Child components rendered inside the floating card provider.\n * @param props.icon - Optional icon.\n * @param props.headerActions - Optional actions for the header.\n * @param props.className - Additional CSS class names for styling.\n *\n * @returns The FloatingCardProvider component that manages floating card layout and context.\n *\n * @remarks\n * - Manages registration and unregistration of floating card references.\n * - Exposes `closeCard` via context for child components.\n * - Ensures floating cards are bounded within the viewport.\n */\nexport function FloatingCardProvider({\n children,\n icon,\n headerActions,\n className,\n}: FloatingCardProviderProps) {\n const [api, setApi] = useState<DockviewApi | null>(null);\n const [cards, setCards] = useState<Record<UniqueId, HTMLDivElement>>({});\n\n const closeCard = useCallback(\n (id: UniqueId) => {\n api?.getPanel(id)?.api.close();\n },\n [api],\n );\n\n const removeRef = useCallback((view: UniqueId) => {\n setCards((prev) => {\n const newCards = { ...prev };\n delete newCards[view];\n return newCards;\n });\n }, []);\n\n const addRef = useCallback((id: UniqueId, ref: HTMLDivElement | null) => {\n if (ref) {\n setCards((prev) => {\n if (prev[id]) {\n return prev;\n }\n return { ...prev, [id]: ref };\n });\n }\n }, []);\n\n // Clean up stale refs when cards are removed via any path\n // (drag close, group close, API close, etc.)\n useEffect(() => {\n if (!api) {\n return;\n }\n\n const disposable = api.onDidRemovePanel((event) => {\n removeRef(event.id as UniqueId);\n });\n\n return () => {\n disposable.dispose();\n };\n }, [api, removeRef]);\n\n const contextValue = useMemo<FloatingCardContextValue>(\n () => ({\n cards,\n addRef,\n removeRef,\n closeCard,\n api,\n }),\n [cards, closeCard, removeRef, api, addRef],\n );\n\n const leftAdapter = useMemo(\n () => createHeaderAdapter(DefaultLeftHeader, { icon }),\n [icon],\n );\n\n const rightAdapter = useMemo(\n () => createHeaderAdapter(DefaultRightHeader, { headerActions }),\n [headerActions],\n );\n\n const theme = useMemo(\n () => ({\n name: 'accelint',\n className: styles.floatingCardProvider ?? '',\n }),\n [],\n );\n\n const onReady = useCallback((event: DockviewReadyEvent) => {\n setApi(event.api);\n }, []);\n\n return (\n <FloatingCardContext.Provider value={contextValue}>\n <div className={clsx(styles.providerRoot, className)}>\n <DockviewReact\n locked\n floatingGroupBounds={'boundedWithinViewport'}\n components={components}\n prefixHeaderActionsComponent={leftAdapter}\n rightHeaderActionsComponent={rightAdapter}\n onReady={onReady}\n theme={theme}\n />\n {children}\n </div>\n </FloatingCardContext.Provider>\n );\n}\n"],"mappings":"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"}
|
|
1
|
+
{"version":3,"file":"provider.js","names":["CloseIcon","components: Record<string, FunctionComponent<IDockviewPanelProps>>"],"sources":["../../../src/components/floating-card/provider.tsx"],"sourcesContent":["/*\n * Copyright 2026 Hypergiant Galactic Systems Inc. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\nimport { clsx } from '@accelint/design-foundation/lib/utils';\nimport CloseIcon from '@accelint/icons/cancel';\nimport {\n type DockviewApi,\n DockviewReact,\n type DockviewReadyEvent,\n type IDockviewHeaderActionsProps,\n type IDockviewPanelProps,\n} from 'dockview-react';\nimport {\n type FunctionComponent,\n type PropsWithChildren,\n type ReactNode,\n useCallback,\n useEffect,\n useMemo,\n useState,\n} from 'react';\nimport { Button } from '../button';\nimport { Divider } from '../divider';\nimport { Icon } from '../icon';\nimport {\n FloatingCardContext,\n type FloatingCardContextValue,\n useFloatingCard,\n} from './context';\nimport styles from './styles.module.css';\nimport type { UniqueId } from '@accelint/core/utility/uuid';\n\n/** A value that is either `T` directly, or a function that receives the active card id and returns `T`. */\ntype MaybeFactory<T> = T | ((cardId: string) => T);\n\ntype FloatingCardHeaderProps = {\n id?: string;\n title?: string;\n icon?: ReactNode;\n closeGroup: () => void;\n headerActions?: (\n | {\n icon: ReactNode;\n onClick: () => void;\n }\n | 'divider'\n )[];\n};\n\n/**\n * Internal component that registers a DOM ref for a card container.\n * Used by the floating card engine to mount portal targets.\n */\nfunction FloatingCardContainer(props: Readonly<IDockviewPanelProps>) {\n const { addRef } = useFloatingCard();\n\n const refCallback = useCallback(\n (ref: HTMLDivElement | null) => {\n addRef(props.api.id as UniqueId, ref);\n },\n [addRef, props.api.id],\n );\n\n return <div className={styles.cardContent} ref={refCallback} />;\n}\n\n/**\n * Default left header showing an optional custom icon (or a placeholder) and the card's title.\n */\nfunction DefaultLeftHeader({\n title,\n icon,\n id,\n}: Readonly<FloatingCardHeaderProps>) {\n return (\n <div className={styles.headerSide}>\n {icon ? <Icon size='small'>{icon}</Icon> : null}\n {title && title !== id ? (\n <div className={styles.headerTitle}>{title}</div>\n ) : null}\n </div>\n );\n}\n\n/**\n * Default right header showing optional action buttons and an always-present close button.\n */\nfunction DefaultRightHeader({\n closeGroup,\n headerActions,\n id,\n}: Readonly<FloatingCardHeaderProps>) {\n return (\n <div className={styles.headerSide}>\n {headerActions?.map((action, index) => {\n if (action === 'divider') {\n return (\n // biome-ignore lint/suspicious/noArrayIndexKey: Using index as key is acceptable here because the order of actions is unlikely to change.\n <Divider key={`${id}-divider-${index}`} orientation='vertical' />\n );\n }\n return (\n <Button\n key={`${id}-${\n // biome-ignore lint/suspicious/noArrayIndexKey: Using index as key is acceptable here because the order of actions is unlikely to change.\n index\n }`}\n variant='icon'\n size='small'\n onClick={action.onClick}\n >\n <Icon>{action.icon}</Icon>\n </Button>\n );\n })}\n <Button variant='icon' size='small' onClick={closeGroup}>\n <Icon>\n <CloseIcon />\n </Icon>\n </Button>\n </div>\n );\n}\n\ntype HeaderAdapterOptions = {\n icon?: MaybeFactory<ReactNode>;\n headerActions?: MaybeFactory<FloatingCardHeaderProps['headerActions']>;\n};\n\n/**\n * Creates an adapter component to map Dockview's header action props to our custom header component props.\n */\nfunction createHeaderAdapter(\n Component: FunctionComponent<FloatingCardHeaderProps>,\n options?: HeaderAdapterOptions,\n): FunctionComponent<IDockviewHeaderActionsProps> {\n function HeaderAdapter(props: Readonly<IDockviewHeaderActionsProps>) {\n const panelId = props.panels[0]?.id ?? '';\n const [title, setTitle] = useState(props.activePanel?.title);\n\n useEffect(() => {\n const panel = props.activePanel;\n\n if (!panel) {\n return;\n }\n\n setTitle(panel.title);\n\n const disposable = panel.api.onDidTitleChange(() => {\n setTitle(panel.title);\n });\n\n return () => {\n disposable.dispose();\n };\n }, [props.activePanel]);\n const icon = props.activePanel\n ? typeof options?.icon === 'function'\n ? options.icon(panelId)\n : options?.icon\n : undefined;\n const headerActions =\n typeof options?.headerActions === 'function'\n ? options.headerActions(panelId)\n : options?.headerActions;\n return (\n <Component\n icon={icon}\n headerActions={headerActions}\n title={title}\n id={props.activePanel?.id}\n closeGroup={() => props.api.close()}\n />\n );\n }\n\n HeaderAdapter.displayName = `HeaderAdapter(${Component.displayName ?? Component.name ?? 'Anonymous'})`;\n return HeaderAdapter;\n}\n\nexport type FloatingCardProviderProps = Readonly<\n PropsWithChildren<{\n /**\n * Optional icon rendered at the very start of the floating card header.\n * Can be a `ReactNode` or a function `(cardId: string) => ReactNode`.\n */\n icon?: MaybeFactory<ReactNode>;\n /**\n * Optional action buttons rendered in the floating card header before the close button.\n * Can include dividers to separate groups of actions.\n * Can be an array or a function `(cardId: string) => array` to return\n * per-floating card actions.\n */\n headerActions?: MaybeFactory<\n (\n | {\n icon: ReactNode;\n onClick: () => void;\n }\n | 'divider'\n )[]\n >;\n className?: string;\n }>\n>;\n\nconst components: Record<string, FunctionComponent<IDockviewPanelProps>> = {\n default: FloatingCardContainer,\n};\n\n/**\n * Provides a context and layout area for floating cards within the application.\n *\n * Wraps its children with floating card context and renders a floating card engine instance\n * to manage docking and layout.\n *\n * @param props - The props for the FloatingCardProvider component.\n * @param props.children - Child components rendered inside the floating card provider.\n * @param props.icon - Optional icon.\n * @param props.headerActions - Optional actions for the header.\n * @param props.className - Additional CSS class names for styling.\n *\n * @returns The FloatingCardProvider component that manages floating card layout and context.\n *\n * @remarks\n * - Manages registration and unregistration of floating card references.\n * - Exposes `closeCard` via context for child components.\n * - Ensures floating cards are bounded within the viewport.\n */\nexport function FloatingCardProvider({\n children,\n icon,\n headerActions,\n className,\n}: FloatingCardProviderProps) {\n const [api, setApi] = useState<DockviewApi | null>(null);\n const [cards, setCards] = useState<Record<UniqueId, HTMLDivElement>>({});\n\n const closeCard = useCallback(\n (id: UniqueId) => {\n api?.getPanel(id)?.api.close();\n },\n [api],\n );\n\n const removeRef = useCallback((view: UniqueId) => {\n setCards((prev) => {\n const newCards = { ...prev };\n delete newCards[view];\n return newCards;\n });\n }, []);\n\n const addRef = useCallback((id: UniqueId, ref: HTMLDivElement | null) => {\n if (ref) {\n setCards((prev) => {\n if (prev[id]) {\n return prev;\n }\n return { ...prev, [id]: ref };\n });\n }\n }, []);\n\n // Clean up stale refs when cards are removed via any path\n // (drag close, group close, API close, etc.)\n useEffect(() => {\n if (!api) {\n return;\n }\n\n const disposable = api.onDidRemovePanel((event) => {\n removeRef(event.id as UniqueId);\n });\n\n return () => {\n disposable.dispose();\n };\n }, [api, removeRef]);\n\n const contextValue = useMemo<FloatingCardContextValue>(\n () => ({\n cards,\n addRef,\n removeRef,\n closeCard,\n api,\n }),\n [cards, closeCard, removeRef, api, addRef],\n );\n\n const leftAdapter = useMemo(\n () => createHeaderAdapter(DefaultLeftHeader, { icon }),\n [icon],\n );\n\n const rightAdapter = useMemo(\n () => createHeaderAdapter(DefaultRightHeader, { headerActions }),\n [headerActions],\n );\n\n const theme = useMemo(\n () => ({\n name: 'accelint',\n className: styles.floatingCardProvider ?? '',\n }),\n [],\n );\n\n const onReady = useCallback((event: DockviewReadyEvent) => {\n setApi(event.api);\n }, []);\n\n return (\n <FloatingCardContext.Provider value={contextValue}>\n <div className={clsx(styles.providerRoot, className)}>\n <DockviewReact\n locked\n floatingGroupBounds={'boundedWithinViewport'}\n components={components}\n prefixHeaderActionsComponent={leftAdapter}\n rightHeaderActionsComponent={rightAdapter}\n onReady={onReady}\n theme={theme}\n />\n {children}\n </div>\n </FloatingCardContext.Provider>\n );\n}\n"],"mappings":"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"}
|
|
@@ -12,14 +12,14 @@
|
|
|
12
12
|
|
|
13
13
|
import { HeroProps } from "./types.js";
|
|
14
14
|
import "client-only";
|
|
15
|
-
import * as
|
|
15
|
+
import * as react35 from "react";
|
|
16
16
|
import { ContextValue } from "react-aria-components";
|
|
17
17
|
|
|
18
18
|
//#region src/components/hero/context.d.ts
|
|
19
19
|
/**
|
|
20
20
|
* Context for sharing Hero props across component tree.
|
|
21
21
|
*/
|
|
22
|
-
declare const HeroContext:
|
|
22
|
+
declare const HeroContext: react35.Context<ContextValue<HeroProps, HTMLElement>>;
|
|
23
23
|
//#endregion
|
|
24
24
|
export { HeroContext };
|
|
25
25
|
//# sourceMappingURL=context.d.ts.map
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
|
|
13
13
|
import { HeroProps } from "./types.js";
|
|
14
14
|
import "client-only";
|
|
15
|
-
import * as
|
|
15
|
+
import * as react_jsx_runtime167 from "react/jsx-runtime";
|
|
16
16
|
|
|
17
17
|
//#region src/components/hero/index.d.ts
|
|
18
18
|
|
|
@@ -56,7 +56,7 @@ import * as react_jsx_runtime41 from "react/jsx-runtime";
|
|
|
56
56
|
declare function Hero({
|
|
57
57
|
ref,
|
|
58
58
|
...props
|
|
59
|
-
}: HeroProps):
|
|
59
|
+
}: HeroProps): react_jsx_runtime167.JSX.Element;
|
|
60
60
|
//#endregion
|
|
61
61
|
export { Hero };
|
|
62
62
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -11,8 +11,8 @@
|
|
|
11
11
|
*/
|
|
12
12
|
|
|
13
13
|
import "client-only";
|
|
14
|
-
import * as
|
|
15
|
-
import * as
|
|
14
|
+
import * as react38 from "react";
|
|
15
|
+
import * as react_aria_components1 from "react-aria-components";
|
|
16
16
|
|
|
17
17
|
//#region src/components/hero/subtitle.d.ts
|
|
18
18
|
/**
|
|
@@ -30,7 +30,7 @@ import * as react_aria_components0 from "react-aria-components";
|
|
|
30
30
|
* </Hero>
|
|
31
31
|
* ```
|
|
32
32
|
*/
|
|
33
|
-
declare const HeroSubtitle:
|
|
33
|
+
declare const HeroSubtitle: react38.ForwardRefExoticComponent<react_aria_components1.TextProps & react38.RefAttributes<HTMLElement>>;
|
|
34
34
|
//#endregion
|
|
35
35
|
export { HeroSubtitle };
|
|
36
36
|
//# sourceMappingURL=subtitle.d.ts.map
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
*/
|
|
12
12
|
|
|
13
13
|
import "client-only";
|
|
14
|
-
import * as
|
|
14
|
+
import * as react36 from "react";
|
|
15
15
|
import * as react_aria_components0 from "react-aria-components";
|
|
16
16
|
|
|
17
17
|
//#region src/components/hero/title.d.ts
|
|
@@ -28,7 +28,7 @@ import * as react_aria_components0 from "react-aria-components";
|
|
|
28
28
|
* </Hero>
|
|
29
29
|
* ```
|
|
30
30
|
*/
|
|
31
|
-
declare const HeroTitle:
|
|
31
|
+
declare const HeroTitle: react36.ForwardRefExoticComponent<react_aria_components0.HeadingProps & react36.RefAttributes<HTMLHeadingElement>>;
|
|
32
32
|
//#endregion
|
|
33
33
|
export { HeroTitle };
|
|
34
34
|
//# sourceMappingURL=title.d.ts.map
|
|
@@ -13,15 +13,15 @@
|
|
|
13
13
|
import { ProviderProps } from "../../lib/types.js";
|
|
14
14
|
import { HotkeyProps } from "./types.js";
|
|
15
15
|
import "client-only";
|
|
16
|
-
import * as
|
|
16
|
+
import * as react40 from "react";
|
|
17
17
|
import { ContextValue } from "react-aria-components";
|
|
18
|
-
import * as
|
|
18
|
+
import * as react_jsx_runtime164 from "react/jsx-runtime";
|
|
19
19
|
|
|
20
20
|
//#region src/components/hotkey/context.d.ts
|
|
21
21
|
/**
|
|
22
22
|
* Context for sharing Hotkey props across component tree.
|
|
23
23
|
*/
|
|
24
|
-
declare const HotkeyContext:
|
|
24
|
+
declare const HotkeyContext: react40.Context<ContextValue<HotkeyProps, HTMLElement>>;
|
|
25
25
|
/**
|
|
26
26
|
* HotkeyProvider - Context provider for setting default Hotkey props.
|
|
27
27
|
*
|
|
@@ -42,7 +42,7 @@ declare const HotkeyContext: react21.Context<ContextValue<HotkeyProps, HTMLEleme
|
|
|
42
42
|
declare function HotkeyProvider({
|
|
43
43
|
children,
|
|
44
44
|
...props
|
|
45
|
-
}: ProviderProps<HotkeyProps>):
|
|
45
|
+
}: ProviderProps<HotkeyProps>): react_jsx_runtime164.JSX.Element;
|
|
46
46
|
//#endregion
|
|
47
47
|
export { HotkeyContext, HotkeyProvider };
|
|
48
48
|
//# sourceMappingURL=context.d.ts.map
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
|
|
13
13
|
import { HotkeyProps } from "./types.js";
|
|
14
14
|
import "client-only";
|
|
15
|
-
import * as
|
|
15
|
+
import * as react_jsx_runtime165 from "react/jsx-runtime";
|
|
16
16
|
|
|
17
17
|
//#region src/components/hotkey/index.d.ts
|
|
18
18
|
|
|
@@ -66,7 +66,7 @@ declare function Hotkey({
|
|
|
66
66
|
ref,
|
|
67
67
|
children,
|
|
68
68
|
...props
|
|
69
|
-
}: HotkeyProps):
|
|
69
|
+
}: HotkeyProps): react_jsx_runtime165.JSX.Element;
|
|
70
70
|
//#endregion
|
|
71
71
|
export { Hotkey };
|
|
72
72
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
|
|
13
13
|
import "client-only";
|
|
14
14
|
import { ComponentPropsWithRef } from "react";
|
|
15
|
-
import * as
|
|
15
|
+
import * as react_jsx_runtime32 from "react/jsx-runtime";
|
|
16
16
|
|
|
17
17
|
//#region src/components/hotkey/set.d.ts
|
|
18
18
|
|
|
@@ -37,7 +37,7 @@ import * as react_jsx_runtime100 from "react/jsx-runtime";
|
|
|
37
37
|
declare function HotkeySet({
|
|
38
38
|
className,
|
|
39
39
|
...rest
|
|
40
|
-
}: ComponentPropsWithRef<'div'>):
|
|
40
|
+
}: ComponentPropsWithRef<'div'>): react_jsx_runtime32.JSX.Element;
|
|
41
41
|
//#endregion
|
|
42
42
|
export { HotkeySet };
|
|
43
43
|
//# sourceMappingURL=set.d.ts.map
|