@accelint/design-toolkit 9.5.0 → 9.7.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 (245) hide show
  1. package/catalog-info.yaml +3 -3
  2. package/dist/components/accordion/context.d.ts +2 -2
  3. package/dist/components/accordion/group.d.ts +2 -2
  4. package/dist/components/accordion/header.d.ts +2 -2
  5. package/dist/components/accordion/panel.d.ts +2 -2
  6. package/dist/components/action-bar/index.d.ts +2 -2
  7. package/dist/components/audio/index.d.ts +2 -2
  8. package/dist/components/avatar/context.d.ts +4 -4
  9. package/dist/components/avatar/index.d.ts +2 -2
  10. package/dist/components/badge/context.d.ts +4 -4
  11. package/dist/components/badge/index.d.ts +2 -2
  12. package/dist/components/breadcrumbs/index.d.ts +2 -2
  13. package/dist/components/breadcrumbs/item.d.ts +2 -2
  14. package/dist/components/button/__internal__/styles.module.css +1 -1
  15. package/dist/components/button/context.d.ts +8 -8
  16. package/dist/components/button/index.d.ts +2 -2
  17. package/dist/components/button/link.d.ts +2 -2
  18. package/dist/components/button/styles.module.css +1 -1
  19. package/dist/components/button/toggle.d.ts +2 -2
  20. package/dist/components/checkbox/context.d.ts +3 -3
  21. package/dist/components/checkbox/group.d.ts +2 -2
  22. package/dist/components/checkbox/index.d.ts +2 -2
  23. package/dist/components/chip/context.d.ts +4 -4
  24. package/dist/components/chip/deletable.d.ts +2 -2
  25. package/dist/components/chip/index.d.ts +2 -2
  26. package/dist/components/chip/list.d.ts +4 -4
  27. package/dist/components/chip/selectable.d.ts +2 -2
  28. package/dist/components/chip/styles.module.css +2 -2
  29. package/dist/components/classification-badge/context.d.ts +4 -4
  30. package/dist/components/classification-badge/index.d.ts +2 -2
  31. package/dist/components/classification-banner/context.d.ts +4 -4
  32. package/dist/components/classification-banner/index.d.ts +2 -2
  33. package/dist/components/clock/index.d.ts +2 -2
  34. package/dist/components/color-picker/index.d.ts +2 -2
  35. package/dist/components/combobox-field/context.d.ts +4 -4
  36. package/dist/components/combobox-field/index.d.ts +2 -2
  37. package/dist/components/coordinate-field/context.d.ts +6 -6
  38. package/dist/components/coordinate-field/index.d.ts +2 -2
  39. package/dist/components/coordinate-field/segment.d.ts +2 -2
  40. package/dist/components/date-field/index.d.ts +2 -2
  41. package/dist/components/deferred-collection/index.d.ts +2 -2
  42. package/dist/components/details-list/context.d.ts +2 -2
  43. package/dist/components/details-list/index.d.ts +2 -2
  44. package/dist/components/details-list/label.d.ts +2 -2
  45. package/dist/components/details-list/value.d.ts +2 -2
  46. package/dist/components/dialog/content.d.ts +2 -2
  47. package/dist/components/dialog/context.d.ts +2 -2
  48. package/dist/components/dialog/footer.d.ts +2 -2
  49. package/dist/components/dialog/index.d.ts +2 -2
  50. package/dist/components/dialog/title.d.ts +2 -2
  51. package/dist/components/divider/context.d.ts +4 -4
  52. package/dist/components/divider/index.d.ts +2 -2
  53. package/dist/components/drawer/back.d.ts +2 -2
  54. package/dist/components/drawer/close.d.ts +2 -2
  55. package/dist/components/drawer/content.d.ts +2 -2
  56. package/dist/components/drawer/context.d.ts +2 -2
  57. package/dist/components/drawer/footer.d.ts +2 -2
  58. package/dist/components/drawer/header.d.ts +2 -2
  59. package/dist/components/drawer/index.d.ts +2 -2
  60. package/dist/components/drawer/layout-main.d.ts +2 -2
  61. package/dist/components/drawer/layout.d.ts +2 -2
  62. package/dist/components/drawer/menu-item.d.ts +2 -2
  63. package/dist/components/drawer/menu.d.ts +2 -2
  64. package/dist/components/drawer/panel.d.ts +2 -2
  65. package/dist/components/drawer/trigger.d.ts +2 -2
  66. package/dist/components/drawer/view.d.ts +2 -2
  67. package/dist/components/flashcard/index.d.ts +9 -9
  68. package/dist/components/hero/context.d.ts +2 -2
  69. package/dist/components/hero/index.d.ts +2 -2
  70. package/dist/components/hero/subtitle.d.ts +2 -2
  71. package/dist/components/hero/title.d.ts +2 -2
  72. package/dist/components/hotkey/context.d.ts +4 -4
  73. package/dist/components/hotkey/index.d.ts +2 -2
  74. package/dist/components/hotkey/set.d.ts +2 -2
  75. package/dist/components/icon/context.d.ts +4 -4
  76. package/dist/components/icon/index.d.ts +2 -2
  77. package/dist/components/input/context.d.ts +2 -2
  78. package/dist/components/input/index.d.ts +2 -2
  79. package/dist/components/kanban/card-body.d.ts +2 -2
  80. package/dist/components/kanban/card-header-actions.d.ts +2 -2
  81. package/dist/components/kanban/card-header-title.d.ts +2 -2
  82. package/dist/components/kanban/card-header.d.ts +2 -2
  83. package/dist/components/kanban/card.d.ts +2 -2
  84. package/dist/components/kanban/column-actions.d.ts +2 -2
  85. package/dist/components/kanban/column-container.d.ts +2 -2
  86. package/dist/components/kanban/column-content.d.ts +2 -2
  87. package/dist/components/kanban/column-header-actions.d.ts +2 -2
  88. package/dist/components/kanban/column-header-drag-handle.d.ts +2 -2
  89. package/dist/components/kanban/column-header-title.d.ts +2 -2
  90. package/dist/components/kanban/column-header.d.ts +2 -2
  91. package/dist/components/kanban/column.d.ts +2 -2
  92. package/dist/components/kanban/context.d.ts +2 -2
  93. package/dist/components/kanban/header-actions.d.ts +2 -2
  94. package/dist/components/kanban/header-search.d.ts +2 -2
  95. package/dist/components/kanban/header-title.d.ts +2 -2
  96. package/dist/components/kanban/header.d.ts +2 -2
  97. package/dist/components/kanban/kanban.d.ts +4 -4
  98. package/dist/components/label/context.d.ts +4 -4
  99. package/dist/components/label/index.d.ts +2 -2
  100. package/dist/components/lines/index.d.ts +2 -2
  101. package/dist/components/link/context.d.ts +2 -2
  102. package/dist/components/link/index.d.ts +2 -2
  103. package/dist/components/list/context.d.ts +2 -2
  104. package/dist/components/list/index.d.ts +2 -2
  105. package/dist/components/list/item-content.d.ts +2 -2
  106. package/dist/components/list/item-description.d.ts +2 -2
  107. package/dist/components/list/item-title.d.ts +2 -2
  108. package/dist/components/list/item.d.ts +2 -2
  109. package/dist/components/media-controls/context.d.ts +4 -4
  110. package/dist/components/media-controls/fullscreen-button.d.ts +55 -0
  111. package/dist/components/media-controls/fullscreen-button.js +80 -0
  112. package/dist/components/media-controls/fullscreen-button.js.map +1 -0
  113. package/dist/components/media-controls/index.d.ts +2 -2
  114. package/dist/components/media-controls/mute-button.d.ts +2 -2
  115. package/dist/components/media-controls/play-button.d.ts +2 -2
  116. package/dist/components/media-controls/playback-rate.d.ts +2 -2
  117. package/dist/components/media-controls/seek-button.d.ts +2 -2
  118. package/dist/components/media-controls/time-display.d.ts +2 -2
  119. package/dist/components/media-controls/time-range.d.ts +2 -2
  120. package/dist/components/media-controls/types.d.ts +6 -1
  121. package/dist/components/media-controls/volume-slider.d.ts +2 -2
  122. package/dist/components/menu/context.d.ts +2 -2
  123. package/dist/components/menu/index.d.ts +2 -2
  124. package/dist/components/menu/item-description.d.ts +2 -2
  125. package/dist/components/menu/item-label.d.ts +2 -2
  126. package/dist/components/menu/item.d.ts +2 -2
  127. package/dist/components/menu/section.d.ts +2 -2
  128. package/dist/components/menu/separator.d.ts +2 -2
  129. package/dist/components/menu/submenu.d.ts +2 -2
  130. package/dist/components/notice/index.d.ts +2 -2
  131. package/dist/components/notice/list.d.ts +2 -2
  132. package/dist/components/notice/notice-icon.d.ts +2 -2
  133. package/dist/components/options/context.d.ts +2 -2
  134. package/dist/components/options/index.d.ts +2 -2
  135. package/dist/components/options/item-content.d.ts +2 -2
  136. package/dist/components/options/item-description.d.ts +2 -2
  137. package/dist/components/options/item-label.d.ts +2 -2
  138. package/dist/components/options/item.d.ts +2 -2
  139. package/dist/components/options/section.d.ts +2 -2
  140. package/dist/components/options/styles.module.css +52 -4
  141. package/dist/components/pagination/context.d.ts +2 -2
  142. package/dist/components/pagination/index.d.ts +2 -2
  143. package/dist/components/pagination/next.d.ts +2 -2
  144. package/dist/components/pagination/pages.d.ts +2 -2
  145. package/dist/components/pagination/prev.d.ts +2 -2
  146. package/dist/components/popover/content.d.ts +2 -2
  147. package/dist/components/popover/footer.d.ts +2 -2
  148. package/dist/components/popover/index.d.ts +2 -2
  149. package/dist/components/popover/title.d.ts +2 -2
  150. package/dist/components/popover/trigger.d.ts +2 -2
  151. package/dist/components/query-builder/action-element.d.ts +2 -2
  152. package/dist/components/query-builder/actions.d.ts +4 -4
  153. package/dist/components/query-builder/combinator-selector.d.ts +2 -2
  154. package/dist/components/query-builder/index.d.ts +2 -2
  155. package/dist/components/query-builder/index.js +1 -1
  156. package/dist/components/query-builder/index.js.map +1 -1
  157. package/dist/components/query-builder/rule-group.d.ts +4 -4
  158. package/dist/components/query-builder/rule.d.ts +2 -2
  159. package/dist/components/query-builder/styles.module.css +10 -1
  160. package/dist/components/query-builder/value-editor.d.ts +2 -2
  161. package/dist/components/query-builder/value-selector.d.ts +2 -2
  162. package/dist/components/query-builder/value-selector.js +11 -4
  163. package/dist/components/query-builder/value-selector.js.map +1 -1
  164. package/dist/components/radio/context.d.ts +2 -2
  165. package/dist/components/radio/group.d.ts +2 -2
  166. package/dist/components/radio/index.d.ts +2 -2
  167. package/dist/components/search-field/context.d.ts +4 -4
  168. package/dist/components/search-field/index.d.ts +2 -2
  169. package/dist/components/search-field/styles.module.css +1 -1
  170. package/dist/components/select-field/context.d.ts +4 -4
  171. package/dist/components/select-field/index.d.ts +2 -2
  172. package/dist/components/sidenav/avatar.d.ts +2 -2
  173. package/dist/components/sidenav/content.d.ts +2 -2
  174. package/dist/components/sidenav/context.d.ts +2 -2
  175. package/dist/components/sidenav/footer.d.ts +2 -2
  176. package/dist/components/sidenav/header.d.ts +2 -2
  177. package/dist/components/sidenav/index.d.ts +2 -2
  178. package/dist/components/sidenav/item.d.ts +2 -2
  179. package/dist/components/sidenav/link.d.ts +2 -2
  180. package/dist/components/sidenav/menu-item.d.ts +2 -2
  181. package/dist/components/sidenav/menu.d.ts +2 -2
  182. package/dist/components/sidenav/trigger.d.ts +2 -2
  183. package/dist/components/skeleton/index.d.ts +2 -2
  184. package/dist/components/skeleton/styles.module.css +2 -4
  185. package/dist/components/skeleton/types.d.ts +1 -1
  186. package/dist/components/slider/index.d.ts +2 -2
  187. package/dist/components/status-indicator/index.d.ts +2 -2
  188. package/dist/components/switch/context.d.ts +4 -4
  189. package/dist/components/switch/index.d.ts +2 -2
  190. package/dist/components/table/body.d.ts +2 -2
  191. package/dist/components/table/cell.d.ts +2 -2
  192. package/dist/components/table/context.d.ts +2 -2
  193. package/dist/components/table/header-cell.d.ts +2 -2
  194. package/dist/components/table/header.d.ts +2 -2
  195. package/dist/components/table/index.d.ts +2 -2
  196. package/dist/components/table/row.d.ts +2 -2
  197. package/dist/components/table/styles.module.css +5 -1
  198. package/dist/components/tabs/constants.d.ts +19 -0
  199. package/dist/components/tabs/constants.js +23 -0
  200. package/dist/components/tabs/constants.js.map +1 -0
  201. package/dist/components/tabs/context.d.ts +11 -6
  202. package/dist/components/tabs/context.js +8 -1
  203. package/dist/components/tabs/context.js.map +1 -1
  204. package/dist/components/tabs/index.d.ts +4 -2
  205. package/dist/components/tabs/index.js +17 -7
  206. package/dist/components/tabs/index.js.map +1 -1
  207. package/dist/components/tabs/list.d.ts +2 -2
  208. package/dist/components/tabs/panel.d.ts +2 -2
  209. package/dist/components/tabs/styles.module.css +27 -5
  210. package/dist/components/tabs/tab.d.ts +7 -6
  211. package/dist/components/tabs/tab.js +12 -3
  212. package/dist/components/tabs/tab.js.map +1 -1
  213. package/dist/components/tabs/types.d.ts +25 -3
  214. package/dist/components/text-area-field/context.d.ts +4 -4
  215. package/dist/components/text-area-field/index.d.ts +2 -2
  216. package/dist/components/text-field/context.d.ts +4 -4
  217. package/dist/components/text-field/index.d.ts +2 -2
  218. package/dist/components/time-field/index.d.ts +2 -2
  219. package/dist/components/tooltip/context.d.ts +2 -2
  220. package/dist/components/tooltip/index.d.ts +2 -2
  221. package/dist/components/tooltip/trigger.d.ts +2 -2
  222. package/dist/components/tree/context.d.ts +3 -3
  223. package/dist/components/tree/index.d.ts +2 -2
  224. package/dist/components/tree/item-actions.d.ts +2 -2
  225. package/dist/components/tree/item-content.d.ts +2 -2
  226. package/dist/components/tree/item-description.d.ts +2 -2
  227. package/dist/components/tree/item-label.d.ts +2 -2
  228. package/dist/components/tree/item-prefix-icon.d.ts +2 -2
  229. package/dist/components/tree/item.d.ts +2 -2
  230. package/dist/components/tree/lines.d.ts +2 -2
  231. package/dist/components/video/index.d.ts +97 -0
  232. package/dist/components/video/index.js +261 -0
  233. package/dist/components/video/index.js.map +1 -0
  234. package/dist/components/video/styles.module.css +99 -0
  235. package/dist/components/video/types.d.ts +52 -0
  236. package/dist/components/video/types.js +12 -0
  237. package/dist/components/view-stack/context.d.ts +2 -2
  238. package/dist/components/view-stack/index.d.ts +2 -2
  239. package/dist/components/view-stack/trigger.d.ts +2 -2
  240. package/dist/components/view-stack/view.d.ts +2 -2
  241. package/dist/index.d.ts +8 -4
  242. package/dist/index.js +5 -2
  243. package/dist/providers/portal.d.ts +2 -2
  244. package/dist/providers/theme-provider.d.ts +2 -2
  245. package/package.json +12 -8
