@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.
Files changed (275) hide show
  1. package/catalog-info.yaml +2 -2
  2. package/dist/components/accordion/group.d.ts +2 -2
  3. package/dist/components/accordion/header.d.ts +2 -2
  4. package/dist/components/accordion/index.d.ts +2 -2
  5. package/dist/components/accordion/panel.d.ts +2 -2
  6. package/dist/components/accordion/styles.module.css +1 -1
  7. package/dist/components/accordion/trigger.d.ts +2 -2
  8. package/dist/components/action-bar/index.d.ts +2 -2
  9. package/dist/components/audio/index.d.ts +104 -0
  10. package/dist/components/audio/index.js +242 -0
  11. package/dist/components/audio/index.js.map +1 -0
  12. package/dist/components/audio/styles.module.css +77 -0
  13. package/dist/components/audio/types.d.ts +45 -0
  14. package/dist/components/audio/types.js +12 -0
  15. package/dist/components/avatar/context.d.ts +4 -4
  16. package/dist/components/avatar/index.d.ts +2 -2
  17. package/dist/components/badge/context.d.ts +4 -4
  18. package/dist/components/badge/index.d.ts +2 -2
  19. package/dist/components/breadcrumbs/index.d.ts +2 -2
  20. package/dist/components/breadcrumbs/item.d.ts +2 -2
  21. package/dist/components/breadcrumbs/styles.module.css +1 -0
  22. package/dist/components/button/__internal__/clear.js +42 -0
  23. package/dist/components/button/__internal__/clear.js.map +1 -0
  24. package/dist/components/button/__internal__/styles.module.css +23 -0
  25. package/dist/components/button/context.d.ts +8 -8
  26. package/dist/components/button/index.d.ts +2 -2
  27. package/dist/components/button/link.d.ts +2 -2
  28. package/dist/components/button/styles.module.css +1 -1
  29. package/dist/components/button/toggle.d.ts +2 -2
  30. package/dist/components/checkbox/context.d.ts +3 -3
  31. package/dist/components/checkbox/group.d.ts +2 -2
  32. package/dist/components/checkbox/index.d.ts +2 -2
  33. package/dist/components/chip/context.d.ts +4 -4
  34. package/dist/components/chip/deletable.d.ts +2 -2
  35. package/dist/components/chip/index.d.ts +2 -2
  36. package/dist/components/chip/list.d.ts +4 -4
  37. package/dist/components/chip/selectable.d.ts +2 -2
  38. package/dist/components/chip/styles.module.css +2 -2
  39. package/dist/components/classification-badge/context.d.ts +4 -4
  40. package/dist/components/classification-badge/index.d.ts +2 -2
  41. package/dist/components/classification-banner/context.d.ts +4 -4
  42. package/dist/components/classification-banner/index.d.ts +2 -2
  43. package/dist/components/clock/index.d.ts +2 -2
  44. package/dist/components/clock/index.js +1 -0
  45. package/dist/components/clock/index.js.map +1 -1
  46. package/dist/components/color-picker/index.d.ts +2 -2
  47. package/dist/components/combobox-field/context.d.ts +4 -4
  48. package/dist/components/combobox-field/index.d.ts +2 -2
  49. package/dist/components/combobox-field/index.js +42 -14
  50. package/dist/components/combobox-field/index.js.map +1 -1
  51. package/dist/components/combobox-field/styles.module.css +15 -3
  52. package/dist/components/combobox-field/types.d.ts +4 -0
  53. package/dist/components/coordinate-field/context.d.ts +6 -6
  54. package/dist/components/coordinate-field/index.d.ts +2 -2
  55. package/dist/components/coordinate-field/index.js +2 -2
  56. package/dist/components/coordinate-field/index.js.map +1 -1
  57. package/dist/components/coordinate-field/segment-configs.js +1 -1
  58. package/dist/components/coordinate-field/segment-configs.js.map +1 -1
  59. package/dist/components/coordinate-field/segment.d.ts +2 -2
  60. package/dist/components/coordinate-field/segment.js +8 -8
  61. package/dist/components/coordinate-field/segment.js.map +1 -1
  62. package/dist/components/coordinate-field/styles.module.css +7 -3
  63. package/dist/components/date-field/index.d.ts +2 -2
  64. package/dist/components/deferred-collection/index.d.ts +2 -2
  65. package/dist/components/details-list/context.d.ts +4 -4
  66. package/dist/components/details-list/index.d.ts +2 -2
  67. package/dist/components/details-list/label.d.ts +2 -2
  68. package/dist/components/details-list/value.d.ts +2 -2
  69. package/dist/components/dialog/content.d.ts +2 -2
  70. package/dist/components/dialog/context.d.ts +2 -2
  71. package/dist/components/dialog/footer.d.ts +2 -2
  72. package/dist/components/dialog/index.d.ts +2 -2
  73. package/dist/components/dialog/title.d.ts +2 -2
  74. package/dist/components/divider/context.d.ts +4 -4
  75. package/dist/components/divider/index.d.ts +2 -2
  76. package/dist/components/drawer/back.d.ts +2 -2
  77. package/dist/components/drawer/close.d.ts +2 -2
  78. package/dist/components/drawer/content.d.ts +2 -2
  79. package/dist/components/drawer/context.d.ts +2 -2
  80. package/dist/components/drawer/footer.d.ts +2 -2
  81. package/dist/components/drawer/header-title.d.ts +2 -2
  82. package/dist/components/drawer/header.d.ts +2 -2
  83. package/dist/components/drawer/header.js +1 -1
  84. package/dist/components/drawer/index.d.ts +2 -2
  85. package/dist/components/drawer/layout-main.d.ts +2 -2
  86. package/dist/components/drawer/layout.d.ts +2 -2
  87. package/dist/components/drawer/menu-item.d.ts +2 -2
  88. package/dist/components/drawer/menu.d.ts +2 -2
  89. package/dist/components/drawer/panel.d.ts +2 -2
  90. package/dist/components/drawer/trigger.d.ts +2 -2
  91. package/dist/components/drawer/view.d.ts +2 -2
  92. package/dist/components/flashcard/index.d.ts +9 -9
  93. package/dist/components/hero/context.d.ts +2 -2
  94. package/dist/components/hero/index.d.ts +2 -2
  95. package/dist/components/hero/subtitle.d.ts +2 -2
  96. package/dist/components/hero/title.d.ts +2 -2
  97. package/dist/components/hotkey/context.d.ts +4 -4
  98. package/dist/components/hotkey/index.d.ts +2 -2
  99. package/dist/components/hotkey/set.d.ts +2 -2
  100. package/dist/components/icon/context.d.ts +4 -4
  101. package/dist/components/icon/index.d.ts +2 -2
  102. package/dist/components/input/context.d.ts +2 -2
  103. package/dist/components/input/index.d.ts +2 -2
  104. package/dist/components/input/index.js +10 -14
  105. package/dist/components/input/index.js.map +1 -1
  106. package/dist/components/kanban/card-body.d.ts +2 -2
  107. package/dist/components/kanban/card-header-actions.d.ts +2 -2
  108. package/dist/components/kanban/card-header-title.d.ts +2 -2
  109. package/dist/components/kanban/card-header.d.ts +2 -2
  110. package/dist/components/kanban/card.d.ts +2 -2
  111. package/dist/components/kanban/column-actions.d.ts +2 -2
  112. package/dist/components/kanban/column-container.d.ts +2 -2
  113. package/dist/components/kanban/column-content.d.ts +2 -2
  114. package/dist/components/kanban/column-header-actions.d.ts +2 -2
  115. package/dist/components/kanban/column-header-drag-handle.d.ts +2 -2
  116. package/dist/components/kanban/column-header-title.d.ts +2 -2
  117. package/dist/components/kanban/column-header.d.ts +2 -2
  118. package/dist/components/kanban/column.d.ts +2 -2
  119. package/dist/components/kanban/context.d.ts +2 -2
  120. package/dist/components/kanban/header-actions.d.ts +2 -2
  121. package/dist/components/kanban/header-search.d.ts +2 -2
  122. package/dist/components/kanban/header-title.d.ts +2 -2
  123. package/dist/components/kanban/header.d.ts +2 -2
  124. package/dist/components/kanban/kanban.d.ts +4 -4
  125. package/dist/components/kanban/styles.module.css +1 -1
  126. package/dist/components/label/context.d.ts +4 -4
  127. package/dist/components/label/index.d.ts +2 -2
  128. package/dist/components/lines/index.d.ts +2 -2
  129. package/dist/components/link/context.d.ts +2 -2
  130. package/dist/components/link/index.d.ts +2 -2
  131. package/dist/components/list/context.d.ts +2 -2
  132. package/dist/components/list/index.d.ts +2 -2
  133. package/dist/components/list/item-content.d.ts +2 -2
  134. package/dist/components/list/item-description.d.ts +2 -2
  135. package/dist/components/list/item-title.d.ts +2 -2
  136. package/dist/components/list/item.d.ts +2 -2
  137. package/dist/components/list/styles.module.css +1 -1
  138. package/dist/components/media-controls/context.d.ts +66 -0
  139. package/dist/components/media-controls/context.js +77 -0
  140. package/dist/components/media-controls/context.js.map +1 -0
  141. package/dist/components/media-controls/index.d.ts +68 -0
  142. package/dist/components/media-controls/index.js +78 -0
  143. package/dist/components/media-controls/index.js.map +1 -0
  144. package/dist/components/media-controls/mute-button.d.ts +47 -0
  145. package/dist/components/media-controls/mute-button.js +73 -0
  146. package/dist/components/media-controls/mute-button.js.map +1 -0
  147. package/dist/components/media-controls/play-button.d.ts +47 -0
  148. package/dist/components/media-controls/play-button.js +71 -0
  149. package/dist/components/media-controls/play-button.js.map +1 -0
  150. package/dist/components/media-controls/playback-rate.d.ts +58 -0
  151. package/dist/components/media-controls/playback-rate.js +114 -0
  152. package/dist/components/media-controls/playback-rate.js.map +1 -0
  153. package/dist/components/media-controls/seek-button.d.ts +60 -0
  154. package/dist/components/media-controls/seek-button.js +116 -0
  155. package/dist/components/media-controls/seek-button.js.map +1 -0
  156. package/dist/components/media-controls/styles.module.css +145 -0
  157. package/dist/components/media-controls/time-display.d.ts +69 -0
  158. package/dist/components/media-controls/time-display.js +95 -0
  159. package/dist/components/media-controls/time-display.js.map +1 -0
  160. package/dist/components/media-controls/time-range.d.ts +46 -0
  161. package/dist/components/media-controls/time-range.js +63 -0
  162. package/dist/components/media-controls/time-range.js.map +1 -0
  163. package/dist/components/media-controls/types.d.ts +122 -0
  164. package/dist/components/media-controls/types.js +12 -0
  165. package/dist/components/media-controls/volume-slider.d.ts +54 -0
  166. package/dist/components/media-controls/volume-slider.js +70 -0
  167. package/dist/components/media-controls/volume-slider.js.map +1 -0
  168. package/dist/components/menu/context.d.ts +2 -2
  169. package/dist/components/menu/index.d.ts +2 -2
  170. package/dist/components/menu/item-description.d.ts +2 -2
  171. package/dist/components/menu/item-label.d.ts +2 -2
  172. package/dist/components/menu/item.d.ts +2 -2
  173. package/dist/components/menu/section.d.ts +2 -2
  174. package/dist/components/menu/separator.d.ts +2 -2
  175. package/dist/components/menu/styles.module.css +1 -1
  176. package/dist/components/menu/submenu.d.ts +2 -2
  177. package/dist/components/notice/index.d.ts +2 -2
  178. package/dist/components/notice/list.d.ts +2 -2
  179. package/dist/components/notice/notice-icon.d.ts +2 -2
  180. package/dist/components/options/context.d.ts +2 -2
  181. package/dist/components/options/index.d.ts +2 -2
  182. package/dist/components/options/item-content.d.ts +2 -2
  183. package/dist/components/options/item-description.d.ts +2 -2
  184. package/dist/components/options/item-label.d.ts +2 -2
  185. package/dist/components/options/item.d.ts +2 -2
  186. package/dist/components/options/section.d.ts +2 -2
  187. package/dist/components/options/styles.module.css +1 -1
  188. package/dist/components/pagination/context.d.ts +2 -2
  189. package/dist/components/pagination/index.d.ts +2 -2
  190. package/dist/components/pagination/next.d.ts +2 -2
  191. package/dist/components/pagination/pages.d.ts +2 -2
  192. package/dist/components/pagination/prev.d.ts +2 -2
  193. package/dist/components/popover/content.d.ts +2 -2
  194. package/dist/components/popover/footer.d.ts +2 -2
  195. package/dist/components/popover/index.d.ts +2 -2
  196. package/dist/components/popover/title.d.ts +2 -2
  197. package/dist/components/popover/trigger.d.ts +2 -2
  198. package/dist/components/query-builder/action-element.d.ts +2 -2
  199. package/dist/components/query-builder/actions.d.ts +4 -4
  200. package/dist/components/query-builder/combinator-selector.d.ts +2 -2
  201. package/dist/components/query-builder/combinator-selector.js +5 -4
  202. package/dist/components/query-builder/combinator-selector.js.map +1 -1
  203. package/dist/components/query-builder/index.d.ts +2 -2
  204. package/dist/components/query-builder/rule-group.d.ts +4 -4
  205. package/dist/components/query-builder/rule.d.ts +2 -2
  206. package/dist/components/query-builder/value-editor.d.ts +2 -2
  207. package/dist/components/query-builder/value-selector.d.ts +2 -2
  208. package/dist/components/radio/context.d.ts +2 -2
  209. package/dist/components/radio/group.d.ts +2 -2
  210. package/dist/components/radio/index.d.ts +2 -2
  211. package/dist/components/search-field/context.d.ts +4 -4
  212. package/dist/components/search-field/index.d.ts +2 -2
  213. package/dist/components/select-field/context.d.ts +4 -4
  214. package/dist/components/select-field/index.d.ts +2 -2
  215. package/dist/components/sidenav/avatar.d.ts +2 -2
  216. package/dist/components/sidenav/content.d.ts +2 -2
  217. package/dist/components/sidenav/context.d.ts +2 -2
  218. package/dist/components/sidenav/footer.d.ts +2 -2
  219. package/dist/components/sidenav/header.d.ts +2 -2
  220. package/dist/components/sidenav/index.d.ts +2 -2
  221. package/dist/components/sidenav/item.d.ts +2 -2
  222. package/dist/components/sidenav/link.d.ts +2 -2
  223. package/dist/components/sidenav/menu-item.d.ts +2 -2
  224. package/dist/components/sidenav/menu.d.ts +2 -2
  225. package/dist/components/sidenav/trigger.d.ts +2 -2
  226. package/dist/components/skeleton/index.d.ts +2 -2
  227. package/dist/components/slider/index.d.ts +2 -2
  228. package/dist/components/status-indicator/index.d.ts +41 -0
  229. package/dist/components/status-indicator/index.js +49 -0
  230. package/dist/components/status-indicator/index.js.map +1 -0
  231. package/dist/components/status-indicator/styles.module.css +34 -0
  232. package/dist/components/status-indicator/types.d.ts +21 -0
  233. package/dist/components/status-indicator/types.js +12 -0
  234. package/dist/components/switch/context.d.ts +2 -2
  235. package/dist/components/switch/index.d.ts +2 -2
  236. package/dist/components/table/body.d.ts +2 -2
  237. package/dist/components/table/cell.d.ts +2 -2
  238. package/dist/components/table/context.d.ts +2 -2
  239. package/dist/components/table/header-cell.d.ts +2 -2
  240. package/dist/components/table/header.d.ts +2 -2
  241. package/dist/components/table/index.d.ts +2 -2
  242. package/dist/components/table/row.d.ts +2 -2
  243. package/dist/components/tabs/context.d.ts +4 -4
  244. package/dist/components/tabs/index.d.ts +2 -2
  245. package/dist/components/tabs/list.d.ts +2 -2
  246. package/dist/components/tabs/panel.d.ts +2 -2
  247. package/dist/components/tabs/tab.d.ts +2 -2
  248. package/dist/components/text-area-field/context.d.ts +4 -4
  249. package/dist/components/text-area-field/index.d.ts +2 -2
  250. package/dist/components/text-field/context.d.ts +4 -4
  251. package/dist/components/text-field/index.d.ts +2 -2
  252. package/dist/components/time-field/index.d.ts +2 -2
  253. package/dist/components/tooltip/context.d.ts +2 -2
  254. package/dist/components/tooltip/index.d.ts +2 -2
  255. package/dist/components/tooltip/styles.module.css +1 -1
  256. package/dist/components/tooltip/trigger.d.ts +2 -2
  257. package/dist/components/tree/context.d.ts +3 -3
  258. package/dist/components/tree/index.d.ts +2 -2
  259. package/dist/components/tree/item-actions.d.ts +2 -2
  260. package/dist/components/tree/item-content.d.ts +2 -2
  261. package/dist/components/tree/item-description.d.ts +2 -2
  262. package/dist/components/tree/item-label.d.ts +2 -2
  263. package/dist/components/tree/item-prefix-icon.d.ts +2 -2
  264. package/dist/components/tree/item.d.ts +2 -2
  265. package/dist/components/tree/lines.d.ts +2 -2
  266. package/dist/components/tree/styles.module.css +1 -1
  267. package/dist/components/view-stack/context.d.ts +2 -2
  268. package/dist/components/view-stack/index.d.ts +2 -2
  269. package/dist/components/view-stack/trigger.d.ts +2 -2
  270. package/dist/components/view-stack/view.d.ts +2 -2
  271. package/dist/index.d.ts +15 -1
  272. package/dist/index.js +12 -1
  273. package/dist/providers/portal.d.ts +2 -2
  274. package/dist/providers/theme-provider.d.ts +2 -2
  275. package/package.json +20 -5
