@accelint/design-toolkit 9.9.0 → 9.9.2
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/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 +4 -4
- package/dist/components/button/index.d.ts +2 -2
- package/dist/components/button/link.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 +2 -2
- 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/context.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/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/hero/context.d.ts +2 -2
- package/dist/components/hero/index.d.ts +2 -2
- package/dist/components/hero/subtitle.d.ts +2 -2
- 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/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/kanban/styles.module.css +5 -0
- 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 +2 -2
- package/dist/components/notice/list.d.ts +2 -2
- package/dist/components/notice/notice-icon.d.ts +2 -2
- 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/styles.module.css +4 -1
- package/dist/components/query-builder/value-editor.d.ts +2 -2
- package/dist/components/query-builder/value-editor.js +1 -1
- package/dist/components/query-builder/value-editor.js.map +1 -1
- 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/styles.module.css +20 -8
- 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 +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 +6 -2
- package/dist/components/table/index.js +17 -4
- package/dist/components/table/index.js.map +1 -1
- package/dist/components/table/row.d.ts +2 -2
- package/dist/components/table/types.d.ts +17 -0
- 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/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/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/trigger.d.ts +2 -2
- 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/providers/portal.d.ts +2 -2
- package/dist/providers/theme-provider.d.ts +2 -2
- package/package.json +8 -8
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
|
|
13
13
|
import { NoticeProps } from "./types.js";
|
|
14
14
|
import "client-only";
|
|
15
|
-
import * as
|
|
15
|
+
import * as react_jsx_runtime152 from "react/jsx-runtime";
|
|
16
16
|
|
|
17
17
|
//#region src/components/notice/index.d.ts
|
|
18
18
|
|
|
@@ -61,7 +61,7 @@ declare function Notice({
|
|
|
61
61
|
onPrimaryAction,
|
|
62
62
|
onSecondaryAction,
|
|
63
63
|
onClose
|
|
64
|
-
}: NoticeProps):
|
|
64
|
+
}: NoticeProps): react_jsx_runtime152.JSX.Element;
|
|
65
65
|
//#endregion
|
|
66
66
|
export { Notice };
|
|
67
67
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -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_runtime153 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_runtime153.JSX.Element;
|
|
59
59
|
//#endregion
|
|
60
60
|
export { NoticeList };
|
|
61
61
|
//# sourceMappingURL=list.d.ts.map
|
|
@@ -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_runtime154 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_runtime132 from "react/jsx-runtime";
|
|
|
38
38
|
declare function NoticeIcon({
|
|
39
39
|
color,
|
|
40
40
|
size
|
|
41
|
-
}: NoticeIconProps):
|
|
41
|
+
}: NoticeIconProps): react_jsx_runtime154.JSX.Element;
|
|
42
42
|
//#endregion
|
|
43
43
|
export { NoticeIcon };
|
|
44
44
|
//# sourceMappingURL=notice-icon.d.ts.map
|
|
@@ -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 react41 from "react";
|
|
16
16
|
import { ContextValue } from "react-aria-components";
|
|
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: react41.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_runtime135 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_runtime133 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_runtime135.JSX.Element;
|
|
77
77
|
//#endregion
|
|
78
78
|
export { Options };
|
|
79
79
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
*/
|
|
12
12
|
|
|
13
13
|
import { TextProps } from "react-aria-components";
|
|
14
|
-
import * as
|
|
14
|
+
import * as react_jsx_runtime167 from "react/jsx-runtime";
|
|
15
15
|
|
|
16
16
|
//#region src/components/options/item-content.d.ts
|
|
17
17
|
|
|
@@ -37,7 +37,7 @@ import * as react_jsx_runtime46 from "react/jsx-runtime";
|
|
|
37
37
|
declare function OptionsItemContent({
|
|
38
38
|
className,
|
|
39
39
|
...rest
|
|
40
|
-
}: TextProps):
|
|
40
|
+
}: TextProps): react_jsx_runtime167.JSX.Element;
|
|
41
41
|
//#endregion
|
|
42
42
|
export { OptionsItemContent };
|
|
43
43
|
//# sourceMappingURL=item-content.d.ts.map
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
*/
|
|
12
12
|
|
|
13
13
|
import { TextProps } from "react-aria-components";
|
|
14
|
-
import * as
|
|
14
|
+
import * as react_jsx_runtime193 from "react/jsx-runtime";
|
|
15
15
|
|
|
16
16
|
//#region src/components/options/item-description.d.ts
|
|
17
17
|
/**
|
|
@@ -29,7 +29,7 @@ import * as react_jsx_runtime125 from "react/jsx-runtime";
|
|
|
29
29
|
declare function OptionsItemDescription({
|
|
30
30
|
className,
|
|
31
31
|
...rest
|
|
32
|
-
}: TextProps):
|
|
32
|
+
}: TextProps): react_jsx_runtime193.JSX.Element;
|
|
33
33
|
//#endregion
|
|
34
34
|
export { OptionsItemDescription };
|
|
35
35
|
//# sourceMappingURL=item-description.d.ts.map
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
*/
|
|
12
12
|
|
|
13
13
|
import { TextProps } from "react-aria-components";
|
|
14
|
-
import * as
|
|
14
|
+
import * as react_jsx_runtime190 from "react/jsx-runtime";
|
|
15
15
|
|
|
16
16
|
//#region src/components/options/item-label.d.ts
|
|
17
17
|
/**
|
|
@@ -30,7 +30,7 @@ declare function OptionsItemLabel({
|
|
|
30
30
|
className,
|
|
31
31
|
children,
|
|
32
32
|
...rest
|
|
33
|
-
}: TextProps):
|
|
33
|
+
}: TextProps): react_jsx_runtime190.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_runtime191 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_runtime191.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_runtime198 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_runtime198.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 react51 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: react51.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_runtime189 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_runtime189.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_runtime194 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_runtime154 from "react/jsx-runtime";
|
|
|
33
33
|
declare function PaginationNext({
|
|
34
34
|
className,
|
|
35
35
|
onPress
|
|
36
|
-
}: PaginationNextProps):
|
|
36
|
+
}: PaginationNextProps): react_jsx_runtime194.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_runtime196 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_runtime155 from "react/jsx-runtime";
|
|
|
37
37
|
declare function PaginationPages({
|
|
38
38
|
className,
|
|
39
39
|
onPress
|
|
40
|
-
}: PaginationPagesProps):
|
|
40
|
+
}: PaginationPagesProps): react_jsx_runtime196.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_runtime197 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_runtime156 from "react/jsx-runtime";
|
|
|
33
33
|
declare function PaginationPrev({
|
|
34
34
|
className,
|
|
35
35
|
onPress
|
|
36
|
-
}: PaginationPrevProps):
|
|
36
|
+
}: PaginationPrevProps): react_jsx_runtime197.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_runtime172 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_runtime140 from "react/jsx-runtime";
|
|
|
36
36
|
declare function PopoverContent({
|
|
37
37
|
className,
|
|
38
38
|
...rest
|
|
39
|
-
}: ComponentPropsWithRef<'div'>):
|
|
39
|
+
}: ComponentPropsWithRef<'div'>): react_jsx_runtime172.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_runtime174 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_runtime141 from "react/jsx-runtime";
|
|
|
38
38
|
declare function PopoverFooter({
|
|
39
39
|
children,
|
|
40
40
|
className
|
|
41
|
-
}: ComponentPropsWithRef<'footer'>):
|
|
41
|
+
}: ComponentPropsWithRef<'footer'>): react_jsx_runtime174.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_runtime199 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_runtime199.JSX.Element;
|
|
62
62
|
//#endregion
|
|
63
63
|
export { Popover };
|
|
64
64
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
|
|
13
13
|
import "client-only";
|
|
14
14
|
import { HeadingProps } from "react-aria-components";
|
|
15
|
-
import * as
|
|
15
|
+
import * as react_jsx_runtime200 from "react/jsx-runtime";
|
|
16
16
|
|
|
17
17
|
//#region src/components/popover/title.d.ts
|
|
18
18
|
/**
|
|
@@ -33,7 +33,7 @@ import * as react_jsx_runtime142 from "react/jsx-runtime";
|
|
|
33
33
|
declare function PopoverTitle({
|
|
34
34
|
className,
|
|
35
35
|
...rest
|
|
36
|
-
}: HeadingProps):
|
|
36
|
+
}: HeadingProps): react_jsx_runtime200.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_runtime201 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_runtime201.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_runtime180 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_runtime180.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_runtime202 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_runtime202.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_runtime202.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_runtime202.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_runtime165 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_runtime165.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_runtime68 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_runtime68.JSX.Element;
|
|
59
59
|
//#endregion
|
|
60
60
|
export { QueryBuilder };
|
|
61
61
|
//# 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_runtime64 from "react/jsx-runtime";
|
|
15
15
|
import { RuleGroupProps, useRuleGroup } from "react-querybuilder";
|
|
16
16
|
|
|
17
17
|
//#region src/components/query-builder/rule-group.d.ts
|
|
@@ -33,7 +33,7 @@ import { RuleGroupProps, useRuleGroup } from "react-querybuilder";
|
|
|
33
33
|
* @param props - RuleGroupProps from react-querybuilder.
|
|
34
34
|
* @returns The rendered RuleGroup component.
|
|
35
35
|
*/
|
|
36
|
-
declare function RuleGroup(props: RuleGroupProps):
|
|
36
|
+
declare function RuleGroup(props: RuleGroupProps): react_jsx_runtime64.JSX.Element;
|
|
37
37
|
/**
|
|
38
38
|
* Header section with combinator selector and group actions (clone, lock, remove)
|
|
39
39
|
*
|
|
@@ -49,7 +49,7 @@ declare function RuleGroup(props: RuleGroupProps): react_jsx_runtime136.JSX.Elem
|
|
|
49
49
|
* @param ruleGroup - Combined RuleGroupProps and useRuleGroup return value.
|
|
50
50
|
* @returns The rendered header with combinator and action controls.
|
|
51
51
|
*/
|
|
52
|
-
declare function RuleGroupHeaderComponent(ruleGroup: RuleGroupProps & ReturnType<typeof useRuleGroup>):
|
|
52
|
+
declare function RuleGroupHeaderComponent(ruleGroup: RuleGroupProps & ReturnType<typeof useRuleGroup>): react_jsx_runtime64.JSX.Element;
|
|
53
53
|
/**
|
|
54
54
|
* Footer section with add rule and add group actions
|
|
55
55
|
*
|
|
@@ -65,7 +65,7 @@ declare function RuleGroupHeaderComponent(ruleGroup: RuleGroupProps & ReturnType
|
|
|
65
65
|
* @param ruleGroup - Combined RuleGroupProps and useRuleGroup return value.
|
|
66
66
|
* @returns The rendered footer with add rule and add group buttons.
|
|
67
67
|
*/
|
|
68
|
-
declare function RuleGroupFooterComponent(ruleGroup: RuleGroupProps & ReturnType<typeof useRuleGroup>):
|
|
68
|
+
declare function RuleGroupFooterComponent(ruleGroup: RuleGroupProps & ReturnType<typeof useRuleGroup>): react_jsx_runtime64.JSX.Element;
|
|
69
69
|
//#endregion
|
|
70
70
|
export { RuleGroup, RuleGroupFooterComponent, RuleGroupHeaderComponent };
|
|
71
71
|
//# sourceMappingURL=rule-group.d.ts.map
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
*/
|
|
12
12
|
|
|
13
13
|
import "client-only";
|
|
14
|
-
import * as
|
|
14
|
+
import * as react_jsx_runtime77 from "react/jsx-runtime";
|
|
15
15
|
import { RuleProps } from "react-querybuilder";
|
|
16
16
|
|
|
17
17
|
//#region src/components/query-builder/rule.d.ts
|
|
@@ -33,7 +33,7 @@ import { RuleProps } from "react-querybuilder";
|
|
|
33
33
|
* @param props - RuleProps from react-querybuilder.
|
|
34
34
|
* @returns The rendered Rule component with all selectors and actions.
|
|
35
35
|
*/
|
|
36
|
-
declare function Rule(props: RuleProps):
|
|
36
|
+
declare function Rule(props: RuleProps): react_jsx_runtime77.JSX.Element;
|
|
37
37
|
//#endregion
|
|
38
38
|
export { Rule };
|
|
39
39
|
//# sourceMappingURL=rule.d.ts.map
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
*/
|
|
12
12
|
|
|
13
13
|
import "client-only";
|
|
14
|
-
import * as
|
|
14
|
+
import * as react_jsx_runtime102 from "react/jsx-runtime";
|
|
15
15
|
import { ValueEditorProps } from "react-querybuilder";
|
|
16
16
|
|
|
17
17
|
//#region src/components/query-builder/value-editor.d.ts
|
|
@@ -36,7 +36,7 @@ import { ValueEditorProps } from "react-querybuilder";
|
|
|
36
36
|
* @param props - ValueEditorProps from react-querybuilder.
|
|
37
37
|
* @returns The rendered value editor, or null for null/notNull operators.
|
|
38
38
|
*/
|
|
39
|
-
declare function ValueEditor(props: ValueEditorProps):
|
|
39
|
+
declare function ValueEditor(props: ValueEditorProps): react_jsx_runtime102.JSX.Element | null;
|
|
40
40
|
//#endregion
|
|
41
41
|
export { ValueEditor };
|
|
42
42
|
//# sourceMappingURL=value-editor.d.ts.map
|
|
@@ -171,7 +171,7 @@ function ValueEditor(props) {
|
|
|
171
171
|
value: valueAsArray[index],
|
|
172
172
|
handleOnChange: index ? handleRangeEndChange : handleRangeStartChange
|
|
173
173
|
}) }, `${name}-${term}`)) });
|
|
174
|
-
return /* @__PURE__ */ jsx(
|
|
174
|
+
return /* @__PURE__ */ jsx(Editor, { ...props });
|
|
175
175
|
}
|
|
176
176
|
|
|
177
177
|
//#endregion
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"value-editor.js","names":["defaultOptions: unknown[]","valueEditors: QueryBuilderValueEditors"],"sources":["../../../src/components/query-builder/value-editor.tsx"],"sourcesContent":["// __private-exports\n/*\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'use client';\n\nimport 'client-only';\nimport { useCallback } from 'react';\nimport { useValueEditor, type ValueEditorProps } from 'react-querybuilder';\nimport { Checkbox } from '../checkbox';\nimport { Radio } from '../radio';\nimport { RadioGroup } from '../radio/group';\nimport { Switch } from '../switch';\nimport { TextAreaField } from '../text-area-field';\nimport { TextField } from '../text-field';\nimport { multiValueOperators } from './constants';\nimport styles from './styles.module.css';\nimport { getValidationResult } from './utils';\nimport { ValueSelector } from './value-selector';\nimport type { InputProps } from '../input/types';\nimport type { QueryBuilderValueEditors } from './types';\n\nfunction CheckboxValueEditor({\n className,\n disabled,\n fieldData: { name, validator },\n handleOnChange,\n rule,\n value,\n}: ValueEditorProps) {\n const { valid } = getValidationResult(rule, validator);\n\n return (\n <Checkbox\n classNames={{ checkbox: className }}\n isDisabled={disabled}\n isSelected={value}\n onChange={handleOnChange}\n aria-invalid={!valid}\n aria-label={name}\n />\n );\n}\n\nfunction RadioGroupValueEditor({\n className,\n disabled,\n fieldData: { name, validator },\n handleOnChange,\n rule,\n value,\n values,\n}: ValueEditorProps) {\n const { valid } = getValidationResult(rule, validator);\n\n return (\n <RadioGroup\n classNames={{ group: className }}\n value={value}\n isDisabled={disabled}\n onChange={handleOnChange}\n aria-invalid={!valid}\n aria-label={name}\n aria-labelledby={name}\n >\n {values?.map((option) => (\n <Radio key={option.name} value={option.value}>\n {option.label}\n </Radio>\n ))}\n </RadioGroup>\n );\n}\n\nconst defaultOptions: unknown[] = [];\n\nfunction SelectValueEditor({\n className,\n disabled,\n fieldData: { name, validator },\n handleOnChange,\n rule,\n type,\n value,\n values = defaultOptions,\n ...rest\n}: ValueEditorProps) {\n const { valid } = getValidationResult(rule, validator);\n\n return (\n <ValueSelector\n {...rest}\n className={className}\n disabled={disabled}\n multiple={type === 'multiselect'}\n options={values}\n title={name}\n validation={!valid}\n value={value}\n handleOnChange={handleOnChange}\n aria-labelledby={name}\n />\n );\n}\n\nfunction SwitchValueEditor({\n className,\n disabled,\n fieldData: { name, validator },\n handleOnChange,\n rule,\n value,\n}: ValueEditorProps) {\n const { valid } = getValidationResult(rule, validator);\n\n return (\n <Switch\n classNames={{ switch: className }}\n isDisabled={disabled}\n isSelected={Boolean(value)}\n onChange={handleOnChange}\n aria-invalid={!valid}\n aria-label={name}\n aria-labelledby={name}\n />\n );\n}\n\nfunction TextValueEditor({\n disabled,\n fieldData: { name, placeholder, validator },\n handleOnChange,\n inputType,\n rule,\n value,\n className,\n}: ValueEditorProps) {\n const { valid, reasons } = getValidationResult(rule, validator);\n\n return (\n <TextField\n inputProps={{\n placeholder,\n type: (inputType as InputProps['type']) ?? 'text',\n }}\n size='small'\n value={value}\n classNames={{ field: className, input: { container: styles.textInput } }}\n isDisabled={disabled}\n isInvalid={!valid}\n onChange={handleOnChange}\n aria-invalid={!valid}\n aria-label={name}\n aria-labelledby={name}\n errorMessage={reasons?.join('/n')}\n />\n );\n}\n\nfunction TextareaValueEditor({\n className,\n disabled,\n fieldData: { name, placeholder, validator },\n handleOnChange,\n rule,\n value,\n}: ValueEditorProps) {\n const { valid, reasons } = getValidationResult(rule, validator);\n\n return (\n <TextAreaField\n classNames={{ field: className }}\n size='small'\n errorMessage={reasons?.join('/n')}\n inputProps={{ placeholder }}\n value={value}\n isDisabled={disabled}\n isInvalid={!valid}\n onChange={handleOnChange}\n aria-label={name}\n aria-invalid={!valid}\n aria-labelledby={name}\n />\n );\n}\n\nconst valueEditors: QueryBuilderValueEditors = {\n checkbox: CheckboxValueEditor,\n radio: RadioGroupValueEditor,\n select: SelectValueEditor,\n switch: SwitchValueEditor,\n text: TextValueEditor,\n textarea: TextareaValueEditor,\n};\n\n/**\n * ValueEditor - Input component for editing rule values\n *\n * Renders appropriate editor based on field type: text, checkbox, radio, select, switch, or textarea.\n * Supports multi-value operators (between, notBetween) with start/end inputs.\n *\n * @example\n * ```tsx\n * <ValueEditor\n * fieldData={{ name: 'age', valueEditorType: 'text' }}\n * operator=\"greaterThan\"\n * value=\"18\"\n * handleOnChange={(value) => console.log(value)}\n * rule={{ field: 'age', operator: 'greaterThan', value: '18' }}\n * />\n * ```\n *\n * @param props - ValueEditorProps from react-querybuilder.\n * @returns The rendered value editor, or null for null/notNull operators.\n */\nexport function ValueEditor(props: ValueEditorProps) {\n const {\n fieldData: { name, valueEditorType },\n operator,\n rule: ruleProp,\n } = props;\n\n const { valueAsArray, multiValueHandler } = useValueEditor({\n ...props,\n skipHook: true,\n });\n\n const rule = useCallback(\n (index: number) => ({\n ...ruleProp,\n value: valueAsArray[index],\n }),\n [ruleProp, valueAsArray],\n );\n\n const handleRangeStartChange = useCallback(\n (value: string) => multiValueHandler(value, 0),\n [multiValueHandler],\n );\n\n const handleRangeEndChange = useCallback(\n (value: string) => multiValueHandler(value, 1),\n [multiValueHandler],\n );\n\n const type =\n (typeof valueEditorType === 'function'\n ? valueEditorType(operator)\n : valueEditorType) ?? 'text';\n\n const Editor = valueEditors?.[type];\n\n if (operator === 'null' || operator === 'notNull' || !Editor) {\n return null;\n }\n\n if (multiValueOperators.includes(operator)) {\n return (\n <>\n {['start', 'end'].map((term, index) => (\n <div key={`${name}-${term}`}>\n <Editor\n {...props}\n rule={rule(index)}\n value={valueAsArray[index]}\n handleOnChange={\n index ? handleRangeEndChange : handleRangeStartChange\n }\n />\n </div>\n ))}\n </>\n );\n }\n\n return (\n <div>\n <Editor {...props} />\n </div>\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA8BA,SAAS,oBAAoB,EAC3B,WACA,UACA,WAAW,EAAE,MAAM,aACnB,gBACA,MACA,SACmB;CACnB,MAAM,EAAE,UAAU,oBAAoB,MAAM,UAAU;AAEtD,QACE,oBAAC;EACC,YAAY,EAAE,UAAU,WAAW;EACnC,YAAY;EACZ,YAAY;EACZ,UAAU;EACV,gBAAc,CAAC;EACf,cAAY;GACZ;;AAIN,SAAS,sBAAsB,EAC7B,WACA,UACA,WAAW,EAAE,MAAM,aACnB,gBACA,MACA,OACA,UACmB;CACnB,MAAM,EAAE,UAAU,oBAAoB,MAAM,UAAU;AAEtD,QACE,oBAAC;EACC,YAAY,EAAE,OAAO,WAAW;EACzB;EACP,YAAY;EACZ,UAAU;EACV,gBAAc,CAAC;EACf,cAAY;EACZ,mBAAiB;YAEhB,QAAQ,KAAK,WACZ,oBAAC;GAAwB,OAAO,OAAO;aACpC,OAAO;KADE,OAAO,KAEX,CACR;GACS;;AAIjB,MAAMA,iBAA4B,EAAE;AAEpC,SAAS,kBAAkB,EACzB,W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,gBAAc,CAAC;EACf,mBAAiB;GACjB;;AAIN,MAAMC,eAAyC;CAC7C,UAAU;CACV,OAAO;CACP,QAAQ;CACR,QAAQ;CACR,MAAM;CACN,UAAU;CACX;;;;;;;;;;;;;;;;;;;;;AAsBD,SAAgB,YAAY,OAAyB;CACnD,MAAM,EACJ,WAAW,EAAE,MAAM,mBACnB,UACA,MAAM,aACJ;CAEJ,MAAM,EAAE,cAAc,sBAAsB,eAAe;EACzD,GAAG;EACH,UAAU;EACX,CAAC;CAEF,MAAM,OAAO,aACV,WAAmB;EAClB,GAAG;EACH,OAAO,aAAa;EACrB,GACD,CAAC,UAAU,aAAa,CACzB;CAED,MAAM,yBAAyB,aAC5B,UAAkB,kBAAkB,OAAO,EAAE,EAC9C,CAAC,kBAAkB,CACpB;CAED,MAAM,uBAAuB,aAC1B,UAAkB,kBAAkB,OAAO,EAAE,EAC9C,CAAC,kBAAkB,CACpB;CAED,MAAM,QACH,OAAO,oBAAoB,aACxB,gBAAgB,SAAS,GACzB,oBAAoB;CAE1B,MAAM,SAAS,eAAe;AAE9B,KAAI,aAAa,UAAU,aAAa,aAAa,CAAC,OACpD,QAAO;AAGT,KAAI,oBAAoB,SAAS,SAAS,CACxC,QACE,4CACG,CAAC,SAAS,MAAM,CAAC,KAAK,MAAM,UAC3B,oBAAC,mBACC,oBAAC;EACC,GAAI;EACJ,MAAM,KAAK,MAAM;EACjB,OAAO,aAAa;EACpB,gBACE,QAAQ,uBAAuB;GAEjC,IARM,GAAG,KAAK,GAAG,OASf,CACN,GACD;AAIP,QACE,oBAAC,mBACC,oBAAC,UAAO,GAAI,QAAS,GACjB"}
|
|
1
|
+
{"version":3,"file":"value-editor.js","names":["defaultOptions: unknown[]","valueEditors: QueryBuilderValueEditors"],"sources":["../../../src/components/query-builder/value-editor.tsx"],"sourcesContent":["// __private-exports\n/*\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'use client';\n\nimport 'client-only';\nimport { useCallback } from 'react';\nimport { useValueEditor, type ValueEditorProps } from 'react-querybuilder';\nimport { Checkbox } from '../checkbox';\nimport { Radio } from '../radio';\nimport { RadioGroup } from '../radio/group';\nimport { Switch } from '../switch';\nimport { TextAreaField } from '../text-area-field';\nimport { TextField } from '../text-field';\nimport { multiValueOperators } from './constants';\nimport styles from './styles.module.css';\nimport { getValidationResult } from './utils';\nimport { ValueSelector } from './value-selector';\nimport type { InputProps } from '../input/types';\nimport type { QueryBuilderValueEditors } from './types';\n\nfunction CheckboxValueEditor({\n className,\n disabled,\n fieldData: { name, validator },\n handleOnChange,\n rule,\n value,\n}: ValueEditorProps) {\n const { valid } = getValidationResult(rule, validator);\n\n return (\n <Checkbox\n classNames={{ checkbox: className }}\n isDisabled={disabled}\n isSelected={value}\n onChange={handleOnChange}\n aria-invalid={!valid}\n aria-label={name}\n />\n );\n}\n\nfunction RadioGroupValueEditor({\n className,\n disabled,\n fieldData: { name, validator },\n handleOnChange,\n rule,\n value,\n values,\n}: ValueEditorProps) {\n const { valid } = getValidationResult(rule, validator);\n\n return (\n <RadioGroup\n classNames={{ group: className }}\n value={value}\n isDisabled={disabled}\n onChange={handleOnChange}\n aria-invalid={!valid}\n aria-label={name}\n aria-labelledby={name}\n >\n {values?.map((option) => (\n <Radio key={option.name} value={option.value}>\n {option.label}\n </Radio>\n ))}\n </RadioGroup>\n );\n}\n\nconst defaultOptions: unknown[] = [];\n\nfunction SelectValueEditor({\n className,\n disabled,\n fieldData: { name, validator },\n handleOnChange,\n rule,\n type,\n value,\n values = defaultOptions,\n ...rest\n}: ValueEditorProps) {\n const { valid } = getValidationResult(rule, validator);\n\n return (\n <ValueSelector\n {...rest}\n className={className}\n disabled={disabled}\n multiple={type === 'multiselect'}\n options={values}\n title={name}\n validation={!valid}\n value={value}\n handleOnChange={handleOnChange}\n aria-labelledby={name}\n />\n );\n}\n\nfunction SwitchValueEditor({\n className,\n disabled,\n fieldData: { name, validator },\n handleOnChange,\n rule,\n value,\n}: ValueEditorProps) {\n const { valid } = getValidationResult(rule, validator);\n\n return (\n <Switch\n classNames={{ switch: className }}\n isDisabled={disabled}\n isSelected={Boolean(value)}\n onChange={handleOnChange}\n aria-invalid={!valid}\n aria-label={name}\n aria-labelledby={name}\n />\n );\n}\n\nfunction TextValueEditor({\n disabled,\n fieldData: { name, placeholder, validator },\n handleOnChange,\n inputType,\n rule,\n value,\n className,\n}: ValueEditorProps) {\n const { valid, reasons } = getValidationResult(rule, validator);\n\n return (\n <TextField\n inputProps={{\n placeholder,\n type: (inputType as InputProps['type']) ?? 'text',\n }}\n size='small'\n value={value}\n classNames={{ field: className, input: { container: styles.textInput } }}\n isDisabled={disabled}\n isInvalid={!valid}\n onChange={handleOnChange}\n aria-invalid={!valid}\n aria-label={name}\n aria-labelledby={name}\n errorMessage={reasons?.join('/n')}\n />\n );\n}\n\nfunction TextareaValueEditor({\n className,\n disabled,\n fieldData: { name, placeholder, validator },\n handleOnChange,\n rule,\n value,\n}: ValueEditorProps) {\n const { valid, reasons } = getValidationResult(rule, validator);\n\n return (\n <TextAreaField\n classNames={{ field: className }}\n size='small'\n errorMessage={reasons?.join('/n')}\n inputProps={{ placeholder }}\n value={value}\n isDisabled={disabled}\n isInvalid={!valid}\n onChange={handleOnChange}\n aria-label={name}\n aria-invalid={!valid}\n aria-labelledby={name}\n />\n );\n}\n\nconst valueEditors: QueryBuilderValueEditors = {\n checkbox: CheckboxValueEditor,\n radio: RadioGroupValueEditor,\n select: SelectValueEditor,\n switch: SwitchValueEditor,\n text: TextValueEditor,\n textarea: TextareaValueEditor,\n};\n\n/**\n * ValueEditor - Input component for editing rule values\n *\n * Renders appropriate editor based on field type: text, checkbox, radio, select, switch, or textarea.\n * Supports multi-value operators (between, notBetween) with start/end inputs.\n *\n * @example\n * ```tsx\n * <ValueEditor\n * fieldData={{ name: 'age', valueEditorType: 'text' }}\n * operator=\"greaterThan\"\n * value=\"18\"\n * handleOnChange={(value) => console.log(value)}\n * rule={{ field: 'age', operator: 'greaterThan', value: '18' }}\n * />\n * ```\n *\n * @param props - ValueEditorProps from react-querybuilder.\n * @returns The rendered value editor, or null for null/notNull operators.\n */\nexport function ValueEditor(props: ValueEditorProps) {\n const {\n fieldData: { name, valueEditorType },\n operator,\n rule: ruleProp,\n } = props;\n\n const { valueAsArray, multiValueHandler } = useValueEditor({\n ...props,\n skipHook: true,\n });\n\n const rule = useCallback(\n (index: number) => ({\n ...ruleProp,\n value: valueAsArray[index],\n }),\n [ruleProp, valueAsArray],\n );\n\n const handleRangeStartChange = useCallback(\n (value: string) => multiValueHandler(value, 0),\n [multiValueHandler],\n );\n\n const handleRangeEndChange = useCallback(\n (value: string) => multiValueHandler(value, 1),\n [multiValueHandler],\n );\n\n const type =\n (typeof valueEditorType === 'function'\n ? valueEditorType(operator)\n : valueEditorType) ?? 'text';\n\n const Editor = valueEditors?.[type];\n\n if (operator === 'null' || operator === 'notNull' || !Editor) {\n return null;\n }\n\n if (multiValueOperators.includes(operator)) {\n return (\n <>\n {['start', 'end'].map((term, index) => (\n <div key={`${name}-${term}`}>\n <Editor\n {...props}\n rule={rule(index)}\n value={valueAsArray[index]}\n handleOnChange={\n index ? handleRangeEndChange : handleRangeStartChange\n }\n />\n </div>\n ))}\n </>\n );\n }\n\n return <Editor {...props} />;\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA8BA,SAAS,oBAAoB,EAC3B,WACA,UACA,WAAW,EAAE,MAAM,aACnB,gBACA,MACA,SACmB;CACnB,MAAM,EAAE,UAAU,oBAAoB,MAAM,UAAU;AAEtD,QACE,oBAAC;EACC,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B,SAAS,SAAS,CACxC,QACE,4CACG,CAAC,SAAS,MAAM,CAAC,KAAK,MAAM,UAC3B,oBAAC,mBACC,oBAAC;EACC,GAAI;EACJ,MAAM,KAAK,MAAM;EACjB,OAAO,aAAa;EACpB,gBACE,QAAQ,uBAAuB;GAEjC,IARM,GAAG,KAAK,GAAG,OASf,CACN,GACD;AAIP,QAAO,oBAAC,UAAO,GAAI,QAAS"}
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
*/
|
|
12
12
|
|
|
13
13
|
import "client-only";
|
|
14
|
-
import * as
|
|
14
|
+
import * as react_jsx_runtime78 from "react/jsx-runtime";
|
|
15
15
|
import { ValueSelectorProps } from "react-querybuilder";
|
|
16
16
|
|
|
17
17
|
//#region src/components/query-builder/value-selector.d.ts
|
|
@@ -36,7 +36,7 @@ import { ValueSelectorProps } from "react-querybuilder";
|
|
|
36
36
|
* @param props - ValueSelectorProps from react-querybuilder.
|
|
37
37
|
* @returns The rendered ValueSelector dropdown.
|
|
38
38
|
*/
|
|
39
|
-
declare function ValueSelector(props: ValueSelectorProps):
|
|
39
|
+
declare function ValueSelector(props: ValueSelectorProps): react_jsx_runtime78.JSX.Element;
|
|
40
40
|
//#endregion
|
|
41
41
|
export { ValueSelector };
|
|
42
42
|
//# sourceMappingURL=value-selector.d.ts.map
|