@@ -11,7 +11,7 @@
11
11
  */
12
12
 
13
13
  import "client-only";
14
- import * as react_jsx_runtime171 from "react/jsx-runtime";
14
+ import * as react_jsx_runtime95 from "react/jsx-runtime";
15
15
  import { ActionProps } from "react-querybuilder";
16
16
 
17
17
  //#region src/components/query-builder/actions.d.ts
@@ -30,7 +30,7 @@ declare function RemoveRuleAction({
30
30
  handleOnClick,
31
31
  className,
32
32
  ...rest
33
- }: ActionProps): react_jsx_runtime171.JSX.Element;
33
+ }: ActionProps): react_jsx_runtime95.JSX.Element;
34
34
  /**
35
35
  * Lock/unlock toggle button for rules or groups
36
36
  *
@@ -46,7 +46,7 @@ declare function LockAction({
46
46
  handleOnClick,
47
47
  className,
48
48
  ...rest
49
- }: ActionProps): react_jsx_runtime171.JSX.Element;
49
+ }: ActionProps): react_jsx_runtime95.JSX.Element;
50
50
  /**
51
51
  * Duplicate button for cloning rules or groups
52
52
  *
@@ -62,7 +62,7 @@ declare function CloneAction({
62
62
  handleOnClick,
63
63
  className,
64
64
  ...rest
65
- }: ActionProps): react_jsx_runtime171.JSX.Element;
65
+ }: ActionProps): react_jsx_runtime95.JSX.Element;
66
66
  //#endregion
67
67
  export { CloneAction, LockAction, RemoveRuleAction };
68
68
  //# sourceMappingURL=actions.d.ts.map
@@ -11,7 +11,7 @@
11
11
  */
