@accelint/design-toolkit 9.8.0 → 9.9.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/catalog-info.yaml +7 -4
- package/dist/components/accordion/context.d.ts +2 -2
- package/dist/components/accordion/group.d.ts +2 -2
- package/dist/components/accordion/header.d.ts +2 -2
- package/dist/components/accordion/index.d.ts +2 -2
- package/dist/components/accordion/panel.d.ts +2 -2
- package/dist/components/accordion/trigger.d.ts +2 -2
- package/dist/components/action-bar/index.d.ts +2 -2
- package/dist/components/audio/index.d.ts +2 -2
- package/dist/components/avatar/context.d.ts +4 -4
- package/dist/components/avatar/index.d.ts +2 -2
- package/dist/components/badge/context.d.ts +4 -4
- package/dist/components/badge/index.d.ts +2 -2
- package/dist/components/breadcrumbs/index.d.ts +2 -2
- package/dist/components/button/__internal__/clear.js +1 -0
- package/dist/components/button/__internal__/clear.js.map +1 -1
- package/dist/components/button/context.d.ts +8 -8
- package/dist/components/button/index.d.ts +2 -2
- package/dist/components/button/link.d.ts +2 -2
- package/dist/components/button/toggle.d.ts +2 -2
- package/dist/components/checkbox/context.d.ts +3 -3
- package/dist/components/checkbox/group.d.ts +2 -2
- package/dist/components/checkbox/index.d.ts +2 -2
- package/dist/components/chip/context.d.ts +4 -4
- package/dist/components/chip/deletable.d.ts +2 -2
- package/dist/components/chip/index.d.ts +2 -2
- package/dist/components/chip/list.d.ts +4 -4
- package/dist/components/chip/selectable.d.ts +2 -2
- package/dist/components/classification-badge/context.d.ts +4 -4
- package/dist/components/classification-badge/index.d.ts +2 -2
- package/dist/components/classification-banner/context.d.ts +4 -4
- package/dist/components/classification-banner/index.d.ts +2 -2
- package/dist/components/clock/index.d.ts +2 -2
- package/dist/components/color-picker/index.d.ts +7 -45
- package/dist/components/color-picker/index.js +34 -52
- package/dist/components/color-picker/index.js.map +1 -1
- package/dist/components/color-picker/styles.module.css +5 -1
- package/dist/components/color-picker/types.d.ts +17 -4
- package/dist/components/combobox-field/context.d.ts +4 -4
- package/dist/components/combobox-field/index.d.ts +2 -2
- package/dist/components/combobox-field/index.js +19 -1
- package/dist/components/combobox-field/index.js.map +1 -1
- package/dist/components/coordinate-field/context.d.ts +6 -6
- package/dist/components/coordinate-field/index.d.ts +2 -2
- package/dist/components/coordinate-field/index.js +49 -42
- package/dist/components/coordinate-field/index.js.map +1 -1
- package/dist/components/coordinate-field/segment.d.ts +2 -2
- package/dist/components/coordinate-field/types.d.ts +5 -0
- package/dist/components/coordinate-field/types.js.map +1 -1
- package/dist/components/date-field/index.d.ts +2 -2
- package/dist/components/deferred-collection/index.d.ts +2 -2
- package/dist/components/details-list/context.d.ts +4 -4
- package/dist/components/details-list/index.d.ts +2 -2
- package/dist/components/details-list/label.d.ts +2 -2
- package/dist/components/details-list/value.d.ts +2 -2
- package/dist/components/dialog/content.d.ts +2 -2
- package/dist/components/dialog/context.d.ts +2 -2
- package/dist/components/dialog/footer.d.ts +2 -2
- package/dist/components/dialog/index.d.ts +2 -2
- package/dist/components/dialog/title.d.ts +2 -2
- package/dist/components/divider/context.d.ts +4 -4
- package/dist/components/divider/index.d.ts +2 -2
- package/dist/components/drawer/back.d.ts +2 -2
- package/dist/components/drawer/close.d.ts +2 -2
- package/dist/components/drawer/content.d.ts +2 -2
- package/dist/components/drawer/context.d.ts +3 -3
- package/dist/components/drawer/footer.d.ts +2 -2
- package/dist/components/drawer/header-title.d.ts +2 -2
- package/dist/components/drawer/header.d.ts +2 -2
- package/dist/components/drawer/index.d.ts +2 -2
- package/dist/components/drawer/layout-main.d.ts +2 -2
- package/dist/components/drawer/layout.d.ts +2 -2
- package/dist/components/drawer/menu-item.d.ts +2 -2
- package/dist/components/drawer/menu-item.js +2 -2
- package/dist/components/drawer/menu.d.ts +2 -2
- package/dist/components/drawer/panel.d.ts +2 -2
- package/dist/components/drawer/trigger.d.ts +2 -2
- package/dist/components/drawer/types.d.ts +1 -1
- package/dist/components/drawer/view.d.ts +2 -2
- package/dist/components/flashcard/index.d.ts +9 -9
- package/dist/components/floating-card/context.d.ts +2 -2
- package/dist/components/floating-card/index.d.ts +2 -2
- package/dist/components/floating-card/provider.d.ts +2 -2
- package/dist/components/floating-card/provider.js +2 -2
- package/dist/components/floating-card/provider.js.map +1 -1
- package/dist/components/floating-card/styles.module.css +1 -1
- package/dist/components/hero/context.d.ts +2 -2
- package/dist/components/hero/index.d.ts +2 -2
- package/dist/components/hero/subtitle.d.ts +3 -3
- package/dist/components/hero/title.d.ts +2 -2
- package/dist/components/hotkey/context.d.ts +4 -4
- package/dist/components/hotkey/index.d.ts +2 -2
- package/dist/components/hotkey/set.d.ts +2 -2
- package/dist/components/icon/context.d.ts +4 -4
- package/dist/components/icon/index.d.ts +2 -2
- package/dist/components/input/context.d.ts +2 -2
- package/dist/components/input/index.d.ts +2 -2
- package/dist/components/input/styles.module.css +8 -0
- package/dist/components/kanban/card-body.d.ts +2 -2
- package/dist/components/kanban/card-header-actions.d.ts +2 -2
- package/dist/components/kanban/card-header-title.d.ts +2 -2
- package/dist/components/kanban/card-header.d.ts +2 -2
- package/dist/components/kanban/card.d.ts +2 -2
- package/dist/components/kanban/column-actions.d.ts +2 -2
- package/dist/components/kanban/column-container.d.ts +2 -2
- package/dist/components/kanban/column-content.d.ts +2 -2
- package/dist/components/kanban/column-header-actions.d.ts +2 -2
- package/dist/components/kanban/column-header-drag-handle.d.ts +2 -2
- package/dist/components/kanban/column-header-title.d.ts +2 -2
- package/dist/components/kanban/column-header.d.ts +2 -2
- package/dist/components/kanban/column.d.ts +2 -2
- package/dist/components/kanban/context.d.ts +2 -2
- package/dist/components/kanban/header-actions.d.ts +2 -2
- package/dist/components/kanban/header-search.d.ts +2 -2
- package/dist/components/kanban/header-title.d.ts +2 -2
- package/dist/components/kanban/header.d.ts +2 -2
- package/dist/components/kanban/kanban.d.ts +4 -4
- package/dist/components/label/context.d.ts +4 -4
- package/dist/components/label/index.d.ts +2 -2
- package/dist/components/lines/index.d.ts +2 -2
- package/dist/components/link/context.d.ts +2 -2
- package/dist/components/link/index.d.ts +2 -2
- package/dist/components/list/context.d.ts +2 -2
- package/dist/components/list/index.d.ts +2 -2
- package/dist/components/list/item-content.d.ts +2 -2
- package/dist/components/list/item-description.d.ts +2 -2
- package/dist/components/list/item-title.d.ts +2 -2
- package/dist/components/list/item.d.ts +2 -2
- package/dist/components/media-controls/context.d.ts +4 -4
- package/dist/components/media-controls/fullscreen-button.d.ts +2 -2
- package/dist/components/media-controls/index.d.ts +2 -2
- package/dist/components/media-controls/mute-button.d.ts +2 -2
- package/dist/components/media-controls/play-button.d.ts +2 -2
- package/dist/components/media-controls/playback-rate.d.ts +2 -2
- package/dist/components/media-controls/seek-button.d.ts +2 -2
- package/dist/components/media-controls/time-display.d.ts +2 -2
- package/dist/components/media-controls/time-range.d.ts +2 -2
- package/dist/components/media-controls/volume-slider.d.ts +2 -2
- package/dist/components/menu/context.d.ts +2 -2
- package/dist/components/menu/index.d.ts +2 -2
- package/dist/components/menu/item-description.d.ts +2 -2
- package/dist/components/menu/item-label.d.ts +2 -2
- package/dist/components/menu/item.d.ts +2 -2
- package/dist/components/menu/section.d.ts +2 -2
- package/dist/components/menu/separator.d.ts +2 -2
- package/dist/components/menu/submenu.d.ts +3 -3
- package/dist/components/notice/index.d.ts +2 -2
- package/dist/components/notice/list.d.ts +2 -2
- package/dist/components/notice/list.js +1 -1
- package/dist/components/notice/notice-icon.d.ts +2 -2
- package/dist/components/notice/types.d.ts +1 -1
- package/dist/components/options/context.d.ts +2 -2
- package/dist/components/options/index.d.ts +2 -2
- package/dist/components/options/item-content.d.ts +2 -2
- package/dist/components/options/item-description.d.ts +2 -2
- package/dist/components/options/item-label.d.ts +3 -2
- package/dist/components/options/item-label.js +20 -4
- package/dist/components/options/item-label.js.map +1 -1
- package/dist/components/options/item.d.ts +2 -2
- package/dist/components/options/section.d.ts +2 -2
- package/dist/components/options/styles.module.css +20 -0
- package/dist/components/pagination/context.d.ts +2 -2
- package/dist/components/pagination/pages.d.ts +2 -2
- package/dist/components/popover/content.d.ts +2 -2
- package/dist/components/popover/footer.d.ts +2 -2
- package/dist/components/popover/index.d.ts +2 -2
- package/dist/components/popover/title.d.ts +2 -2
- package/dist/components/popover/trigger.d.ts +2 -2
- package/dist/components/query-builder/action-element.d.ts +2 -2
- package/dist/components/query-builder/actions.d.ts +4 -4
- package/dist/components/query-builder/combinator-selector.d.ts +2 -2
- package/dist/components/query-builder/index.d.ts +2 -2
- package/dist/components/query-builder/rule-group.d.ts +4 -4
- package/dist/components/query-builder/rule.d.ts +2 -2
- package/dist/components/query-builder/value-editor.d.ts +2 -2
- package/dist/components/query-builder/value-selector.d.ts +2 -2
- package/dist/components/radio/context.d.ts +3 -3
- package/dist/components/radio/group.d.ts +2 -2
- package/dist/components/radio/index.d.ts +2 -2
- package/dist/components/search-field/context.d.ts +4 -4
- package/dist/components/search-field/index.d.ts +2 -2
- package/dist/components/select-field/context.d.ts +4 -4
- package/dist/components/select-field/index.d.ts +2 -2
- package/dist/components/sidenav/avatar.d.ts +2 -2
- package/dist/components/sidenav/content.d.ts +2 -2
- package/dist/components/sidenav/context.d.ts +2 -2
- package/dist/components/sidenav/footer.d.ts +2 -2
- package/dist/components/sidenav/header.d.ts +2 -2
- package/dist/components/sidenav/index.d.ts +2 -2
- package/dist/components/sidenav/item.d.ts +2 -2
- package/dist/components/sidenav/link.d.ts +2 -2
- package/dist/components/sidenav/menu-item.d.ts +2 -2
- package/dist/components/sidenav/menu.d.ts +2 -2
- package/dist/components/sidenav/trigger.d.ts +2 -2
- package/dist/components/sidenav/trigger.js +1 -1
- package/dist/components/sidenav/types.d.ts +1 -1
- package/dist/components/skeleton/index.d.ts +2 -2
- package/dist/components/slider/index.d.ts +2 -2
- package/dist/components/slider/styles.module.css +3 -2
- package/dist/components/status-indicator/index.d.ts +2 -2
- package/dist/components/switch/context.d.ts +4 -4
- package/dist/components/switch/index.d.ts +2 -2
- package/dist/components/table/body.d.ts +2 -2
- package/dist/components/table/cell.d.ts +2 -2
- package/dist/components/table/context.d.ts +2 -2
- package/dist/components/table/header-cell.d.ts +2 -2
- package/dist/components/table/header.d.ts +2 -2
- package/dist/components/table/index.d.ts +2 -2
- package/dist/components/table/row.d.ts +2 -2
- package/dist/components/tabs/context.d.ts +6 -6
- package/dist/components/tabs/index.d.ts +2 -2
- package/dist/components/tabs/list.d.ts +2 -2
- package/dist/components/tabs/panel.d.ts +2 -2
- package/dist/components/tabs/tab.d.ts +2 -2
- package/dist/components/text-area-field/context.d.ts +4 -4
- package/dist/components/text-area-field/index.d.ts +2 -2
- package/dist/components/text-field/context.d.ts +4 -4
- package/dist/components/text-field/index.d.ts +2 -2
- package/dist/components/time-field/index.d.ts +2 -2
- package/dist/components/tooltip/index.d.ts +2 -2
- package/dist/components/tooltip/trigger.d.ts +2 -2
- package/dist/components/tooltip/trigger.js +1 -1
- package/dist/components/tree/index.d.ts +2 -2
- package/dist/components/tree/index.js +6 -4
- package/dist/components/tree/index.js.map +1 -1
- package/dist/components/tree/item-actions.d.ts +2 -2
- package/dist/components/tree/item-content.d.ts +2 -2
- package/dist/components/tree/item-content.js +9 -5
- package/dist/components/tree/item-content.js.map +1 -1
- package/dist/components/tree/item-description.d.ts +2 -2
- package/dist/components/tree/item-label.d.ts +2 -2
- package/dist/components/tree/item-prefix-icon.d.ts +2 -2
- package/dist/components/tree/item.d.ts +2 -2
- package/dist/components/tree/lines.d.ts +4 -2
- package/dist/components/tree/lines.js +8 -4
- package/dist/components/tree/lines.js.map +1 -1
- package/dist/components/tree/styles.module.css +23 -3
- package/dist/components/video/index.d.ts +2 -2
- package/dist/components/view-stack/context.d.ts +2 -2
- package/dist/components/view-stack/index.d.ts +2 -2
- package/dist/components/view-stack/index.js +1 -1
- package/dist/components/view-stack/trigger.d.ts +2 -2
- package/dist/components/view-stack/types.d.ts +1 -1
- package/dist/components/view-stack/view.d.ts +2 -2
- package/dist/hooks/use-tree/state/index.js +7 -14
- package/dist/hooks/use-tree/state/index.js.map +1 -1
- package/dist/index.js +3 -3
- package/dist/node_modules/.pnpm/@react-aria_collections@3.0.0-rc.7_react-dom@19.2.3_react@19.2.3__react@19.2.3/node_modules/@react-aria/collections/dist/BaseCollection.js +134 -0
- package/dist/node_modules/.pnpm/@react-aria_collections@3.0.0-rc.7_react-dom@19.2.3_react@19.2.3__react@19.2.3/node_modules/@react-aria/collections/dist/BaseCollection.js.map +1 -0
- package/dist/providers/portal.js +1 -1
- package/dist/providers/theme-provider.d.ts +2 -2
- package/package.json +14 -9
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
|
|
13
13
|
import { ListItemTitleProps } from "./types.js";
|
|
14
14
|
import "client-only";
|
|
15
|
-
import * as
|
|
15
|
+
import * as react_jsx_runtime105 from "react/jsx-runtime";
|
|
16
16
|
|
|
17
17
|
//#region src/components/list/item-title.d.ts
|
|
18
18
|
/**
|
|
@@ -35,7 +35,7 @@ declare function ListItemTitle({
|
|
|
35
35
|
children,
|
|
36
36
|
className,
|
|
37
37
|
...rest
|
|
38
|
-
}: ListItemTitleProps):
|
|
38
|
+
}: ListItemTitleProps): react_jsx_runtime105.JSX.Element;
|
|
39
39
|
//#endregion
|
|
40
40
|
export { ListItemTitle };
|
|
41
41
|
//# sourceMappingURL=item-title.d.ts.map
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
|
|
13
13
|
import { ListItemProps } from "./types.js";
|
|
14
14
|
import "client-only";
|
|
15
|
-
import * as
|
|
15
|
+
import * as react_jsx_runtime101 from "react/jsx-runtime";
|
|
16
16
|
|
|
17
17
|
//#region src/components/list/item.d.ts
|
|
18
18
|
|
|
@@ -46,7 +46,7 @@ declare function ListItem<T extends object>({
|
|
|
46
46
|
classNames,
|
|
47
47
|
textValue,
|
|
48
48
|
...rest
|
|
49
|
-
}: ListItemProps<T>):
|
|
49
|
+
}: ListItemProps<T>): react_jsx_runtime101.JSX.Element;
|
|
50
50
|
//#endregion
|
|
51
51
|
export { ListItem };
|
|
52
52
|
//# sourceMappingURL=item.d.ts.map
|
|
@@ -12,9 +12,9 @@
|
|
|
12
12
|
|
|
13
13
|
import { MediaControlsContextValue } from "./types.js";
|
|
14
14
|
import "client-only";
|
|
15
|
-
import * as
|
|
15
|
+
import * as react28 from "react";
|
|
16
16
|
import { PropsWithChildren } from "react";
|
|
17
|
-
import * as
|
|
17
|
+
import * as react_jsx_runtime113 from "react/jsx-runtime";
|
|
18
18
|
|
|
19
19
|
//#region src/components/media-controls/context.d.ts
|
|
20
20
|
/**
|
|
@@ -22,7 +22,7 @@ import * as react_jsx_runtime94 from "react/jsx-runtime";
|
|
|
22
22
|
*
|
|
23
23
|
* Provides shared configuration values (isDisabled) to all child controls.
|
|
24
24
|
*/
|
|
25
|
-
declare const MediaControlsContext:
|
|
25
|
+
declare const MediaControlsContext: react28.Context<MediaControlsContextValue>;
|
|
26
26
|
/**
|
|
27
27
|
* Validates that media-chrome's MediaProvider is present.
|
|
28
28
|
*
|
|
@@ -60,7 +60,7 @@ declare function useMediaControlsDisabled(propIsDisabled?: boolean): boolean;
|
|
|
60
60
|
declare function MediaControlsProvider({
|
|
61
61
|
children,
|
|
62
62
|
isDisabled
|
|
63
|
-
}: PropsWithChildren<Partial<MediaControlsContextValue>>):
|
|
63
|
+
}: PropsWithChildren<Partial<MediaControlsContextValue>>): react_jsx_runtime113.JSX.Element;
|
|
64
64
|
//#endregion
|
|
65
65
|
export { MediaControlsContext, MediaControlsProvider, useMediaControlsDisabled, useMediaProviderGuard };
|
|
66
66
|
//# sourceMappingURL=context.d.ts.map
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
|
|
13
13
|
import { FullscreenButtonProps } from "./types.js";
|
|
14
14
|
import "client-only";
|
|
15
|
-
import * as
|
|
15
|
+
import * as react_jsx_runtime111 from "react/jsx-runtime";
|
|
16
16
|
|
|
17
17
|
//#region src/components/media-controls/fullscreen-button.d.ts
|
|
18
18
|
|
|
@@ -49,7 +49,7 @@ declare function FullscreenButton({
|
|
|
49
49
|
isDisabled: isDisabledProp,
|
|
50
50
|
ref,
|
|
51
51
|
...rest
|
|
52
|
-
}: FullscreenButtonProps):
|
|
52
|
+
}: FullscreenButtonProps): react_jsx_runtime111.JSX.Element;
|
|
53
53
|
//#endregion
|
|
54
54
|
export { FullscreenButton };
|
|
55
55
|
//# sourceMappingURL=fullscreen-button.d.ts.map
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
|
|
13
13
|
import { MediaControlsProps } from "./types.js";
|
|
14
14
|
import "client-only";
|
|
15
|
-
import * as
|
|
15
|
+
import * as react_jsx_runtime114 from "react/jsx-runtime";
|
|
16
16
|
|
|
17
17
|
//#region src/components/media-controls/index.d.ts
|
|
18
18
|
|
|
@@ -62,7 +62,7 @@ declare function MediaControls({
|
|
|
62
62
|
children,
|
|
63
63
|
isDisabled,
|
|
64
64
|
...rest
|
|
65
|
-
}: MediaControlsProps):
|
|
65
|
+
}: MediaControlsProps): react_jsx_runtime114.JSX.Element;
|
|
66
66
|
//#endregion
|
|
67
67
|
export { MediaControls };
|
|
68
68
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
|
|
13
13
|
import { MuteButtonProps } from "./types.js";
|
|
14
14
|
import "client-only";
|
|
15
|
-
import * as
|
|
15
|
+
import * as react_jsx_runtime115 from "react/jsx-runtime";
|
|
16
16
|
|
|
17
17
|
//#region src/components/media-controls/mute-button.d.ts
|
|
18
18
|
|
|
@@ -41,7 +41,7 @@ declare function MuteButton({
|
|
|
41
41
|
isDisabled: isDisabledProp,
|
|
42
42
|
ref,
|
|
43
43
|
...rest
|
|
44
|
-
}: MuteButtonProps):
|
|
44
|
+
}: MuteButtonProps): react_jsx_runtime115.JSX.Element;
|
|
45
45
|
//#endregion
|
|
46
46
|
export { MuteButton };
|
|
47
47
|
//# sourceMappingURL=mute-button.d.ts.map
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
|
|
13
13
|
import { PlayButtonProps } from "./types.js";
|
|
14
14
|
import "client-only";
|
|
15
|
-
import * as
|
|
15
|
+
import * as react_jsx_runtime117 from "react/jsx-runtime";
|
|
16
16
|
|
|
17
17
|
//#region src/components/media-controls/play-button.d.ts
|
|
18
18
|
|
|
@@ -41,7 +41,7 @@ declare function PlayButton({
|
|
|
41
41
|
isDisabled: isDisabledProp,
|
|
42
42
|
ref,
|
|
43
43
|
...rest
|
|
44
|
-
}: PlayButtonProps):
|
|
44
|
+
}: PlayButtonProps): react_jsx_runtime117.JSX.Element;
|
|
45
45
|
//#endregion
|
|
46
46
|
export { PlayButton };
|
|
47
47
|
//# sourceMappingURL=play-button.d.ts.map
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
|
|
13
13
|
import { PlaybackRateButtonProps } from "./types.js";
|
|
14
14
|
import "client-only";
|
|
15
|
-
import * as
|
|
15
|
+
import * as react_jsx_runtime116 from "react/jsx-runtime";
|
|
16
16
|
|
|
17
17
|
//#region src/components/media-controls/playback-rate.d.ts
|
|
18
18
|
|
|
@@ -52,7 +52,7 @@ declare function PlaybackRateButton({
|
|
|
52
52
|
isDisabled: isDisabledProp,
|
|
53
53
|
ref,
|
|
54
54
|
...rest
|
|
55
|
-
}: PlaybackRateButtonProps):
|
|
55
|
+
}: PlaybackRateButtonProps): react_jsx_runtime116.JSX.Element;
|
|
56
56
|
//#endregion
|
|
57
57
|
export { PlaybackRateButton };
|
|
58
58
|
//# sourceMappingURL=playback-rate.d.ts.map
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
|
|
13
13
|
import { SeekButtonProps } from "./types.js";
|
|
14
14
|
import "client-only";
|
|
15
|
-
import * as
|
|
15
|
+
import * as react_jsx_runtime118 from "react/jsx-runtime";
|
|
16
16
|
|
|
17
17
|
//#region src/components/media-controls/seek-button.d.ts
|
|
18
18
|
|
|
@@ -54,7 +54,7 @@ declare function SeekButton({
|
|
|
54
54
|
isDisabled: isDisabledProp,
|
|
55
55
|
ref,
|
|
56
56
|
...rest
|
|
57
|
-
}: SeekButtonProps):
|
|
57
|
+
}: SeekButtonProps): react_jsx_runtime118.JSX.Element;
|
|
58
58
|
//#endregion
|
|
59
59
|
export { SeekButton };
|
|
60
60
|
//# sourceMappingURL=seek-button.d.ts.map
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
|
|
13
13
|
import { TimeDisplayProps } from "./types.js";
|
|
14
14
|
import "client-only";
|
|
15
|
-
import * as
|
|
15
|
+
import * as react_jsx_runtime119 from "react/jsx-runtime";
|
|
16
16
|
|
|
17
17
|
//#region src/components/media-controls/time-display.d.ts
|
|
18
18
|
|
|
@@ -63,7 +63,7 @@ declare function TimeDisplay({
|
|
|
63
63
|
isDisabled: isDisabledProp,
|
|
64
64
|
mode,
|
|
65
65
|
ref
|
|
66
|
-
}: TimeDisplayProps):
|
|
66
|
+
}: TimeDisplayProps): react_jsx_runtime119.JSX.Element;
|
|
67
67
|
//#endregion
|
|
68
68
|
export { TimeDisplay };
|
|
69
69
|
//# sourceMappingURL=time-display.d.ts.map
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
|
|
13
13
|
import { TimeRangeProps } from "./types.js";
|
|
14
14
|
import "client-only";
|
|
15
|
-
import * as
|
|
15
|
+
import * as react_jsx_runtime120 from "react/jsx-runtime";
|
|
16
16
|
|
|
17
17
|
//#region src/components/media-controls/time-range.d.ts
|
|
18
18
|
|
|
@@ -40,7 +40,7 @@ declare function TimeRange({
|
|
|
40
40
|
className,
|
|
41
41
|
isDisabled: isDisabledProp,
|
|
42
42
|
ref
|
|
43
|
-
}: TimeRangeProps):
|
|
43
|
+
}: TimeRangeProps): react_jsx_runtime120.JSX.Element;
|
|
44
44
|
//#endregion
|
|
45
45
|
export { TimeRange };
|
|
46
46
|
//# sourceMappingURL=time-range.d.ts.map
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
|
|
13
13
|
import { VolumeSliderProps } from "./types.js";
|
|
14
14
|
import "client-only";
|
|
15
|
-
import * as
|
|
15
|
+
import * as react_jsx_runtime131 from "react/jsx-runtime";
|
|
16
16
|
|
|
17
17
|
//#region src/components/media-controls/volume-slider.d.ts
|
|
18
18
|
|
|
@@ -48,7 +48,7 @@ declare function VolumeSlider({
|
|
|
48
48
|
showLabel,
|
|
49
49
|
isDisabled: isDisabledProp,
|
|
50
50
|
ref
|
|
51
|
-
}: VolumeSliderProps):
|
|
51
|
+
}: VolumeSliderProps): react_jsx_runtime131.JSX.Element;
|
|
52
52
|
//#endregion
|
|
53
53
|
export { VolumeSlider };
|
|
54
54
|
//# sourceMappingURL=volume-slider.d.ts.map
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
|
|
13
13
|
import { MenuProps as MenuProps$1 } from "./types.js";
|
|
14
14
|
import "client-only";
|
|
15
|
-
import * as
|
|
15
|
+
import * as react26 from "react";
|
|
16
16
|
import { ContextValue } from "react-aria-components";
|
|
17
17
|
|
|
18
18
|
//#region src/components/menu/context.d.ts
|
|
@@ -20,7 +20,7 @@ import { ContextValue } from "react-aria-components";
|
|
|
20
20
|
* Context for sharing Menu props across component tree.
|
|
21
21
|
* Used internally by Menu subcomponents for variant and state coordination.
|
|
22
22
|
*/
|
|
23
|
-
declare const MenuContext:
|
|
23
|
+
declare const MenuContext: react26.Context<ContextValue<MenuProps$1<unknown>, HTMLDivElement>>;
|
|
24
24
|
//#endregion
|
|
25
25
|
export { MenuContext };
|
|
26
26
|
//# sourceMappingURL=context.d.ts.map
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
|
|
13
13
|
import { MenuProps } from "./types.js";
|
|
14
14
|
import "client-only";
|
|
15
|
-
import * as
|
|
15
|
+
import * as react_jsx_runtime102 from "react/jsx-runtime";
|
|
16
16
|
|
|
17
17
|
//#region src/components/menu/index.d.ts
|
|
18
18
|
|
|
@@ -126,7 +126,7 @@ import * as react_jsx_runtime139 from "react/jsx-runtime";
|
|
|
126
126
|
declare function Menu<T extends object>({
|
|
127
127
|
ref,
|
|
128
128
|
...props
|
|
129
|
-
}: MenuProps<T>):
|
|
129
|
+
}: MenuProps<T>): react_jsx_runtime102.JSX.Element;
|
|
130
130
|
//#endregion
|
|
131
131
|
export { Menu };
|
|
132
132
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
|
|
13
13
|
import "client-only";
|
|
14
14
|
import { TextProps } from "react-aria-components";
|
|
15
|
-
import * as
|
|
15
|
+
import * as react_jsx_runtime103 from "react/jsx-runtime";
|
|
16
16
|
|
|
17
17
|
//#region src/components/menu/item-description.d.ts
|
|
18
18
|
/**
|
|
@@ -34,7 +34,7 @@ declare function MenuItemDescription({
|
|
|
34
34
|
children,
|
|
35
35
|
className,
|
|
36
36
|
...rest
|
|
37
|
-
}: TextProps):
|
|
37
|
+
}: TextProps): react_jsx_runtime103.JSX.Element;
|
|
38
38
|
//#endregion
|
|
39
39
|
export { MenuItemDescription };
|
|
40
40
|
//# sourceMappingURL=item-description.d.ts.map
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
|
|
13
13
|
import "client-only";
|
|
14
14
|
import { TextProps } from "react-aria-components";
|
|
15
|
-
import * as
|
|
15
|
+
import * as react_jsx_runtime104 from "react/jsx-runtime";
|
|
16
16
|
|
|
17
17
|
//#region src/components/menu/item-label.d.ts
|
|
18
18
|
/**
|
|
@@ -34,7 +34,7 @@ declare function MenuItemLabel({
|
|
|
34
34
|
children,
|
|
35
35
|
className,
|
|
36
36
|
...rest
|
|
37
|
-
}: TextProps):
|
|
37
|
+
}: TextProps): react_jsx_runtime104.JSX.Element;
|
|
38
38
|
//#endregion
|
|
39
39
|
export { MenuItemLabel };
|
|
40
40
|
//# sourceMappingURL=item-label.d.ts.map
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
|
|
13
13
|
import { MenuItemProps } from "./types.js";
|
|
14
14
|
import "client-only";
|
|
15
|
-
import * as
|
|
15
|
+
import * as react_jsx_runtime82 from "react/jsx-runtime";
|
|
16
16
|
|
|
17
17
|
//#region src/components/menu/item.d.ts
|
|
18
18
|
|
|
@@ -41,7 +41,7 @@ declare function MenuItem({
|
|
|
41
41
|
classNames,
|
|
42
42
|
color,
|
|
43
43
|
...rest
|
|
44
|
-
}: MenuItemProps):
|
|
44
|
+
}: MenuItemProps): react_jsx_runtime82.JSX.Element;
|
|
45
45
|
//#endregion
|
|
46
46
|
export { MenuItem };
|
|
47
47
|
//# sourceMappingURL=item.d.ts.map
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
|
|
13
13
|
import { MenuSectionProps } from "./types.js";
|
|
14
14
|
import "client-only";
|
|
15
|
-
import * as
|
|
15
|
+
import * as react_jsx_runtime106 from "react/jsx-runtime";
|
|
16
16
|
|
|
17
17
|
//#region src/components/menu/section.d.ts
|
|
18
18
|
|
|
@@ -42,7 +42,7 @@ declare function MenuSection<T extends object>({
|
|
|
42
42
|
items,
|
|
43
43
|
title,
|
|
44
44
|
...rest
|
|
45
|
-
}: MenuSectionProps<T>):
|
|
45
|
+
}: MenuSectionProps<T>): react_jsx_runtime106.JSX.Element;
|
|
46
46
|
//#endregion
|
|
47
47
|
export { MenuSection };
|
|
48
48
|
//# sourceMappingURL=section.d.ts.map
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
|
|
13
13
|
import "client-only";
|
|
14
14
|
import { SeparatorProps } from "react-aria-components";
|
|
15
|
-
import * as
|
|
15
|
+
import * as react_jsx_runtime107 from "react/jsx-runtime";
|
|
16
16
|
|
|
17
17
|
//#region src/components/menu/separator.d.ts
|
|
18
18
|
/**
|
|
@@ -32,7 +32,7 @@ import * as react_jsx_runtime85 from "react/jsx-runtime";
|
|
|
32
32
|
declare function MenuSeparator({
|
|
33
33
|
className,
|
|
34
34
|
...rest
|
|
35
|
-
}: SeparatorProps):
|
|
35
|
+
}: SeparatorProps): react_jsx_runtime107.JSX.Element;
|
|
36
36
|
//#endregion
|
|
37
37
|
export { MenuSeparator };
|
|
38
38
|
//# sourceMappingURL=separator.d.ts.map
|
|
@@ -11,8 +11,8 @@
|
|
|
11
11
|
*/
|
|
12
12
|
|
|
13
13
|
import "client-only";
|
|
14
|
-
import * as
|
|
15
|
-
import * as
|
|
14
|
+
import * as react27 from "react";
|
|
15
|
+
import * as react_aria_components0 from "react-aria-components";
|
|
16
16
|
|
|
17
17
|
//#region src/components/menu/submenu.d.ts
|
|
18
18
|
/**
|
|
@@ -31,7 +31,7 @@ import * as react_aria_components1 from "react-aria-components";
|
|
|
31
31
|
* </MenuSubmenu>
|
|
32
32
|
* ```
|
|
33
33
|
*/
|
|
34
|
-
declare const MenuSubmenu: (props:
|
|
34
|
+
declare const MenuSubmenu: (props: react_aria_components0.SubmenuTriggerProps & React.RefAttributes<HTMLDivElement>) => react27.ReactElement | null;
|
|
35
35
|
//#endregion
|
|
36
36
|
export { MenuSubmenu };
|
|
37
37
|
//# sourceMappingURL=submenu.d.ts.map
|
|
@@ -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_runtime121 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_runtime121.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_runtime123 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_runtime123.JSX.Element;
|
|
59
59
|
//#endregion
|
|
60
60
|
export { NoticeList };
|
|
61
61
|
//# sourceMappingURL=list.d.ts.map
|
|
@@ -22,8 +22,8 @@ import { createElement, useEffect, useMemo, useRef, useState } from "react";
|
|
|
22
22
|
import { clsx } from "@accelint/design-foundation/lib/utils";
|
|
23
23
|
import { UNSTABLE_ToastList, UNSTABLE_ToastQueue, UNSTABLE_ToastRegion, UNSTABLE_ToastStateContext, composeRenderProps } from "react-aria-components";
|
|
24
24
|
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
25
|
-
import { useBus } from "@accelint/bus/react";
|
|
26
25
|
import { uuid } from "@accelint/core";
|
|
26
|
+
import { useBus } from "@accelint/bus/react";
|
|
27
27
|
import styles from "./styles.module.css";
|
|
28
28
|
import { useToastRegion } from "@react-aria/toast";
|
|
29
29
|
import { useToastQueue } from "@react-stately/toast";
|
|
@@ -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_runtime124 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_runtime90 from "react/jsx-runtime";
|
|
|
38
38
|
declare function NoticeIcon({
|
|
39
39
|
color,
|
|
40
40
|
size
|
|
41
|
-
}: NoticeIconProps):
|
|
41
|
+
}: NoticeIconProps): react_jsx_runtime124.JSX.Element;
|
|
42
42
|
//#endregion
|
|
43
43
|
export { NoticeIcon };
|
|
44
44
|
//# sourceMappingURL=notice-icon.d.ts.map
|
|
@@ -13,8 +13,8 @@
|
|
|
13
13
|
import { ButtonProps as ButtonProps$1 } from "../button/types.js";
|
|
14
14
|
import { NoticeEventTypes } from "./events.js";
|
|
15
15
|
import { ToastListProps } from "react-aria-components";
|
|
16
|
-
import { Payload, StructuredCloneableData } from "@accelint/bus";
|
|
17
16
|
import { UniqueId } from "@accelint/core";
|
|
17
|
+
import { Payload, StructuredCloneableData } from "@accelint/bus";
|
|
18
18
|
|
|
19
19
|
//#region src/components/notice/types.d.ts
|
|
20
20
|
/**
|
|
@@ -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 react29 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: react29.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_runtime125 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_runtime127 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_runtime125.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_runtime126 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_runtime128 from "react/jsx-runtime";
|
|
|
37
37
|
declare function OptionsItemContent({
|
|
38
38
|
className,
|
|
39
39
|
...rest
|
|
40
|
-
}: TextProps):
|
|
40
|
+
}: TextProps): react_jsx_runtime126.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_runtime122 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_runtime123 from "react/jsx-runtime";
|
|
|
29
29
|
declare function OptionsItemDescription({
|
|
30
30
|
className,
|
|
31
31
|
...rest
|
|
32
|
-
}: TextProps):
|
|
32
|
+
}: TextProps): react_jsx_runtime122.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_runtime127 from "react/jsx-runtime";
|
|
15
15
|
|
|
16
16
|
//#region src/components/options/item-label.d.ts
|
|
17
17
|
/**
|
|
@@ -28,8 +28,9 @@ import * as react_jsx_runtime129 from "react/jsx-runtime";
|
|
|
28
28
|
*/
|
|
29
29
|
declare function OptionsItemLabel({
|
|
30
30
|
className,
|
|
31
|
+
children,
|
|
31
32
|
...rest
|
|
32
|
-
}: TextProps):
|
|
33
|
+
}: TextProps): react_jsx_runtime127.JSX.Element;
|
|
33
34
|
//#endregion
|
|
34
35
|
export { OptionsItemLabel };
|
|
35
36
|
//# sourceMappingURL=item-label.d.ts.map
|
|
@@ -11,9 +11,10 @@
|
|
|
11
11
|
*/
|
|
12
12
|
|
|
13
13
|
|
|
14
|
+
import { useContext } from "react";
|
|
14
15
|
import { clsx } from "@accelint/design-foundation/lib/utils";
|
|
15
|
-
import { Text } from "react-aria-components";
|
|
16
|
-
import { jsx } from "react/jsx-runtime";
|
|
16
|
+
import { ComboBoxStateContext, Text } from "react-aria-components";
|
|
17
|
+
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
17
18
|
import styles from "./styles.module.css";
|
|
18
19
|
|
|
19
20
|
//#region src/components/options/item-label.tsx
|
|
@@ -29,13 +30,28 @@ import styles from "./styles.module.css";
|
|
|
29
30
|
* @param props.className - Optional CSS class name.
|
|
30
31
|
* @returns The rendered OptionsItemLabel component.
|
|
31
32
|
*/
|
|
32
|
-
function OptionsItemLabel({ className, ...rest }) {
|
|
33
|
+
function OptionsItemLabel({ className, children, ...rest }) {
|
|
34
|
+
const inputValue = useContext(ComboBoxStateContext)?.inputValue ?? "";
|
|
35
|
+
const highlighted = typeof children === "string" && inputValue ? highlightMatch(children, inputValue) : children;
|
|
33
36
|
return /* @__PURE__ */ jsx(Text, {
|
|
34
37
|
...rest,
|
|
35
38
|
slot: "label",
|
|
36
|
-
className: clsx(styles.label, className)
|
|
39
|
+
className: clsx(styles.label, className),
|
|
40
|
+
children: highlighted
|
|
37
41
|
});
|
|
38
42
|
}
|
|
43
|
+
function highlightMatch(text, query) {
|
|
44
|
+
const index = text.toLowerCase().indexOf(query.toLowerCase());
|
|
45
|
+
if (index === -1) return text;
|
|
46
|
+
return /* @__PURE__ */ jsxs(Fragment$1, { children: [
|
|
47
|
+
text.slice(0, index),
|
|
48
|
+
/* @__PURE__ */ jsx("mark", {
|
|
49
|
+
className: styles.highlight,
|
|
50
|
+
children: text.slice(index, index + query.length)
|
|
51
|
+
}),
|
|
52
|
+
text.slice(index + query.length)
|
|
53
|
+
] });
|
|
54
|
+
}
|
|
39
55
|
|
|
40
56
|
//#endregion
|
|
41
57
|
export { OptionsItemLabel };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"item-label.js","names":[],"sources":["../../../src/components/options/item-label.tsx"],"sourcesContent":["/*\n * Copyright 2026 Hypergiant Galactic Systems Inc. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\nimport { clsx } from '@accelint/design-foundation/lib/utils';\nimport { Text } from 'react-aria-components';\nimport styles from './styles.module.css';\nimport type { TextProps } from 'react-aria-components';\n\n/**\n * OptionsItemLabel - Primary text label for an options item\n *\n * @example\n * ```tsx\n * <OptionsItemLabel>Option Name</OptionsItemLabel>\n * ```\n *\n * @param props - TextProps from react-aria-components.\n * @param props.className - Optional CSS class name.\n * @returns The rendered OptionsItemLabel component.\n */\nexport function OptionsItemLabel({ className, ...rest }: TextProps) {\n return (\n <Text {...rest} slot='label' className={clsx(styles.label, className)}
|
|
1
|
+
{"version":3,"file":"item-label.js","names":[],"sources":["../../../src/components/options/item-label.tsx"],"sourcesContent":["/*\n * Copyright 2026 Hypergiant Galactic Systems Inc. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\nimport { useContext } from 'react';\nimport { clsx } from '@accelint/design-foundation/lib/utils';\nimport { ComboBoxStateContext, Text } from 'react-aria-components';\nimport styles from './styles.module.css';\nimport type { ReactNode } from 'react';\nimport type { TextProps } from 'react-aria-components';\n\n/**\n * OptionsItemLabel - Primary text label for an options item\n *\n * @example\n * ```tsx\n * <OptionsItemLabel>Option Name</OptionsItemLabel>\n * ```\n *\n * @param props - TextProps from react-aria-components.\n * @param props.className - Optional CSS class name.\n * @returns The rendered OptionsItemLabel component.\n */\nexport function OptionsItemLabel({ className, children, ...rest }: TextProps) {\n const comboBoxState = useContext(ComboBoxStateContext);\n const inputValue = comboBoxState?.inputValue ?? '';\n\n const highlighted =\n typeof children === 'string' && inputValue\n ? highlightMatch(children, inputValue)\n : children;\n\n return (\n <Text {...rest} slot='label' className={clsx(styles.label, className)}>\n {highlighted}\n </Text>\n );\n}\n\nfunction highlightMatch(text: string, query: string): ReactNode {\n const index = text.toLowerCase().indexOf(query.toLowerCase());\n if (index === -1) {\n return text;\n }\n\n return (\n <>\n {text.slice(0, index)}\n <mark className={styles.highlight}>\n {text.slice(index, index + query.length)}\n </mark>\n {text.slice(index + query.length)}\n </>\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA+BA,SAAgB,iBAAiB,EAAE,WAAW,UAAU,GAAG,QAAmB;CAE5E,MAAM,aADgB,WAAW,qBAAqB,EACpB,cAAc;CAEhD,MAAM,cACJ,OAAO,aAAa,YAAY,aAC5B,eAAe,UAAU,WAAW,GACpC;AAEN,QACE,oBAAC;EAAK,GAAI;EAAM,MAAK;EAAQ,WAAW,KAAK,OAAO,OAAO,UAAU;YAClE;GACI;;AAIX,SAAS,eAAe,MAAc,OAA0B;CAC9D,MAAM,QAAQ,KAAK,aAAa,CAAC,QAAQ,MAAM,aAAa,CAAC;AAC7D,KAAI,UAAU,GACZ,QAAO;AAGT,QACE;EACG,KAAK,MAAM,GAAG,MAAM;EACrB,oBAAC;GAAK,WAAW,OAAO;aACrB,KAAK,MAAM,OAAO,QAAQ,MAAM,OAAO;IACnC;EACN,KAAK,MAAM,QAAQ,MAAM,OAAO;KAChC"}
|
|
@@ -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_runtime128 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_runtime128.JSX.Element;
|
|
47
47
|
//#endregion
|
|
48
48
|
export { OptionsItem };
|
|
49
49
|
//# sourceMappingURL=item.d.ts.map
|