@accelint/design-toolkit 9.12.0 → 10.0.0
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 +1 -1
- 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/breadcrumbs/item.d.ts +2 -2
- 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/carousel/context.d.ts +4 -4
- package/dist/components/carousel/gallery.d.ts +2 -2
- package/dist/components/carousel/index.d.ts +2 -2
- package/dist/components/carousel/navigation.d.ts +3 -3
- package/dist/components/carousel/position.d.ts +2 -2
- package/dist/components/carousel/select.d.ts +2 -2
- package/dist/components/carousel/viewer.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 +2 -2
- package/dist/components/combobox-field/context.d.ts +4 -4
- package/dist/components/combobox-field/index.d.ts +2 -2
- 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/segment.d.ts +2 -2
- 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/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.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/view.d.ts +2 -2
- package/dist/components/flashcard/index.d.ts +9 -9
- package/dist/components/flashcard/index.js +1 -1
- package/dist/components/flashcard/index.js.map +1 -1
- package/dist/components/flashcard/styles.module.css +4 -0
- package/dist/components/floating-card/constants.d.ts +26 -0
- package/dist/components/floating-card/constants.js +40 -0
- package/dist/components/floating-card/constants.js.map +1 -0
- package/dist/components/floating-card/context.d.ts +38 -6
- package/dist/components/floating-card/context.js +24 -3
- package/dist/components/floating-card/context.js.map +1 -1
- package/dist/components/floating-card/hooks/use-card-layout.d.ts +36 -0
- package/dist/components/floating-card/hooks/use-card-layout.js +106 -0
- package/dist/components/floating-card/hooks/use-card-layout.js.map +1 -0
- package/dist/components/floating-card/hooks/use-drag.d.ts +62 -0
- package/dist/components/floating-card/hooks/use-drag.js +100 -0
- package/dist/components/floating-card/hooks/use-drag.js.map +1 -0
- package/dist/components/floating-card/hooks/use-mouse-interaction.d.ts +58 -0
- package/dist/components/floating-card/hooks/use-mouse-interaction.js +91 -0
- package/dist/components/floating-card/hooks/use-mouse-interaction.js.map +1 -0
- package/dist/components/floating-card/hooks/use-resize.d.ts +56 -0
- package/dist/components/floating-card/hooks/use-resize.js +98 -0
- package/dist/components/floating-card/hooks/use-resize.js.map +1 -0
- package/dist/components/floating-card/index.d.ts +6 -2
- package/dist/components/floating-card/index.js +24 -32
- package/dist/components/floating-card/index.js.map +1 -1
- package/dist/components/floating-card/panel.d.ts +69 -0
- package/dist/components/floating-card/panel.js +111 -0
- package/dist/components/floating-card/panel.js.map +1 -0
- package/dist/components/floating-card/provider.d.ts +10 -6
- package/dist/components/floating-card/provider.js +159 -153
- package/dist/components/floating-card/provider.js.map +1 -1
- package/dist/components/floating-card/styles.module.css +93 -39
- package/dist/components/floating-card/types.d.ts +51 -10
- package/dist/components/floating-card/utils.d.ts +8 -85
- package/dist/components/floating-card/utils.js +12 -38
- package/dist/components/floating-card/utils.js.map +1 -1
- package/dist/components/gantt/components/base-elements/range.d.ts +2 -2
- package/dist/components/gantt/components/containers/external/gantt-panel-container/index.d.ts +2 -2
- package/dist/components/gantt/components/containers/internal/index.d.ts +2 -2
- package/dist/components/gantt/components/containers/internal/layout-container/index.d.ts +2 -2
- package/dist/components/gantt/components/containers/internal/virtualized-content-height-container/index.d.ts +2 -2
- package/dist/components/gantt/components/content-row/block.d.ts +2 -2
- package/dist/components/gantt/components/content-row/bracket.d.ts +3 -3
- package/dist/components/gantt/components/content-row/icon-marker.d.ts +2 -2
- package/dist/components/gantt/components/content-row/index.d.ts +2 -2
- package/dist/components/gantt/components/content-row/marker.d.ts +2 -2
- package/dist/components/gantt/components/content-row/spacer.d.ts +2 -2
- package/dist/components/gantt/components/current-time/index.d.ts +2 -2
- package/dist/components/gantt/components/header/index.d.ts +3 -3
- package/dist/components/gantt/components/panel-row/index.d.ts +2 -2
- package/dist/components/gantt/components/rows-virtualizer/index.d.ts +3 -3
- package/dist/components/gantt/components/timeline/index.d.ts +2 -2
- package/dist/components/gantt/context/index.d.ts +4 -4
- package/dist/components/gantt/context/store/index.d.ts +4 -4
- package/dist/components/gantt/context/temporal-data/index.d.ts +4 -4
- package/dist/components/gantt/hooks/use-layout-subscription/index.js +8 -8
- package/dist/components/gantt/hooks/use-layout-subscription/index.js.map +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/hotkey/context.d.ts +2 -2
- 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/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 +2 -2
- package/dist/components/notice/index.d.ts +3 -2
- package/dist/components/notice/index.js +3 -3
- package/dist/components/notice/index.js.map +1 -1
- package/dist/components/notice/list.d.ts +2 -2
- package/dist/components/notice/list.js +14 -5
- package/dist/components/notice/list.js.map +1 -1
- package/dist/components/notice/notice-icon.d.ts +2 -2
- package/dist/components/notice/types.d.ts +6 -5
- package/dist/components/notice/utils.d.ts +11 -1
- package/dist/components/notice/utils.js +16 -1
- package/dist/components/notice/utils.js.map +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 +2 -2
- package/dist/components/options/item.d.ts +2 -2
- package/dist/components/options/section.d.ts +2 -2
- package/dist/components/pagination/context.d.ts +2 -2
- package/dist/components/pagination/index.d.ts +2 -2
- package/dist/components/pagination/next.d.ts +2 -2
- package/dist/components/pagination/pages.d.ts +2 -2
- package/dist/components/pagination/prev.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/skeleton/index.d.ts +2 -2
- package/dist/components/slider/index.d.ts +2 -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 +4 -3
- package/dist/components/table/body.js.map +1 -1
- package/dist/components/table/cell.d.ts +4 -3
- package/dist/components/table/cell.js.map +1 -1
- package/dist/components/table/context.d.ts +2 -2
- package/dist/components/table/features.d.ts +80 -0
- package/dist/components/table/features.js +61 -0
- package/dist/components/table/features.js.map +1 -0
- package/dist/components/table/header-cell.d.ts +4 -3
- package/dist/components/table/header-cell.js.map +1 -1
- package/dist/components/table/header.d.ts +4 -3
- package/dist/components/table/header.js.map +1 -1
- package/dist/components/table/index.d.ts +2 -2
- package/dist/components/table/index.js +40 -49
- package/dist/components/table/index.js.map +1 -1
- package/dist/components/table/row-ordering-feature.d.ts +88 -0
- package/dist/components/table/row-ordering-feature.js +115 -0
- package/dist/components/table/row-ordering-feature.js.map +1 -0
- package/dist/components/table/row.d.ts +4 -3
- package/dist/components/table/row.js.map +1 -1
- package/dist/components/table/types.d.ts +15 -13
- 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/time-field/styles.module.css +4 -0
- package/dist/components/tooltip/context.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/tree/context.d.ts +3 -3
- package/dist/components/tree/index.d.ts +2 -2
- 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-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 +2 -2
- 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/trigger.d.ts +2 -2
- package/dist/components/view-stack/view.d.ts +2 -2
- package/dist/index.d.ts +5 -3
- package/dist/index.js +4 -2
- package/dist/providers/portal.d.ts +2 -2
- package/dist/providers/theme-provider.d.ts +2 -2
- package/package.json +20 -14
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
|
|
13
13
|
import { NoticeListProps } from "./types.js";
|
|
14
14
|
import "client-only";
|
|
15
|
-
import * as
|
|
15
|
+
import * as react_jsx_runtime55 from "react/jsx-runtime";
|
|
16
16
|
|
|
17
17
|
//#region src/components/notice/list.d.ts
|
|
18
18
|
|
|
@@ -55,7 +55,7 @@ declare function NoticeList({
|
|
|
55
55
|
placement,
|
|
56
56
|
size,
|
|
57
57
|
...rest
|
|
58
|
-
}: NoticeListProps):
|
|
58
|
+
}: NoticeListProps): react_jsx_runtime55.JSX.Element;
|
|
59
59
|
//#endregion
|
|
60
60
|
export { NoticeList };
|
|
61
61
|
//# sourceMappingURL=list.d.ts.map
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
import { Button } from "../button/index.js";
|
|
17
17
|
import { NoticeEventTypes } from "./events.js";
|
|
18
18
|
import { Notice } from "./index.js";
|
|
19
|
-
import {
|
|
19
|
+
import { matchesDequeueFilter } from "./utils.js";
|
|
20
20
|
import "client-only";
|
|
21
21
|
import { createElement, useEffect, useMemo, useRef, useState } from "react";
|
|
22
22
|
import { clsx } from "@accelint/design-foundation/lib/utils";
|
|
@@ -90,7 +90,7 @@ function NoticeList({ id, classNames, defaultColor, defaultTimeout, hideClearAll
|
|
|
90
90
|
});
|
|
91
91
|
useOn$1(NoticeEventTypes.dequeue, (data) => {
|
|
92
92
|
const queuedNotices = queue.queue;
|
|
93
|
-
const dequeue = queuedNotices.filter((toast) =>
|
|
93
|
+
const dequeue = queuedNotices.filter((toast) => matchesDequeueFilter(data.payload, toast.content));
|
|
94
94
|
if (dequeue.length && dequeue.length === queuedNotices.length) queue.clear();
|
|
95
95
|
else for (const toast of dequeue) queue.close(toast.key);
|
|
96
96
|
});
|
|
@@ -110,12 +110,21 @@ function NoticeList({ id, classNames, defaultColor, defaultTimeout, hideClearAll
|
|
|
110
110
|
showClose: !(toast.timeout && toast.content.primary && toast.content.secondary),
|
|
111
111
|
classNames: classNames?.notice,
|
|
112
112
|
size,
|
|
113
|
-
onPrimaryAction: () => emitActionPrimary({
|
|
114
|
-
|
|
113
|
+
onPrimaryAction: () => emitActionPrimary({
|
|
114
|
+
id: toast.content.id,
|
|
115
|
+
metadata: toast.content.metadata
|
|
116
|
+
}),
|
|
117
|
+
onSecondaryAction: () => emitActionSecondary({
|
|
118
|
+
id: toast.content.id,
|
|
119
|
+
metadata: toast.content.metadata
|
|
120
|
+
}),
|
|
115
121
|
onClose: () => {
|
|
116
122
|
toast.onClose?.();
|
|
117
123
|
queue.close(toast.key);
|
|
118
|
-
emitClose({
|
|
124
|
+
emitClose({
|
|
125
|
+
id: toast.content.id,
|
|
126
|
+
metadata: toast.content.metadata
|
|
127
|
+
});
|
|
119
128
|
}
|
|
120
129
|
})
|
|
121
130
|
})] });
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list.js","names":["ToastQueue","useEmit","ToastList","ToastRegion","ToastStateContext"],"sources":["../../../src/components/notice/list.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\n'use client';\n\nimport { useBus } from '@accelint/bus/react';\nimport { uuid } from '@accelint/core';\nimport { useToastRegion } from 'react-aria/useToast';\nimport { useToastQueue } from 'react-stately/useToastState';\nimport 'client-only';\nimport { clsx } from '@accelint/design-foundation/lib/utils';\nimport { useEffect, useMemo, useRef, useState } from 'react';\nimport { flushSync } from 'react-dom';\nimport {\n type QueuedToast,\n UNSTABLE_ToastList as ToastList,\n UNSTABLE_ToastQueue as ToastQueue,\n UNSTABLE_ToastRegion as ToastRegion,\n UNSTABLE_ToastStateContext as ToastStateContext,\n} from 'react-aria-components/Toast';\nimport { Button } from '../button';\nimport { Notice } from './';\nimport { NoticeEventTypes } from './events';\nimport styles from './styles.module.css';\nimport {
|
|
1
|
+
{"version":3,"file":"list.js","names":["ToastQueue","useEmit","ToastList","ToastRegion","ToastStateContext"],"sources":["../../../src/components/notice/list.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\n'use client';\n\nimport { useBus } from '@accelint/bus/react';\nimport { uuid } from '@accelint/core';\nimport { useToastRegion } from 'react-aria/useToast';\nimport { useToastQueue } from 'react-stately/useToastState';\nimport 'client-only';\nimport { clsx } from '@accelint/design-foundation/lib/utils';\nimport { useEffect, useMemo, useRef, useState } from 'react';\nimport { flushSync } from 'react-dom';\nimport {\n type QueuedToast,\n UNSTABLE_ToastList as ToastList,\n UNSTABLE_ToastQueue as ToastQueue,\n UNSTABLE_ToastRegion as ToastRegion,\n UNSTABLE_ToastStateContext as ToastStateContext,\n} from 'react-aria-components/Toast';\nimport { Button } from '../button';\nimport { Notice } from './';\nimport { NoticeEventTypes } from './events';\nimport styles from './styles.module.css';\nimport { matchesDequeueFilter } from './utils';\nimport type {\n NoticeActionEvent,\n NoticeContent,\n NoticeDequeueEvent,\n NoticeListProps,\n NoticeQueueEvent,\n} from './types';\nimport { composeRenderProps } from 'react-aria-components/composeRenderProps';\n\n/**\n * NoticeList - Queue manager for displaying multiple notices\n *\n * Manages a FIFO queue of notices with automatic timeout and dismissal.\n * New notices push out older ones when the limit is reached.\n * Uses event-driven communication via the bus system.\n *\n * @example\n * ```tsx\n * <NoticeList\n * aria-label=\"notifications\"\n * placement=\"top right\"\n * limit={3}\n * />\n * ```\n *\n * @param props - {@link NoticeListProps}\n * @param props.id - Unique identifier for targeting notices to this list.\n * @param props.classNames - CSS class names for list elements.\n * @param props.defaultColor - Default color for notices without explicit color.\n * @param props.defaultTimeout - Default timeout for notices without explicit timeout.\n * @param props.hideClearAll - Whether to hide the \"Clear All\" button.\n * @param props.limit - Maximum number of visible notices.\n * @param props.global - Whether to use global ToastRegion for portal rendering.\n * @param props.placement - Position of the notice list on screen.\n * @param props.size - Size variant for notices in the list.\n * @returns The rendered NoticeList component.\n */\nexport function NoticeList({\n id,\n classNames,\n defaultColor,\n defaultTimeout,\n hideClearAll,\n limit = 3,\n global,\n placement,\n size = 'medium',\n ...rest\n}: NoticeListProps) {\n const queue = useMemo(\n () =>\n new ToastQueue<NoticeContent>({\n maxVisibleToasts: limit,\n wrapUpdate(fn) {\n if ('startViewTransition' in document) {\n document.startViewTransition(() => {\n flushSync(fn);\n });\n } else {\n fn();\n }\n },\n }),\n [limit],\n );\n const state = useToastQueue(queue);\n\n const [hasNotices, setHasNotices] = useState(false);\n const ref = useRef(null);\n const { regionProps } = useToastRegion(rest, queue, ref);\n\n const { useEmit, useOn } = useBus<\n NoticeQueueEvent | NoticeDequeueEvent | NoticeActionEvent\n >();\n const emitActionPrimary = useEmit(NoticeEventTypes.actionPrimary);\n const emitActionSecondary = useEmit(NoticeEventTypes.actionSecondary);\n const emitClose = useEmit(NoticeEventTypes.close);\n\n useOn(NoticeEventTypes.queue, (data) => {\n if (id ? data.payload.target === id : !data.payload.target) {\n const timeout = data.payload.timeout ?? defaultTimeout;\n queue.add(\n {\n ...data.payload,\n id: data.payload.id || uuid(),\n color: data.payload.color || defaultColor,\n },\n {\n timeout,\n },\n );\n if (timeout) {\n queue.resumeAll();\n }\n }\n });\n\n useOn(NoticeEventTypes.dequeue, (data) => {\n // @ts-expect-error : queue.queue exists, but is not currently documented\n const queuedNotices = queue.queue;\n\n const dequeue = queuedNotices.filter((toast: QueuedToast<NoticeContent>) =>\n matchesDequeueFilter(data.payload, toast.content),\n );\n\n if (dequeue.length && dequeue.length === queuedNotices.length) {\n queue.clear();\n } else {\n for (const toast of dequeue) {\n queue.close(toast.key);\n }\n }\n });\n\n useEffect(\n () =>\n queue.subscribe(() => {\n setHasNotices(queue.visibleToasts.length > 0);\n }),\n [queue],\n );\n\n const children = (\n <>\n {!hideClearAll && hasNotices && (\n <Button\n className={composeRenderProps(\n classNames?.button,\n (className) => className ?? '',\n )}\n variant='outline'\n onPress={() => queue.clear()}\n >\n Clear All\n </Button>\n )}\n <ToastList\n className={composeRenderProps(classNames?.list, (className) =>\n clsx(styles.list, className),\n )}\n >\n {({ toast }: { toast: QueuedToast<NoticeContent> }) => (\n <Notice\n {...toast.content}\n key={toast.key}\n showClose={\n !(\n toast.timeout &&\n toast.content.primary &&\n toast.content.secondary\n )\n }\n classNames={classNames?.notice}\n size={size}\n onPrimaryAction={() =>\n emitActionPrimary({\n id: toast.content.id,\n metadata: toast.content.metadata,\n })\n }\n onSecondaryAction={() =>\n emitActionSecondary({\n id: toast.content.id,\n metadata: toast.content.metadata,\n })\n }\n onClose={() => {\n toast.onClose?.();\n queue.close(toast.key);\n emitClose({\n id: toast.content.id,\n metadata: toast.content.metadata,\n });\n }}\n />\n )}\n </ToastList>\n </>\n );\n\n return global ? (\n <ToastRegion\n className={clsx('group/region', styles.region, classNames?.region)}\n data-placement={placement}\n queue={queue}\n >\n {children}\n </ToastRegion>\n ) : (\n <div\n {...regionProps}\n className={clsx('group/region', styles.region, classNames?.region)}\n data-placement={placement}\n ref={ref}\n >\n <ToastStateContext.Provider value={state}>\n {children}\n </ToastStateContext.Provider>\n </div>\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAuEA,SAAgB,WAAW,EACzB,IACA,YACA,cACA,gBACA,cACA,QAAQ,GACR,QACA,WACA,OAAO,UACP,GAAG,QACe;CAClB,MAAM,QAAQ,cAEV,IAAIA,oBAA0B;EAC5B,kBAAkB;EAClB,WAAW,IAAI;AACb,OAAI,yBAAyB,SAC3B,UAAS,0BAA0B;AACjC,cAAU,GAAG;KACb;OAEF,KAAI;;EAGT,CAAC,EACJ,CAAC,MAAM,CACR;CACD,MAAM,QAAQ,cAAc,MAAM;CAElC,MAAM,CAAC,YAAY,iBAAiB,SAAS,MAAM;CACnD,MAAM,MAAM,OAAO,KAAK;CACxB,MAAM,EAAE,gBAAgB,eAAe,MAAM,OAAO,IAAI;CAExD,MAAM,EAAE,oBAAS,mBAAU,QAExB;CACH,MAAM,oBAAoBC,UAAQ,iBAAiB,cAAc;CACjE,MAAM,sBAAsBA,UAAQ,iBAAiB,gBAAgB;CACrE,MAAM,YAAYA,UAAQ,iBAAiB,MAAM;AAEjD,SAAM,iBAAiB,QAAQ,SAAS;AACtC,MAAI,KAAK,KAAK,QAAQ,WAAW,KAAK,CAAC,KAAK,QAAQ,QAAQ;GAC1D,MAAM,UAAU,KAAK,QAAQ,WAAW;AACxC,SAAM,IACJ;IACE,GAAG,KAAK;IACR,IAAI,KAAK,QAAQ,MAAM,MAAM;IAC7B,OAAO,KAAK,QAAQ,SAAS;IAC9B,EACD,EACE,SACD,CACF;AACD,OAAI,QACF,OAAM,WAAW;;GAGrB;AAEF,SAAM,iBAAiB,UAAU,SAAS;EAExC,MAAM,gBAAgB,MAAM;EAE5B,MAAM,UAAU,cAAc,QAAQ,UACpC,qBAAqB,KAAK,SAAS,MAAM,QAAQ,CAClD;AAED,MAAI,QAAQ,UAAU,QAAQ,WAAW,cAAc,OACrD,OAAM,OAAO;MAEb,MAAK,MAAM,SAAS,QAClB,OAAM,MAAM,MAAM,IAAI;GAG1B;AAEF,iBAEI,MAAM,gBAAgB;AACpB,gBAAc,MAAM,cAAc,SAAS,EAAE;GAC7C,EACJ,CAAC,MAAM,CACR;CAED,MAAM,WACJ,8CACG,CAAC,gBAAgB,cAChB,oBAAC;EACC,WAAW,mBACT,YAAY,SACX,cAAc,aAAa,GAC7B;EACD,SAAQ;EACR,eAAe,MAAM,OAAO;YAC7B;GAEQ,EAEX,oBAACC;EACC,WAAW,mBAAmB,YAAY,OAAO,cAC/C,KAAK,OAAO,MAAM,UAAU,CAC7B;aAEC,EAAE,YACF,8BAAC;GACC,GAAI,MAAM;GACV,KAAK,MAAM;GACX,WACE,EACE,MAAM,WACN,MAAM,QAAQ,WACd,MAAM,QAAQ;GAGlB,YAAY,YAAY;GAClB;GACN,uBACE,kBAAkB;IAChB,IAAI,MAAM,QAAQ;IAClB,UAAU,MAAM,QAAQ;IACzB,CAAC;GAEJ,yBACE,oBAAoB;IAClB,IAAI,MAAM,QAAQ;IAClB,UAAU,MAAM,QAAQ;IACzB,CAAC;GAEJ,eAAe;AACb,UAAM,WAAW;AACjB,UAAM,MAAM,MAAM,IAAI;AACtB,cAAU;KACR,IAAI,MAAM,QAAQ;KAClB,UAAU,MAAM,QAAQ;KACzB,CAAC;;IAEJ;GAEM,IACX;AAGL,QAAO,SACL,oBAACC;EACC,WAAW,KAAK,gBAAgB,OAAO,QAAQ,YAAY,OAAO;EAClE,kBAAgB;EACT;EAEN;GACW,GAEd,oBAAC;EACC,GAAI;EACJ,WAAW,KAAK,gBAAgB,OAAO,QAAQ,YAAY,OAAO;EAClE,kBAAgB;EACX;YAEL,oBAACC,2BAAkB;GAAS,OAAO;GAChC;IAC0B;GACzB"}
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
|
|
13
13
|
import { NoticeIconProps } from "./types.js";
|
|
14
14
|
import "client-only";
|
|
15
|
-
import * as
|
|
15
|
+
import * as react_jsx_runtime56 from "react/jsx-runtime";
|
|
16
16
|
|
|
17
17
|
//#region src/components/notice/notice-icon.d.ts
|
|
18
18
|
|
|
@@ -38,7 +38,7 @@ import * as react_jsx_runtime82 from "react/jsx-runtime";
|
|
|
38
38
|
declare function NoticeIcon({
|
|
39
39
|
color,
|
|
40
40
|
size
|
|
41
|
-
}: NoticeIconProps):
|
|
41
|
+
}: NoticeIconProps): react_jsx_runtime56.JSX.Element;
|
|
42
42
|
//#endregion
|
|
43
43
|
export { NoticeIcon };
|
|
44
44
|
//# sourceMappingURL=notice-icon.d.ts.map
|
|
@@ -89,7 +89,7 @@ type NoticeListProps = {
|
|
|
89
89
|
/**
|
|
90
90
|
* Props for the Notice component.
|
|
91
91
|
*/
|
|
92
|
-
type NoticeProps = Omit<NoticeContent, '
|
|
92
|
+
type NoticeProps = Omit<NoticeContent, 'timeout' | 'target'> & {
|
|
93
93
|
/** Unique identifier for the notice. */
|
|
94
94
|
id: UniqueId;
|
|
95
95
|
/** CSS class names for notice elements. */
|
|
@@ -111,10 +111,10 @@ type NoticeProps = Omit<NoticeContent, 'metadata' | 'timeout' | 'target'> & {
|
|
|
111
111
|
shouldCloseOnAction?: boolean;
|
|
112
112
|
/** Size variant for the notice. */
|
|
113
113
|
size?: 'small' | 'medium';
|
|
114
|
-
/** Callback when primary action button is pressed. */
|
|
115
|
-
onPrimaryAction?: () => void;
|
|
116
|
-
/** Callback when secondary action button is pressed. */
|
|
117
|
-
onSecondaryAction?: () => void;
|
|
114
|
+
/** Callback when primary action button is pressed. Receives metadata for context. */
|
|
115
|
+
onPrimaryAction?: (metadata?: NoticeContent['metadata']) => void;
|
|
116
|
+
/** Callback when secondary action button is pressed. Receives metadata for context. */
|
|
117
|
+
onSecondaryAction?: (metadata?: NoticeContent['metadata']) => void;
|
|
118
118
|
/** Callback when the notice is closed. */
|
|
119
119
|
onClose?: () => void;
|
|
120
120
|
};
|
|
@@ -138,6 +138,7 @@ type NoticeDequeueEvent = Payload<typeof NoticeEventTypes.dequeue, {
|
|
|
138
138
|
*/
|
|
139
139
|
type NoticeActionEvent = Payload<typeof NoticeEventTypes.actionPrimary | typeof NoticeEventTypes.actionSecondary | typeof NoticeEventTypes.close, {
|
|
140
140
|
id: UniqueId;
|
|
141
|
+
metadata?: Record<string, StructuredCloneableData>;
|
|
141
142
|
}>;
|
|
142
143
|
//#endregion
|
|
143
144
|
export { NoticeActionEvent, NoticeColor, NoticeContent, NoticeDequeueEvent, NoticeIconProps, NoticeListProps, NoticeProps, NoticeQueueEvent };
|
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
* governing permissions and limitations under the License.
|
|
11
11
|
*/
|
|
12
12
|
|
|
13
|
+
import { NoticeContent, NoticeDequeueEvent } from "./types.js";
|
|
13
14
|
import "client-only";
|
|
14
15
|
|
|
15
16
|
//#region src/components/notice/utils.d.ts
|
|
@@ -22,6 +23,15 @@ import "client-only";
|
|
|
22
23
|
* @returns True if all payload entries match corresponding metadata entries.
|
|
23
24
|
*/
|
|
24
25
|
declare function matchesMetadata(payload: Record<string, unknown>, metadata?: Record<string, unknown>): boolean;
|
|
26
|
+
/**
|
|
27
|
+
* Checks if a dequeue payload matches a notice's content.
|
|
28
|
+
* Supports filtering by top-level fields (id, color, target) and nested metadata.
|
|
29
|
+
*
|
|
30
|
+
* @param dequeuePayload - Dequeue event payload with optional id, color, target, metadata.
|
|
31
|
+
* @param noticeContent - Notice content to match against.
|
|
32
|
+
* @returns True if all provided criteria match.
|
|
33
|
+
*/
|
|
34
|
+
declare function matchesDequeueFilter(dequeuePayload: NoticeDequeueEvent['payload'], noticeContent: NoticeContent): boolean;
|
|
25
35
|
//#endregion
|
|
26
|
-
export { matchesMetadata };
|
|
36
|
+
export { matchesDequeueFilter, matchesMetadata };
|
|
27
37
|
//# sourceMappingURL=utils.d.ts.map
|
|
@@ -29,7 +29,22 @@ function matchesMetadata(payload, metadata) {
|
|
|
29
29
|
if (!metadata) return false;
|
|
30
30
|
return Object.entries(payload).every(([key, value]) => key in metadata && isEqual(metadata[key], value));
|
|
31
31
|
}
|
|
32
|
+
/**
|
|
33
|
+
* Checks if a dequeue payload matches a notice's content.
|
|
34
|
+
* Supports filtering by top-level fields (id, color, target) and nested metadata.
|
|
35
|
+
*
|
|
36
|
+
* @param dequeuePayload - Dequeue event payload with optional id, color, target, metadata.
|
|
37
|
+
* @param noticeContent - Notice content to match against.
|
|
38
|
+
* @returns True if all provided criteria match.
|
|
39
|
+
*/
|
|
40
|
+
function matchesDequeueFilter(dequeuePayload, noticeContent) {
|
|
41
|
+
if (dequeuePayload.id && dequeuePayload.id !== noticeContent.id) return false;
|
|
42
|
+
if (dequeuePayload.target && dequeuePayload.target !== noticeContent.target) return false;
|
|
43
|
+
if (dequeuePayload.color && dequeuePayload.color !== noticeContent.color) return false;
|
|
44
|
+
if (!dequeuePayload.metadata) return true;
|
|
45
|
+
return matchesMetadata(dequeuePayload.metadata, noticeContent.metadata);
|
|
46
|
+
}
|
|
32
47
|
|
|
33
48
|
//#endregion
|
|
34
|
-
export { matchesMetadata };
|
|
49
|
+
export { matchesDequeueFilter, matchesMetadata };
|
|
35
50
|
//# sourceMappingURL=utils.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.js","names":[],"sources":["../../../src/components/notice/utils.ts"],"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\n'use client';\n\nimport 'client-only';\nimport { isEqual } from 'radashi';\n\n/**\n * Checks if a payload matches metadata on a notice.\n * Used for filtering notices during dequeue operations.\n *\n * @param payload - Object with key-value pairs to match against.\n * @param metadata - Metadata object from a notice to check.\n * @returns True if all payload entries match corresponding metadata entries.\n */\nexport function matchesMetadata(\n payload: Record<string, unknown>,\n metadata?: Record<string, unknown>,\n) {\n if (!metadata) {\n return false;\n }\n\n return Object.entries(payload).every(\n ([key, value]) => key in metadata && isEqual(metadata[key], value),\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"utils.js","names":[],"sources":["../../../src/components/notice/utils.ts"],"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\n'use client';\n\nimport 'client-only';\nimport { isEqual } from 'radashi';\nimport type { NoticeContent, NoticeDequeueEvent } from './types';\n\n/**\n * Checks if a payload matches metadata on a notice.\n * Used for filtering notices during dequeue operations.\n *\n * @param payload - Object with key-value pairs to match against.\n * @param metadata - Metadata object from a notice to check.\n * @returns True if all payload entries match corresponding metadata entries.\n */\nexport function matchesMetadata(\n payload: Record<string, unknown>,\n metadata?: Record<string, unknown>,\n) {\n if (!metadata) {\n return false;\n }\n\n return Object.entries(payload).every(\n ([key, value]) => key in metadata && isEqual(metadata[key], value),\n );\n}\n\n/**\n * Checks if a dequeue payload matches a notice's content.\n * Supports filtering by top-level fields (id, color, target) and nested metadata.\n *\n * @param dequeuePayload - Dequeue event payload with optional id, color, target, metadata.\n * @param noticeContent - Notice content to match against.\n * @returns True if all provided criteria match.\n */\nexport function matchesDequeueFilter(\n dequeuePayload: NoticeDequeueEvent['payload'],\n noticeContent: NoticeContent,\n) {\n // Match top-level id\n if (dequeuePayload.id && dequeuePayload.id !== noticeContent.id) {\n return false;\n }\n\n // Match top-level target\n if (dequeuePayload.target && dequeuePayload.target !== noticeContent.target) {\n return false;\n }\n\n // Match top-level color\n if (dequeuePayload.color && dequeuePayload.color !== noticeContent.color) {\n return false;\n }\n\n // Match metadata fields using existing matchesMetadata logic\n if (!dequeuePayload.metadata) {\n return true;\n }\n\n return matchesMetadata(dequeuePayload.metadata, noticeContent.metadata);\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;AA0BA,SAAgB,gBACd,SACA,UACA;AACA,KAAI,CAAC,SACH,QAAO;AAGT,QAAO,OAAO,QAAQ,QAAQ,CAAC,OAC5B,CAAC,KAAK,WAAW,OAAO,YAAY,QAAQ,SAAS,MAAM,MAAM,CACnE;;;;;;;;;;AAWH,SAAgB,qBACd,gBACA,eACA;AAEA,KAAI,eAAe,MAAM,eAAe,OAAO,cAAc,GAC3D,QAAO;AAIT,KAAI,eAAe,UAAU,eAAe,WAAW,cAAc,OACnE,QAAO;AAIT,KAAI,eAAe,SAAS,eAAe,UAAU,cAAc,MACjE,QAAO;AAIT,KAAI,CAAC,eAAe,SAClB,QAAO;AAGT,QAAO,gBAAgB,eAAe,UAAU,cAAc,SAAS"}
|
|
@@ -12,12 +12,12 @@
|
|
|
12
12
|
|
|
13
13
|
import { OptionsDataItem, OptionsProps } from "./types.js";
|
|
14
14
|
import "client-only";
|
|
15
|
-
import * as
|
|
15
|
+
import * as react8 from "react";
|
|
16
16
|
import { ContextValue } from "react-aria-components/slots";
|
|
17
17
|
|
|
18
18
|
//#region src/components/options/context.d.ts
|
|
19
19
|
/** Context for sharing Options props with nested components */
|
|
20
|
-
declare const OptionsContext:
|
|
20
|
+
declare const OptionsContext: react8.Context<ContextValue<OptionsProps<OptionsDataItem>, HTMLDivElement>>;
|
|
21
21
|
//#endregion
|
|
22
22
|
export { OptionsContext };
|
|
23
23
|
//# sourceMappingURL=context.d.ts.map
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
|
|
13
13
|
import { OptionsDataItem, OptionsProps } from "./types.js";
|
|
14
14
|
import "client-only";
|
|
15
|
-
import * as
|
|
15
|
+
import * as react_jsx_runtime60 from "react/jsx-runtime";
|
|
16
16
|
|
|
17
17
|
//#region src/components/options/index.d.ts
|
|
18
18
|
|
|
@@ -73,7 +73,7 @@ import * as react_jsx_runtime0 from "react/jsx-runtime";
|
|
|
73
73
|
declare function Options<T extends OptionsDataItem>({
|
|
74
74
|
ref,
|
|
75
75
|
...props
|
|
76
|
-
}: OptionsProps<T>):
|
|
76
|
+
}: OptionsProps<T>): react_jsx_runtime60.JSX.Element;
|
|
77
77
|
//#endregion
|
|
78
78
|
export { Options };
|
|
79
79
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* governing permissions and limitations under the License.
|
|
11
11
|
*/
|
|
12
12
|
|
|
13
|
-
import * as
|
|
13
|
+
import * as react_jsx_runtime61 from "react/jsx-runtime";
|
|
14
14
|
import { TextProps } from "react-aria-components/Text";
|
|
15
15
|
|
|
16
16
|
//#region src/components/options/item-content.d.ts
|
|
@@ -37,7 +37,7 @@ import { TextProps } from "react-aria-components/Text";
|
|
|
37
37
|
declare function OptionsItemContent({
|
|
38
38
|
className,
|
|
39
39
|
...rest
|
|
40
|
-
}: TextProps):
|
|
40
|
+
}: TextProps): react_jsx_runtime61.JSX.Element;
|
|
41
41
|
//#endregion
|
|
42
42
|
export { OptionsItemContent };
|
|
43
43
|
//# sourceMappingURL=item-content.d.ts.map
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* governing permissions and limitations under the License.
|
|
11
11
|
*/
|
|
12
12
|
|
|
13
|
-
import * as
|
|
13
|
+
import * as react_jsx_runtime63 from "react/jsx-runtime";
|
|
14
14
|
import { TextProps } from "react-aria-components/Text";
|
|
15
15
|
|
|
16
16
|
//#region src/components/options/item-description.d.ts
|
|
@@ -29,7 +29,7 @@ import { TextProps } from "react-aria-components/Text";
|
|
|
29
29
|
declare function OptionsItemDescription({
|
|
30
30
|
className,
|
|
31
31
|
...rest
|
|
32
|
-
}: TextProps):
|
|
32
|
+
}: TextProps): react_jsx_runtime63.JSX.Element;
|
|
33
33
|
//#endregion
|
|
34
34
|
export { OptionsItemDescription };
|
|
35
35
|
//# sourceMappingURL=item-description.d.ts.map
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* governing permissions and limitations under the License.
|
|
11
11
|
*/
|
|
12
12
|
|
|
13
|
-
import * as
|
|
13
|
+
import * as react_jsx_runtime65 from "react/jsx-runtime";
|
|
14
14
|
import { TextProps } from "react-aria-components/Text";
|
|
15
15
|
|
|
16
16
|
//#region src/components/options/item-label.d.ts
|
|
@@ -30,7 +30,7 @@ declare function OptionsItemLabel({
|
|
|
30
30
|
className,
|
|
31
31
|
children,
|
|
32
32
|
...rest
|
|
33
|
-
}: TextProps):
|
|
33
|
+
}: TextProps): react_jsx_runtime65.JSX.Element;
|
|
34
34
|
//#endregion
|
|
35
35
|
export { OptionsItemLabel };
|
|
36
36
|
//# sourceMappingURL=item-label.d.ts.map
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
|
|
13
13
|
import { OptionsDataItem, OptionsItemProps } from "./types.js";
|
|
14
14
|
import "client-only";
|
|
15
|
-
import * as
|
|
15
|
+
import * as react_jsx_runtime67 from "react/jsx-runtime";
|
|
16
16
|
|
|
17
17
|
//#region src/components/options/item.d.ts
|
|
18
18
|
|
|
@@ -43,7 +43,7 @@ declare function OptionsItem<T extends OptionsDataItem>({
|
|
|
43
43
|
color,
|
|
44
44
|
textValue,
|
|
45
45
|
...rest
|
|
46
|
-
}: OptionsItemProps<T>):
|
|
46
|
+
}: OptionsItemProps<T>): react_jsx_runtime67.JSX.Element;
|
|
47
47
|
//#endregion
|
|
48
48
|
export { OptionsItem };
|
|
49
49
|
//# sourceMappingURL=item.d.ts.map
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
*/
|
|
12
12
|
|
|
13
13
|
import { OptionsDataItem, OptionsSectionProps } from "./types.js";
|
|
14
|
-
import * as
|
|
14
|
+
import * as react_jsx_runtime69 from "react/jsx-runtime";
|
|
15
15
|
|
|
16
16
|
//#region src/components/options/section.d.ts
|
|
17
17
|
|
|
@@ -38,7 +38,7 @@ declare function OptionsSection<T extends OptionsDataItem>({
|
|
|
38
38
|
classNames,
|
|
39
39
|
header,
|
|
40
40
|
items
|
|
41
|
-
}: OptionsSectionProps<T>):
|
|
41
|
+
}: OptionsSectionProps<T>): react_jsx_runtime69.JSX.Element;
|
|
42
42
|
//#endregion
|
|
43
43
|
export { OptionsSection };
|
|
44
44
|
//# sourceMappingURL=section.d.ts.map
|
|
@@ -12,11 +12,11 @@
|
|
|
12
12
|
|
|
13
13
|
import { PaginationContextValue } from "./types.js";
|
|
14
14
|
import "client-only";
|
|
15
|
-
import * as
|
|
15
|
+
import * as react10 from "react";
|
|
16
16
|
|
|
17
17
|
//#region src/components/pagination/context.d.ts
|
|
18
18
|
/** Context for sharing pagination state with sub-components */
|
|
19
|
-
declare const PaginationContext:
|
|
19
|
+
declare const PaginationContext: react10.Context<PaginationContextValue>;
|
|
20
20
|
//#endregion
|
|
21
21
|
export { PaginationContext };
|
|
22
22
|
//# sourceMappingURL=context.d.ts.map
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
|
|
13
13
|
import { PaginationProps } from "./types.js";
|
|
14
14
|
import "client-only";
|
|
15
|
-
import * as
|
|
15
|
+
import * as react_jsx_runtime73 from "react/jsx-runtime";
|
|
16
16
|
|
|
17
17
|
//#region src/components/pagination/index.d.ts
|
|
18
18
|
|
|
@@ -46,7 +46,7 @@ declare function Pagination({
|
|
|
46
46
|
isLoading,
|
|
47
47
|
onChange,
|
|
48
48
|
...rest
|
|
49
|
-
}: PaginationProps):
|
|
49
|
+
}: PaginationProps): react_jsx_runtime73.JSX.Element;
|
|
50
50
|
//#endregion
|
|
51
51
|
export { Pagination };
|
|
52
52
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
|
|
13
13
|
import { PaginationNextProps } from "./types.js";
|
|
14
14
|
import "client-only";
|
|
15
|
-
import * as
|
|
15
|
+
import * as react_jsx_runtime75 from "react/jsx-runtime";
|
|
16
16
|
|
|
17
17
|
//#region src/components/pagination/next.d.ts
|
|
18
18
|
/**
|
|
@@ -33,7 +33,7 @@ import * as react_jsx_runtime100 from "react/jsx-runtime";
|
|
|
33
33
|
declare function PaginationNext({
|
|
34
34
|
className,
|
|
35
35
|
onPress
|
|
36
|
-
}: PaginationNextProps):
|
|
36
|
+
}: PaginationNextProps): react_jsx_runtime75.JSX.Element;
|
|
37
37
|
//#endregion
|
|
38
38
|
export { PaginationNext };
|
|
39
39
|
//# sourceMappingURL=next.d.ts.map
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
|
|
13
13
|
import { PaginationPagesProps } from "./types.js";
|
|
14
14
|
import "client-only";
|
|
15
|
-
import * as
|
|
15
|
+
import * as react_jsx_runtime77 from "react/jsx-runtime";
|
|
16
16
|
|
|
17
17
|
//#region src/components/pagination/pages.d.ts
|
|
18
18
|
|
|
@@ -37,7 +37,7 @@ import * as react_jsx_runtime102 from "react/jsx-runtime";
|
|
|
37
37
|
declare function PaginationPages({
|
|
38
38
|
className,
|
|
39
39
|
onPress
|
|
40
|
-
}: PaginationPagesProps):
|
|
40
|
+
}: PaginationPagesProps): react_jsx_runtime77.JSX.Element[] | null;
|
|
41
41
|
//#endregion
|
|
42
42
|
export { PaginationPages };
|
|
43
43
|
//# sourceMappingURL=pages.d.ts.map
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
|
|
13
13
|
import { PaginationPrevProps } 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/pagination/prev.d.ts
|
|
18
18
|
/**
|
|
@@ -33,7 +33,7 @@ import * as react_jsx_runtime113 from "react/jsx-runtime";
|
|
|
33
33
|
declare function PaginationPrev({
|
|
34
34
|
className,
|
|
35
35
|
onPress
|
|
36
|
-
}: PaginationPrevProps):
|
|
36
|
+
}: PaginationPrevProps): react_jsx_runtime79.JSX.Element;
|
|
37
37
|
//#endregion
|
|
38
38
|
export { PaginationPrev };
|
|
39
39
|
//# sourceMappingURL=prev.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_runtime132 from "react/jsx-runtime";
|
|
16
16
|
|
|
17
17
|
//#region src/components/popover/content.d.ts
|
|
18
18
|
|
|
@@ -36,7 +36,7 @@ import * as react_jsx_runtime146 from "react/jsx-runtime";
|
|
|
36
36
|
declare function PopoverContent({
|
|
37
37
|
className,
|
|
38
38
|
...rest
|
|
39
|
-
}: ComponentPropsWithRef<'div'>):
|
|
39
|
+
}: ComponentPropsWithRef<'div'>): react_jsx_runtime132.JSX.Element;
|
|
40
40
|
//#endregion
|
|
41
41
|
export { PopoverContent };
|
|
42
42
|
//# sourceMappingURL=content.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_runtime133 from "react/jsx-runtime";
|
|
16
16
|
|
|
17
17
|
//#region src/components/popover/footer.d.ts
|
|
18
18
|
|
|
@@ -38,7 +38,7 @@ import * as react_jsx_runtime147 from "react/jsx-runtime";
|
|
|
38
38
|
declare function PopoverFooter({
|
|
39
39
|
children,
|
|
40
40
|
className
|
|
41
|
-
}: ComponentPropsWithRef<'footer'>):
|
|
41
|
+
}: ComponentPropsWithRef<'footer'>): react_jsx_runtime133.JSX.Element;
|
|
42
42
|
//#endregion
|
|
43
43
|
export { PopoverFooter };
|
|
44
44
|
//# sourceMappingURL=footer.d.ts.map
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
|
|
13
13
|
import { PopoverProps } from "./types.js";
|
|
14
14
|
import "client-only";
|
|
15
|
-
import * as
|
|
15
|
+
import * as react_jsx_runtime134 from "react/jsx-runtime";
|
|
16
16
|
|
|
17
17
|
//#region src/components/popover/index.d.ts
|
|
18
18
|
|
|
@@ -58,7 +58,7 @@ declare function Popover({
|
|
|
58
58
|
classNames,
|
|
59
59
|
dialogProps,
|
|
60
60
|
...rest
|
|
61
|
-
}: PopoverProps):
|
|
61
|
+
}: PopoverProps): react_jsx_runtime134.JSX.Element;
|
|
62
62
|
//#endregion
|
|
63
63
|
export { Popover };
|
|
64
64
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
*/
|
|
12
12
|
|
|
13
13
|
import "client-only";
|
|
14
|
-
import * as
|
|
14
|
+
import * as react_jsx_runtime135 from "react/jsx-runtime";
|
|
15
15
|
import { HeadingProps } from "react-aria-components/Heading";
|
|
16
16
|
|
|
17
17
|
//#region src/components/popover/title.d.ts
|
|
@@ -33,7 +33,7 @@ import { HeadingProps } from "react-aria-components/Heading";
|
|
|
33
33
|
declare function PopoverTitle({
|
|
34
34
|
className,
|
|
35
35
|
...rest
|
|
36
|
-
}: HeadingProps):
|
|
36
|
+
}: HeadingProps): react_jsx_runtime135.JSX.Element;
|
|
37
37
|
//#endregion
|
|
38
38
|
export { PopoverTitle };
|
|
39
39
|
//# sourceMappingURL=title.d.ts.map
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
|
|
13
13
|
import { PopoverTriggerProps } from "./types.js";
|
|
14
14
|
import "client-only";
|
|
15
|
-
import * as
|
|
15
|
+
import * as react_jsx_runtime136 from "react/jsx-runtime";
|
|
16
16
|
|
|
17
17
|
//#region src/components/popover/trigger.d.ts
|
|
18
18
|
|
|
@@ -41,7 +41,7 @@ declare function PopoverTrigger({
|
|
|
41
41
|
ref,
|
|
42
42
|
children,
|
|
43
43
|
...rest
|
|
44
|
-
}: PopoverTriggerProps):
|
|
44
|
+
}: PopoverTriggerProps): react_jsx_runtime136.JSX.Element;
|
|
45
45
|
//#endregion
|
|
46
46
|
export { PopoverTrigger };
|
|
47
47
|
//# sourceMappingURL=trigger.d.ts.map
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
*/
|
|
12
12
|
|
|
13
13
|
import "client-only";
|
|
14
|
-
import * as
|
|
14
|
+
import * as react_jsx_runtime137 from "react/jsx-runtime";
|
|
15
15
|
import { ActionProps } from "react-querybuilder";
|
|
16
16
|
|
|
17
17
|
//#region src/components/query-builder/action-element.d.ts
|
|
@@ -38,7 +38,7 @@ declare function ActionElement({
|
|
|
38
38
|
disabledTranslation,
|
|
39
39
|
title: titleProp,
|
|
40
40
|
handleOnClick
|
|
41
|
-
}: ActionProps):
|
|
41
|
+
}: ActionProps): react_jsx_runtime137.JSX.Element;
|
|
42
42
|
//#endregion
|
|
43
43
|
export { ActionElement };
|
|
44
44
|
//# sourceMappingURL=action-element.d.ts.map
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
*/
|
|
12
12
|
|
|
13
13
|
import "client-only";
|
|
14
|
-
import * as
|
|
14
|
+
import * as react_jsx_runtime144 from "react/jsx-runtime";
|
|
15
15
|
import { ActionProps } from "react-querybuilder";
|
|
16
16
|
|
|
17
17
|
//#region src/components/query-builder/actions.d.ts
|
|
@@ -30,7 +30,7 @@ declare function RemoveRuleAction({
|
|
|
30
30
|
handleOnClick,
|
|
31
31
|
className,
|
|
32
32
|
...rest
|
|
33
|
-
}: ActionProps):
|
|
33
|
+
}: ActionProps): react_jsx_runtime144.JSX.Element;
|
|
34
34
|
/**
|
|
35
35
|
* Lock/unlock toggle button for rules or groups
|
|
36
36
|
*
|
|
@@ -46,7 +46,7 @@ declare function LockAction({
|
|
|
46
46
|
handleOnClick,
|
|
47
47
|
className,
|
|
48
48
|
...rest
|
|
49
|
-
}: ActionProps):
|
|
49
|
+
}: ActionProps): react_jsx_runtime144.JSX.Element;
|
|
50
50
|
/**
|
|
51
51
|
* Duplicate button for cloning rules or groups
|
|
52
52
|
*
|
|
@@ -62,7 +62,7 @@ declare function CloneAction({
|
|
|
62
62
|
handleOnClick,
|
|
63
63
|
className,
|
|
64
64
|
...rest
|
|
65
|
-
}: ActionProps):
|
|
65
|
+
}: ActionProps): react_jsx_runtime144.JSX.Element;
|
|
66
66
|
//#endregion
|
|
67
67
|
export { CloneAction, LockAction, RemoveRuleAction };
|
|
68
68
|
//# sourceMappingURL=actions.d.ts.map
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
*/
|
|
12
12
|
|
|
13
13
|
import "client-only";
|
|
14
|
-
import * as
|
|
14
|
+
import * as react_jsx_runtime138 from "react/jsx-runtime";
|
|
15
15
|
import { CombinatorSelectorProps } from "react-querybuilder";
|
|
16
16
|
|
|
17
17
|
//#region src/components/query-builder/combinator-selector.d.ts
|
|
@@ -27,7 +27,7 @@ declare function CombinatorSelector({
|
|
|
27
27
|
options,
|
|
28
28
|
value,
|
|
29
29
|
handleOnChange
|
|
30
|
-
}: CombinatorSelectorProps):
|
|
30
|
+
}: CombinatorSelectorProps): react_jsx_runtime138.JSX.Element;
|
|
31
31
|
//#endregion
|
|
32
32
|
export { CombinatorSelector };
|
|
33
33
|
//# sourceMappingURL=combinator-selector.d.ts.map
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
|
|
13
13
|
import { QueryBuilderProps } from "./types.js";
|
|
14
14
|
import "client-only";
|
|
15
|
-
import * as
|
|
15
|
+
import * as react_jsx_runtime147 from "react/jsx-runtime";
|
|
16
16
|
|
|
17
17
|
//#region src/components/query-builder/index.d.ts
|
|
18
18
|
|
|
@@ -55,7 +55,7 @@ declare function QueryBuilder({
|
|
|
55
55
|
orientation,
|
|
56
56
|
showRuleLines,
|
|
57
57
|
...rest
|
|
58
|
-
}: QueryBuilderProps):
|
|
58
|
+
}: QueryBuilderProps): react_jsx_runtime147.JSX.Element;
|
|
59
59
|
//#endregion
|
|
60
60
|
export { QueryBuilder };
|
|
61
61
|
//# sourceMappingURL=index.d.ts.map
|