12
12
 
13
13
  import "client-only";
14
- import * as react_jsx_runtime174 from "react/jsx-runtime";
14
+ import * as react_jsx_runtime106 from "react/jsx-runtime";
15
15
  import { CombinatorSelectorProps } from "react-querybuilder";
16
16
 
17
17
  //#region src/components/query-builder/combinator-selector.d.ts
@@ -27,7 +27,7 @@ declare function CombinatorSelector({
27
27
  options,
28
28
  value,
29
29
  handleOnChange
30
- }: CombinatorSelectorProps): react_jsx_runtime174.JSX.Element;
30
+ }: CombinatorSelectorProps): react_jsx_runtime106.JSX.Element;
31
31
  //#endregion
32
32
  export { CombinatorSelector };
33
33
  //# sourceMappingURL=combinator-selector.d.ts.map
@@ -12,7 +12,7 @@
12
12
 
13
13
  import { QueryBuilderProps } from "./types.js";
14
14
  import "client-only";
15
- import * as react_jsx_runtime176 from "react/jsx-runtime";
15
+ import * as react_jsx_runtime107 from "react/jsx-runtime";
16
16
 
17
17
  //#region src/components/query-builder/index.d.ts
18
18
 
@@ -55,7 +55,7 @@ declare function QueryBuilder({
55
55
  orientation,
56
56
  showRuleLines,
57
57
  ...rest
58
- }: QueryBuilderProps): react_jsx_runtime176.JSX.Element;
58
+ }: QueryBuilderProps): react_jsx_runtime107.JSX.Element;
59
59
  //#endregion
60
60
  export { QueryBuilder };
61
61
  //# sourceMappingURL=index.d.ts.map
