@accelint/design-toolkit 9.4.0 → 9.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/catalog-info.yaml +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/styles.module.css +1 -1
- 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 +104 -0
- package/dist/components/audio/index.js +242 -0
- package/dist/components/audio/index.js.map +1 -0
- package/dist/components/audio/styles.module.css +77 -0
- package/dist/components/audio/types.d.ts +45 -0
- package/dist/components/audio/types.js +12 -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/breadcrumbs/styles.module.css +1 -0
- package/dist/components/button/__internal__/clear.js +42 -0
- package/dist/components/button/__internal__/clear.js.map +1 -0
- package/dist/components/button/__internal__/styles.module.css +23 -0
- 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/styles.module.css +1 -1
- 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/chip/styles.module.css +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/clock/index.js +1 -0
- package/dist/components/clock/index.js.map +1 -1
- package/dist/components/color-picker/index.d.ts +2 -2
- package/dist/components/combobox-field/context.d.ts +4 -4
- package/dist/components/combobox-field/index.d.ts +2 -2
- package/dist/components/combobox-field/index.js +42 -14
- package/dist/components/combobox-field/index.js.map +1 -1
- package/dist/components/combobox-field/styles.module.css +15 -3
- package/dist/components/combobox-field/types.d.ts +4 -0
- 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 +2 -2
- package/dist/components/coordinate-field/index.js.map +1 -1
- package/dist/components/coordinate-field/segment-configs.js +1 -1
- package/dist/components/coordinate-field/segment-configs.js.map +1 -1
- package/dist/components/coordinate-field/segment.d.ts +2 -2
- package/dist/components/coordinate-field/segment.js +8 -8
- package/dist/components/coordinate-field/segment.js.map +1 -1
- package/dist/components/coordinate-field/styles.module.css +7 -3
- 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/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/header.js +1 -1
- 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/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 +10 -14
- package/dist/components/input/index.js.map +1 -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/kanban/styles.module.css +1 -1
- 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/list/styles.module.css +1 -1
- package/dist/components/media-controls/context.d.ts +66 -0
- package/dist/components/media-controls/context.js +77 -0
- package/dist/components/media-controls/context.js.map +1 -0
- package/dist/components/media-controls/index.d.ts +68 -0
- package/dist/components/media-controls/index.js +78 -0
- package/dist/components/media-controls/index.js.map +1 -0
- package/dist/components/media-controls/mute-button.d.ts +47 -0
- package/dist/components/media-controls/mute-button.js +73 -0
- package/dist/components/media-controls/mute-button.js.map +1 -0
- package/dist/components/media-controls/play-button.d.ts +47 -0
- package/dist/components/media-controls/play-button.js +71 -0
- package/dist/components/media-controls/play-button.js.map +1 -0
- package/dist/components/media-controls/playback-rate.d.ts +58 -0
- package/dist/components/media-controls/playback-rate.js +114 -0
- package/dist/components/media-controls/playback-rate.js.map +1 -0
- package/dist/components/media-controls/seek-button.d.ts +60 -0
- package/dist/components/media-controls/seek-button.js +116 -0
- package/dist/components/media-controls/seek-button.js.map +1 -0
- package/dist/components/media-controls/styles.module.css +145 -0
- package/dist/components/media-controls/time-display.d.ts +69 -0
- package/dist/components/media-controls/time-display.js +95 -0
- package/dist/components/media-controls/time-display.js.map +1 -0
- package/dist/components/media-controls/time-range.d.ts +46 -0
- package/dist/components/media-controls/time-range.js +63 -0
- package/dist/components/media-controls/time-range.js.map +1 -0
- package/dist/components/media-controls/types.d.ts +122 -0
- package/dist/components/media-controls/types.js +12 -0
- package/dist/components/media-controls/volume-slider.d.ts +54 -0
- package/dist/components/media-controls/volume-slider.js +70 -0
- package/dist/components/media-controls/volume-slider.js.map +1 -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 +1 -1
- 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/options/styles.module.css +1 -1
- 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/combinator-selector.js +5 -4
- package/dist/components/query-builder/combinator-selector.js.map +1 -1
- 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/sidenav/avatar.d.ts +2 -2
- package/dist/components/sidenav/content.d.ts +2 -2
- package/dist/components/sidenav/context.d.ts +2 -2
- package/dist/components/sidenav/footer.d.ts +2 -2
- package/dist/components/sidenav/header.d.ts +2 -2
- package/dist/components/sidenav/index.d.ts +2 -2
- package/dist/components/sidenav/item.d.ts +2 -2
- package/dist/components/sidenav/link.d.ts +2 -2
- package/dist/components/sidenav/menu-item.d.ts +2 -2
- package/dist/components/sidenav/menu.d.ts +2 -2
- package/dist/components/sidenav/trigger.d.ts +2 -2
- package/dist/components/skeleton/index.d.ts +2 -2
- package/dist/components/slider/index.d.ts +2 -2
- package/dist/components/status-indicator/index.d.ts +41 -0
- package/dist/components/status-indicator/index.js +49 -0
- package/dist/components/status-indicator/index.js.map +1 -0
- package/dist/components/status-indicator/styles.module.css +34 -0
- package/dist/components/status-indicator/types.d.ts +21 -0
- package/dist/components/status-indicator/types.js +12 -0
- package/dist/components/switch/context.d.ts +2 -2
- 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-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/styles.module.css +1 -1
- package/dist/components/tooltip/trigger.d.ts +2 -2
- package/dist/components/tree/context.d.ts +3 -3
- package/dist/components/tree/index.d.ts +2 -2
- package/dist/components/tree/item-actions.d.ts +2 -2
- package/dist/components/tree/item-content.d.ts +2 -2
- package/dist/components/tree/item-description.d.ts +2 -2
- package/dist/components/tree/item-label.d.ts +2 -2
- package/dist/components/tree/item-prefix-icon.d.ts +2 -2
- package/dist/components/tree/item.d.ts +2 -2
- package/dist/components/tree/lines.d.ts +2 -2
- package/dist/components/tree/styles.module.css +1 -1
- package/dist/components/view-stack/context.d.ts +2 -2
- package/dist/components/view-stack/index.d.ts +2 -2
- package/dist/components/view-stack/trigger.d.ts +2 -2
- package/dist/components/view-stack/view.d.ts +2 -2
- package/dist/index.d.ts +15 -1
- package/dist/index.js +12 -1
- package/dist/providers/portal.d.ts +2 -2
- package/dist/providers/theme-provider.d.ts +2 -2
- package/package.json +20 -5
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
|
|
13
13
|
import { KanbanComponentProps } from "./types.js";
|
|
14
14
|
import "client-only";
|
|
15
|
-
import * as
|
|
15
|
+
import * as react_jsx_runtime29 from "react/jsx-runtime";
|
|
16
16
|
|
|
17
17
|
//#region src/components/kanban/column-header.d.ts
|
|
18
18
|
/**
|
|
@@ -29,7 +29,7 @@ declare function KanbanColumnHeader({
|
|
|
29
29
|
children,
|
|
30
30
|
className,
|
|
31
31
|
...rest
|
|
32
|
-
}: KanbanComponentProps):
|
|
32
|
+
}: KanbanComponentProps): react_jsx_runtime29.JSX.Element;
|
|
33
33
|
//#endregion
|
|
34
34
|
export { KanbanColumnHeader };
|
|
35
35
|
//# sourceMappingURL=column-header.d.ts.map
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
|
|
13
13
|
import { KanbanColProps } from "./types.js";
|
|
14
14
|
import "client-only";
|
|
15
|
-
import * as
|
|
15
|
+
import * as react_jsx_runtime31 from "react/jsx-runtime";
|
|
16
16
|
|
|
17
17
|
//#region src/components/kanban/column.d.ts
|
|
18
18
|
|
|
@@ -40,7 +40,7 @@ declare function KanbanColumn({
|
|
|
40
40
|
className,
|
|
41
41
|
column,
|
|
42
42
|
...rest
|
|
43
|
-
}: KanbanColProps):
|
|
43
|
+
}: KanbanColProps): react_jsx_runtime31.JSX.Element;
|
|
44
44
|
//#endregion
|
|
45
45
|
export { KanbanColumn };
|
|
46
46
|
//# sourceMappingURL=column.d.ts.map
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
|
|
13
13
|
import { KanbanCardData, KanbanColumnData } from "./types.js";
|
|
14
14
|
import { ReactNode } from "react";
|
|
15
|
-
import * as
|
|
15
|
+
import * as react_jsx_runtime32 from "react/jsx-runtime";
|
|
16
16
|
import { DragEndEvent } from "@dnd-kit/core";
|
|
17
17
|
|
|
18
18
|
//#region src/components/kanban/context.d.ts
|
|
@@ -155,7 +155,7 @@ declare const KanbanProvider: ({
|
|
|
155
155
|
children,
|
|
156
156
|
columns,
|
|
157
157
|
updateColumnState
|
|
158
|
-
}: KanbanProviderProps) =>
|
|
158
|
+
}: KanbanProviderProps) => react_jsx_runtime32.JSX.Element;
|
|
159
159
|
/**
|
|
160
160
|
* Hook to access Kanban context values.
|
|
161
161
|
* Must be used within a KanbanProvider.
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
|
|
13
13
|
import { KanbanComponentProps } from "./types.js";
|
|
14
14
|
import "client-only";
|
|
15
|
-
import * as
|
|
15
|
+
import * as react_jsx_runtime38 from "react/jsx-runtime";
|
|
16
16
|
|
|
17
17
|
//#region src/components/kanban/header-actions.d.ts
|
|
18
18
|
/**
|
|
@@ -27,7 +27,7 @@ declare function KanbanHeaderActions({
|
|
|
27
27
|
children,
|
|
28
28
|
className,
|
|
29
29
|
...rest
|
|
30
|
-
}: KanbanComponentProps):
|
|
30
|
+
}: KanbanComponentProps): react_jsx_runtime38.JSX.Element;
|
|
31
31
|
//#endregion
|
|
32
32
|
export { KanbanHeaderActions };
|
|
33
33
|
//# sourceMappingURL=header-actions.d.ts.map
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
|
|
13
13
|
import { KanbanSearchProps } from "./types.js";
|
|
14
14
|
import "client-only";
|
|
15
|
-
import * as
|
|
15
|
+
import * as react_jsx_runtime35 from "react/jsx-runtime";
|
|
16
16
|
|
|
17
17
|
//#region src/components/kanban/header-search.d.ts
|
|
18
18
|
/**
|
|
@@ -25,7 +25,7 @@ import * as react_jsx_runtime84 from "react/jsx-runtime";
|
|
|
25
25
|
declare function KanbanHeaderSearch({
|
|
26
26
|
classNames,
|
|
27
27
|
...rest
|
|
28
|
-
}: KanbanSearchProps):
|
|
28
|
+
}: KanbanSearchProps): react_jsx_runtime35.JSX.Element;
|
|
29
29
|
//#endregion
|
|
30
30
|
export { KanbanHeaderSearch };
|
|
31
31
|
//# sourceMappingURL=header-search.d.ts.map
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
|
|
13
13
|
import { KanbanComponentProps } from "./types.js";
|
|
14
14
|
import "client-only";
|
|
15
|
-
import * as
|
|
15
|
+
import * as react_jsx_runtime46 from "react/jsx-runtime";
|
|
16
16
|
|
|
17
17
|
//#region src/components/kanban/header-title.d.ts
|
|
18
18
|
/**
|
|
@@ -27,7 +27,7 @@ declare function KanbanHeaderTitle({
|
|
|
27
27
|
children,
|
|
28
28
|
className,
|
|
29
29
|
...rest
|
|
30
|
-
}: KanbanComponentProps):
|
|
30
|
+
}: KanbanComponentProps): react_jsx_runtime46.JSX.Element;
|
|
31
31
|
//#endregion
|
|
32
32
|
export { KanbanHeaderTitle };
|
|
33
33
|
//# sourceMappingURL=header-title.d.ts.map
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
|
|
13
13
|
import { KanbanComponentProps } from "./types.js";
|
|
14
14
|
import "client-only";
|
|
15
|
-
import * as
|
|
15
|
+
import * as react_jsx_runtime39 from "react/jsx-runtime";
|
|
16
16
|
|
|
17
17
|
//#region src/components/kanban/header.d.ts
|
|
18
18
|
/**
|
|
@@ -29,7 +29,7 @@ declare function KanbanHeader({
|
|
|
29
29
|
children,
|
|
30
30
|
className,
|
|
31
31
|
...rest
|
|
32
|
-
}: KanbanComponentProps):
|
|
32
|
+
}: KanbanComponentProps): react_jsx_runtime39.JSX.Element;
|
|
33
33
|
//#endregion
|
|
34
34
|
export { KanbanHeader };
|
|
35
35
|
//# sourceMappingURL=header.d.ts.map
|
|
@@ -12,14 +12,14 @@
|
|
|
12
12
|
|
|
13
13
|
import { KanbanProps } from "./types.js";
|
|
14
14
|
import "client-only";
|
|
15
|
-
import * as
|
|
16
|
-
import * as
|
|
15
|
+
import * as react20 from "react";
|
|
16
|
+
import * as react_jsx_runtime91 from "react/jsx-runtime";
|
|
17
17
|
|
|
18
18
|
//#region src/components/kanban/kanban.d.ts
|
|
19
19
|
/**
|
|
20
20
|
* Context for sharing active drag state across Kanban components.
|
|
21
21
|
*/
|
|
22
|
-
declare const DragContext:
|
|
22
|
+
declare const DragContext: react20.Context<{
|
|
23
23
|
activeId: string | null;
|
|
24
24
|
} | null>;
|
|
25
25
|
/**
|
|
@@ -55,7 +55,7 @@ declare function Kanban({
|
|
|
55
55
|
children,
|
|
56
56
|
className,
|
|
57
57
|
...rest
|
|
58
|
-
}: KanbanProps):
|
|
58
|
+
}: KanbanProps): react_jsx_runtime91.JSX.Element;
|
|
59
59
|
//#endregion
|
|
60
60
|
export { DragContext, Kanban, useDragContext };
|
|
61
61
|
//# sourceMappingURL=kanban.d.ts.map
|
|
@@ -13,15 +13,15 @@
|
|
|
13
13
|
import { ProviderProps } from "../../lib/types.js";
|
|
14
14
|
import { LabelProps as LabelProps$1 } from "./types.js";
|
|
15
15
|
import "client-only";
|
|
16
|
-
import * as
|
|
16
|
+
import * as react23 from "react";
|
|
17
17
|
import { ContextValue } from "react-aria-components";
|
|
18
|
-
import * as
|
|
18
|
+
import * as react_jsx_runtime98 from "react/jsx-runtime";
|
|
19
19
|
|
|
20
20
|
//#region src/components/label/context.d.ts
|
|
21
21
|
/**
|
|
22
22
|
* Context for sharing Label props across component tree.
|
|
23
23
|
*/
|
|
24
|
-
declare const LabelContext:
|
|
24
|
+
declare const LabelContext: react23.Context<ContextValue<LabelProps$1, HTMLLabelElement>>;
|
|
25
25
|
/**
|
|
26
26
|
* LabelProvider - Context provider for setting default Label props.
|
|
27
27
|
*
|
|
@@ -43,7 +43,7 @@ declare const LabelContext: react26.Context<ContextValue<LabelProps$1, HTMLLabel
|
|
|
43
43
|
declare function LabelProvider({
|
|
44
44
|
children,
|
|
45
45
|
...props
|
|
46
|
-
}: ProviderProps<LabelProps$1>):
|
|
46
|
+
}: ProviderProps<LabelProps$1>): react_jsx_runtime98.JSX.Element;
|
|
47
47
|
//#endregion
|
|
48
48
|
export { LabelContext, LabelProvider };
|
|
49
49
|
//# sourceMappingURL=context.d.ts.map
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
|
|
13
13
|
import { LabelProps } from "./types.js";
|
|
14
14
|
import "client-only";
|
|
15
|
-
import * as
|
|
15
|
+
import * as react_jsx_runtime113 from "react/jsx-runtime";
|
|
16
16
|
|
|
17
17
|
//#region src/components/label/index.d.ts
|
|
18
18
|
|
|
@@ -52,7 +52,7 @@ import * as react_jsx_runtime90 from "react/jsx-runtime";
|
|
|
52
52
|
declare function Label({
|
|
53
53
|
ref,
|
|
54
54
|
...props
|
|
55
|
-
}: LabelProps):
|
|
55
|
+
}: LabelProps): react_jsx_runtime113.JSX.Element;
|
|
56
56
|
//#endregion
|
|
57
57
|
export { Label };
|
|
58
58
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
*/
|
|
12
12
|
|
|
13
13
|
import { LinesProps } from "./types.js";
|
|
14
|
-
import * as
|
|
14
|
+
import * as react_jsx_runtime115 from "react/jsx-runtime";
|
|
15
15
|
|
|
16
16
|
//#region src/components/lines/index.d.ts
|
|
17
17
|
|
|
@@ -38,7 +38,7 @@ declare function Lines({
|
|
|
38
38
|
size,
|
|
39
39
|
variant,
|
|
40
40
|
isVisible
|
|
41
|
-
}: LinesProps):
|
|
41
|
+
}: LinesProps): react_jsx_runtime115.JSX.Element;
|
|
42
42
|
//#endregion
|
|
43
43
|
export { Lines };
|
|
44
44
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
import { ProviderProps } from "../../lib/types.js";
|
|
14
14
|
import { LinkProps } from "./types.js";
|
|
15
15
|
import "client-only";
|
|
16
|
-
import * as
|
|
16
|
+
import * as react_jsx_runtime40 from "react/jsx-runtime";
|
|
17
17
|
|
|
18
18
|
//#region src/components/link/context.d.ts
|
|
19
19
|
|
|
@@ -38,7 +38,7 @@ import * as react_jsx_runtime92 from "react/jsx-runtime";
|
|
|
38
38
|
declare function LinkProvider({
|
|
39
39
|
children,
|
|
40
40
|
...props
|
|
41
|
-
}: ProviderProps<LinkProps>):
|
|
41
|
+
}: ProviderProps<LinkProps>): react_jsx_runtime40.JSX.Element;
|
|
42
42
|
//#endregion
|
|
43
43
|
export { LinkProvider };
|
|
44
44
|
//# sourceMappingURL=context.d.ts.map
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
|
|
13
13
|
import { LinkProps } from "./types.js";
|
|
14
14
|
import "client-only";
|
|
15
|
-
import * as
|
|
15
|
+
import * as react_jsx_runtime41 from "react/jsx-runtime";
|
|
16
16
|
|
|
17
17
|
//#region src/components/link/index.d.ts
|
|
18
18
|
|
|
@@ -37,7 +37,7 @@ import * as react_jsx_runtime93 from "react/jsx-runtime";
|
|
|
37
37
|
declare function Link({
|
|
38
38
|
ref,
|
|
39
39
|
...props
|
|
40
|
-
}: LinkProps):
|
|
40
|
+
}: LinkProps): react_jsx_runtime41.JSX.Element;
|
|
41
41
|
//#endregion
|
|
42
42
|
export { Link };
|
|
43
43
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -12,14 +12,14 @@
|
|
|
12
12
|
|
|
13
13
|
import { ListItemVariant, ListProps } from "./types.js";
|
|
14
14
|
import "client-only";
|
|
15
|
-
import * as
|
|
15
|
+
import * as react11 from "react";
|
|
16
16
|
import { ContextValue } from "react-aria-components";
|
|
17
17
|
|
|
18
18
|
//#region src/components/list/context.d.ts
|
|
19
19
|
/**
|
|
20
20
|
* Context for sharing List variant across component tree.
|
|
21
21
|
*/
|
|
22
|
-
declare const ListContext:
|
|
22
|
+
declare const ListContext: react11.Context<ContextValue<ListProps<object>, HTMLDivElement>>;
|
|
23
23
|
/**
|
|
24
24
|
* Hook to get the current list item variant from context.
|
|
25
25
|
* Used internally by ListItemTitle and ListItemDescription for sizing.
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
|
|
13
13
|
import { ListProps } from "./types.js";
|
|
14
14
|
import "client-only";
|
|
15
|
-
import * as
|
|
15
|
+
import * as react_jsx_runtime47 from "react/jsx-runtime";
|
|
16
16
|
|
|
17
17
|
//#region src/components/list/index.d.ts
|
|
18
18
|
|
|
@@ -47,7 +47,7 @@ import * as react_jsx_runtime95 from "react/jsx-runtime";
|
|
|
47
47
|
declare function List<T extends object>({
|
|
48
48
|
ref,
|
|
49
49
|
...props
|
|
50
|
-
}: ListProps<T>):
|
|
50
|
+
}: ListProps<T>): react_jsx_runtime47.JSX.Element;
|
|
51
51
|
//#endregion
|
|
52
52
|
export { List };
|
|
53
53
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
|
|
13
13
|
import { ListItemContentProps } from "./types.js";
|
|
14
14
|
import "client-only";
|
|
15
|
-
import * as
|
|
15
|
+
import * as react_jsx_runtime52 from "react/jsx-runtime";
|
|
16
16
|
|
|
17
17
|
//#region src/components/list/item-content.d.ts
|
|
18
18
|
|
|
@@ -37,7 +37,7 @@ import * as react_jsx_runtime97 from "react/jsx-runtime";
|
|
|
37
37
|
declare function ListItemContent({
|
|
38
38
|
className,
|
|
39
39
|
...rest
|
|
40
|
-
}: ListItemContentProps):
|
|
40
|
+
}: ListItemContentProps): react_jsx_runtime52.JSX.Element;
|
|
41
41
|
//#endregion
|
|
42
42
|
export { ListItemContent };
|
|
43
43
|
//# sourceMappingURL=item-content.d.ts.map
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
|
|
13
13
|
import { ListItemDescriptionProps } from "./types.js";
|
|
14
14
|
import "client-only";
|
|
15
|
-
import * as
|
|
15
|
+
import * as react_jsx_runtime50 from "react/jsx-runtime";
|
|
16
16
|
|
|
17
17
|
//#region src/components/list/item-description.d.ts
|
|
18
18
|
/**
|
|
@@ -35,7 +35,7 @@ declare function ListItemDescription({
|
|
|
35
35
|
children,
|
|
36
36
|
className,
|
|
37
37
|
...rest
|
|
38
|
-
}: ListItemDescriptionProps):
|
|
38
|
+
}: ListItemDescriptionProps): react_jsx_runtime50.JSX.Element;
|
|
39
39
|
//#endregion
|
|
40
40
|
export { ListItemDescription };
|
|
41
41
|
//# sourceMappingURL=item-description.d.ts.map
|
|
@@ -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_runtime53 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_runtime53.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_runtime60 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_runtime60.JSX.Element;
|
|
50
50
|
//#endregion
|
|
51
51
|
export { ListItem };
|
|
52
52
|
//# sourceMappingURL=item.d.ts.map
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright 2025 Hypergiant Galactic Systems Inc. All rights reserved.
|
|
3
|
+
* This file is licensed to you under the Apache License, Version 2.0 (the "License");
|
|
4
|
+
* you may not use this file except in compliance with the License. You may obtain a copy
|
|
5
|
+
* of the License at https://www.apache.org/licenses/LICENSE-2.0
|
|
6
|
+
*
|
|
7
|
+
* Unless required by applicable law or agreed to in writing, software distributed under
|
|
8
|
+
* the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
|
|
9
|
+
* OF ANY KIND, either express or implied. See the License for the specific language
|
|
10
|
+
* governing permissions and limitations under the License.
|
|
11
|
+
*/
|
|
12
|
+
|
|
13
|
+
import { MediaControlsContextValue } from "./types.js";
|
|
14
|
+
import "client-only";
|
|
15
|
+
import * as react13 from "react";
|
|
16
|
+
import { PropsWithChildren } from "react";
|
|
17
|
+
import * as react_jsx_runtime61 from "react/jsx-runtime";
|
|
18
|
+
|
|
19
|
+
//#region src/components/media-controls/context.d.ts
|
|
20
|
+
/**
|
|
21
|
+
* Context for MediaControls component.
|
|
22
|
+
*
|
|
23
|
+
* Provides shared configuration values (isDisabled) to all child controls.
|
|
24
|
+
*/
|
|
25
|
+
declare const MediaControlsContext: react13.Context<MediaControlsContextValue>;
|
|
26
|
+
/**
|
|
27
|
+
* Validates that media-chrome's MediaProvider is present.
|
|
28
|
+
*
|
|
29
|
+
* @throws {Error} Throws if called outside a MediaProvider context.
|
|
30
|
+
*/
|
|
31
|
+
declare function useMediaProviderGuard(): void;
|
|
32
|
+
/**
|
|
33
|
+
* Resolves disabled state from prop or context.
|
|
34
|
+
*
|
|
35
|
+
* Returns true if either the prop or context indicates disabled.
|
|
36
|
+
* A parent context disabling controls cannot be overridden by children.
|
|
37
|
+
*
|
|
38
|
+
* @param propIsDisabled - The disabled prop value.
|
|
39
|
+
* @returns The resolved disabled state.
|
|
40
|
+
*/
|
|
41
|
+
declare function useMediaControlsDisabled(propIsDisabled?: boolean): boolean;
|
|
42
|
+
/**
|
|
43
|
+
* Provider for MediaControls component.
|
|
44
|
+
*
|
|
45
|
+
* Provides shared configuration to all media control children.
|
|
46
|
+
*
|
|
47
|
+
* @param props - The provider props.
|
|
48
|
+
* @param props.children - Child components to receive context.
|
|
49
|
+
* @param props.isDisabled - Whether controls are disabled.
|
|
50
|
+
* @returns The context provider wrapping children.
|
|
51
|
+
*
|
|
52
|
+
* @example
|
|
53
|
+
* ```tsx
|
|
54
|
+
* <MediaControlsProvider isDisabled={false}>
|
|
55
|
+
* <PlayButton />
|
|
56
|
+
* <MuteButton />
|
|
57
|
+
* </MediaControlsProvider>
|
|
58
|
+
* ```
|
|
59
|
+
*/
|
|
60
|
+
declare function MediaControlsProvider({
|
|
61
|
+
children,
|
|
62
|
+
isDisabled
|
|
63
|
+
}: PropsWithChildren<Partial<MediaControlsContextValue>>): react_jsx_runtime61.JSX.Element;
|
|
64
|
+
//#endregion
|
|
65
|
+
export { MediaControlsContext, MediaControlsProvider, useMediaControlsDisabled, useMediaProviderGuard };
|
|
66
|
+
//# sourceMappingURL=context.d.ts.map
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright 2025 Hypergiant Galactic Systems Inc. All rights reserved.
|
|
3
|
+
* This file is licensed to you under the Apache License, Version 2.0 (the "License");
|
|
4
|
+
* you may not use this file except in compliance with the License. You may obtain a copy
|
|
5
|
+
* of the License at https://www.apache.org/licenses/LICENSE-2.0
|
|
6
|
+
*
|
|
7
|
+
* Unless required by applicable law or agreed to in writing, software distributed under
|
|
8
|
+
* the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
|
|
9
|
+
* OF ANY KIND, either express or implied. See the License for the specific language
|
|
10
|
+
* governing permissions and limitations under the License.
|
|
11
|
+
*/
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
'use client';
|
|
15
|
+
|
|
16
|
+
import "client-only";
|
|
17
|
+
import { createContext, useContext, useMemo } from "react";
|
|
18
|
+
import { jsx } from "react/jsx-runtime";
|
|
19
|
+
import { useMediaStore } from "media-chrome/react/media-store";
|
|
20
|
+
|
|
21
|
+
//#region src/components/media-controls/context.tsx
|
|
22
|
+
/**
|
|
23
|
+
* Context for MediaControls component.
|
|
24
|
+
*
|
|
25
|
+
* Provides shared configuration values (isDisabled) to all child controls.
|
|
26
|
+
*/
|
|
27
|
+
const MediaControlsContext = createContext({ isDisabled: false });
|
|
28
|
+
/**
|
|
29
|
+
* Validates that media-chrome's MediaProvider is present.
|
|
30
|
+
*
|
|
31
|
+
* @throws {Error} Throws if called outside a MediaProvider context.
|
|
32
|
+
*/
|
|
33
|
+
function useMediaProviderGuard() {
|
|
34
|
+
if (!useMediaStore()) throw new Error("MediaControls must be used within a MediaProvider from media-chrome.");
|
|
35
|
+
}
|
|
36
|
+
/**
|
|
37
|
+
* Resolves disabled state from prop or context.
|
|
38
|
+
*
|
|
39
|
+
* Returns true if either the prop or context indicates disabled.
|
|
40
|
+
* A parent context disabling controls cannot be overridden by children.
|
|
41
|
+
*
|
|
42
|
+
* @param propIsDisabled - The disabled prop value.
|
|
43
|
+
* @returns The resolved disabled state.
|
|
44
|
+
*/
|
|
45
|
+
function useMediaControlsDisabled(propIsDisabled) {
|
|
46
|
+
const context = useContext(MediaControlsContext);
|
|
47
|
+
return Boolean(propIsDisabled || context.isDisabled);
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* Provider for MediaControls component.
|
|
51
|
+
*
|
|
52
|
+
* Provides shared configuration to all media control children.
|
|
53
|
+
*
|
|
54
|
+
* @param props - The provider props.
|
|
55
|
+
* @param props.children - Child components to receive context.
|
|
56
|
+
* @param props.isDisabled - Whether controls are disabled.
|
|
57
|
+
* @returns The context provider wrapping children.
|
|
58
|
+
*
|
|
59
|
+
* @example
|
|
60
|
+
* ```tsx
|
|
61
|
+
* <MediaControlsProvider isDisabled={false}>
|
|
62
|
+
* <PlayButton />
|
|
63
|
+
* <MuteButton />
|
|
64
|
+
* </MediaControlsProvider>
|
|
65
|
+
* ```
|
|
66
|
+
*/
|
|
67
|
+
function MediaControlsProvider({ children, isDisabled = false }) {
|
|
68
|
+
const value = useMemo(() => ({ isDisabled }), [isDisabled]);
|
|
69
|
+
return /* @__PURE__ */ jsx(MediaControlsContext.Provider, {
|
|
70
|
+
value,
|
|
71
|
+
children
|
|
72
|
+
});
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
//#endregion
|
|
76
|
+
export { MediaControlsContext, MediaControlsProvider, useMediaControlsDisabled, useMediaProviderGuard };
|
|
77
|
+
//# sourceMappingURL=context.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"context.js","names":[],"sources":["../../../src/components/media-controls/context.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'use client';\n\nimport 'client-only';\nimport { useMediaStore } from 'media-chrome/react/media-store';\nimport {\n createContext,\n type PropsWithChildren,\n useContext,\n useMemo,\n} from 'react';\nimport type { MediaControlsContextValue } from './types';\n\n/**\n * Context for MediaControls component.\n *\n * Provides shared configuration values (isDisabled) to all child controls.\n */\nexport const MediaControlsContext = createContext<MediaControlsContextValue>({\n isDisabled: false,\n});\n\n/**\n * Validates that media-chrome's MediaProvider is present.\n *\n * @throws {Error} Throws if called outside a MediaProvider context.\n */\nexport function useMediaProviderGuard(): void {\n const store = useMediaStore();\n if (!store) {\n throw new Error(\n 'MediaControls must be used within a MediaProvider from media-chrome.',\n );\n }\n}\n\n/**\n * Resolves disabled state from prop or context.\n *\n * Returns true if either the prop or context indicates disabled.\n * A parent context disabling controls cannot be overridden by children.\n *\n * @param propIsDisabled - The disabled prop value.\n * @returns The resolved disabled state.\n */\nexport function useMediaControlsDisabled(propIsDisabled?: boolean): boolean {\n const context = useContext(MediaControlsContext);\n return Boolean(propIsDisabled || context.isDisabled);\n}\n\n/**\n * Provider for MediaControls component.\n *\n * Provides shared configuration to all media control children.\n *\n * @param props - The provider props.\n * @param props.children - Child components to receive context.\n * @param props.isDisabled - Whether controls are disabled.\n * @returns The context provider wrapping children.\n *\n * @example\n * ```tsx\n * <MediaControlsProvider isDisabled={false}>\n * <PlayButton />\n * <MuteButton />\n * </MediaControlsProvider>\n * ```\n */\nexport function MediaControlsProvider({\n children,\n isDisabled = false,\n}: PropsWithChildren<Partial<MediaControlsContextValue>>) {\n const value = useMemo(() => ({ isDisabled }), [isDisabled]);\n\n return (\n <MediaControlsContext.Provider value={value}>\n {children}\n </MediaControlsContext.Provider>\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AA4BA,MAAa,uBAAuB,cAAyC,EAC3E,YAAY,OACb,CAAC;;;;;;AAOF,SAAgB,wBAA8B;AAE5C,KAAI,CADU,eAAe,CAE3B,OAAM,IAAI,MACR,uEACD;;;;;;;;;;;AAaL,SAAgB,yBAAyB,gBAAmC;CAC1E,MAAM,UAAU,WAAW,qBAAqB;AAChD,QAAO,QAAQ,kBAAkB,QAAQ,WAAW;;;;;;;;;;;;;;;;;;;;AAqBtD,SAAgB,sBAAsB,EACpC,UACA,aAAa,SAC2C;CACxD,MAAM,QAAQ,eAAe,EAAE,YAAY,GAAG,CAAC,WAAW,CAAC;AAE3D,QACE,oBAAC,qBAAqB;EAAgB;EACnC;GAC6B"}
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright 2025 Hypergiant Galactic Systems Inc. All rights reserved.
|
|
3
|
+
* This file is licensed to you under the Apache License, Version 2.0 (the "License");
|
|
4
|
+
* you may not use this file except in compliance with the License. You may obtain a copy
|
|
5
|
+
* of the License at https://www.apache.org/licenses/LICENSE-2.0
|
|
6
|
+
*
|
|
7
|
+
* Unless required by applicable law or agreed to in writing, software distributed under
|
|
8
|
+
* the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
|
|
9
|
+
* OF ANY KIND, either express or implied. See the License for the specific language
|
|
10
|
+
* governing permissions and limitations under the License.
|
|
11
|
+
*/
|
|
12
|
+
|
|
13
|
+
import { MediaControlsProps } from "./types.js";
|
|
14
|
+
import "client-only";
|
|
15
|
+
import * as react_jsx_runtime62 from "react/jsx-runtime";
|
|
16
|
+
|
|
17
|
+
//#region src/components/media-controls/index.d.ts
|
|
18
|
+
|
|
19
|
+
/**
|
|
20
|
+
* A container for media playback controls.
|
|
21
|
+
*
|
|
22
|
+
* Composes media control sub-components into a cohesive control bar.
|
|
23
|
+
* Must be used within a MediaProvider context from media-chrome.
|
|
24
|
+
*
|
|
25
|
+
* @param props - The component props.
|
|
26
|
+
* @param props.className - CSS class name for the container.
|
|
27
|
+
* @param props.classNames - Class names for sub-elements.
|
|
28
|
+
* @param props.children - Media control components to render.
|
|
29
|
+
* @param props.isDisabled - Disables all child controls via context.
|
|
30
|
+
* @returns The rendered media controls container.
|
|
31
|
+
*
|
|
32
|
+
* @example
|
|
33
|
+
* ```tsx
|
|
34
|
+
* <MediaProvider>
|
|
35
|
+
* <MediaControls>
|
|
36
|
+
* <PlayButton />
|
|
37
|
+
* <TimeDisplay mode="current" />
|
|
38
|
+
* <TimeRange />
|
|
39
|
+
* <MuteButton />
|
|
40
|
+
* <VolumeSlider />
|
|
41
|
+
* </MediaControls>
|
|
42
|
+
* </MediaProvider>
|
|
43
|
+
* ```
|
|
44
|
+
*
|
|
45
|
+
* @example
|
|
46
|
+
* ```tsx
|
|
47
|
+
* // Audio player with seek controls
|
|
48
|
+
* <MediaProvider>
|
|
49
|
+
* <MediaControls>
|
|
50
|
+
* <SeekButton direction="backward" seekOffset={15} />
|
|
51
|
+
* <PlayButton />
|
|
52
|
+
* <SeekButton direction="forward" seekOffset={15} />
|
|
53
|
+
* <TimeDisplay mode="current" />
|
|
54
|
+
* <PlaybackRateButton rates={[0.5, 1, 1.5, 2]} />
|
|
55
|
+
* </MediaControls>
|
|
56
|
+
* </MediaProvider>
|
|
57
|
+
* ```
|
|
58
|
+
*/
|
|
59
|
+
declare function MediaControls({
|
|
60
|
+
className,
|
|
61
|
+
classNames,
|
|
62
|
+
children,
|
|
63
|
+
isDisabled,
|
|
64
|
+
...rest
|
|
65
|
+
}: MediaControlsProps): react_jsx_runtime62.JSX.Element;
|
|
66
|
+
//#endregion
|
|
67
|
+
export { MediaControls };
|
|
68
|
+
//# sourceMappingURL=index.d.ts.map
|