@@ -0,0 +1,122 @@
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 { AriaAttributesWithRef } from "../../lib/types.js";
14
+ import { ButtonProps } from "../button/types.js";
15
+ import { ComponentPropsWithRef } from "react";
16
+
17
+ //#region src/components/media-controls/types.d.ts
18
+ /**
19
+ * Locked-down button props for media controls.
20
+ *
21
+ * Style variants are controlled internally to ensure consistent appearance.
22
+ */
23
+ type MediaButtonProps = Omit<ButtonProps, 'variant' | 'size' | 'color'>;
24
+ /**
25
+ * Props for the MediaControls component.
26
+ */
27
+ type MediaControlsProps = ComponentPropsWithRef<'div'> & {
28
+ classNames?: {
29
+ container?: string;
30
+ };
31
+ /**
32
+ * Disables all child controls via context. Individual control isDisabled props take precedence.
33
+ */
34
+ isDisabled?: boolean;
35
+ };
36
+ /**
37
+ * Props for the PlayButton component.
38
+ */
39
+ type PlayButtonProps = MediaButtonProps;
40
+ /**
41
+ * Props for the MuteButton component.
42
+ */
43
+ type MuteButtonProps = MediaButtonProps;
44
+ /**
45
+ * Props for the SeekButton component.
46
+ */
47
+ type SeekButtonProps = MediaButtonProps & {
48
+ /** Direction to seek: 'forward' advances playback, 'backward' rewinds. */
49
+ direction: 'forward' | 'backward';
50
+ /**
51
+ * Number of seconds to seek. Must be a positive finite number.
52
+ * Invalid values (NaN, Infinity, negative, zero) fall back to default (10).
53
+ * @default 10
54
+ */
55
+ seekOffset?: number;
56
+ };
57
+ /**
58
+ * Props for the PlaybackRateButton component.
59
+ */
60
+ type PlaybackRateButtonProps = MediaButtonProps & {
61
+ /**
62
+ * Array of playback rates to cycle through.
63
+ * @default [1, 2, 3]
64
+ */
65
+ rates?: number[];
66
+ };
67
+ /**
68
+ * Base props for div-based media controls.
69
+ */
70
+ type MediaControlBaseProps = {
71
+ /** CSS class name for the control container. */
72
+ className?: string;
73
+ /**
74
+ * Disables this specific control. When true, the control is non-interactive.
75
+ * Component-level isDisabled takes precedence over context-level disabled state.
76
+ */
77
+ isDisabled?: boolean;
78
+ };
79
+ /**
80
+ * Props for the VolumeSlider component.
81
+ */
82
+ type VolumeSliderProps = MediaControlBaseProps & AriaAttributesWithRef<HTMLDivElement> & {
83
+ /** Whether to show a "Volume" label above the slider. */
84
+ showLabel?: boolean;
85
+ };
86
+ /**
87
+ * Props for the TimeRange component.
88
+ */
89
+ type TimeRangeProps = MediaControlBaseProps & AriaAttributesWithRef<HTMLDivElement>;
90
+ /**
91
+ * Time display mode - mutually exclusive options.
92
+ *
93
+ * - 'current': Shows current playback time
94
+ * - 'remaining': Shows remaining time
95
+ * - 'duration': Shows total duration
96
+ */
97
+ type TimeDisplayMode = 'current' | 'remaining' | 'duration';
98
+ /**
99
+ * Props for the TimeDisplay component.
100
+ */
101
+ type TimeDisplayProps = MediaControlBaseProps & AriaAttributesWithRef<HTMLDivElement> & {
102
+ /**
103
+ * Display mode for the time.
104
+ * - 'current': Shows current playback time (default)
105
+ * - 'remaining': Shows remaining time
106
+ * - 'duration': Shows total duration
107
+ */
108
+ mode?: TimeDisplayMode;
109
+ placeholder?: string;
110
+ };
111
+ /**
112
+ * Context value for MediaControls.
113
+ *
114
+ * Provides shared state to all media control children.
115
+ */
116
+ type MediaControlsContextValue = {
117
+ /** Whether controls are disabled. */
118
+ isDisabled: boolean;
119
+ };
120
+ //#endregion
121
+ export { MediaControlsContextValue, MediaControlsProps, MuteButtonProps, PlayButtonProps, PlaybackRateButtonProps, SeekButtonProps, TimeDisplayMode, TimeDisplayProps, TimeRangeProps, VolumeSliderProps };
122
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1,12 @@
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
+
@@ -0,0 +1,54 @@
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 { VolumeSliderProps } from "./types.js";
14
+ import "client-only";
15
+ import * as react_jsx_runtime72 from "react/jsx-runtime";
16
+
17
+ //#region src/components/media-controls/volume-slider.d.ts
18
+
19
+ /**
20
+ * A media control slider for adjusting volume.
21
+ *
22
+ * Wraps media-chrome's MediaVolumeRange component with DTK styling.
23
+ * Integrates automatically with the media store for volume control.
24
+ *
25
+ * @param props - The slider props.
26
+ * @param props.className - CSS class name for the slider container.
27
+ * @param props.showLabel - Whether to show a "Volume" label.
28
+ * @param props.isDisabled - Whether the slider is disabled.
29
+ * @param props.ref - Ref to the container element.
30
+ * @returns The rendered volume slider.
31
+ *
32
+ * @example
33
+ * ```tsx
34
+ * // Basic usage within MediaProvider
35
+ * <MediaProvider>
36
+ * <VolumeSlider />
37
+ * </MediaProvider>
38
+ * ```
39
+ *
40
+ * @example
41
+ * ```tsx
42
+ * // With visible label
43
+ * <VolumeSlider showLabel />
44
+ * ```
45
+ */
46
+ declare function VolumeSlider({
47
+ className,
48
+ showLabel,
49
+ isDisabled: isDisabledProp,
50
+ ref
51
+ }: VolumeSliderProps): react_jsx_runtime72.JSX.Element;
52
+ //#endregion
53
+ export { VolumeSlider };
54
+ //# sourceMappingURL=volume-slider.d.ts.map
@@ -0,0 +1,70 @@
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 { useMediaControlsDisabled } from "./context.js";
17
+ import "client-only";
18
+ import { clsx } from "@accelint/design-foundation/lib/utils";
19
+ import { jsx, jsxs } from "react/jsx-runtime";
20
+ import { MediaVolumeRange } from "media-chrome/react";
21
+ import styles from "./styles.module.css";
22
+
23
+ //#region src/components/media-controls/volume-slider.tsx
24
+ /**
25
+ * A media control slider for adjusting volume.
26
+ *
27
+ * Wraps media-chrome's MediaVolumeRange component with DTK styling.
28
+ * Integrates automatically with the media store for volume control.
29
+ *
30
+ * @param props - The slider props.
31
+ * @param props.className - CSS class name for the slider container.
32
+ * @param props.showLabel - Whether to show a "Volume" label.
33
+ * @param props.isDisabled - Whether the slider is disabled.
34
+ * @param props.ref - Ref to the container element.
35
+ * @returns The rendered volume slider.
36
+ *
37
+ * @example
38
+ * ```tsx
39
+ * // Basic usage within MediaProvider
40
+ * <MediaProvider>
41
+ * <VolumeSlider />
42
+ * </MediaProvider>
43
+ * ```
44
+ *
45
+ * @example
46
+ * ```tsx
47
+ * // With visible label
48
+ * <VolumeSlider showLabel />
49
+ * ```
50
+ */
51
+ function VolumeSlider({ className, showLabel = false, isDisabled: isDisabledProp, ref }) {
52
+ const isDisabled = useMediaControlsDisabled(isDisabledProp);
53
+ return /* @__PURE__ */ jsxs("div", {
54
+ ref,
55
+ className: clsx(styles.volumeSlider, className),
56
+ "data-disabled": isDisabled || void 0,
57
+ children: [showLabel && /* @__PURE__ */ jsx("span", {
58
+ className: styles.volumeLabel,
59
+ children: "Volume"
60
+ }), /* @__PURE__ */ jsx(MediaVolumeRange, {
61
+ className: styles.volumeRange,
62
+ "aria-label": "Volume",
63
+ disabled: isDisabled || void 0
64
+ })]
65
+ });
66
+ }
67
+
68
+ //#endregion
69
+ export { VolumeSlider };
70
+ //# sourceMappingURL=volume-slider.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"volume-slider.js","names":[],"sources":["../../../src/components/media-controls/volume-slider.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 { clsx } from '@accelint/design-foundation/lib/utils';\nimport { MediaVolumeRange } from 'media-chrome/react';\nimport { useMediaControlsDisabled } from './context';\nimport styles from './styles.module.css';\nimport type { VolumeSliderProps } from './types';\n\n/**\n * A media control slider for adjusting volume.\n *\n * Wraps media-chrome's MediaVolumeRange component with DTK styling.\n * Integrates automatically with the media store for volume control.\n *\n * @param props - The slider props.\n * @param props.className - CSS class name for the slider container.\n * @param props.showLabel - Whether to show a \"Volume\" label.\n * @param props.isDisabled - Whether the slider is disabled.\n * @param props.ref - Ref to the container element.\n * @returns The rendered volume slider.\n *\n * @example\n * ```tsx\n * // Basic usage within MediaProvider\n * <MediaProvider>\n * <VolumeSlider />\n * </MediaProvider>\n * ```\n *\n * @example\n * ```tsx\n * // With visible label\n * <VolumeSlider showLabel />\n * ```\n */\nexport function VolumeSlider({\n className,\n showLabel = false,\n isDisabled: isDisabledProp,\n ref,\n}: VolumeSliderProps) {\n const isDisabled = useMediaControlsDisabled(isDisabledProp);\n\n return (\n <div\n ref={ref}\n className={clsx(styles.volumeSlider, className)}\n data-disabled={isDisabled || undefined}\n >\n {showLabel && <span className={styles.volumeLabel}>Volume</span>}\n <MediaVolumeRange\n className={styles.volumeRange}\n aria-label='Volume'\n // @ts-expect-error - disabled prop is supported by the underlying web component but not in media-chrome's TypeScript types\n\n disabled={isDisabled || undefined}\n />\n </div>\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA+CA,SAAgB,aAAa,EAC3B,WACA,YAAY,OACZ,YAAY,gBACZ,OACoB;CACpB,MAAM,aAAa,yBAAyB,eAAe;AAE3D,QACE,qBAAC;EACM;EACL,WAAW,KAAK,OAAO,cAAc,UAAU;EAC/C,iBAAe,cAAc;aAE5B,aAAa,oBAAC;GAAK,WAAW,OAAO;aAAa;IAAa,EAChE,oBAAC;GACC,WAAW,OAAO;GAClB,cAAW;GAGX,UAAU,cAAc;IACxB;GACE"}
@@ -12,7 +12,7 @@
12
12
 
