@accelint/design-toolkit 9.1.1 → 9.3.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/README.md +15 -22
- package/catalog-info.yaml +4 -4
- 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/action-bar/index.d.ts +8 -0
- package/dist/components/action-bar/index.js +8 -1
- package/dist/components/action-bar/index.js.map +1 -1
- package/dist/components/action-bar/styles.module.css +9 -1
- package/dist/components/action-bar/types.d.ts +1 -0
- 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/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/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.js +44 -37
- package/dist/components/combobox-field/index.js.map +1 -1
- package/dist/components/combobox-field/styles.module.css +5 -1
- package/dist/components/coordinate-field/context.d.ts +6 -6
- package/dist/components/coordinate-field/index.d.ts +2 -2
- package/dist/components/coordinate-field/index.js +3 -1
- package/dist/components/coordinate-field/index.js.map +1 -1
- package/dist/components/coordinate-field/segment.d.ts +3 -2
- package/dist/components/coordinate-field/segment.js +3 -1
- package/dist/components/coordinate-field/segment.js.map +1 -1
- package/dist/components/coordinate-field/styles.module.css +14 -0
- package/dist/components/coordinate-field/types.d.ts +2 -0
- package/dist/components/coordinate-field/types.js.map +1 -1
- package/dist/components/date-field/index.d.ts +3 -2
- package/dist/components/date-field/index.js +4 -2
- package/dist/components/date-field/index.js.map +1 -1
- package/dist/components/date-field/styles.module.css +4 -0
- package/dist/components/deferred-collection/index.d.ts +43 -0
- package/dist/components/deferred-collection/index.js +44 -0
- package/dist/components/deferred-collection/index.js.map +1 -0
- package/dist/components/deferred-collection/types.d.ts +26 -0
- package/dist/components/deferred-collection/types.js +12 -0
- 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/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/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/styles.module.css +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/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/input/index.js +3 -2
- package/dist/components/input/index.js.map +1 -1
- package/dist/components/input/styles.module.css +5 -1
- 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 +2 -2
- 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 +23 -0
- package/dist/components/list/context.js +32 -0
- package/dist/components/list/context.js.map +1 -0
- package/dist/components/list/index.d.ts +44 -0
- package/dist/components/list/index.js +63 -0
- package/dist/components/list/index.js.map +1 -0
- package/dist/components/list/item-content.d.ts +36 -0
- package/dist/components/list/item-content.js +43 -0
- package/dist/components/list/item-content.js.map +1 -0
- package/dist/components/list/item-description.d.ts +34 -0
- package/dist/components/list/item-description.js +43 -0
- package/dist/components/list/item-description.js.map +1 -0
- package/dist/components/list/item-title.d.ts +34 -0
- package/dist/components/list/item-title.js +43 -0
- package/dist/components/list/item-title.js.map +1 -0
- package/dist/components/list/item.d.ts +44 -0
- package/dist/components/list/item.js +52 -0
- package/dist/components/list/item.js.map +1 -0
- package/dist/components/list/styles.module.css +95 -0
- package/dist/components/list/types.d.ts +33 -0
- package/dist/components/list/types.js +12 -0
- 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/styles.module.css +62 -46
- 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/value-editor.d.ts +2 -2
- package/dist/components/query-builder/value-selector.d.ts +2 -2
- package/dist/components/radio/context.d.ts +2 -2
- 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/select-field/index.js +10 -4
- package/dist/components/select-field/index.js.map +1 -1
- package/dist/components/select-field/styles.module.css +4 -0
- package/dist/components/select-field/types.d.ts +1 -0
- 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/switch/context.d.ts +4 -4
- package/dist/components/switch/index.d.ts +2 -2
- package/dist/components/table/body.d.ts +2 -2
- package/dist/components/table/cell.d.ts +2 -2
- package/dist/components/table/context.d.ts +2 -2
- package/dist/components/table/header-cell.d.ts +2 -2
- package/dist/components/table/header.d.ts +2 -2
- package/dist/components/table/index.d.ts +2 -2
- package/dist/components/table/row.d.ts +2 -2
- package/dist/components/tabs/context.d.ts +4 -4
- 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-area-field/styles.module.css +4 -0
- 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 +3 -2
- package/dist/components/time-field/index.js +4 -2
- package/dist/components/time-field/index.js.map +1 -1
- package/dist/components/time-field/styles.module.css +5 -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/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/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-frame-delay/index.d.ts +38 -0
- package/dist/hooks/use-frame-delay/index.js +61 -0
- package/dist/hooks/use-frame-delay/index.js.map +1 -0
- package/dist/index.d.ts +11 -1
- package/dist/index.js +9 -1
- package/dist/providers/portal.d.ts +2 -2
- package/dist/providers/theme-provider.d.ts +2 -2
- package/package.json +19 -9
|
@@ -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_runtime149 from "react/jsx-runtime";
|
|
16
16
|
|
|
17
17
|
//#region src/components/options/item.d.ts
|
|
18
18
|
declare function OptionsItem<T extends OptionsDataItem>({
|
|
@@ -21,7 +21,7 @@ declare function OptionsItem<T extends OptionsDataItem>({
|
|
|
21
21
|
color,
|
|
22
22
|
textValue,
|
|
23
23
|
...rest
|
|
24
|
-
}: OptionsItemProps<T>):
|
|
24
|
+
}: OptionsItemProps<T>): react_jsx_runtime149.JSX.Element;
|
|
25
25
|
//#endregion
|
|
26
26
|
export { OptionsItem };
|
|
27
27
|
//# 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_runtime150 from "react/jsx-runtime";
|
|
15
15
|
|
|
16
16
|
//#region src/components/options/section.d.ts
|
|
17
17
|
declare function OptionsSection<T extends OptionsDataItem>({
|
|
@@ -19,7 +19,7 @@ declare function OptionsSection<T extends OptionsDataItem>({
|
|
|
19
19
|
classNames,
|
|
20
20
|
header,
|
|
21
21
|
items
|
|
22
|
-
}: OptionsSectionProps<T>):
|
|
22
|
+
}: OptionsSectionProps<T>): react_jsx_runtime150.JSX.Element;
|
|
23
23
|
//#endregion
|
|
24
24
|
export { OptionsSection };
|
|
25
25
|
//# sourceMappingURL=section.d.ts.map
|
|
@@ -12,10 +12,10 @@
|
|
|
12
12
|
|
|
13
13
|
import { PaginationContextValue } from "./types.js";
|
|
14
14
|
import "client-only";
|
|
15
|
-
import * as
|
|
15
|
+
import * as react40 from "react";
|
|
16
16
|
|
|
17
17
|
//#region src/components/pagination/context.d.ts
|
|
18
|
-
declare const PaginationContext:
|
|
18
|
+
declare const PaginationContext: react40.Context<PaginationContextValue>;
|
|
19
19
|
//#endregion
|
|
20
20
|
export { PaginationContext };
|
|
21
21
|
//# 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_runtime151 from "react/jsx-runtime";
|
|
16
16
|
|
|
17
17
|
//#region src/components/pagination/index.d.ts
|
|
18
18
|
/**
|
|
@@ -39,7 +39,7 @@ declare function Pagination({
|
|
|
39
39
|
isLoading,
|
|
40
40
|
onChange,
|
|
41
41
|
...rest
|
|
42
|
-
}: PaginationProps):
|
|
42
|
+
}: PaginationProps): react_jsx_runtime151.JSX.Element;
|
|
43
43
|
//#endregion
|
|
44
44
|
export { Pagination };
|
|
45
45
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -12,13 +12,13 @@
|
|
|
12
12
|
|
|
13
13
|
import { PaginationNextProps } 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/pagination/next.d.ts
|
|
18
18
|
declare function PaginationNext({
|
|
19
19
|
className,
|
|
20
20
|
onPress
|
|
21
|
-
}: PaginationNextProps):
|
|
21
|
+
}: PaginationNextProps): react_jsx_runtime152.JSX.Element;
|
|
22
22
|
//#endregion
|
|
23
23
|
export { PaginationNext };
|
|
24
24
|
//# sourceMappingURL=next.d.ts.map
|
|
@@ -12,13 +12,13 @@
|
|
|
12
12
|
|
|
13
13
|
import { PaginationPagesProps } 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/pagination/pages.d.ts
|
|
18
18
|
declare function PaginationPages({
|
|
19
19
|
className,
|
|
20
20
|
onPress
|
|
21
|
-
}: PaginationPagesProps):
|
|
21
|
+
}: PaginationPagesProps): react_jsx_runtime154.JSX.Element[] | null;
|
|
22
22
|
//#endregion
|
|
23
23
|
export { PaginationPages };
|
|
24
24
|
//# sourceMappingURL=pages.d.ts.map
|
|
@@ -12,13 +12,13 @@
|
|
|
12
12
|
|
|
13
13
|
import { PaginationPrevProps } from "./types.js";
|
|
14
14
|
import "client-only";
|
|
15
|
-
import * as
|
|
15
|
+
import * as react_jsx_runtime144 from "react/jsx-runtime";
|
|
16
16
|
|
|
17
17
|
//#region src/components/pagination/prev.d.ts
|
|
18
18
|
declare function PaginationPrev({
|
|
19
19
|
className,
|
|
20
20
|
onPress
|
|
21
|
-
}: PaginationPrevProps):
|
|
21
|
+
}: PaginationPrevProps): react_jsx_runtime144.JSX.Element;
|
|
22
22
|
//#endregion
|
|
23
23
|
export { PaginationPrev };
|
|
24
24
|
//# sourceMappingURL=prev.d.ts.map
|
|
@@ -12,13 +12,13 @@
|
|
|
12
12
|
|
|
13
13
|
import "client-only";
|
|
14
14
|
import { ComponentPropsWithRef } from "react";
|
|
15
|
-
import * as
|
|
15
|
+
import * as react_jsx_runtime179 from "react/jsx-runtime";
|
|
16
16
|
|
|
17
17
|
//#region src/components/popover/content.d.ts
|
|
18
18
|
declare function PopoverContent({
|
|
19
19
|
className,
|
|
20
20
|
...rest
|
|
21
|
-
}: ComponentPropsWithRef<'div'>):
|
|
21
|
+
}: ComponentPropsWithRef<'div'>): react_jsx_runtime179.JSX.Element;
|
|
22
22
|
//#endregion
|
|
23
23
|
export { PopoverContent };
|
|
24
24
|
//# sourceMappingURL=content.d.ts.map
|
|
@@ -12,13 +12,13 @@
|
|
|
12
12
|
|
|
13
13
|
import "client-only";
|
|
14
14
|
import { ComponentPropsWithRef } from "react";
|
|
15
|
-
import * as
|
|
15
|
+
import * as react_jsx_runtime180 from "react/jsx-runtime";
|
|
16
16
|
|
|
17
17
|
//#region src/components/popover/footer.d.ts
|
|
18
18
|
declare function PopoverFooter({
|
|
19
19
|
children,
|
|
20
20
|
className
|
|
21
|
-
}: ComponentPropsWithRef<'footer'>):
|
|
21
|
+
}: ComponentPropsWithRef<'footer'>): react_jsx_runtime180.JSX.Element;
|
|
22
22
|
//#endregion
|
|
23
23
|
export { PopoverFooter };
|
|
24
24
|
//# 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_runtime178 from "react/jsx-runtime";
|
|
16
16
|
|
|
17
17
|
//#region src/components/popover/index.d.ts
|
|
18
18
|
|
|
@@ -51,7 +51,7 @@ declare function Popover({
|
|
|
51
51
|
children,
|
|
52
52
|
classNames,
|
|
53
53
|
...rest
|
|
54
|
-
}: PopoverProps):
|
|
54
|
+
}: PopoverProps): react_jsx_runtime178.JSX.Element;
|
|
55
55
|
//#endregion
|
|
56
56
|
export { Popover };
|
|
57
57
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -12,13 +12,13 @@
|
|
|
12
12
|
|
|
13
13
|
import "client-only";
|
|
14
14
|
import { HeadingProps } from "react-aria-components";
|
|
15
|
-
import * as
|
|
15
|
+
import * as react_jsx_runtime176 from "react/jsx-runtime";
|
|
16
16
|
|
|
17
17
|
//#region src/components/popover/title.d.ts
|
|
18
18
|
declare function PopoverTitle({
|
|
19
19
|
className,
|
|
20
20
|
...rest
|
|
21
|
-
}: HeadingProps):
|
|
21
|
+
}: HeadingProps): react_jsx_runtime176.JSX.Element;
|
|
22
22
|
//#endregion
|
|
23
23
|
export { PopoverTitle };
|
|
24
24
|
//# sourceMappingURL=title.d.ts.map
|
|
@@ -12,14 +12,14 @@
|
|
|
12
12
|
|
|
13
13
|
import { PopoverTriggerProps } from "./types.js";
|
|
14
14
|
import "client-only";
|
|
15
|
-
import * as
|
|
15
|
+
import * as react_jsx_runtime182 from "react/jsx-runtime";
|
|
16
16
|
|
|
17
17
|
//#region src/components/popover/trigger.d.ts
|
|
18
18
|
declare function PopoverTrigger({
|
|
19
19
|
ref,
|
|
20
20
|
children,
|
|
21
21
|
...rest
|
|
22
|
-
}: PopoverTriggerProps):
|
|
22
|
+
}: PopoverTriggerProps): react_jsx_runtime182.JSX.Element;
|
|
23
23
|
//#endregion
|
|
24
24
|
export { PopoverTrigger };
|
|
25
25
|
//# 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_runtime181 from "react/jsx-runtime";
|
|
15
15
|
import { ActionProps } from "react-querybuilder";
|
|
16
16
|
|
|
17
17
|
//#region src/components/query-builder/action-element.d.ts
|
|
@@ -20,7 +20,7 @@ declare function ActionElement({
|
|
|
20
20
|
disabledTranslation,
|
|
21
21
|
title: titleProp,
|
|
22
22
|
handleOnClick
|
|
23
|
-
}: ActionProps):
|
|
23
|
+
}: ActionProps): react_jsx_runtime181.JSX.Element;
|
|
24
24
|
//#endregion
|
|
25
25
|
export { ActionElement };
|
|
26
26
|
//# 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_runtime183 from "react/jsx-runtime";
|
|
15
15
|
import { ActionProps } from "react-querybuilder";
|
|
16
16
|
|
|
17
17
|
//#region src/components/query-builder/actions.d.ts
|
|
@@ -19,17 +19,17 @@ declare function RemoveRuleAction({
|
|
|
19
19
|
handleOnClick,
|
|
20
20
|
className,
|
|
21
21
|
...rest
|
|
22
|
-
}: ActionProps):
|
|
22
|
+
}: ActionProps): react_jsx_runtime183.JSX.Element;
|
|
23
23
|
declare function LockAction({
|
|
24
24
|
handleOnClick,
|
|
25
25
|
className,
|
|
26
26
|
...rest
|
|
27
|
-
}: ActionProps):
|
|
27
|
+
}: ActionProps): react_jsx_runtime183.JSX.Element;
|
|
28
28
|
declare function CloneAction({
|
|
29
29
|
handleOnClick,
|
|
30
30
|
className,
|
|
31
31
|
...rest
|
|
32
|
-
}: ActionProps):
|
|
32
|
+
}: ActionProps): react_jsx_runtime183.JSX.Element;
|
|
33
33
|
//#endregion
|
|
34
34
|
export { CloneAction, LockAction, RemoveRuleAction };
|
|
35
35
|
//# 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_runtime188 from "react/jsx-runtime";
|
|
15
15
|
import { CombinatorSelectorProps } from "react-querybuilder";
|
|
16
16
|
|
|
17
17
|
//#region src/components/query-builder/combinator-selector.d.ts
|
|
@@ -19,7 +19,7 @@ declare function CombinatorSelector({
|
|
|
19
19
|
options,
|
|
20
20
|
value,
|
|
21
21
|
handleOnChange
|
|
22
|
-
}: CombinatorSelectorProps):
|
|
22
|
+
}: CombinatorSelectorProps): react_jsx_runtime188.JSX.Element;
|
|
23
23
|
//#endregion
|
|
24
24
|
export { CombinatorSelector };
|
|
25
25
|
//# 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_runtime126 from "react/jsx-runtime";
|
|
16
16
|
|
|
17
17
|
//#region src/components/query-builder/index.d.ts
|
|
18
18
|
|
|
@@ -46,7 +46,7 @@ declare function QueryBuilder({
|
|
|
46
46
|
orientation,
|
|
47
47
|
showRuleLines,
|
|
48
48
|
...rest
|
|
49
|
-
}: QueryBuilderProps):
|
|
49
|
+
}: QueryBuilderProps): react_jsx_runtime126.JSX.Element;
|
|
50
50
|
//#endregion
|
|
51
51
|
export { QueryBuilder };
|
|
52
52
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -11,13 +11,13 @@
|
|
|
11
11
|
*/
|
|
12
12
|
|
|
13
13
|
import "client-only";
|
|
14
|
-
import * as
|
|
14
|
+
import * as react_jsx_runtime127 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
|
|
18
|
-
declare function RuleGroup(props: RuleGroupProps):
|
|
19
|
-
declare function RuleGroupHeaderComponent(ruleGroup: RuleGroupProps & ReturnType<typeof useRuleGroup>):
|
|
20
|
-
declare function RuleGroupFooterComponent(ruleGroup: RuleGroupProps & ReturnType<typeof useRuleGroup>):
|
|
18
|
+
declare function RuleGroup(props: RuleGroupProps): react_jsx_runtime127.JSX.Element;
|
|
19
|
+
declare function RuleGroupHeaderComponent(ruleGroup: RuleGroupProps & ReturnType<typeof useRuleGroup>): react_jsx_runtime127.JSX.Element;
|
|
20
|
+
declare function RuleGroupFooterComponent(ruleGroup: RuleGroupProps & ReturnType<typeof useRuleGroup>): react_jsx_runtime127.JSX.Element;
|
|
21
21
|
//#endregion
|
|
22
22
|
export { RuleGroup, RuleGroupFooterComponent, RuleGroupHeaderComponent };
|
|
23
23
|
//# sourceMappingURL=rule-group.d.ts.map
|
|
@@ -11,11 +11,11 @@
|
|
|
11
11
|
*/
|
|
12
12
|
|
|
13
13
|
import "client-only";
|
|
14
|
-
import * as
|
|
14
|
+
import * as react_jsx_runtime130 from "react/jsx-runtime";
|
|
15
15
|
import { RuleProps } from "react-querybuilder";
|
|
16
16
|
|
|
17
17
|
//#region src/components/query-builder/rule.d.ts
|
|
18
|
-
declare function Rule(props: RuleProps):
|
|
18
|
+
declare function Rule(props: RuleProps): react_jsx_runtime130.JSX.Element;
|
|
19
19
|
//#endregion
|
|
20
20
|
export { Rule };
|
|
21
21
|
//# sourceMappingURL=rule.d.ts.map
|
|
@@ -11,11 +11,11 @@
|
|
|
11
11
|
*/
|
|
12
12
|
|
|
13
13
|
import "client-only";
|
|
14
|
-
import * as
|
|
14
|
+
import * as react_jsx_runtime131 from "react/jsx-runtime";
|
|
15
15
|
import { ValueEditorProps } from "react-querybuilder";
|
|
16
16
|
|
|
17
17
|
//#region src/components/query-builder/value-editor.d.ts
|
|
18
|
-
declare function ValueEditor(props: ValueEditorProps):
|
|
18
|
+
declare function ValueEditor(props: ValueEditorProps): react_jsx_runtime131.JSX.Element | null;
|
|
19
19
|
//#endregion
|
|
20
20
|
export { ValueEditor };
|
|
21
21
|
//# sourceMappingURL=value-editor.d.ts.map
|
|
@@ -11,11 +11,11 @@
|
|
|
11
11
|
*/
|
|
12
12
|
|
|
13
13
|
import "client-only";
|
|
14
|
-
import * as
|
|
14
|
+
import * as react_jsx_runtime132 from "react/jsx-runtime";
|
|
15
15
|
import { ValueSelectorProps } from "react-querybuilder";
|
|
16
16
|
|
|
17
17
|
//#region src/components/query-builder/value-selector.d.ts
|
|
18
|
-
declare function ValueSelector(props: ValueSelectorProps):
|
|
18
|
+
declare function ValueSelector(props: ValueSelectorProps): react_jsx_runtime132.JSX.Element;
|
|
19
19
|
//#endregion
|
|
20
20
|
export { ValueSelector };
|
|
21
21
|
//# sourceMappingURL=value-selector.d.ts.map
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
|
|
13
13
|
import { RadioGroupProps as RadioGroupProps$1 } from "./types.js";
|
|
14
14
|
import "client-only";
|
|
15
|
-
import * as
|
|
15
|
+
import * as react36 from "react";
|
|
16
16
|
import { ContextValue } from "react-aria-components";
|
|
17
17
|
|
|
18
18
|
//#region src/components/radio/context.d.ts
|
|
@@ -21,7 +21,7 @@ import { ContextValue } from "react-aria-components";
|
|
|
21
21
|
*
|
|
22
22
|
* Provides context for RadioGroup component to share state with Radio components
|
|
23
23
|
*/
|
|
24
|
-
declare const RadioContext:
|
|
24
|
+
declare const RadioContext: react36.Context<ContextValue<RadioGroupProps$1, HTMLDivElement>>;
|
|
25
25
|
//#endregion
|
|
26
26
|
export { RadioContext };
|
|
27
27
|
//# sourceMappingURL=context.d.ts.map
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
|
|
13
13
|
import { RadioGroupProps } from "./types.js";
|
|
14
14
|
import "client-only";
|
|
15
|
-
import * as
|
|
15
|
+
import * as react_jsx_runtime133 from "react/jsx-runtime";
|
|
16
16
|
|
|
17
17
|
//#region src/components/radio/group.d.ts
|
|
18
18
|
/**
|
|
@@ -24,7 +24,7 @@ import * as react_jsx_runtime131 from "react/jsx-runtime";
|
|
|
24
24
|
declare function RadioGroup({
|
|
25
25
|
ref,
|
|
26
26
|
...props
|
|
27
|
-
}: RadioGroupProps):
|
|
27
|
+
}: RadioGroupProps): react_jsx_runtime133.JSX.Element;
|
|
28
28
|
//#endregion
|
|
29
29
|
export { RadioGroup };
|
|
30
30
|
//# sourceMappingURL=group.d.ts.map
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
|
|
13
13
|
import { RadioProps } 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/radio/index.d.ts
|
|
18
18
|
|
|
@@ -51,7 +51,7 @@ declare function Radio({
|
|
|
51
51
|
classNames,
|
|
52
52
|
children,
|
|
53
53
|
...rest
|
|
54
|
-
}: RadioProps):
|
|
54
|
+
}: RadioProps): react_jsx_runtime134.JSX.Element;
|
|
55
55
|
//#endregion
|
|
56
56
|
export { Radio };
|
|
57
57
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -13,9 +13,9 @@
|
|
|
13
13
|
import { ProviderProps } from "../../lib/types.js";
|
|
14
14
|
import { SearchFieldProps as SearchFieldProps$1 } from "./types.js";
|
|
15
15
|
import "client-only";
|
|
16
|
-
import * as
|
|
16
|
+
import * as react37 from "react";
|
|
17
17
|
import { ContextValue } from "react-aria-components";
|
|
18
|
-
import * as
|
|
18
|
+
import * as react_jsx_runtime135 from "react/jsx-runtime";
|
|
19
19
|
|
|
20
20
|
//#region src/components/search-field/context.d.ts
|
|
21
21
|
/**
|
|
@@ -23,7 +23,7 @@ import * as react_jsx_runtime122 from "react/jsx-runtime";
|
|
|
23
23
|
*
|
|
24
24
|
* Provides context for SearchField component to share props
|
|
25
25
|
*/
|
|
26
|
-
declare const SearchFieldContext:
|
|
26
|
+
declare const SearchFieldContext: react37.Context<ContextValue<SearchFieldProps$1, HTMLDivElement>>;
|
|
27
27
|
/**
|
|
28
28
|
* Provider for SearchField component
|
|
29
29
|
*
|
|
@@ -32,7 +32,7 @@ declare const SearchFieldContext: react32.Context<ContextValue<SearchFieldProps$
|
|
|
32
32
|
declare function SearchFieldProvider({
|
|
33
33
|
children,
|
|
34
34
|
...props
|
|
35
|
-
}: ProviderProps<SearchFieldProps$1>):
|
|
35
|
+
}: ProviderProps<SearchFieldProps$1>): react_jsx_runtime135.JSX.Element;
|
|
36
36
|
//#endregion
|
|
37
37
|
export { SearchFieldContext, SearchFieldProvider };
|
|
38
38
|
//# sourceMappingURL=context.d.ts.map
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
|
|
13
13
|
import { SearchFieldProps } 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/search-field/index.d.ts
|
|
18
18
|
|
|
@@ -50,7 +50,7 @@ import * as react_jsx_runtime123 from "react/jsx-runtime";
|
|
|
50
50
|
declare function SearchField({
|
|
51
51
|
ref,
|
|
52
52
|
...props
|
|
53
|
-
}: SearchFieldProps):
|
|
53
|
+
}: SearchFieldProps): react_jsx_runtime136.JSX.Element;
|
|
54
54
|
//#endregion
|
|
55
55
|
export { SearchField };
|
|
56
56
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -13,16 +13,16 @@
|
|
|
13
13
|
import { ProviderProps } from "../../lib/types.js";
|
|
14
14
|
import { SelectFieldProps } from "./types.js";
|
|
15
15
|
import "client-only";
|
|
16
|
-
import * as
|
|
16
|
+
import * as react38 from "react";
|
|
17
17
|
import { ContextValue } from "react-aria-components";
|
|
18
|
-
import * as
|
|
18
|
+
import * as react_jsx_runtime137 from "react/jsx-runtime";
|
|
19
19
|
|
|
20
20
|
//#region src/components/select-field/context.d.ts
|
|
21
|
-
declare const SelectFieldContext:
|
|
21
|
+
declare const SelectFieldContext: react38.Context<ContextValue<SelectFieldProps, HTMLDivElement>>;
|
|
22
22
|
declare function SelectFieldProvider({
|
|
23
23
|
children,
|
|
24
24
|
...props
|
|
25
|
-
}: ProviderProps<SelectFieldProps>):
|
|
25
|
+
}: ProviderProps<SelectFieldProps>): react_jsx_runtime137.JSX.Element;
|
|
26
26
|
//#endregion
|
|
27
27
|
export { SelectFieldContext, SelectFieldProvider };
|
|
28
28
|
//# sourceMappingURL=context.d.ts.map
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
|
|
13
13
|
import { SelectFieldProps } from "./types.js";
|
|
14
14
|
import "client-only";
|
|
15
|
-
import * as
|
|
15
|
+
import * as react_jsx_runtime138 from "react/jsx-runtime";
|
|
16
16
|
|
|
17
17
|
//#region src/components/select-field/index.d.ts
|
|
18
18
|
|
|
@@ -63,7 +63,7 @@ import * as react_jsx_runtime125 from "react/jsx-runtime";
|
|
|
63
63
|
declare function SelectField({
|
|
64
64
|
ref,
|
|
65
65
|
...props
|
|
66
|
-
}: SelectFieldProps):
|
|
66
|
+
}: SelectFieldProps): react_jsx_runtime138.JSX.Element;
|
|
67
67
|
//#endregion
|
|
68
68
|
export { SelectField };
|
|
69
69
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -20,7 +20,7 @@ import { Options } from "../options/index.js";
|
|
|
20
20
|
import { SelectFieldContext } from "./context.js";
|
|
21
21
|
import "client-only";
|
|
22
22
|
import { clsx } from "@accelint/design-foundation/lib/utils";
|
|
23
|
-
import { FieldError, ListLayout, Popover, Select, SelectValue, Text, Virtualizer, composeRenderProps, useContextProps } from "react-aria-components";
|
|
23
|
+
import { Button, FieldError, ListLayout, Popover, Select, SelectValue, Text, Virtualizer, composeRenderProps, useContextProps } from "react-aria-components";
|
|
24
24
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
25
25
|
import ChevronDown from "@accelint/icons/chevron-down";
|
|
26
26
|
import styles from "./styles.module.css";
|
|
@@ -72,17 +72,19 @@ import styles from "./styles.module.css";
|
|
|
72
72
|
*/
|
|
73
73
|
function SelectField({ ref, ...props }) {
|
|
74
74
|
[props, ref] = useContextProps(props, ref ?? null, SelectFieldContext);
|
|
75
|
-
const { size = "medium", children, classNames, description: descriptionProp, errorMessage: errorMessageProp, label: labelProp, layoutOptions, isInvalid: isInvalidProp, ...rest } = props;
|
|
75
|
+
const { size = "medium", children, classNames, description: descriptionProp, errorMessage: errorMessageProp, label: labelProp, layoutOptions, isInvalid: isInvalidProp, isReadOnly, ...rest } = props;
|
|
76
76
|
const errorMessage = errorMessageProp?.trim() ?? null;
|
|
77
77
|
const isInvalid = isInvalidProp ?? !!errorMessage;
|
|
78
78
|
const isSmall = size === "small";
|
|
79
79
|
const showLabel = !isSmall && !!labelProp;
|
|
80
|
+
const shouldShowDescription = !isReadOnly && !!descriptionProp && !(isSmall || isInvalid);
|
|
80
81
|
return /* @__PURE__ */ jsx(Select, {
|
|
81
82
|
...rest,
|
|
82
83
|
ref,
|
|
83
84
|
className: composeRenderProps(classNames?.field, (className) => clsx("group/select-field", styles.field, className)),
|
|
84
85
|
isInvalid,
|
|
85
86
|
"data-size": size,
|
|
87
|
+
"data-readonly": isReadOnly,
|
|
86
88
|
children: composeRenderProps(children, (children$1, { isRequired, isDisabled, isInvalid: isInvalid$1 }) => /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
87
89
|
showLabel && /* @__PURE__ */ jsx(Label$1, {
|
|
88
90
|
className: clsx(styles.label, classNames?.label),
|
|
@@ -90,13 +92,17 @@ function SelectField({ ref, ...props }) {
|
|
|
90
92
|
isDisabled,
|
|
91
93
|
children: labelProp
|
|
92
94
|
}),
|
|
93
|
-
/* @__PURE__ */
|
|
95
|
+
isReadOnly ? /* @__PURE__ */ jsx(Button, {
|
|
96
|
+
isDisabled: true,
|
|
97
|
+
className: styles.readonly,
|
|
98
|
+
children: /* @__PURE__ */ jsx(SelectValue, { className: clsx(styles.value, classNames?.value) })
|
|
99
|
+
}) : /* @__PURE__ */ jsxs(Button$1, {
|
|
94
100
|
className: composeRenderProps(classNames?.trigger, (className) => clsx(styles.trigger, className)),
|
|
95
101
|
size,
|
|
96
102
|
variant: "outline",
|
|
97
103
|
children: [/* @__PURE__ */ jsx(SelectValue, { className: clsx(styles.value, classNames?.value) }), /* @__PURE__ */ jsx(Icon, { children: /* @__PURE__ */ jsx(ChevronDown, { className: "transform group-open/select-field:rotate-180" }) })]
|
|
98
104
|
}),
|
|
99
|
-
|
|
105
|
+
shouldShowDescription && /* @__PURE__ */ jsx(Text, {
|
|
100
106
|
slot: "description",
|
|
101
107
|
className: clsx(styles.description, classNames?.description),
|
|
102
108
|
children: descriptionProp
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":["AriaSelect","Label","
|
|
1
|
+
{"version":3,"file":"index.js","names":["AriaSelect","Label","AriaButton","Button","children"],"sources":["../../../src/components/select-field/index.tsx"],"sourcesContent":["/*\n * Copyright 2025 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 { clsx } from '@accelint/design-foundation/lib/utils';\nimport ChevronDown from '@accelint/icons/chevron-down';\nimport {\n Button as AriaButton,\n Select as AriaSelect,\n composeRenderProps,\n FieldError,\n ListLayout,\n Popover,\n SelectValue,\n Text,\n useContextProps,\n Virtualizer,\n} from 'react-aria-components';\nimport { Button } from '../button';\nimport { Icon } from '../icon';\nimport { Label } from '../label';\nimport { Options } from '../options';\nimport { SelectFieldContext } from './context';\nimport styles from './styles.module.css';\nimport type { SelectFieldProps } from './types';\n\n/**\n * SelectField - A dropdown selection component with comprehensive form field features\n *\n * Provides an accessible and feature-rich select dropdown with built-in validation,\n * multiple sizing options, virtualization support for large datasets, and seamless\n * integration with form libraries. Includes label, description, and error messaging\n * capabilities with customizable styling through className props.\n *\n * @example\n * // Basic select field\n * <SelectField label='Country' placeholder='Select a country'>\n * <OptionsItem textValue='us'>United States</OptionsItem>\n * <OptionsItem textValue='ca'>Canada</OptionsItem>\n * <OptionsItem textValue='uk'>United Kingdom</OptionsItem>\n * </SelectField>\n *\n * @example\n * // Select field with validation and description\n * <SelectField\n * label=\"Priority Level\"\n * description=\"Choose the urgency level for this task\"\n * errorMessage={errors.priority}\n * isRequired\n * isInvalid={!!errors.priority}\n * >\n * <OptionsItem textValue=\"low\">Low</OptionsItem>\n * <OptionsItem textValue=\"medium\">Medium</OptionsItem>\n * <OptionsItem textValue=\"high\">High</OptionsItem>\n * </SelectField>\n *\n * @example\n * // Small size select field with custom styling\n * <SelectField\n * size=\"small\"\n * placeholder=\"Quick select\"\n * classNames={{\n * field: \"custom-field-styles\",\n * trigger: \"custom-trigger-styles\"\n * }}\n * >\n * <OptionsItem textValue=\"option1\">Option 1</OptionsItem>\n * <OptionsItem textValue=\"option2\">Option 2</OptionsItem>\n * </SelectField>\n */\nexport function SelectField({ ref, ...props }: SelectFieldProps) {\n [props, ref] = useContextProps(props, ref ?? null, SelectFieldContext);\n\n const {\n size = 'medium',\n children,\n classNames,\n description: descriptionProp,\n errorMessage: errorMessageProp,\n label: labelProp,\n layoutOptions,\n isInvalid: isInvalidProp,\n isReadOnly,\n ...rest\n } = props;\n\n const errorMessage = errorMessageProp?.trim() ?? null;\n const hasError = !!errorMessage;\n const isInvalid = isInvalidProp ?? hasError;\n const isSmall = size === 'small';\n const showLabel = !isSmall && !!labelProp;\n const shouldShowDescription =\n !isReadOnly && !!descriptionProp && !(isSmall || isInvalid);\n\n return (\n <AriaSelect\n {...rest}\n ref={ref}\n className={composeRenderProps(classNames?.field, (className) =>\n clsx('group/select-field', styles.field, className),\n )}\n isInvalid={isInvalid}\n data-size={size}\n data-readonly={isReadOnly}\n >\n {composeRenderProps(\n children,\n (children, { isRequired, isDisabled, isInvalid }) => (\n <>\n {showLabel && (\n <Label\n className={clsx(styles.label, classNames?.label)}\n isRequired={isRequired}\n isDisabled={isDisabled}\n >\n {labelProp}\n </Label>\n )}\n {isReadOnly ? (\n // Using the native RAC disabled button component because we don't want the DTK button styles\n <AriaButton isDisabled className={styles.readonly}>\n <SelectValue\n className={clsx(styles.value, classNames?.value)}\n />\n </AriaButton>\n ) : (\n <Button\n className={composeRenderProps(\n classNames?.trigger,\n (className) => clsx(styles.trigger, className),\n )}\n size={size}\n variant='outline'\n >\n <SelectValue\n className={clsx(styles.value, classNames?.value)}\n />\n <Icon>\n <ChevronDown className='transform group-open/select-field:rotate-180' />\n </Icon>\n </Button>\n )}\n {shouldShowDescription && (\n <Text\n slot='description'\n className={clsx(styles.description, classNames?.description)}\n >\n {descriptionProp}\n </Text>\n )}\n <FieldError\n className={composeRenderProps(classNames?.error, (className) =>\n clsx(styles.error, className),\n )}\n >\n {errorMessage}\n </FieldError>\n <Popover\n className={composeRenderProps(classNames?.popover, (className) =>\n clsx(styles.popover, className),\n )}\n >\n <Virtualizer layout={ListLayout} layoutOptions={layoutOptions}>\n <Options>{children}</Options>\n </Virtualizer>\n </Popover>\n </>\n ),\n )}\n </AriaSelect>\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAgFA,SAAgB,YAAY,EAAE,KAAK,GAAG,SAA2B;AAC/D,EAAC,OAAO,OAAO,gBAAgB,OAAO,OAAO,MAAM,mBAAmB;CAEtE,MAAM,EACJ,OAAO,UACP,UACA,YACA,aAAa,iBACb,cAAc,kBACd,OAAO,WACP,eACA,WAAW,eACX,YACA,GAAG,SACD;CAEJ,MAAM,eAAe,kBAAkB,MAAM,IAAI;CAEjD,MAAM,YAAY,iBADD,CAAC,CAAC;CAEnB,MAAM,UAAU,SAAS;CACzB,MAAM,YAAY,CAAC,WAAW,CAAC,CAAC;CAChC,MAAM,wBACJ,CAAC,cAAc,CAAC,CAAC,mBAAmB,EAAE,WAAW;AAEnD,QACE,oBAACA;EACC,GAAI;EACC;EACL,WAAW,mBAAmB,YAAY,QAAQ,cAChD,KAAK,sBAAsB,OAAO,OAAO,UAAU,CACpD;EACU;EACX,aAAW;EACX,iBAAe;YAEd,mBACC,WACC,YAAU,EAAE,YAAY,YAAY,6BACnC;GACG,aACC,oBAACC;IACC,WAAW,KAAK,OAAO,OAAO,YAAY,MAAM;IACpC;IACA;cAEX;KACK;GAET,aAEC,oBAACC;IAAW;IAAW,WAAW,OAAO;cACvC,oBAAC,eACC,WAAW,KAAK,OAAO,OAAO,YAAY,MAAM,GAChD;KACS,GAEb,qBAACC;IACC,WAAW,mBACT,YAAY,UACX,cAAc,KAAK,OAAO,SAAS,UAAU,CAC/C;IACK;IACN,SAAQ;eAER,oBAAC,eACC,WAAW,KAAK,OAAO,OAAO,YAAY,MAAM,GAChD,EACF,oBAAC,kBACC,oBAAC,eAAY,WAAU,iDAAiD,GACnE;KACA;GAEV,yBACC,oBAAC;IACC,MAAK;IACL,WAAW,KAAK,OAAO,aAAa,YAAY,YAAY;cAE3D;KACI;GAET,oBAAC;IACC,WAAW,mBAAmB,YAAY,QAAQ,cAChD,KAAK,OAAO,OAAO,UAAU,CAC9B;cAEA;KACU;GACb,oBAAC;IACC,WAAW,mBAAmB,YAAY,UAAU,cAClD,KAAK,OAAO,SAAS,UAAU,CAChC;cAED,oBAAC;KAAY,QAAQ;KAA2B;eAC9C,oBAAC,qBAASC,aAAmB;MACjB;KACN;MACT,CAEN;GACU"}
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
|
|
13
13
|
import { SidenavAvatarProps } from "./types.js";
|
|
14
14
|
import "client-only";
|
|
15
|
-
import * as
|
|
15
|
+
import * as react_jsx_runtime139 from "react/jsx-runtime";
|
|
16
16
|
|
|
17
17
|
//#region src/components/sidenav/avatar.d.ts
|
|
18
18
|
/**
|
|
@@ -24,7 +24,7 @@ declare function SidenavAvatar({
|
|
|
24
24
|
children,
|
|
25
25
|
className,
|
|
26
26
|
...rest
|
|
27
|
-
}: SidenavAvatarProps):
|
|
27
|
+
}: SidenavAvatarProps): react_jsx_runtime139.JSX.Element;
|
|
28
28
|
//#endregion
|
|
29
29
|
export { SidenavAvatar };
|
|
30
30
|
//# sourceMappingURL=avatar.d.ts.map
|