@@ -92,7 +92,7 @@ function QueryBuilder({ controlClassnames, controlElements, orientation = "horiz
92
92
  header: styles.header,
93
93
  combinators: styles.combinators,
94
94
  fields: styles.fields,
95
- operators: "",
95
+ operators: styles.operators,
96
96
  value: styles.value,
97
97
  valueListItem: "",
98
98
  valueSource: "",
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":["RQBBuilder"],"sources":["../../../src/components/query-builder/index.tsx"],"sourcesContent":["/*\n * Copyright 2025 Hypergiant Galactic Systems Inc. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n'use client';\n\nimport 'client-only';\nimport { clsx } from '@accelint/design-foundation/lib/utils';\nimport { createContext, useMemo } from 'react';\nimport { QueryBuilder as RQBBuilder } from 'react-querybuilder';\nimport { ActionElement } from './action-element';\nimport { CloneAction, LockAction, RemoveRuleAction } from './actions';\nimport { CombinatorSelector } from './combinator-selector';\nimport { Rule } from './rule';\nimport { RuleGroup } from './rule-group';\nimport styles from './styles.module.css';\nimport { ValueEditor } from './value-editor';\nimport { ValueSelector } from './value-selector';\nimport type { QueryBuilderContextType, QueryBuilderProps } from './types';\n\n/**\n * QueryBuilder - A visual interface for building complex database queries\n *\n * Provides an intuitive drag-and-drop interface for constructing database queries\n * with support for multiple conditions, operators, and logical grouping. Enables\n * users to build complex filters without writing SQL or code.\n *\n * @param props - {@link QueryBuilderProps}\n * @param props.controlClassnames - Custom CSS class names for control elements.\n * @param props.controlElements - Custom component overrides for controls.\n * @param props.orientation - Layout orientation ('horizontal' or 'vertical').\n * @param props.showRuleLines - Whether to show connecting lines between rules.\n * @returns The rendered QueryBuilder component.\n *\n * @example\n * ```tsx\n * // Basic query builder\n * <QueryBuilder\n * fields={[\n * // { name, label, type, inputType, operators },\n * ]}\n * query={\n * // { combinator, rules }\n * }\n * onQueryChange={handleQueryChange}\n * controlElements={{\n * addRuleAction: CustomAddButton,\n * removeRuleAction: CustomRemoveButton\n * }}\n * orientation=\"vertical\"\n * />\n * ```\n */\nexport function QueryBuilder({\n controlClassnames,\n controlElements,\n orientation = 'horizontal',\n showRuleLines = true,\n ...rest\n}: QueryBuilderProps) {\n /**\n * Represents the list of available controls that the component can use as a custom\n * component override.Passed in as a map of our custom defaults, but can be\n * overridden by using the controlElements prop\n */\n const mergedElements = useMemo(\n () => ({\n combinatorSelector: CombinatorSelector,\n cloneGroupAction: CloneAction,\n cloneRuleAction: CloneAction,\n removeRuleAction: RemoveRuleAction,\n lockGroupAction: LockAction,\n lockRuleAction: LockAction,\n ruleGroup: RuleGroup,\n rule: Rule,\n actionElement: ActionElement,\n valueSelector: ValueSelector,\n valueEditor: ValueEditor,\n ...controlElements,\n }),\n [controlElements],\n );\n\n /**\n * Represents the list of available classnames that the component will recognize.\n * Passed in as a map as all the default styling, but can be overridden by using the\n * controlClassnames prop\n */\n const mergedClassnames = useMemo(() => {\n return {\n queryBuilder: styles.queryBuilder,\n ruleGroup: clsx('group', styles.ruleGroup),\n header: styles.header,\n combinators: styles.combinators,\n fields: styles.fields,\n operators: '',\n value: styles.value,\n valueListItem: '',\n valueSource: '',\n cloneGroup: styles.cloneGroup,\n cloneRule: styles.cloneRule,\n lockGroup: styles.lockGroup,\n lockRule: styles.lockRule,\n disabled: '',\n valid: '',\n invalid: '',\n removeRule: '',\n addRule: '',\n addGroup: '',\n removeGroup: '',\n rule: clsx(styles.rule, styles[orientation]),\n body: clsx(\n 'group',\n styles.body,\n showRuleLines && styles.showRuleLines,\n !showRuleLines && styles.hideRuleLines,\n ),\n ...controlClassnames,\n };\n }, [controlClassnames, showRuleLines, orientation]);\n\n const QueryBuilderContext = createContext<QueryBuilderContextType>({\n orientation,\n showRuleLines,\n });\n\n return (\n <RQBBuilder\n showNotToggle={false}\n showShiftActions={false}\n enableDragAndDrop={false}\n controlClassnames={mergedClassnames}\n controlElements={mergedElements}\n context={QueryBuilderContext}\n listsAsArrays\n {...rest}\n />\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA4DA,SAAgB,aAAa,EAC3B,mBACA,iBACA,cAAc,cACd,gBAAgB,MAChB,GAAG,QACiB;;;;;;CAMpB,MAAM,iBAAiB,eACd;EACL,oBAAoB;EACpB,kBAAkB;EAClB,iBAAiB;EACjB,kBAAkB;EAClB,iBAAiB;EACjB,gBAAgB;EAChB,WAAW;EACX,MAAM;EACN,eAAe;EACf,eAAe;EACf,aAAa;EACb,GAAG;EACJ,GACD,CAAC,gBAAgB,CAClB;AA6CD,QACE,oBAACA;EACC,eAAe;EACf,kBAAkB;EAClB,mBAAmB;EACnB,mBA3CqB,cAAc;AACrC,UAAO;IACL,cAAc,OAAO;IACrB,WAAW,KAAK,SAAS,OAAO,UAAU;IAC1C,QAAQ,OAAO;IACf,aAAa,OAAO;IACpB,QAAQ,OAAO;IACf,WAAW;IACX,OAAO,OAAO;IACd,eAAe;IACf,aAAa;IACb,YAAY,OAAO;IACnB,WAAW,OAAO;IAClB,WAAW,OAAO;IAClB,UAAU,OAAO;IACjB,UAAU;IACV,OAAO;IACP,SAAS;IACT,YAAY;IACZ,SAAS;IACT,UAAU;IACV,aAAa;IACb,MAAM,KAAK,OAAO,MAAM,OAAO,aAAa;IAC5C,MAAM,KACJ,SACA,OAAO,MACP,iBAAiB,OAAO,eACxB,CAAC,iBAAiB,OAAO,cAC1B;IACD,GAAG;IACJ;KACA;GAAC;GAAmB;GAAe;GAAY,CAAC;EAa/C,iBAAiB;EACjB,SAZwB,cAAuC;GACjE;GACA;GACD,CAAC;EAUE;EACA,GAAI;GACJ"}
1
+ {"version":3,"file":"index.js","names":["RQBBuilder"],"sources":["../../../src/components/query-builder/index.tsx"],"sourcesContent":["/*\n * Copyright 2025 Hypergiant Galactic Systems Inc. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n'use client';\n\nimport 'client-only';\nimport { clsx } from '@accelint/design-foundation/lib/utils';\nimport { createContext, useMemo } from 'react';\nimport { QueryBuilder as RQBBuilder } from 'react-querybuilder';\nimport { ActionElement } from './action-element';\nimport { CloneAction, LockAction, RemoveRuleAction } from './actions';\nimport { CombinatorSelector } from './combinator-selector';\nimport { Rule } from './rule';\nimport { RuleGroup } from './rule-group';\nimport styles from './styles.module.css';\nimport { ValueEditor } from './value-editor';\nimport { ValueSelector } from './value-selector';\nimport type { QueryBuilderContextType, QueryBuilderProps } from './types';\n\n/**\n * QueryBuilder - A visual interface for building complex database queries\n *\n * Provides an intuitive drag-and-drop interface for constructing database queries\n * with support for multiple conditions, operators, and logical grouping. Enables\n * users to build complex filters without writing SQL or code.\n *\n * @param props - {@link QueryBuilderProps}\n * @param props.controlClassnames - Custom CSS class names for control elements.\n * @param props.controlElements - Custom component overrides for controls.\n * @param props.orientation - Layout orientation ('horizontal' or 'vertical').\n * @param props.showRuleLines - Whether to show connecting lines between rules.\n * @returns The rendered QueryBuilder component.\n *\n * @example\n * ```tsx\n * // Basic query builder\n * <QueryBuilder\n * fields={[\n * // { name, label, type, inputType, operators },\n * ]}\n * query={\n * // { combinator, rules }\n * }\n * onQueryChange={handleQueryChange}\n * controlElements={{\n * addRuleAction: CustomAddButton,\n * removeRuleAction: CustomRemoveButton\n * }}\n * orientation=\"vertical\"\n * />\n * ```\n */\nexport function QueryBuilder({\n controlClassnames,\n controlElements,\n orientation = 'horizontal',\n showRuleLines = true,\n ...rest\n}: QueryBuilderProps) {\n /**\n * Represents the list of available controls that the component can use as a custom\n * component override.Passed in as a map of our custom defaults, but can be\n * overridden by using the controlElements prop\n */\n const mergedElements = useMemo(\n () => ({\n combinatorSelector: CombinatorSelector,\n cloneGroupAction: CloneAction,\n cloneRuleAction: CloneAction,\n removeRuleAction: RemoveRuleAction,\n lockGroupAction: LockAction,\n lockRuleAction: LockAction,\n ruleGroup: RuleGroup,\n rule: Rule,\n actionElement: ActionElement,\n valueSelector: ValueSelector,\n valueEditor: ValueEditor,\n ...controlElements,\n }),\n [controlElements],\n );\n\n /**\n * Represents the list of available classnames that the component will recognize.\n * Passed in as a map as all the default styling, but can be overridden by using the\n * controlClassnames prop\n */\n const mergedClassnames = useMemo(() => {\n return {\n queryBuilder: styles.queryBuilder,\n ruleGroup: clsx('group', styles.ruleGroup),\n header: styles.header,\n combinators: styles.combinators,\n fields: styles.fields,\n operators: styles.operators,\n value: styles.value,\n valueListItem: '',\n valueSource: '',\n cloneGroup: styles.cloneGroup,\n cloneRule: styles.cloneRule,\n lockGroup: styles.lockGroup,\n lockRule: styles.lockRule,\n disabled: '',\n valid: '',\n invalid: '',\n removeRule: '',\n addRule: '',\n addGroup: '',\n removeGroup: '',\n rule: clsx(styles.rule, styles[orientation]),\n body: clsx(\n 'group',\n styles.body,\n showRuleLines && styles.showRuleLines,\n !showRuleLines && styles.hideRuleLines,\n ),\n ...controlClassnames,\n };\n }, [controlClassnames, showRuleLines, orientation]);\n\n const QueryBuilderContext = createContext<QueryBuilderContextType>({\n orientation,\n showRuleLines,\n });\n\n return (\n <RQBBuilder\n showNotToggle={false}\n showShiftActions={false}\n enableDragAndDrop={false}\n controlClassnames={mergedClassnames}\n controlElements={mergedElements}\n context={QueryBuilderContext}\n listsAsArrays\n {...rest}\n />\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA4DA,SAAgB,aAAa,EAC3B,mBACA,iBACA,cAAc,cACd,gBAAgB,MAChB,GAAG,QACiB;;;;;;CAMpB,MAAM,iBAAiB,eACd;EACL,oBAAoB;EACpB,kBAAkB;EAClB,iBAAiB;EACjB,kBAAkB;EAClB,iBAAiB;EACjB,gBAAgB;EAChB,WAAW;EACX,MAAM;EACN,eAAe;EACf,eAAe;EACf,aAAa;EACb,GAAG;EACJ,GACD,CAAC,gBAAgB,CAClB;AA6CD,QACE,oBAACA;EACC,eAAe;EACf,kBAAkB;EAClB,mBAAmB;EACnB,mBA3CqB,cAAc;AACrC,UAAO;IACL,cAAc,OAAO;IACrB,WAAW,KAAK,SAAS,OAAO,UAAU;IAC1C,QAAQ,OAAO;IACf,aAAa,OAAO;IACpB,QAAQ,OAAO;IACf,WAAW,OAAO;IAClB,OAAO,OAAO;IACd,eAAe;IACf,aAAa;IACb,YAAY,OAAO;IACnB,WAAW,OAAO;IAClB,WAAW,OAAO;IAClB,UAAU,OAAO;IACjB,UAAU;IACV,OAAO;IACP,SAAS;IACT,YAAY;IACZ,SAAS;IACT,UAAU;IACV,aAAa;IACb,MAAM,KAAK,OAAO,MAAM,OAAO,aAAa;IAC5C,MAAM,KACJ,SACA,OAAO,MACP,iBAAiB,OAAO,eACxB,CAAC,iBAAiB,OAAO,cAC1B;IACD,GAAG;IACJ;KACA;GAAC;GAAmB;GAAe;GAAY,CAAC;EAa/C,iBAAiB;EACjB,SAZwB,cAAuC;GACjE;GACA;GACD,CAAC;EAUE;EACA,GAAI;GACJ"}
@@ -11,7 +11,7 @@
11
11
  */
12
12
 
13
13
  import "client-only";
14
- import * as react_jsx_runtime177 from "react/jsx-runtime";
14
+ import * as react_jsx_runtime108 from "react/jsx-runtime";
15
15
  import { RuleGroupProps, useRuleGroup } from "react-querybuilder";
16
16
 
17
17
  //#region src/components/query-builder/rule-group.d.ts
@@ -33,7 +33,7 @@ import { RuleGroupProps, useRuleGroup } from "react-querybuilder";
33
33
  * @param props - RuleGroupProps from react-querybuilder.
34
34
  * @returns The rendered RuleGroup component.
35
35
  */
36
- declare function RuleGroup(props: RuleGroupProps): react_jsx_runtime177.JSX.Element;
36
+ declare function RuleGroup(props: RuleGroupProps): react_jsx_runtime108.JSX.Element;
37
37
  /**
38
38
  * Header section with combinator selector and group actions (clone, lock, remove)
39
39
  *
@@ -49,7 +49,7 @@ declare function RuleGroup(props: RuleGroupProps): react_jsx_runtime177.JSX.Elem
49
49
  * @param ruleGroup - Combined RuleGroupProps and useRuleGroup return value.
50
50
  * @returns The rendered header with combinator and action controls.
51
51
  */
52
- declare function RuleGroupHeaderComponent(ruleGroup: RuleGroupProps & ReturnType<typeof useRuleGroup>): react_jsx_runtime177.JSX.Element;
52
+ declare function RuleGroupHeaderComponent(ruleGroup: RuleGroupProps & ReturnType<typeof useRuleGroup>): react_jsx_runtime108.JSX.Element;
53
53
  /**
54
54
  * Footer section with add rule and add group actions
55
55
  *
@@ -65,7 +65,7 @@ declare function RuleGroupHeaderComponent(ruleGroup: RuleGroupProps & ReturnType
65
65
  * @param ruleGroup - Combined RuleGroupProps and useRuleGroup return value.
66
66
  * @returns The rendered footer with add rule and add group buttons.
67
67
  */
68
- declare function RuleGroupFooterComponent(ruleGroup: RuleGroupProps & ReturnType<typeof useRuleGroup>): react_jsx_runtime177.JSX.Element;
68
+ declare function RuleGroupFooterComponent(ruleGroup: RuleGroupProps & ReturnType<typeof useRuleGroup>): react_jsx_runtime108.JSX.Element;
69
69
  //#endregion
70
70
  export { RuleGroup, RuleGroupFooterComponent, RuleGroupHeaderComponent };
71
71
  //# sourceMappingURL=rule-group.d.ts.map
@@ -11,7 +11,7 @@
11
11
  */
12
12
 
13
13
  import "client-only";
14
- import * as react_jsx_runtime180 from "react/jsx-runtime";
14
+ import * as react_jsx_runtime111 from "react/jsx-runtime";
15
15
  import { RuleProps } from "react-querybuilder";
16
16
 
17
17
  //#region src/components/query-builder/rule.d.ts
@@ -33,7 +33,7 @@ import { RuleProps } from "react-querybuilder";
33
33
  * @param props - RuleProps from react-querybuilder.
34
34
  * @returns The rendered Rule component with all selectors and actions.
35
35
  */
36
- declare function Rule(props: RuleProps): react_jsx_runtime180.JSX.Element;
36
+ declare function Rule(props: RuleProps): react_jsx_runtime111.JSX.Element;
37
37
  //#endregion
38
38
  export { Rule };
39
39
  //# sourceMappingURL=rule.d.ts.map
@@ -70,7 +70,8 @@
70
70
  }
71
71
 
72
72
  .fields,
73
- .value {
73
+ .value,
74
+ .operators {
74
75
  @apply w-full;
75
76
  }
76
77
  }
@@ -84,4 +85,12 @@
84
85
  .textInput {
85
86
  @apply min-h-xl;
86
87
  }
88
+
89
+ .fields,
90
+ .value,
91
+ .operators {
92
+ @variant group-size-small/combobox-field {
93
+ max-width: 250px;
94
+ }
95
+ }
87
96
  }
@@ -11,7 +11,7 @@
11
11
  */
12
12
 
13
13
  import "client-only";
14
- import * as react_jsx_runtime182 from "react/jsx-runtime";
14
+ import * as react_jsx_runtime112 from "react/jsx-runtime";
15
15
  import { ValueEditorProps } from "react-querybuilder";
16
16
 
17
17
  //#region src/components/query-builder/value-editor.d.ts
@@ -36,7 +36,7 @@ import { ValueEditorProps } from "react-querybuilder";
36
36
  * @param props - ValueEditorProps from react-querybuilder.
37
37
  * @returns The rendered value editor, or null for null/notNull operators.
38
38
  */
39
- declare function ValueEditor(props: ValueEditorProps): react_jsx_runtime182.JSX.Element | null;
39
+ declare function ValueEditor(props: ValueEditorProps): react_jsx_runtime112.JSX.Element | null;
40
40
  //#endregion
41
41
  export { ValueEditor };
42
42
  //# sourceMappingURL=value-editor.d.ts.map
@@ -11,7 +11,7 @@
11
11
  */
12
12
 
13
13
  import "client-only";
14
- import * as react_jsx_runtime183 from "react/jsx-runtime";
14
+ import * as react_jsx_runtime113 from "react/jsx-runtime";
15
15
  import { ValueSelectorProps } from "react-querybuilder";
16
16
 
17
17
  //#region src/components/query-builder/value-selector.d.ts
@@ -36,7 +36,7 @@ import { ValueSelectorProps } from "react-querybuilder";
36
36
  * @param props - ValueSelectorProps from react-querybuilder.
37
37
  * @returns The rendered ValueSelector dropdown.
38
38
  */
39
- declare function ValueSelector(props: ValueSelectorProps): react_jsx_runtime183.JSX.Element;
39
+ declare function ValueSelector(props: ValueSelectorProps): react_jsx_runtime113.JSX.Element;
40
40
  //#endregion
41
41
  export { ValueSelector };
42
42
  //# sourceMappingURL=value-selector.d.ts.map
@@ -43,7 +43,7 @@ import { isOptionGroupArray, useValueSelector } from "react-querybuilder";
43
43
  * @returns The rendered ValueSelector dropdown.
44
44
  */
45
45
  function ValueSelector(props) {
46
- const { handleOnChange, disabled, listsAsArrays, options: optionsProp, multiple, title, validation, value, ...rest } = props;
46
+ const { className, handleOnChange, disabled, listsAsArrays, options: optionsProp, multiple, title, validation, value, ...rest } = props;
47
47
  const { onChange, val } = useValueSelector({
48
48
  handleOnChange,
49
49
  listsAsArrays,
@@ -51,11 +51,12 @@ function ValueSelector(props) {
51
51
  value
52
52
  });
53
53
  const handleSelectionChange = useCallback((selection) => {
54
- if (selection) onChange(`${selection}`);
54
+ if (selection !== null) onChange(`${selection}`);
55
55
  }, [onChange]);
56
56
  const options = useMemo(() => isOptionGroupArray(optionsProp) ? optionsProp.map((section) => /* @__PURE__ */ jsx(OptionsSection, {
57
57
  header: section.label,
58
58
  children: section.options.map((option) => /* @__PURE__ */ jsx(OptionsItem, {
59
+ textValue: option.label,
59
60
  id: option.name,
60
61
  children: option.label
61
62
  }, option.name))
@@ -64,11 +65,17 @@ function ValueSelector(props) {
64
65
  id: option.name,
65
66
  children: option.label
66
67
  }, option.name)), [optionsProp]);
68
+ const selectedKey = Array.isArray(val) ? val[0] : val;
69
+ const selectedValue = (isOptionGroupArray(optionsProp) ? optionsProp.flatMap((group) => group.options) : optionsProp).find((option) => option.name === selectedKey)?.label ?? selectedKey;
67
70
  return /* @__PURE__ */ jsx(ComboBoxField, {
71
+ ...rest,
72
+ classNames: { control: className },
68
73
  size: "small",
74
+ allowsCustomValue: false,
75
+ isClearable: false,
69
76
  isDisabled: disabled,
70
- ...rest,
71
- selectedKey: Array.isArray(val) ? val[0] : val,
77
+ defaultInputValue: selectedValue,
78
+ defaultSelectedKey: selectedKey,
72
79
  "aria-labelledby": title,
73
80
  onSelectionChange: handleSelectionChange,
74
81
  children: options
@@ -1 +1 @@
1
- {"version":3,"file":"value-selector.js","names":[],"sources":["../../../src/components/query-builder/value-selector.tsx"],"sourcesContent":["// __private-exports\n/*\n * Copyright 2025 Hypergiant Galactic Systems Inc. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n'use client';\n\nimport type { Key } from '@react-types/shared';\nimport 'client-only';\nimport { useCallback, useMemo } from 'react';\nimport {\n isOptionGroupArray,\n useValueSelector,\n type ValueSelectorProps,\n} from 'react-querybuilder';\nimport { ComboBoxField } from '../combobox-field';\nimport { OptionsItem } from '../options/item';\nimport { OptionsSection } from '../options/section';\n\n/**\n * ValueSelector - Dropdown for selecting predefined values\n *\n * Renders a ComboBoxField with options, supporting grouped and flat option lists.\n *\n * @example\n * ```tsx\n * <ValueSelector\n * options={[\n * { name: 'option1', label: 'Option 1' },\n * { name: 'option2', label: 'Option 2' }\n * ]}\n * value=\"option1\"\n * handleOnChange={(value) => console.log(value)}\n * />\n * ```\n *\n * @param props - ValueSelectorProps from react-querybuilder.\n * @returns The rendered ValueSelector dropdown.\n */\nexport function ValueSelector(props: ValueSelectorProps) {\n const {\n handleOnChange,\n disabled,\n listsAsArrays,\n options: optionsProp,\n multiple,\n title,\n validation,\n value,\n ...rest\n } = props;\n\n const { onChange, val } = useValueSelector({\n handleOnChange,\n listsAsArrays,\n multiple,\n value,\n });\n\n const handleSelectionChange = useCallback(\n (selection: Key | null) => {\n if (selection) {\n onChange(`${selection}`);\n }\n },\n [onChange],\n );\n\n const options = useMemo(\n () =>\n isOptionGroupArray(optionsProp)\n ? optionsProp.map((section) => (\n <OptionsSection key={section.label} header={section.label}>\n {section.options.map((option) => (\n <OptionsItem id={option.name} key={option.name}>\n {option.label}\n </OptionsItem>\n ))}\n </OptionsSection>\n ))\n : optionsProp.map((option) => (\n <OptionsItem\n textValue={option.label}\n id={option.name}\n key={option.name}\n >\n {option.label}\n </OptionsItem>\n )),\n [optionsProp],\n );\n\n return (\n <ComboBoxField\n size='small'\n isDisabled={disabled}\n {...rest}\n selectedKey={Array.isArray(val) ? val[0] : val}\n aria-labelledby={title}\n onSelectionChange={handleSelectionChange}\n >\n {options}\n </ComboBoxField>\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA8CA,SAAgB,cAAc,OAA2B;CACvD,MAAM,EACJ,gBACA,UACA,eACA,SAAS,aACT,UACA,OACA,YACA,OACA,GAAG,SACD;CAEJ,MAAM,EAAE,UAAU,QAAQ,iBAAiB;EACzC;EACA;EACA;EACA;EACD,CAAC;CAEF,MAAM,wBAAwB,aAC3B,cAA0B;AACzB,MAAI,UACF,UAAS,GAAG,YAAY;IAG5B,CAAC,SAAS,CACX;CAED,MAAM,UAAU,cAEZ,mBAAmB,YAAY,GAC3B,YAAY,KAAK,YACf,oBAAC;EAAmC,QAAQ,QAAQ;YACjD,QAAQ,QAAQ,KAAK,WACpB,oBAAC;GAAY,IAAI,OAAO;aACrB,OAAO;KADyB,OAAO,KAE5B,CACd;IALiB,QAAQ,MAMZ,CACjB,GACF,YAAY,KAAK,WACf,oBAAC;EACC,WAAW,OAAO;EAClB,IAAI,OAAO;YAGV,OAAO;IAFH,OAAO,KAGA,CACd,EACR,CAAC,YAAY,CACd;AAED,QACE,oBAAC;EACC,MAAK;EACL,YAAY;EACZ,GAAI;EACJ,aAAa,MAAM,QAAQ,IAAI,GAAG,IAAI,KAAK;EAC3C,mBAAiB;EACjB,mBAAmB;YAElB;GACa"}
1
+ {"version":3,"file":"value-selector.js","names":[],"sources":["../../../src/components/query-builder/value-selector.tsx"],"sourcesContent":["// __private-exports\n/*\n * Copyright 2025 Hypergiant Galactic Systems Inc. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n'use client';\n\nimport type { Key } from '@react-types/shared';\nimport 'client-only';\nimport { useCallback, useMemo } from 'react';\nimport {\n isOptionGroupArray,\n useValueSelector,\n type ValueSelectorProps,\n} from 'react-querybuilder';\nimport { ComboBoxField } from '../combobox-field';\nimport { OptionsItem } from '../options/item';\nimport { OptionsSection } from '../options/section';\n\n/**\n * ValueSelector - Dropdown for selecting predefined values\n *\n * Renders a ComboBoxField with options, supporting grouped and flat option lists.\n *\n * @example\n * ```tsx\n * <ValueSelector\n * options={[\n * { name: 'option1', label: 'Option 1' },\n * { name: 'option2', label: 'Option 2' }\n * ]}\n * value=\"option1\"\n * handleOnChange={(value) => console.log(value)}\n * />\n * ```\n *\n * @param props - ValueSelectorProps from react-querybuilder.\n * @returns The rendered ValueSelector dropdown.\n */\nexport function ValueSelector(props: ValueSelectorProps) {\n const {\n className,\n handleOnChange,\n disabled,\n listsAsArrays,\n options: optionsProp,\n multiple,\n title,\n validation,\n value,\n ...rest\n } = props;\n\n const { onChange, val } = useValueSelector({\n handleOnChange,\n listsAsArrays,\n multiple,\n value,\n });\n\n const handleSelectionChange = useCallback(\n (selection: Key | null) => {\n if (selection !== null) {\n onChange(`${selection}`);\n }\n },\n [onChange],\n );\n\n const options = useMemo(\n () =>\n isOptionGroupArray(optionsProp)\n ? optionsProp.map((section) => (\n <OptionsSection key={section.label} header={section.label}>\n {section.options.map((option) => (\n <OptionsItem\n textValue={option.label}\n id={option.name}\n key={option.name}\n >\n {option.label}\n </OptionsItem>\n ))}\n </OptionsSection>\n ))\n : optionsProp.map((option) => (\n <OptionsItem\n textValue={option.label}\n id={option.name}\n key={option.name}\n >\n {option.label}\n </OptionsItem>\n )),\n [optionsProp],\n );\n\n const selectedKey = Array.isArray(val) ? val[0] : val;\n\n const flatOptions = isOptionGroupArray(optionsProp)\n ? optionsProp.flatMap((group) => group.options)\n : optionsProp;\n\n const selectedValue =\n flatOptions.find((option) => option.name === selectedKey)?.label ??\n selectedKey;\n\n return (\n <ComboBoxField\n {...rest}\n classNames={{ control: className }}\n size='small'\n allowsCustomValue={false}\n isClearable={false}\n isDisabled={disabled}\n defaultInputValue={selectedValue}\n defaultSelectedKey={selectedKey}\n aria-labelledby={title}\n onSelectionChange={handleSelectionChange}\n >\n {options}\n </ComboBoxField>\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA8CA,SAAgB,cAAc,OAA2B;CACvD,MAAM,EACJ,WACA,gBACA,UACA,eACA,SAAS,aACT,UACA,OACA,YACA,OACA,GAAG,SACD;CAEJ,MAAM,EAAE,UAAU,QAAQ,iBAAiB;EACzC;EACA;EACA;EACA;EACD,CAAC;CAEF,MAAM,wBAAwB,aAC3B,cAA0B;AACzB,MAAI,cAAc,KAChB,UAAS,GAAG,YAAY;IAG5B,CAAC,SAAS,CACX;CAED,MAAM,UAAU,cAEZ,mBAAmB,YAAY,GAC3B,YAAY,KAAK,YACf,oBAAC;EAAmC,QAAQ,QAAQ;YACjD,QAAQ,QAAQ,KAAK,WACpB,oBAAC;GACC,WAAW,OAAO;GAClB,IAAI,OAAO;aAGV,OAAO;KAFH,OAAO,KAGA,CACd;IATiB,QAAQ,MAUZ,CACjB,GACF,YAAY,KAAK,WACf,oBAAC;EACC,WAAW,OAAO;EAClB,IAAI,OAAO;YAGV,OAAO;IAFH,OAAO,KAGA,CACd,EACR,CAAC,YAAY,CACd;CAED,MAAM,cAAc,MAAM,QAAQ,IAAI,GAAG,IAAI,KAAK;CAMlD,MAAM,iBAJc,mBAAmB,YAAY,GAC/C,YAAY,SAAS,UAAU,MAAM,QAAQ,GAC7C,aAGU,MAAM,WAAW,OAAO,SAAS,YAAY,EAAE,SAC3D;AAEF,QACE,oBAAC;EACC,GAAI;EACJ,YAAY,EAAE,SAAS,WAAW;EAClC,MAAK;EACL,mBAAmB;EACnB,aAAa;EACb,YAAY;EACZ,mBAAmB;EACnB,oBAAoB;EACpB,mBAAiB;EACjB,mBAAmB;YAElB;GACa"}
@@ -12,7 +12,7 @@
12
12
 
13
13
  import { RadioGroupProps as RadioGroupProps$1 } from "./types.js";
14
14
  import "client-only";
15
- import * as react41 from "react";
15
+ import * as react28 from "react";
16
16
  import { ContextValue } from "react-aria-components";
17
17
 
18
18
  //#region src/components/radio/context.d.ts
@@ -21,7 +21,7 @@ import { ContextValue } from "react-aria-components";
21
21
  *
22
22
  * Provides context for RadioGroup component to share state with Radio components
23
23
  */
24
- declare const RadioContext: react41.Context<ContextValue<RadioGroupProps$1, HTMLDivElement>>;
24
+ declare const RadioContext: react28.Context<ContextValue<RadioGroupProps$1, HTMLDivElement>>;
25
25
  //#endregion
26
26
  export { RadioContext };
27
27
  //# sourceMappingURL=context.d.ts.map
@@ -12,7 +12,7 @@
12
12
 
13
13
  import { RadioGroupProps } from "./types.js";
14
14
  import "client-only";
15
- import * as react_jsx_runtime184 from "react/jsx-runtime";
15
+ import * as react_jsx_runtime114 from "react/jsx-runtime";
16
16
 
17
17
  //#region src/components/radio/group.d.ts
18
18
 
@@ -41,7 +41,7 @@ import * as react_jsx_runtime184 from "react/jsx-runtime";
41
41
  declare function RadioGroup({
42
42
  ref,
43
43
  ...props
44
- }: RadioGroupProps): react_jsx_runtime184.JSX.Element;
44
+ }: RadioGroupProps): react_jsx_runtime114.JSX.Element;
45
45
  //#endregion
46
46
  export { RadioGroup };
47
47
  //# sourceMappingURL=group.d.ts.map
@@ -12,7 +12,7 @@
12
12
 
13
13
  import { RadioProps } from "./types.js";
14
14
  import "client-only";
15
- import * as react_jsx_runtime185 from "react/jsx-runtime";
15
+ import * as react_jsx_runtime115 from "react/jsx-runtime";
16
16
 
17
17
  //#region src/components/radio/index.d.ts
18
18
 
@@ -38,7 +38,7 @@ declare function Radio({
38
38
  classNames,
39
39
  children,
40
40
  ...rest
41
- }: RadioProps): react_jsx_runtime185.JSX.Element;
41
+ }: RadioProps): react_jsx_runtime115.JSX.Element;
42
42
  //#endregion
43
43
  export { Radio };
44
44
  //# sourceMappingURL=index.d.ts.map
@@ -13,9 +13,9 @@
13
13
  import { ProviderProps } from "../../lib/types.js";
14
14
  import { SearchFieldProps as SearchFieldProps$1 } from "./types.js";
15
15
  import "client-only";
16
- import * as react42 from "react";
16
+ import * as react29 from "react";
17
17
  import { ContextValue } from "react-aria-components";
18
- import * as react_jsx_runtime187 from "react/jsx-runtime";
18
+ import * as react_jsx_runtime116 from "react/jsx-runtime";
19
19
 
20
20
  //#region src/components/search-field/context.d.ts
21
21
  /**
@@ -23,7 +23,7 @@ import * as react_jsx_runtime187 from "react/jsx-runtime";
23
23
  *
24
24
  * Provides context for SearchField component to share props
25
25
  */
26
- declare const SearchFieldContext: react42.Context<ContextValue<SearchFieldProps$1, HTMLDivElement>>;
26
+ declare const SearchFieldContext: react29.Context<ContextValue<SearchFieldProps$1, HTMLDivElement>>;
27
27
  /**
28
28
  * Provider for SearchField component
29
29
  *
@@ -35,7 +35,7 @@ declare const SearchFieldContext: react42.Context<ContextValue<SearchFieldProps$
35
35
  declare function SearchFieldProvider({
36
36
  children,
37
37
  ...props
38
- }: ProviderProps<SearchFieldProps$1>): react_jsx_runtime187.JSX.Element;
38
+ }: ProviderProps<SearchFieldProps$1>): react_jsx_runtime116.JSX.Element;
39
39
  //#endregion
40
40
  export { SearchFieldContext, SearchFieldProvider };
41
41
  //# sourceMappingURL=context.d.ts.map
@@ -12,7 +12,7 @@
12
12
 
13
13
  import { SearchFieldProps } from "./types.js";
14
14
  import "client-only";
15
- import * as react_jsx_runtime192 from "react/jsx-runtime";
15
+ import * as react_jsx_runtime117 from "react/jsx-runtime";
16
16
 
17
17
  //#region src/components/search-field/index.d.ts
18
18
 
@@ -41,7 +41,7 @@ import * as react_jsx_runtime192 from "react/jsx-runtime";
41
41
  declare function SearchField({
42
42
  ref,
43
43
  ...props
44
- }: SearchFieldProps): react_jsx_runtime192.JSX.Element;
44
+ }: SearchFieldProps): react_jsx_runtime117.JSX.Element;
45
45
  //#endregion
46
46
  export { SearchField };
47
47
  //# sourceMappingURL=index.d.ts.map
@@ -14,7 +14,7 @@
14
14
 
15
15
  @layer components.l1 {
16
16
  .field {
17
- @apply fg-primary-bold gap-s rounded-round p-s h-content flex items-center outline;
17
+ @apply fg-primary-bold gap-s rounded-round p-s flex h-fit items-center outline;
18
18
 
19
19
  &.filled {
20
20
  @apply bg-surface-raised outline-static;
@@ -13,13 +13,13 @@
13
13
  import { ProviderProps } from "../../lib/types.js";
14
14
  import { SelectFieldProps } from "./types.js";
15
15
  import "client-only";
16
- import * as react37 from "react";
16
+ import * as react30 from "react";
17
17
  import { ContextValue } from "react-aria-components";
18
- import * as react_jsx_runtime155 from "react/jsx-runtime";
18
+ import * as react_jsx_runtime119 from "react/jsx-runtime";
19
19
 
20
20
  //#region src/components/select-field/context.d.ts
21
21
  /** Context for SelectField component */
22
- declare const SelectFieldContext: react37.Context<ContextValue<SelectFieldProps, HTMLDivElement>>;
22
+ declare const SelectFieldContext: react30.Context<ContextValue<SelectFieldProps, HTMLDivElement>>;
23
23
  /**
24
24
  * Provider for setting default props across multiple SelectField components
25
25
  *
@@ -29,7 +29,7 @@ declare const SelectFieldContext: react37.Context<ContextValue<SelectFieldProps,
29
29
  declare function SelectFieldProvider({
30
30
  children,
31
31
  ...props
32
- }: ProviderProps<SelectFieldProps>): react_jsx_runtime155.JSX.Element;
32
+ }: ProviderProps<SelectFieldProps>): react_jsx_runtime119.JSX.Element;
33
33
  //#endregion
34
34
  export { SelectFieldContext, SelectFieldProvider };
35
35
  //# sourceMappingURL=context.d.ts.map
@@ -12,7 +12,7 @@
12
12
 
13
13
  import { SelectFieldProps } from "./types.js";
14
14
  import "client-only";
15
- import * as react_jsx_runtime145 from "react/jsx-runtime";
15
+ import * as react_jsx_runtime121 from "react/jsx-runtime";
16
16
 
17
17
  //#region src/components/select-field/index.d.ts
18
18
 
@@ -43,7 +43,7 @@ import * as react_jsx_runtime145 from "react/jsx-runtime";
43
43
  declare function SelectField({
44
44
  ref,
45
45
  ...props
46
- }: SelectFieldProps): react_jsx_runtime145.JSX.Element;
46
+ }: SelectFieldProps): react_jsx_runtime121.JSX.Element;
47
47
  //#endregion
48
48
  export { SelectField };
49
49
  //# sourceMappingURL=index.d.ts.map
@@ -12,7 +12,7 @@
12
12
 
13
13
  import { SidenavAvatarProps } from "./types.js";
14
14
  import "client-only";
15
- import * as react_jsx_runtime146 from "react/jsx-runtime";
15
+ import * as react_jsx_runtime122 from "react/jsx-runtime";
16
16
 
17
17
  //#region src/components/sidenav/avatar.d.ts
18
18
 
@@ -41,7 +41,7 @@ declare function SidenavAvatar({
41
41
  children,
42
42
  className,
43
43
  ...rest
44
- }: SidenavAvatarProps): react_jsx_runtime146.JSX.Element;
44
+ }: SidenavAvatarProps): react_jsx_runtime122.JSX.Element;
45
45
  //#endregion
46
46
  export { SidenavAvatar };
47
47
  //# sourceMappingURL=avatar.d.ts.map
@@ -12,7 +12,7 @@
12
12
 
13
13
  import { SidenavContentProps } from "./types.js";
14
14
  import "client-only";
15
- import * as react_jsx_runtime148 from "react/jsx-runtime";
15
+ import * as react_jsx_runtime123 from "react/jsx-runtime";
16
16
 
17
17
  //#region src/components/sidenav/content.d.ts
18
18
 
@@ -45,7 +45,7 @@ declare function SidenavContent({
45
45
  className,
46
46
  children,
47
47
  ...rest
48
- }: SidenavContentProps): react_jsx_runtime148.JSX.Element;
48
+ }: SidenavContentProps): react_jsx_runtime123.JSX.Element;
49
49
  //#endregion
50
50
  export { SidenavContent };
51
51
  //# sourceMappingURL=content.d.ts.map
@@ -12,11 +12,11 @@
12
12
 
13
13
  import { SidenavContextValue } from "./types.js";
14
14
  import "client-only";
15
- import * as react36 from "react";
15
+ import * as react31 from "react";
16
16
 
17
17
  //#region src/components/sidenav/context.d.ts
18
18
  /** Context for sidenav state and identification */
19
- declare const SidenavContext: react36.Context<SidenavContextValue>;
19
+ declare const SidenavContext: react31.Context<SidenavContextValue>;
20
20
  //#endregion
21
21
  export { SidenavContext };
22
22
  //# sourceMappingURL=context.d.ts.map
@@ -11,7 +11,7 @@
11
11
  */
12
12
 
13
13
  import { SidenavFooterProps } from "./types.js";
14
- import * as react_jsx_runtime149 from "react/jsx-runtime";
14
+ import * as react_jsx_runtime124 from "react/jsx-runtime";
15
15
 
16
16
  //#region src/components/sidenav/footer.d.ts
17
17
 
@@ -33,7 +33,7 @@ import * as react_jsx_runtime149 from "react/jsx-runtime";
33
33
  * @param props - {@link SidenavFooterProps}
34
34
  * @returns The rendered SidenavFooter component.
35
35
  */
36
- declare function SidenavFooter(props: SidenavFooterProps): react_jsx_runtime149.JSX.Element;
36
+ declare function SidenavFooter(props: SidenavFooterProps): react_jsx_runtime124.JSX.Element;
37
37
  //#endregion
38
38
  export { SidenavFooter };
39
39
  //# sourceMappingURL=footer.d.ts.map
@@ -12,7 +12,7 @@
12
12
 
13
13
  import { SidenavHeaderProps } from "./types.js";
14
14
  import "client-only";
15
- import * as react_jsx_runtime137 from "react/jsx-runtime";
15
+ import * as react_jsx_runtime125 from "react/jsx-runtime";
16
16
 
17
17
  //#region src/components/sidenav/header.d.ts
18
18
 
@@ -42,7 +42,7 @@ declare function SidenavHeader({
42
42
  children,
43
43
  classNames,
44
44
  ...rest
45
- }: SidenavHeaderProps): react_jsx_runtime137.JSX.Element;
45
+ }: SidenavHeaderProps): react_jsx_runtime125.JSX.Element;
46
46
  //#endregion
47
47
  export { SidenavHeader };
48
48
  //# sourceMappingURL=header.d.ts.map
@@ -12,7 +12,7 @@
12
12
 
13
13
  import { SidenavProps } from "./types.js";
14
14
  import "client-only";
15
- import * as react_jsx_runtime152 from "react/jsx-runtime";
15
+ import * as react_jsx_runtime126 from "react/jsx-runtime";
16
16
 
17
17
  //#region src/components/sidenav/index.d.ts
18
18
 
@@ -87,7 +87,7 @@ declare function Sidenav({
87
87
  isHiddenWhenClosed,
88
88
  children,
89
89
  ...rest
90
- }: SidenavProps): react_jsx_runtime152.JSX.Element | null;
90
+ }: SidenavProps): react_jsx_runtime126.JSX.Element | null;
91
91
  //#endregion
92
92
  export { Sidenav };
93
93
  //# sourceMappingURL=index.d.ts.map
@@ -12,7 +12,7 @@
12
12
 
13
13
  import { SidenavItemProps } from "./types.js";
14
14
  import "client-only";
15
- import * as react_jsx_runtime153 from "react/jsx-runtime";
15
+ import * as react_jsx_runtime128 from "react/jsx-runtime";
16
16
 
17
17
  //#region src/components/sidenav/item.d.ts
18
18
 
@@ -40,7 +40,7 @@ declare function SidenavItem({
40
40
  classNames,
41
41
  textValue,
42
42
  ...rest
43
- }: SidenavItemProps): react_jsx_runtime153.JSX.Element;
43
+ }: SidenavItemProps): react_jsx_runtime128.JSX.Element;
44
44
  //#endregion