13
13
  import { MenuProps as MenuProps$1 } from "./types.js";
14
14
  import "client-only";
15
- import * as react33 from "react";
15
+ import * as react14 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: react33.Context<ContextValue<MenuProps$1<unknown>, HTMLDivElement>>;
23
+ declare const MenuContext: react14.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 react_jsx_runtime180 from "react/jsx-runtime";
15
+ import * as react_jsx_runtime74 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_runtime180 from "react/jsx-runtime";
126
126
  declare function Menu<T extends object>({
127
127
  ref,
128
128
  ...props
129
- }: MenuProps<T>): react_jsx_runtime180.JSX.Element;
129
+ }: MenuProps<T>): react_jsx_runtime74.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 react_jsx_runtime134 from "react/jsx-runtime";
15
+ import * as react_jsx_runtime73 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): react_jsx_runtime134.JSX.Element;
37
+ }: TextProps): react_jsx_runtime73.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 react_jsx_runtime183 from "react/jsx-runtime";
15
+ import * as react_jsx_runtime76 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): react_jsx_runtime183.JSX.Element;
37
+ }: TextProps): react_jsx_runtime76.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 react_jsx_runtime130 from "react/jsx-runtime";
15
+ import * as react_jsx_runtime77 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): react_jsx_runtime130.JSX.Element;
44
+ }: MenuItemProps): react_jsx_runtime77.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 react_jsx_runtime143 from "react/jsx-runtime";
15
+ import * as react_jsx_runtime80 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>): react_jsx_runtime143.JSX.Element;
45
+ }: MenuSectionProps<T>): react_jsx_runtime80.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 react_jsx_runtime189 from "react/jsx-runtime";
15
+ import * as react_jsx_runtime79 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_runtime189 from "react/jsx-runtime";
32
32
  declare function MenuSeparator({
33
33
  className,
34
34
  ...rest
35
- }: SeparatorProps): react_jsx_runtime189.JSX.Element;
35
+ }: SeparatorProps): react_jsx_runtime79.JSX.Element;
36
36
  //#endregion