45
45
  export { SidenavItem };
46
46
  //# sourceMappingURL=item.d.ts.map
@@ -12,7 +12,7 @@
12
12
 
13
13
  import { SidenavLinkProps } from "./types.js";
14
14
  import "client-only";
15
- import * as react_jsx_runtime154 from "react/jsx-runtime";
15
+ import * as react_jsx_runtime127 from "react/jsx-runtime";
16
16
 
17
17
  //#region src/components/sidenav/link.d.ts
18
18
 
@@ -40,7 +40,7 @@ declare function SidenavLink({
40
40
  classNames,
41
41
  textValue,
42
42
  ...rest
43
- }: SidenavLinkProps): react_jsx_runtime154.JSX.Element;
43
+ }: SidenavLinkProps): react_jsx_runtime127.JSX.Element;
44
44
  //#endregion
45
45
  export { SidenavLink };
46
46
  //# sourceMappingURL=link.d.ts.map
@@ -11,7 +11,7 @@
11
11
  */
12
12
 
13
13
  import { SidenavMenuItemProps } from "./types.js";
14
- import * as react_jsx_runtime161 from "react/jsx-runtime";
14
+ import * as react_jsx_runtime130 from "react/jsx-runtime";
15
15
 
16
16
  //#region src/components/sidenav/menu-item.d.ts