37
37
  export { MenuSeparator };
38
38
  //# sourceMappingURL=separator.d.ts.map
@@ -14,7 +14,7 @@
14
14
 
15
15
  @layer components.l1 {
16
16
  .menu {
17
- @apply rounded-medium bg-surface-overlay shadow-elevation-overlay outline-static overflow-x-clip overflow-y-auto p-px outline;
17
+ @apply rounded-medium bg-surface-overlay shadow-elevation-overlay outline-static overflow-x-clip overflow-y-auto p-px outline select-none;
18
18
  }
19
19
 
20
20
  .item {
@@ -11,7 +11,7 @@
11
11
  */
12
12
 
13
13
  import "client-only";
14
- import * as react44 from "react";
14
+ import * as react18 from "react";
15
15
  import * as react_aria_components1 from "react-aria-components";
16
16
 
17
17
  //#region src/components/menu/submenu.d.ts
@@ -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: react_aria_components1.SubmenuTriggerProps & React.RefAttributes<HTMLDivElement>) => react44.ReactElement | null;
34
+ declare const MenuSubmenu: (props: react_aria_components1.SubmenuTriggerProps & React.RefAttributes<HTMLDivElement>) => react18.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 react_jsx_runtime186 from "react/jsx-runtime";
15
+ import * as react_jsx_runtime64 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): react_jsx_runtime186.JSX.Element;
64
+ }: NoticeProps): react_jsx_runtime64.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 react_jsx_runtime187 from "react/jsx-runtime";
15
+ import * as react_jsx_runtime65 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): react_jsx_runtime187.JSX.Element;
58
+ }: NoticeListProps): react_jsx_runtime65.JSX.Element;
59
59
  //#endregion
60
60
  export { NoticeList };
61
61
  //# sourceMappingURL=list.d.ts.map
@@ -12,7 +12,7 @@
12
12
 
13
13
  import { NoticeIconProps } from "./types.js";
14
14
  import "client-only";
15
- import * as react_jsx_runtime188 from "react/jsx-runtime";
15
+ import * as react_jsx_runtime68 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_runtime188 from "react/jsx-runtime";
38
38
  declare function NoticeIcon({
39
39
  color,
40
40
  size
41
- }: NoticeIconProps): react_jsx_runtime188.JSX.Element;
41
+ }: NoticeIconProps): react_jsx_runtime68.JSX.Element;
42
42
  //#endregion
43
43
  export { NoticeIcon };
44
44
  //# sourceMappingURL=notice-icon.d.ts.map
@@ -12,12 +12,12 @@
12
12
 
13
13
  import { OptionsDataItem, OptionsProps } from "./types.js";
14
14
  import "client-only";
15
- import * as react47 from "react";
15
+ import * as react33 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: react47.Context<ContextValue<OptionsProps<OptionsDataItem>, HTMLDivElement>>;
20
+ declare const OptionsContext: react33.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 react_jsx_runtime101 from "react/jsx-runtime";
15
+ import * as react_jsx_runtime135 from "react/jsx-runtime";
16
16
 