17
17
 
@@ -37,7 +37,7 @@ declare function SidenavMenuItem({
37
37
  className,
38
38
  children,
39
39
  ...rest
40
- }: SidenavMenuItemProps): react_jsx_runtime161.JSX.Element;
40
+ }: SidenavMenuItemProps): react_jsx_runtime130.JSX.Element;
41
41
  //#endregion
42
42
  export { SidenavMenuItem };
43
43
  //# sourceMappingURL=menu-item.d.ts.map
@@ -12,7 +12,7 @@
12
12
 
13
13
  import { SidenavMenuProps } from "./types.js";
14
14
  import "client-only";
15
- import * as react_jsx_runtime159 from "react/jsx-runtime";
15
+ import * as react_jsx_runtime120 from "react/jsx-runtime";
16
16
 
17
17
  //#region src/components/sidenav/menu.d.ts
18
18
 
@@ -43,7 +43,7 @@ declare function SidenavMenu({
43
43
  classNames,
44
44
  children,
45
45
  ...rest
46
- }: SidenavMenuProps): react_jsx_runtime159.JSX.Element;
46
+ }: SidenavMenuProps): react_jsx_runtime120.JSX.Element;
47
47
  //#endregion
48
48
  export { SidenavMenu };
49
49
  //# sourceMappingURL=menu.d.ts.map