17
17
  //#region src/components/options/index.d.ts
18
18
 
@@ -73,7 +73,7 @@ import * as react_jsx_runtime101 from "react/jsx-runtime";
73
73
  declare function Options<T extends OptionsDataItem>({
74
74
  ref,
75
75
  ...props
76
- }: OptionsProps<T>): react_jsx_runtime101.JSX.Element;
76
+ }: OptionsProps<T>): react_jsx_runtime135.JSX.Element;
77
77
  //#endregion
78
78
  export { Options };
79
79
  //# sourceMappingURL=index.d.ts.map
@@ -11,7 +11,7 @@
11
11
  */
12
12
 
13
13
  import { TextProps } from "react-aria-components";
14
- import * as react_jsx_runtime102 from "react/jsx-runtime";
14
+ import * as react_jsx_runtime125 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_runtime102 from "react/jsx-runtime";
37
37
  declare function OptionsItemContent({
38
38
  className,
39
39
  ...rest
40
- }: TextProps): react_jsx_runtime102.JSX.Element;
40
+ }: TextProps): react_jsx_runtime125.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 react_jsx_runtime104 from "react/jsx-runtime";
14
+ import * as react_jsx_runtime126 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_runtime104 from "react/jsx-runtime";
29
29
  declare function OptionsItemDescription({
30
30
  className,
31
31
  ...rest
32
- }: TextProps): react_jsx_runtime104.JSX.Element;
32
+ }: TextProps): react_jsx_runtime126.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 react_jsx_runtime103 from "react/jsx-runtime";
14
+ import * as react_jsx_runtime129 from "react/jsx-runtime";
15
15
 
16
16
  //#region src/components/options/item-label.d.ts
17
17
  /**
@@ -29,7 +29,7 @@ import * as react_jsx_runtime103 from "react/jsx-runtime";
29
29
  declare function OptionsItemLabel({
30
30
  className,
31
31
  ...rest
32
- }: TextProps): react_jsx_runtime103.JSX.Element;
32
+ }: TextProps): react_jsx_runtime129.JSX.Element;
33
33
  //#endregion
34
34
  export { OptionsItemLabel };
35
35
  //# sourceMappingURL=item-label.d.ts.map
@@ -12,7 +12,7 @@
12
12
 
13
13
  import { OptionsDataItem, OptionsItemProps } from "./types.js";
14
14
  import "client-only";
15
- import * as react_jsx_runtime105 from "react/jsx-runtime";
15
+ import * as react_jsx_runtime127 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>): react_jsx_runtime105.JSX.Element;
46
+ }: OptionsItemProps<T>): react_jsx_runtime127.JSX.Element;
47
47
  //#endregion
48
48
  export { OptionsItem };
49
49
  //# sourceMappingURL=item.d.ts.map
@@ -11,7 +11,7 @@
11
11
  */
12
12
 
13
13
  import { OptionsDataItem, OptionsSectionProps } from "./types.js";
14
- import * as react_jsx_runtime106 from "react/jsx-runtime";
14
+ import * as react_jsx_runtime128 from "react/jsx-runtime";
15
15
 
16
16
  //#region src/components/options/section.d.ts
17
17
 
@@ -38,7 +38,7 @@ declare function OptionsSection<T extends OptionsDataItem>({
38
38
  classNames,
39
39
  header,
40
40
  items
41
- }: OptionsSectionProps<T>): react_jsx_runtime106.JSX.Element;
41
+ }: OptionsSectionProps<T>): react_jsx_runtime128.JSX.Element;
42
42
  //#endregion
43
43
  export { OptionsSection };
44
44
  //# sourceMappingURL=section.d.ts.map
@@ -14,7 +14,7 @@
14
14
 
15
15
  @layer components.l1 {
16
16
  .list {
17
- @apply rounded-medium bg-surface-overlay shadow-elevation-overlay outline-static overflow-x-clip overflow-y-auto outline;
17
+ @apply rounded-medium bg-surface-overlay shadow-elevation-overlay outline-static overflow-x-clip overflow-y-auto outline select-none;
18
18
  max-height: 200px;
19
19
  }
20
20
 
@@ -12,11 +12,11 @@
12
12
 
13
13
  import { PaginationContextValue } from "./types.js";
14
14
  import "client-only";
15
- import * as react30 from "react";
15
+ import * as react34 from "react";
16
16
 
17
17
  //#region src/components/pagination/context.d.ts
18
18
  /** Context for sharing pagination state with sub-components */
19
- declare const PaginationContext: react30.Context<PaginationContextValue>;
19
+ declare const PaginationContext: react34.Context<PaginationContextValue>;
20
20
  //#endregion
21
21
  export { PaginationContext };
22
22
  //# sourceMappingURL=context.d.ts.map
@@ -12,7 +12,7 @@
12
12
 
13
13
  import { PaginationProps } from "./types.js";
14
14
  import "client-only";
15
- import * as react_jsx_runtime107 from "react/jsx-runtime";
15
+ import * as react_jsx_runtime130 from "react/jsx-runtime";
16
16
 
17
17
  //#region src/components/pagination/index.d.ts
18
18
 
@@ -46,7 +46,7 @@ declare function Pagination({
46
46
  isLoading,
47
47
  onChange,
48
48
  ...rest
49
- }: PaginationProps): react_jsx_runtime107.JSX.Element;
49
+ }: PaginationProps): react_jsx_runtime130.JSX.Element;
50
50
  //#endregion
51
51
  export { Pagination };
52
52
  //# sourceMappingURL=index.d.ts.map