@accelint/design-toolkit 9.1.1 → 9.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (249) hide show
  1. package/README.md +15 -22
  2. package/catalog-info.yaml +4 -4
  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/index.d.ts +2 -2
  6. package/dist/components/accordion/panel.d.ts +2 -2
  7. package/dist/components/action-bar/index.d.ts +8 -0
  8. package/dist/components/action-bar/index.js +8 -1
  9. package/dist/components/action-bar/index.js.map +1 -1
  10. package/dist/components/action-bar/styles.module.css +9 -1
  11. package/dist/components/action-bar/types.d.ts +1 -0
  12. package/dist/components/avatar/context.d.ts +4 -4
  13. package/dist/components/avatar/index.d.ts +2 -2
  14. package/dist/components/badge/context.d.ts +4 -4
  15. package/dist/components/badge/index.d.ts +2 -2
  16. package/dist/components/breadcrumbs/index.d.ts +2 -2
  17. package/dist/components/breadcrumbs/item.d.ts +2 -2
  18. package/dist/components/button/context.d.ts +8 -8
  19. package/dist/components/button/index.d.ts +2 -2
  20. package/dist/components/button/link.d.ts +2 -2
  21. package/dist/components/button/toggle.d.ts +2 -2
  22. package/dist/components/checkbox/context.d.ts +3 -3
  23. package/dist/components/checkbox/group.d.ts +2 -2
  24. package/dist/components/checkbox/index.d.ts +2 -2
  25. package/dist/components/chip/context.d.ts +4 -4
  26. package/dist/components/chip/deletable.d.ts +2 -2
  27. package/dist/components/chip/index.d.ts +2 -2
  28. package/dist/components/classification-badge/context.d.ts +4 -4
  29. package/dist/components/classification-badge/index.d.ts +2 -2
  30. package/dist/components/classification-banner/context.d.ts +4 -4
  31. package/dist/components/classification-banner/index.d.ts +2 -2
  32. package/dist/components/clock/index.d.ts +2 -2
  33. package/dist/components/color-picker/index.d.ts +2 -2
  34. package/dist/components/combobox-field/context.d.ts +4 -4
  35. package/dist/components/combobox-field/index.js +44 -37
  36. package/dist/components/combobox-field/index.js.map +1 -1
  37. package/dist/components/combobox-field/styles.module.css +5 -1
  38. package/dist/components/coordinate-field/context.d.ts +6 -6
  39. package/dist/components/coordinate-field/index.d.ts +2 -2
  40. package/dist/components/coordinate-field/index.js +3 -1
  41. package/dist/components/coordinate-field/index.js.map +1 -1
  42. package/dist/components/coordinate-field/segment.d.ts +3 -2
  43. package/dist/components/coordinate-field/segment.js +3 -1
  44. package/dist/components/coordinate-field/segment.js.map +1 -1
  45. package/dist/components/coordinate-field/styles.module.css +14 -0
  46. package/dist/components/coordinate-field/types.d.ts +2 -0
  47. package/dist/components/coordinate-field/types.js.map +1 -1
  48. package/dist/components/date-field/index.d.ts +3 -2
  49. package/dist/components/date-field/index.js +4 -2
  50. package/dist/components/date-field/index.js.map +1 -1
  51. package/dist/components/date-field/styles.module.css +4 -0
  52. package/dist/components/deferred-collection/index.d.ts +43 -0
  53. package/dist/components/deferred-collection/index.js +44 -0
  54. package/dist/components/deferred-collection/index.js.map +1 -0
  55. package/dist/components/deferred-collection/types.d.ts +26 -0
  56. package/dist/components/deferred-collection/types.js +12 -0
  57. package/dist/components/details-list/context.d.ts +4 -4
  58. package/dist/components/details-list/index.d.ts +2 -2
  59. package/dist/components/details-list/label.d.ts +2 -2
  60. package/dist/components/details-list/value.d.ts +2 -2
  61. package/dist/components/dialog/content.d.ts +2 -2
  62. package/dist/components/dialog/context.d.ts +2 -2
  63. package/dist/components/dialog/footer.d.ts +2 -2
  64. package/dist/components/dialog/index.d.ts +2 -2
  65. package/dist/components/dialog/title.d.ts +2 -2
  66. package/dist/components/divider/context.d.ts +4 -4
  67. package/dist/components/drawer/back.d.ts +2 -2
  68. package/dist/components/drawer/close.d.ts +2 -2
  69. package/dist/components/drawer/content.d.ts +2 -2
  70. package/dist/components/drawer/context.d.ts +2 -2
  71. package/dist/components/drawer/footer.d.ts +2 -2
  72. package/dist/components/drawer/header-title.d.ts +2 -2
  73. package/dist/components/drawer/header.d.ts +2 -2
  74. package/dist/components/drawer/index.d.ts +2 -2
  75. package/dist/components/drawer/layout-main.d.ts +2 -2
  76. package/dist/components/drawer/layout.d.ts +2 -2
  77. package/dist/components/drawer/menu-item.d.ts +2 -2
  78. package/dist/components/drawer/menu.d.ts +2 -2
  79. package/dist/components/drawer/panel.d.ts +2 -2
  80. package/dist/components/drawer/styles.module.css +2 -2
  81. package/dist/components/drawer/trigger.d.ts +2 -2
  82. package/dist/components/drawer/view.d.ts +2 -2
  83. package/dist/components/flashcard/index.d.ts +9 -9
  84. package/dist/components/hero/context.d.ts +2 -2
  85. package/dist/components/hero/index.d.ts +2 -2
  86. package/dist/components/hero/subtitle.d.ts +2 -2
  87. package/dist/components/hero/title.d.ts +2 -2
  88. package/dist/components/hotkey/context.d.ts +4 -4
  89. package/dist/components/hotkey/index.d.ts +2 -2
  90. package/dist/components/hotkey/set.d.ts +2 -2
  91. package/dist/components/icon/context.d.ts +4 -4
  92. package/dist/components/icon/index.d.ts +2 -2
  93. package/dist/components/input/context.d.ts +2 -2
  94. package/dist/components/input/index.d.ts +2 -2
  95. package/dist/components/input/index.js +3 -2
  96. package/dist/components/input/index.js.map +1 -1
  97. package/dist/components/input/styles.module.css +5 -1
  98. package/dist/components/kanban/card-body.d.ts +2 -2
  99. package/dist/components/kanban/card-header-actions.d.ts +2 -2
  100. package/dist/components/kanban/card-header-title.d.ts +2 -2
  101. package/dist/components/kanban/card-header.d.ts +2 -2
  102. package/dist/components/kanban/card.d.ts +2 -2
  103. package/dist/components/kanban/column-actions.d.ts +2 -2
  104. package/dist/components/kanban/column-container.d.ts +2 -2
  105. package/dist/components/kanban/column-content.d.ts +2 -2
  106. package/dist/components/kanban/column-header-actions.d.ts +2 -2
  107. package/dist/components/kanban/column-header-drag-handle.d.ts +2 -2
  108. package/dist/components/kanban/column-header-title.d.ts +2 -2
  109. package/dist/components/kanban/column-header.d.ts +2 -2
  110. package/dist/components/kanban/column.d.ts +2 -2
  111. package/dist/components/kanban/context.d.ts +2 -2
  112. package/dist/components/kanban/header-actions.d.ts +2 -2
  113. package/dist/components/kanban/header-search.d.ts +2 -2
  114. package/dist/components/kanban/header-title.d.ts +2 -2
  115. package/dist/components/kanban/header.d.ts +2 -2
  116. package/dist/components/kanban/kanban.d.ts +4 -4
  117. package/dist/components/label/context.d.ts +2 -2
  118. package/dist/components/label/index.d.ts +2 -2
  119. package/dist/components/lines/index.d.ts +2 -2
  120. package/dist/components/link/context.d.ts +2 -2
  121. package/dist/components/link/index.d.ts +2 -2
  122. package/dist/components/list/context.d.ts +23 -0
  123. package/dist/components/list/context.js +32 -0
  124. package/dist/components/list/context.js.map +1 -0
  125. package/dist/components/list/index.d.ts +44 -0
  126. package/dist/components/list/index.js +63 -0
  127. package/dist/components/list/index.js.map +1 -0
  128. package/dist/components/list/item-content.d.ts +36 -0
  129. package/dist/components/list/item-content.js +43 -0
  130. package/dist/components/list/item-content.js.map +1 -0
  131. package/dist/components/list/item-description.d.ts +34 -0
  132. package/dist/components/list/item-description.js +43 -0
  133. package/dist/components/list/item-description.js.map +1 -0
  134. package/dist/components/list/item-title.d.ts +34 -0
  135. package/dist/components/list/item-title.js +43 -0
  136. package/dist/components/list/item-title.js.map +1 -0
  137. package/dist/components/list/item.d.ts +44 -0
  138. package/dist/components/list/item.js +52 -0
  139. package/dist/components/list/item.js.map +1 -0
  140. package/dist/components/list/styles.module.css +95 -0
  141. package/dist/components/list/types.d.ts +33 -0
  142. package/dist/components/list/types.js +12 -0
  143. package/dist/components/menu/context.d.ts +2 -2
  144. package/dist/components/menu/index.d.ts +2 -2
  145. package/dist/components/menu/item-description.d.ts +2 -2
  146. package/dist/components/menu/item-label.d.ts +2 -2
  147. package/dist/components/menu/item.d.ts +2 -2
  148. package/dist/components/menu/section.d.ts +2 -2
  149. package/dist/components/menu/separator.d.ts +2 -2
  150. package/dist/components/menu/styles.module.css +62 -46
  151. package/dist/components/menu/submenu.d.ts +2 -2
  152. package/dist/components/notice/index.d.ts +2 -2
  153. package/dist/components/notice/list.d.ts +2 -2
  154. package/dist/components/notice/notice-icon.d.ts +2 -2
  155. package/dist/components/options/context.d.ts +2 -2
  156. package/dist/components/options/index.d.ts +2 -2
  157. package/dist/components/options/item-content.d.ts +2 -2
  158. package/dist/components/options/item-description.d.ts +2 -2
  159. package/dist/components/options/item-label.d.ts +2 -2
  160. package/dist/components/options/item.d.ts +2 -2
  161. package/dist/components/options/section.d.ts +2 -2
  162. package/dist/components/pagination/context.d.ts +2 -2
  163. package/dist/components/pagination/index.d.ts +2 -2
  164. package/dist/components/pagination/next.d.ts +2 -2
  165. package/dist/components/pagination/pages.d.ts +2 -2
  166. package/dist/components/pagination/prev.d.ts +2 -2
  167. package/dist/components/popover/content.d.ts +2 -2
  168. package/dist/components/popover/footer.d.ts +2 -2
  169. package/dist/components/popover/index.d.ts +2 -2
  170. package/dist/components/popover/title.d.ts +2 -2
  171. package/dist/components/popover/trigger.d.ts +2 -2
  172. package/dist/components/query-builder/action-element.d.ts +2 -2
  173. package/dist/components/query-builder/actions.d.ts +4 -4
  174. package/dist/components/query-builder/combinator-selector.d.ts +2 -2
  175. package/dist/components/query-builder/index.d.ts +2 -2
  176. package/dist/components/query-builder/rule-group.d.ts +4 -4
  177. package/dist/components/query-builder/rule.d.ts +2 -2
  178. package/dist/components/query-builder/value-editor.d.ts +2 -2
  179. package/dist/components/query-builder/value-selector.d.ts +2 -2
  180. package/dist/components/radio/context.d.ts +2 -2
  181. package/dist/components/radio/group.d.ts +2 -2
  182. package/dist/components/radio/index.d.ts +2 -2
  183. package/dist/components/search-field/context.d.ts +4 -4
  184. package/dist/components/search-field/index.d.ts +2 -2
  185. package/dist/components/select-field/context.d.ts +4 -4
  186. package/dist/components/select-field/index.d.ts +2 -2
  187. package/dist/components/select-field/index.js +10 -4
  188. package/dist/components/select-field/index.js.map +1 -1
  189. package/dist/components/select-field/styles.module.css +4 -0
  190. package/dist/components/select-field/types.d.ts +1 -0
  191. package/dist/components/sidenav/avatar.d.ts +2 -2
  192. package/dist/components/sidenav/content.d.ts +2 -2
  193. package/dist/components/sidenav/context.d.ts +2 -2
  194. package/dist/components/sidenav/footer.d.ts +2 -2
  195. package/dist/components/sidenav/header.d.ts +2 -2
  196. package/dist/components/sidenav/index.d.ts +2 -2
  197. package/dist/components/sidenav/item.d.ts +2 -2
  198. package/dist/components/sidenav/link.d.ts +2 -2
  199. package/dist/components/sidenav/menu-item.d.ts +2 -2
  200. package/dist/components/sidenav/menu.d.ts +2 -2
  201. package/dist/components/sidenav/trigger.d.ts +2 -2
  202. package/dist/components/skeleton/index.d.ts +2 -2
  203. package/dist/components/slider/index.d.ts +2 -2
  204. package/dist/components/switch/context.d.ts +4 -4
  205. package/dist/components/switch/index.d.ts +2 -2
  206. package/dist/components/table/body.d.ts +2 -2
  207. package/dist/components/table/cell.d.ts +2 -2
  208. package/dist/components/table/context.d.ts +2 -2
  209. package/dist/components/table/header-cell.d.ts +2 -2
  210. package/dist/components/table/header.d.ts +2 -2
  211. package/dist/components/table/index.d.ts +2 -2
  212. package/dist/components/table/row.d.ts +2 -2
  213. package/dist/components/tabs/context.d.ts +4 -4
  214. package/dist/components/tabs/index.d.ts +2 -2
  215. package/dist/components/tabs/list.d.ts +2 -2
  216. package/dist/components/tabs/panel.d.ts +2 -2
  217. package/dist/components/tabs/tab.d.ts +2 -2
  218. package/dist/components/text-area-field/context.d.ts +4 -4
  219. package/dist/components/text-area-field/index.d.ts +2 -2
  220. package/dist/components/text-area-field/styles.module.css +4 -0
  221. package/dist/components/text-field/context.d.ts +4 -4
  222. package/dist/components/text-field/index.d.ts +2 -2
  223. package/dist/components/time-field/index.d.ts +3 -2
  224. package/dist/components/time-field/index.js +4 -2
  225. package/dist/components/time-field/index.js.map +1 -1
  226. package/dist/components/time-field/styles.module.css +5 -2
  227. package/dist/components/tooltip/context.d.ts +2 -2
  228. package/dist/components/tooltip/index.d.ts +2 -2
  229. package/dist/components/tooltip/trigger.d.ts +2 -2
  230. package/dist/components/tree/context.d.ts +3 -3
  231. package/dist/components/tree/index.d.ts +2 -2
  232. package/dist/components/tree/item-actions.d.ts +2 -2
  233. package/dist/components/tree/item-content.d.ts +2 -2
  234. package/dist/components/tree/item-description.d.ts +2 -2
  235. package/dist/components/tree/item-label.d.ts +2 -2
  236. package/dist/components/tree/item-prefix-icon.d.ts +2 -2
  237. package/dist/components/tree/item.d.ts +2 -2
  238. package/dist/components/view-stack/context.d.ts +2 -2
  239. package/dist/components/view-stack/index.d.ts +2 -2
  240. package/dist/components/view-stack/trigger.d.ts +2 -2
  241. package/dist/components/view-stack/view.d.ts +2 -2
  242. package/dist/hooks/use-frame-delay/index.d.ts +38 -0
  243. package/dist/hooks/use-frame-delay/index.js +61 -0
  244. package/dist/hooks/use-frame-delay/index.js.map +1 -0
  245. package/dist/index.d.ts +11 -1
  246. package/dist/index.js +9 -1
  247. package/dist/providers/portal.d.ts +2 -2
  248. package/dist/providers/theme-provider.d.ts +2 -2
  249. package/package.json +19 -9
@@ -12,7 +12,7 @@
12
12
 
13
13
  import { OptionsDataItem, OptionsItemProps } from "./types.js";
14
14
  import "client-only";
15
- import * as react_jsx_runtime94 from "react/jsx-runtime";
15
+ import * as react_jsx_runtime149 from "react/jsx-runtime";
16
16
 
17
17
  //#region src/components/options/item.d.ts
18
18
  declare function OptionsItem<T extends OptionsDataItem>({
@@ -21,7 +21,7 @@ declare function OptionsItem<T extends OptionsDataItem>({
21
21
  color,
22
22
  textValue,
23
23
  ...rest
24
- }: OptionsItemProps<T>): react_jsx_runtime94.JSX.Element;
24
+ }: OptionsItemProps<T>): react_jsx_runtime149.JSX.Element;
25
25
  //#endregion
26
26
  export { OptionsItem };
27
27
  //# sourceMappingURL=item.d.ts.map
@@ -11,7 +11,7 @@
11
11
  */
12
12
 
13
13
  import { OptionsDataItem, OptionsSectionProps } from "./types.js";
14
- import * as react_jsx_runtime95 from "react/jsx-runtime";
14
+ import * as react_jsx_runtime150 from "react/jsx-runtime";
15
15
 
16
16
  //#region src/components/options/section.d.ts
17
17
  declare function OptionsSection<T extends OptionsDataItem>({
@@ -19,7 +19,7 @@ declare function OptionsSection<T extends OptionsDataItem>({
19
19
  classNames,
20
20
  header,
21
21
  items
22
- }: OptionsSectionProps<T>): react_jsx_runtime95.JSX.Element;
22
+ }: OptionsSectionProps<T>): react_jsx_runtime150.JSX.Element;
23
23
  //#endregion
24
24
  export { OptionsSection };
25
25
  //# sourceMappingURL=section.d.ts.map
@@ -12,10 +12,10 @@
12
12
 
13
13
  import { PaginationContextValue } from "./types.js";
14
14
  import "client-only";
15
- import * as react28 from "react";
15
+ import * as react40 from "react";
16
16
 
17
17
  //#region src/components/pagination/context.d.ts
18
- declare const PaginationContext: react28.Context<PaginationContextValue>;
18
+ declare const PaginationContext: react40.Context<PaginationContextValue>;
19
19
  //#endregion
20
20
  export { PaginationContext };
21
21
  //# sourceMappingURL=context.d.ts.map
@@ -12,7 +12,7 @@
12
12
 
13
13
  import { PaginationProps } from "./types.js";
14
14
  import "client-only";
15
- import * as react_jsx_runtime98 from "react/jsx-runtime";
15
+ import * as react_jsx_runtime151 from "react/jsx-runtime";
16
16
 
17
17
  //#region src/components/pagination/index.d.ts
18
18
  /**
@@ -39,7 +39,7 @@ declare function Pagination({
39
39
  isLoading,
40
40
  onChange,
41
41
  ...rest
42
- }: PaginationProps): react_jsx_runtime98.JSX.Element;
42
+ }: PaginationProps): react_jsx_runtime151.JSX.Element;
43
43
  //#endregion
44
44
  export { Pagination };
45
45
  //# sourceMappingURL=index.d.ts.map
@@ -12,13 +12,13 @@
12
12
 
13
13
  import { PaginationNextProps } from "./types.js";
14
14
  import "client-only";
15
- import * as react_jsx_runtime100 from "react/jsx-runtime";
15
+ import * as react_jsx_runtime152 from "react/jsx-runtime";
16
16
 
17
17
  //#region src/components/pagination/next.d.ts
18
18
  declare function PaginationNext({
19
19
  className,
20
20
  onPress
21
- }: PaginationNextProps): react_jsx_runtime100.JSX.Element;
21
+ }: PaginationNextProps): react_jsx_runtime152.JSX.Element;
22
22
  //#endregion
23
23
  export { PaginationNext };
24
24
  //# sourceMappingURL=next.d.ts.map
@@ -12,13 +12,13 @@
12
12
 
13
13
  import { PaginationPagesProps } from "./types.js";
14
14
  import "client-only";
15
- import * as react_jsx_runtime102 from "react/jsx-runtime";
15
+ import * as react_jsx_runtime154 from "react/jsx-runtime";
16
16
 
17
17
  //#region src/components/pagination/pages.d.ts
18
18
  declare function PaginationPages({
19
19
  className,
20
20
  onPress
21
- }: PaginationPagesProps): react_jsx_runtime102.JSX.Element[] | null;
21
+ }: PaginationPagesProps): react_jsx_runtime154.JSX.Element[] | null;
22
22
  //#endregion
23
23
  export { PaginationPages };
24
24
  //# sourceMappingURL=pages.d.ts.map
@@ -12,13 +12,13 @@
12
12
 
13
13
  import { PaginationPrevProps } from "./types.js";
14
14
  import "client-only";
15
- import * as react_jsx_runtime103 from "react/jsx-runtime";
15
+ import * as react_jsx_runtime144 from "react/jsx-runtime";
16
16
 
17
17
  //#region src/components/pagination/prev.d.ts
18
18
  declare function PaginationPrev({
19
19
  className,
20
20
  onPress
21
- }: PaginationPrevProps): react_jsx_runtime103.JSX.Element;
21
+ }: PaginationPrevProps): react_jsx_runtime144.JSX.Element;
22
22
  //#endregion
23
23
  export { PaginationPrev };
24
24
  //# sourceMappingURL=prev.d.ts.map
@@ -12,13 +12,13 @@
12
12
 
13
13
  import "client-only";
14
14
  import { ComponentPropsWithRef } from "react";
15
- import * as react_jsx_runtime113 from "react/jsx-runtime";
15
+ import * as react_jsx_runtime179 from "react/jsx-runtime";
16
16
 
17
17
  //#region src/components/popover/content.d.ts
18
18
  declare function PopoverContent({
19
19
  className,
20
20
  ...rest
21
- }: ComponentPropsWithRef<'div'>): react_jsx_runtime113.JSX.Element;
21
+ }: ComponentPropsWithRef<'div'>): react_jsx_runtime179.JSX.Element;
22
22
  //#endregion
23
23
  export { PopoverContent };
24
24
  //# sourceMappingURL=content.d.ts.map
@@ -12,13 +12,13 @@
12
12
 
13
13
  import "client-only";
14
14
  import { ComponentPropsWithRef } from "react";
15
- import * as react_jsx_runtime129 from "react/jsx-runtime";
15
+ import * as react_jsx_runtime180 from "react/jsx-runtime";
16
16
 
17
17
  //#region src/components/popover/footer.d.ts
18
18
  declare function PopoverFooter({
19
19
  children,
20
20
  className
21
- }: ComponentPropsWithRef<'footer'>): react_jsx_runtime129.JSX.Element;
21
+ }: ComponentPropsWithRef<'footer'>): react_jsx_runtime180.JSX.Element;
22
22
  //#endregion
23
23
  export { PopoverFooter };
24
24
  //# sourceMappingURL=footer.d.ts.map
@@ -12,7 +12,7 @@
12
12
 
13
13
  import { PopoverProps } from "./types.js";
14
14
  import "client-only";
15
- import * as react_jsx_runtime126 from "react/jsx-runtime";
15
+ import * as react_jsx_runtime178 from "react/jsx-runtime";
16
16
 
17
17
  //#region src/components/popover/index.d.ts
18
18
 
@@ -51,7 +51,7 @@ declare function Popover({
51
51
  children,
52
52
  classNames,
53
53
  ...rest
54
- }: PopoverProps): react_jsx_runtime126.JSX.Element;
54
+ }: PopoverProps): react_jsx_runtime178.JSX.Element;
55
55
  //#endregion
56
56
  export { Popover };
57
57
  //# sourceMappingURL=index.d.ts.map
@@ -12,13 +12,13 @@
12
12
 
13
13
  import "client-only";
14
14
  import { HeadingProps } from "react-aria-components";
15
- import * as react_jsx_runtime141 from "react/jsx-runtime";
15
+ import * as react_jsx_runtime176 from "react/jsx-runtime";
16
16
 
17
17
  //#region src/components/popover/title.d.ts
18
18
  declare function PopoverTitle({
19
19
  className,
20
20
  ...rest
21
- }: HeadingProps): react_jsx_runtime141.JSX.Element;
21
+ }: HeadingProps): react_jsx_runtime176.JSX.Element;
22
22
  //#endregion
23
23
  export { PopoverTitle };
24
24
  //# sourceMappingURL=title.d.ts.map
@@ -12,14 +12,14 @@
12
12
 
13
13
  import { PopoverTriggerProps } from "./types.js";
14
14
  import "client-only";
15
- import * as react_jsx_runtime127 from "react/jsx-runtime";
15
+ import * as react_jsx_runtime182 from "react/jsx-runtime";
16
16
 
17
17
  //#region src/components/popover/trigger.d.ts
18
18
  declare function PopoverTrigger({
19
19
  ref,
20
20
  children,
21
21
  ...rest
22
- }: PopoverTriggerProps): react_jsx_runtime127.JSX.Element;
22
+ }: PopoverTriggerProps): react_jsx_runtime182.JSX.Element;
23
23
  //#endregion
24
24
  export { PopoverTrigger };
25
25
  //# sourceMappingURL=trigger.d.ts.map
@@ -11,7 +11,7 @@
11
11
  */
12
12
 
13
13
  import "client-only";
14
- import * as react_jsx_runtime133 from "react/jsx-runtime";
14
+ import * as react_jsx_runtime181 from "react/jsx-runtime";
15
15
  import { ActionProps } from "react-querybuilder";
16
16
 
17
17
  //#region src/components/query-builder/action-element.d.ts
@@ -20,7 +20,7 @@ declare function ActionElement({
20
20
  disabledTranslation,
21
21
  title: titleProp,
22
22
  handleOnClick
23
- }: ActionProps): react_jsx_runtime133.JSX.Element;
23
+ }: ActionProps): react_jsx_runtime181.JSX.Element;
24
24
  //#endregion
25
25
  export { ActionElement };
26
26
  //# sourceMappingURL=action-element.d.ts.map
@@ -11,7 +11,7 @@
11
11
  */
12
12
 
13
13
  import "client-only";
14
- import * as react_jsx_runtime134 from "react/jsx-runtime";
14
+ import * as react_jsx_runtime183 from "react/jsx-runtime";
15
15
  import { ActionProps } from "react-querybuilder";
16
16
 
17
17
  //#region src/components/query-builder/actions.d.ts
@@ -19,17 +19,17 @@ declare function RemoveRuleAction({
19
19
  handleOnClick,
20
20
  className,
21
21
  ...rest
22
- }: ActionProps): react_jsx_runtime134.JSX.Element;
22
+ }: ActionProps): react_jsx_runtime183.JSX.Element;
23
23
  declare function LockAction({
24
24
  handleOnClick,
25
25
  className,
26
26
  ...rest
27
- }: ActionProps): react_jsx_runtime134.JSX.Element;
27
+ }: ActionProps): react_jsx_runtime183.JSX.Element;
28
28
  declare function CloneAction({
29
29
  handleOnClick,
30
30
  className,
31
31
  ...rest
32
- }: ActionProps): react_jsx_runtime134.JSX.Element;
32
+ }: ActionProps): react_jsx_runtime183.JSX.Element;
33
33
  //#endregion
34
34
  export { CloneAction, LockAction, RemoveRuleAction };
35
35
  //# sourceMappingURL=actions.d.ts.map
@@ -11,7 +11,7 @@
11
11
  */
12
12
 
13
13
  import "client-only";
14
- import * as react_jsx_runtime137 from "react/jsx-runtime";
14
+ import * as react_jsx_runtime188 from "react/jsx-runtime";
15
15
  import { CombinatorSelectorProps } from "react-querybuilder";
16
16
 
17
17
  //#region src/components/query-builder/combinator-selector.d.ts
@@ -19,7 +19,7 @@ declare function CombinatorSelector({
19
19
  options,
20
20
  value,
21
21
  handleOnChange
22
- }: CombinatorSelectorProps): react_jsx_runtime137.JSX.Element;
22
+ }: CombinatorSelectorProps): react_jsx_runtime188.JSX.Element;
23
23
  //#endregion
24
24
  export { CombinatorSelector };
25
25
  //# sourceMappingURL=combinator-selector.d.ts.map
@@ -12,7 +12,7 @@
12
12
 
13
13
  import { QueryBuilderProps } from "./types.js";
14
14
  import "client-only";
15
- import * as react_jsx_runtime114 from "react/jsx-runtime";
15
+ import * as react_jsx_runtime126 from "react/jsx-runtime";
16
16
 
17
17
  //#region src/components/query-builder/index.d.ts
18
18
 
@@ -46,7 +46,7 @@ declare function QueryBuilder({
46
46
  orientation,
47
47
  showRuleLines,
48
48
  ...rest
49
- }: QueryBuilderProps): react_jsx_runtime114.JSX.Element;
49
+ }: QueryBuilderProps): react_jsx_runtime126.JSX.Element;
50
50
  //#endregion
51
51
  export { QueryBuilder };
52
52
  //# sourceMappingURL=index.d.ts.map
@@ -11,13 +11,13 @@
11
11
  */
12
12
 
13
13
  import "client-only";
14
- import * as react_jsx_runtime115 from "react/jsx-runtime";
14
+ import * as react_jsx_runtime127 from "react/jsx-runtime";
15
15
  import { RuleGroupProps, useRuleGroup } from "react-querybuilder";
16
16
 
17
17
  //#region src/components/query-builder/rule-group.d.ts
18
- declare function RuleGroup(props: RuleGroupProps): react_jsx_runtime115.JSX.Element;
19
- declare function RuleGroupHeaderComponent(ruleGroup: RuleGroupProps & ReturnType<typeof useRuleGroup>): react_jsx_runtime115.JSX.Element;
20
- declare function RuleGroupFooterComponent(ruleGroup: RuleGroupProps & ReturnType<typeof useRuleGroup>): react_jsx_runtime115.JSX.Element;
18
+ declare function RuleGroup(props: RuleGroupProps): react_jsx_runtime127.JSX.Element;
19
+ declare function RuleGroupHeaderComponent(ruleGroup: RuleGroupProps & ReturnType<typeof useRuleGroup>): react_jsx_runtime127.JSX.Element;
20
+ declare function RuleGroupFooterComponent(ruleGroup: RuleGroupProps & ReturnType<typeof useRuleGroup>): react_jsx_runtime127.JSX.Element;
21
21
  //#endregion
22
22
  export { RuleGroup, RuleGroupFooterComponent, RuleGroupHeaderComponent };
23
23
  //# sourceMappingURL=rule-group.d.ts.map
@@ -11,11 +11,11 @@
11
11
  */
12
12
 
13
13
  import "client-only";
14
- import * as react_jsx_runtime118 from "react/jsx-runtime";
14
+ import * as react_jsx_runtime130 from "react/jsx-runtime";
15
15
  import { RuleProps } from "react-querybuilder";
16
16
 
17
17
  //#region src/components/query-builder/rule.d.ts
18
- declare function Rule(props: RuleProps): react_jsx_runtime118.JSX.Element;
18
+ declare function Rule(props: RuleProps): react_jsx_runtime130.JSX.Element;
19
19
  //#endregion
20
20
  export { Rule };
21
21
  //# sourceMappingURL=rule.d.ts.map
@@ -11,11 +11,11 @@
11
11
  */
12
12
 
13
13
  import "client-only";
14
- import * as react_jsx_runtime121 from "react/jsx-runtime";
14
+ import * as react_jsx_runtime131 from "react/jsx-runtime";
15
15
  import { ValueEditorProps } from "react-querybuilder";
16
16
 
17
17
  //#region src/components/query-builder/value-editor.d.ts
18
- declare function ValueEditor(props: ValueEditorProps): react_jsx_runtime121.JSX.Element | null;
18
+ declare function ValueEditor(props: ValueEditorProps): react_jsx_runtime131.JSX.Element | null;
19
19
  //#endregion
20
20
  export { ValueEditor };
21
21
  //# sourceMappingURL=value-editor.d.ts.map
@@ -11,11 +11,11 @@
11
11
  */
12
12
 
13
13
  import "client-only";
14
- import * as react_jsx_runtime119 from "react/jsx-runtime";
14
+ import * as react_jsx_runtime132 from "react/jsx-runtime";
15
15
  import { ValueSelectorProps } from "react-querybuilder";
16
16
 
17
17
  //#region src/components/query-builder/value-selector.d.ts
18
- declare function ValueSelector(props: ValueSelectorProps): react_jsx_runtime119.JSX.Element;
18
+ declare function ValueSelector(props: ValueSelectorProps): react_jsx_runtime132.JSX.Element;
19
19
  //#endregion
20
20
  export { ValueSelector };
21
21
  //# sourceMappingURL=value-selector.d.ts.map
@@ -12,7 +12,7 @@
12
12
 
13
13
  import { RadioGroupProps as RadioGroupProps$1 } from "./types.js";
14
14
  import "client-only";
15
- import * as react34 from "react";
15
+ import * as react36 from "react";
16
16
  import { ContextValue } from "react-aria-components";
17
17
 
18
18
  //#region src/components/radio/context.d.ts
@@ -21,7 +21,7 @@ import { ContextValue } from "react-aria-components";
21
21
  *
22
22
  * Provides context for RadioGroup component to share state with Radio components
23
23
  */
24
- declare const RadioContext: react34.Context<ContextValue<RadioGroupProps$1, HTMLDivElement>>;
24
+ declare const RadioContext: react36.Context<ContextValue<RadioGroupProps$1, HTMLDivElement>>;
25
25
  //#endregion
26
26
  export { RadioContext };
27
27
  //# sourceMappingURL=context.d.ts.map
@@ -12,7 +12,7 @@
12
12
 
13
13
  import { RadioGroupProps } from "./types.js";
14
14
  import "client-only";
15
- import * as react_jsx_runtime131 from "react/jsx-runtime";
15
+ import * as react_jsx_runtime133 from "react/jsx-runtime";
16
16
 
17
17
  //#region src/components/radio/group.d.ts
18
18
  /**
@@ -24,7 +24,7 @@ import * as react_jsx_runtime131 from "react/jsx-runtime";
24
24
  declare function RadioGroup({
25
25
  ref,
26
26
  ...props
27
- }: RadioGroupProps): react_jsx_runtime131.JSX.Element;
27
+ }: RadioGroupProps): react_jsx_runtime133.JSX.Element;
28
28
  //#endregion
29
29
  export { RadioGroup };
30
30
  //# sourceMappingURL=group.d.ts.map
@@ -12,7 +12,7 @@
12
12
 
13
13
  import { RadioProps } from "./types.js";
14
14
  import "client-only";
15
- import * as react_jsx_runtime132 from "react/jsx-runtime";
15
+ import * as react_jsx_runtime134 from "react/jsx-runtime";
16
16
 
17
17
  //#region src/components/radio/index.d.ts
18
18
 
@@ -51,7 +51,7 @@ declare function Radio({
51
51
  classNames,
52
52
  children,
53
53
  ...rest
54
- }: RadioProps): react_jsx_runtime132.JSX.Element;
54
+ }: RadioProps): react_jsx_runtime134.JSX.Element;
55
55
  //#endregion
56
56
  export { Radio };
57
57
  //# sourceMappingURL=index.d.ts.map
@@ -13,9 +13,9 @@
13
13
  import { ProviderProps } from "../../lib/types.js";
14
14
  import { SearchFieldProps as SearchFieldProps$1 } from "./types.js";
15
15
  import "client-only";
16
- import * as react32 from "react";
16
+ import * as react37 from "react";
17
17
  import { ContextValue } from "react-aria-components";
18
- import * as react_jsx_runtime122 from "react/jsx-runtime";
18
+ import * as react_jsx_runtime135 from "react/jsx-runtime";
19
19
 
20
20
  //#region src/components/search-field/context.d.ts
21
21
  /**
@@ -23,7 +23,7 @@ import * as react_jsx_runtime122 from "react/jsx-runtime";
23
23
  *
24
24
  * Provides context for SearchField component to share props
25
25
  */
26
- declare const SearchFieldContext: react32.Context<ContextValue<SearchFieldProps$1, HTMLDivElement>>;
26
+ declare const SearchFieldContext: react37.Context<ContextValue<SearchFieldProps$1, HTMLDivElement>>;
27
27
  /**
28
28
  * Provider for SearchField component
29
29
  *
@@ -32,7 +32,7 @@ declare const SearchFieldContext: react32.Context<ContextValue<SearchFieldProps$
32
32
  declare function SearchFieldProvider({
33
33
  children,
34
34
  ...props
35
- }: ProviderProps<SearchFieldProps$1>): react_jsx_runtime122.JSX.Element;
35
+ }: ProviderProps<SearchFieldProps$1>): react_jsx_runtime135.JSX.Element;
36
36
  //#endregion
37
37
  export { SearchFieldContext, SearchFieldProvider };
38
38
  //# sourceMappingURL=context.d.ts.map
@@ -12,7 +12,7 @@
12
12
 
13
13
  import { SearchFieldProps } from "./types.js";
14
14
  import "client-only";
15
- import * as react_jsx_runtime123 from "react/jsx-runtime";
15
+ import * as react_jsx_runtime136 from "react/jsx-runtime";
16
16
 
17
17
  //#region src/components/search-field/index.d.ts
18
18
 
@@ -50,7 +50,7 @@ import * as react_jsx_runtime123 from "react/jsx-runtime";
50
50
  declare function SearchField({
51
51
  ref,
52
52
  ...props
53
- }: SearchFieldProps): react_jsx_runtime123.JSX.Element;
53
+ }: SearchFieldProps): react_jsx_runtime136.JSX.Element;
54
54
  //#endregion
55
55
  export { SearchField };
56
56
  //# sourceMappingURL=index.d.ts.map
@@ -13,16 +13,16 @@
13
13
  import { ProviderProps } from "../../lib/types.js";
14
14
  import { SelectFieldProps } from "./types.js";
15
15
  import "client-only";
16
- import * as react33 from "react";
16
+ import * as react38 from "react";
17
17
  import { ContextValue } from "react-aria-components";
18
- import * as react_jsx_runtime124 from "react/jsx-runtime";
18
+ import * as react_jsx_runtime137 from "react/jsx-runtime";
19
19
 
20
20
  //#region src/components/select-field/context.d.ts
21
- declare const SelectFieldContext: react33.Context<ContextValue<SelectFieldProps, HTMLDivElement>>;
21
+ declare const SelectFieldContext: react38.Context<ContextValue<SelectFieldProps, HTMLDivElement>>;
22
22
  declare function SelectFieldProvider({
23
23
  children,
24
24
  ...props
25
- }: ProviderProps<SelectFieldProps>): react_jsx_runtime124.JSX.Element;
25
+ }: ProviderProps<SelectFieldProps>): react_jsx_runtime137.JSX.Element;
26
26
  //#endregion
27
27
  export { SelectFieldContext, SelectFieldProvider };
28
28
  //# sourceMappingURL=context.d.ts.map
@@ -12,7 +12,7 @@
12
12
 
13
13
  import { SelectFieldProps } from "./types.js";
14
14
  import "client-only";
15
- import * as react_jsx_runtime125 from "react/jsx-runtime";
15
+ import * as react_jsx_runtime138 from "react/jsx-runtime";
16
16
 
17
17
  //#region src/components/select-field/index.d.ts
18
18
 
@@ -63,7 +63,7 @@ import * as react_jsx_runtime125 from "react/jsx-runtime";
63
63
  declare function SelectField({
64
64
  ref,
65
65
  ...props
66
- }: SelectFieldProps): react_jsx_runtime125.JSX.Element;
66
+ }: SelectFieldProps): react_jsx_runtime138.JSX.Element;
67
67
  //#endregion
68
68
  export { SelectField };
69
69
  //# sourceMappingURL=index.d.ts.map
@@ -20,7 +20,7 @@ import { Options } from "../options/index.js";
20
20
  import { SelectFieldContext } from "./context.js";
21
21
  import "client-only";
22
22
  import { clsx } from "@accelint/design-foundation/lib/utils";
23
- import { FieldError, ListLayout, Popover, Select, SelectValue, Text, Virtualizer, composeRenderProps, useContextProps } from "react-aria-components";
23
+ import { Button, FieldError, ListLayout, Popover, Select, SelectValue, Text, Virtualizer, composeRenderProps, useContextProps } from "react-aria-components";
24
24
  import { Fragment, jsx, jsxs } from "react/jsx-runtime";
25
25
  import ChevronDown from "@accelint/icons/chevron-down";
26
26
  import styles from "./styles.module.css";
@@ -72,17 +72,19 @@ import styles from "./styles.module.css";
72
72
  */
73
73
  function SelectField({ ref, ...props }) {
74
74
  [props, ref] = useContextProps(props, ref ?? null, SelectFieldContext);
75
- const { size = "medium", children, classNames, description: descriptionProp, errorMessage: errorMessageProp, label: labelProp, layoutOptions, isInvalid: isInvalidProp, ...rest } = props;
75
+ const { size = "medium", children, classNames, description: descriptionProp, errorMessage: errorMessageProp, label: labelProp, layoutOptions, isInvalid: isInvalidProp, isReadOnly, ...rest } = props;
76
76
  const errorMessage = errorMessageProp?.trim() ?? null;
77
77
  const isInvalid = isInvalidProp ?? !!errorMessage;
78
78
  const isSmall = size === "small";
79
79
  const showLabel = !isSmall && !!labelProp;
80
+ const shouldShowDescription = !isReadOnly && !!descriptionProp && !(isSmall || isInvalid);
80
81
  return /* @__PURE__ */ jsx(Select, {
81
82
  ...rest,
82
83
  ref,
83
84
  className: composeRenderProps(classNames?.field, (className) => clsx("group/select-field", styles.field, className)),
84
85
  isInvalid,
85
86
  "data-size": size,
87
+ "data-readonly": isReadOnly,
86
88
  children: composeRenderProps(children, (children$1, { isRequired, isDisabled, isInvalid: isInvalid$1 }) => /* @__PURE__ */ jsxs(Fragment, { children: [
87
89
  showLabel && /* @__PURE__ */ jsx(Label$1, {
88
90
  className: clsx(styles.label, classNames?.label),
@@ -90,13 +92,17 @@ function SelectField({ ref, ...props }) {
90
92
  isDisabled,
91
93
  children: labelProp
92
94
  }),
93
- /* @__PURE__ */ jsxs(Button$1, {
95
+ isReadOnly ? /* @__PURE__ */ jsx(Button, {
96
+ isDisabled: true,
97
+ className: styles.readonly,
98
+ children: /* @__PURE__ */ jsx(SelectValue, { className: clsx(styles.value, classNames?.value) })
99
+ }) : /* @__PURE__ */ jsxs(Button$1, {
94
100
  className: composeRenderProps(classNames?.trigger, (className) => clsx(styles.trigger, className)),
95
101
  size,
96
102
  variant: "outline",
97
103
  children: [/* @__PURE__ */ jsx(SelectValue, { className: clsx(styles.value, classNames?.value) }), /* @__PURE__ */ jsx(Icon, { children: /* @__PURE__ */ jsx(ChevronDown, { className: "transform group-open/select-field:rotate-180" }) })]
98
104
  }),
99
- !!descriptionProp && !(isSmall || isInvalid$1) && /* @__PURE__ */ jsx(Text, {
105
+ shouldShowDescription && /* @__PURE__ */ jsx(Text, {
100
106
  slot: "description",
101
107
  className: clsx(styles.description, classNames?.description),
102
108
  children: descriptionProp
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":["AriaSelect","Label","Button","isInvalid","children"],"sources":["../../../src/components/select-field/index.tsx"],"sourcesContent":["/*\n * Copyright 2025 Hypergiant Galactic Systems Inc. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n'use client';\n\nimport 'client-only';\nimport { clsx } from '@accelint/design-foundation/lib/utils';\nimport ChevronDown from '@accelint/icons/chevron-down';\nimport {\n Select as AriaSelect,\n composeRenderProps,\n FieldError,\n ListLayout,\n Popover,\n SelectValue,\n Text,\n useContextProps,\n Virtualizer,\n} from 'react-aria-components';\nimport { Button } from '../button';\nimport { Icon } from '../icon';\nimport { Label } from '../label';\nimport { Options } from '../options';\nimport { SelectFieldContext } from './context';\nimport styles from './styles.module.css';\nimport type { SelectFieldProps } from './types';\n\n/**\n * SelectField - A dropdown selection component with comprehensive form field features\n *\n * Provides an accessible and feature-rich select dropdown with built-in validation,\n * multiple sizing options, virtualization support for large datasets, and seamless\n * integration with form libraries. Includes label, description, and error messaging\n * capabilities with customizable styling through className props.\n *\n * @example\n * // Basic select field\n * <SelectField label='Country' placeholder='Select a country'>\n * <OptionsItem textValue='us'>United States</OptionsItem>\n * <OptionsItem textValue='ca'>Canada</OptionsItem>\n * <OptionsItem textValue='uk'>United Kingdom</OptionsItem>\n * </SelectField>\n *\n * @example\n * // Select field with validation and description\n * <SelectField\n * label=\"Priority Level\"\n * description=\"Choose the urgency level for this task\"\n * errorMessage={errors.priority}\n * isRequired\n * isInvalid={!!errors.priority}\n * >\n * <OptionsItem textValue=\"low\">Low</OptionsItem>\n * <OptionsItem textValue=\"medium\">Medium</OptionsItem>\n * <OptionsItem textValue=\"high\">High</OptionsItem>\n * </SelectField>\n *\n * @example\n * // Small size select field with custom styling\n * <SelectField\n * size=\"small\"\n * placeholder=\"Quick select\"\n * classNames={{\n * field: \"custom-field-styles\",\n * trigger: \"custom-trigger-styles\"\n * }}\n * >\n * <OptionsItem textValue=\"option1\">Option 1</OptionsItem>\n * <OptionsItem textValue=\"option2\">Option 2</OptionsItem>\n * </SelectField>\n */\nexport function SelectField({ ref, ...props }: SelectFieldProps) {\n [props, ref] = useContextProps(props, ref ?? null, SelectFieldContext);\n\n const {\n size = 'medium',\n children,\n classNames,\n description: descriptionProp,\n errorMessage: errorMessageProp,\n label: labelProp,\n layoutOptions,\n isInvalid: isInvalidProp,\n ...rest\n } = props;\n\n const errorMessage = errorMessageProp?.trim() ?? null;\n const hasError = !!errorMessage;\n const isInvalid = isInvalidProp ?? hasError;\n const isSmall = size === 'small';\n const showLabel = !isSmall && !!labelProp;\n\n return (\n <AriaSelect\n {...rest}\n ref={ref}\n className={composeRenderProps(classNames?.field, (className) =>\n clsx('group/select-field', styles.field, className),\n )}\n isInvalid={isInvalid}\n data-size={size}\n >\n {composeRenderProps(\n children,\n (children, { isRequired, isDisabled, isInvalid }) => (\n <>\n {showLabel && (\n <Label\n className={clsx(styles.label, classNames?.label)}\n isRequired={isRequired}\n isDisabled={isDisabled}\n >\n {labelProp}\n </Label>\n )}\n <Button\n className={composeRenderProps(classNames?.trigger, (className) =>\n clsx(styles.trigger, className),\n )}\n size={size}\n variant='outline'\n >\n <SelectValue className={clsx(styles.value, classNames?.value)} />\n <Icon>\n <ChevronDown className='transform group-open/select-field:rotate-180' />\n </Icon>\n </Button>\n {!!descriptionProp && !(isSmall || isInvalid) && (\n <Text\n slot='description'\n className={clsx(styles.description, classNames?.description)}\n >\n {descriptionProp}\n </Text>\n )}\n <FieldError\n className={composeRenderProps(classNames?.error, (className) =>\n clsx(styles.error, className),\n )}\n >\n {errorMessage}\n </FieldError>\n <Popover\n className={composeRenderProps(classNames?.popover, (className) =>\n clsx(styles.popover, className),\n )}\n >\n <Virtualizer layout={ListLayout} layoutOptions={layoutOptions}>\n <Options>{children}</Options>\n </Virtualizer>\n </Popover>\n </>\n ),\n )}\n </AriaSelect>\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA+EA,SAAgB,YAAY,EAAE,KAAK,GAAG,SAA2B;AAC/D,EAAC,OAAO,OAAO,gBAAgB,OAAO,OAAO,MAAM,mBAAmB;CAEtE,MAAM,EACJ,OAAO,UACP,UACA,YACA,aAAa,iBACb,cAAc,kBACd,OAAO,WACP,eACA,WAAW,eACX,GAAG,SACD;CAEJ,MAAM,eAAe,kBAAkB,MAAM,IAAI;CAEjD,MAAM,YAAY,iBADD,CAAC,CAAC;CAEnB,MAAM,UAAU,SAAS;CACzB,MAAM,YAAY,CAAC,WAAW,CAAC,CAAC;AAEhC,QACE,oBAACA;EACC,GAAI;EACC;EACL,WAAW,mBAAmB,YAAY,QAAQ,cAChD,KAAK,sBAAsB,OAAO,OAAO,UAAU,CACpD;EACU;EACX,aAAW;YAEV,mBACC,WACC,YAAU,EAAE,YAAY,YAAY,6BACnC;GACG,aACC,oBAACC;IACC,WAAW,KAAK,OAAO,OAAO,YAAY,MAAM;IACpC;IACA;cAEX;KACK;GAEV,qBAACC;IACC,WAAW,mBAAmB,YAAY,UAAU,cAClD,KAAK,OAAO,SAAS,UAAU,CAChC;IACK;IACN,SAAQ;eAER,oBAAC,eAAY,WAAW,KAAK,OAAO,OAAO,YAAY,MAAM,GAAI,EACjE,oBAAC,kBACC,oBAAC,eAAY,WAAU,iDAAiD,GACnE;KACA;GACR,CAAC,CAAC,mBAAmB,EAAE,WAAWC,gBACjC,oBAAC;IACC,MAAK;IACL,WAAW,KAAK,OAAO,aAAa,YAAY,YAAY;cAE3D;KACI;GAET,oBAAC;IACC,WAAW,mBAAmB,YAAY,QAAQ,cAChD,KAAK,OAAO,OAAO,UAAU,CAC9B;cAEA;KACU;GACb,oBAAC;IACC,WAAW,mBAAmB,YAAY,UAAU,cAClD,KAAK,OAAO,SAAS,UAAU,CAChC;cAED,oBAAC;KAAY,QAAQ;KAA2B;eAC9C,oBAAC,qBAASC,aAAmB;MACjB;KACN;MACT,CAEN;GACU"}
1
+ {"version":3,"file":"index.js","names":["AriaSelect","Label","AriaButton","Button","children"],"sources":["../../../src/components/select-field/index.tsx"],"sourcesContent":["/*\n * Copyright 2025 Hypergiant Galactic Systems Inc. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n'use client';\n\nimport 'client-only';\nimport { clsx } from '@accelint/design-foundation/lib/utils';\nimport ChevronDown from '@accelint/icons/chevron-down';\nimport {\n Button as AriaButton,\n Select as AriaSelect,\n composeRenderProps,\n FieldError,\n ListLayout,\n Popover,\n SelectValue,\n Text,\n useContextProps,\n Virtualizer,\n} from 'react-aria-components';\nimport { Button } from '../button';\nimport { Icon } from '../icon';\nimport { Label } from '../label';\nimport { Options } from '../options';\nimport { SelectFieldContext } from './context';\nimport styles from './styles.module.css';\nimport type { SelectFieldProps } from './types';\n\n/**\n * SelectField - A dropdown selection component with comprehensive form field features\n *\n * Provides an accessible and feature-rich select dropdown with built-in validation,\n * multiple sizing options, virtualization support for large datasets, and seamless\n * integration with form libraries. Includes label, description, and error messaging\n * capabilities with customizable styling through className props.\n *\n * @example\n * // Basic select field\n * <SelectField label='Country' placeholder='Select a country'>\n * <OptionsItem textValue='us'>United States</OptionsItem>\n * <OptionsItem textValue='ca'>Canada</OptionsItem>\n * <OptionsItem textValue='uk'>United Kingdom</OptionsItem>\n * </SelectField>\n *\n * @example\n * // Select field with validation and description\n * <SelectField\n * label=\"Priority Level\"\n * description=\"Choose the urgency level for this task\"\n * errorMessage={errors.priority}\n * isRequired\n * isInvalid={!!errors.priority}\n * >\n * <OptionsItem textValue=\"low\">Low</OptionsItem>\n * <OptionsItem textValue=\"medium\">Medium</OptionsItem>\n * <OptionsItem textValue=\"high\">High</OptionsItem>\n * </SelectField>\n *\n * @example\n * // Small size select field with custom styling\n * <SelectField\n * size=\"small\"\n * placeholder=\"Quick select\"\n * classNames={{\n * field: \"custom-field-styles\",\n * trigger: \"custom-trigger-styles\"\n * }}\n * >\n * <OptionsItem textValue=\"option1\">Option 1</OptionsItem>\n * <OptionsItem textValue=\"option2\">Option 2</OptionsItem>\n * </SelectField>\n */\nexport function SelectField({ ref, ...props }: SelectFieldProps) {\n [props, ref] = useContextProps(props, ref ?? null, SelectFieldContext);\n\n const {\n size = 'medium',\n children,\n classNames,\n description: descriptionProp,\n errorMessage: errorMessageProp,\n label: labelProp,\n layoutOptions,\n isInvalid: isInvalidProp,\n isReadOnly,\n ...rest\n } = props;\n\n const errorMessage = errorMessageProp?.trim() ?? null;\n const hasError = !!errorMessage;\n const isInvalid = isInvalidProp ?? hasError;\n const isSmall = size === 'small';\n const showLabel = !isSmall && !!labelProp;\n const shouldShowDescription =\n !isReadOnly && !!descriptionProp && !(isSmall || isInvalid);\n\n return (\n <AriaSelect\n {...rest}\n ref={ref}\n className={composeRenderProps(classNames?.field, (className) =>\n clsx('group/select-field', styles.field, className),\n )}\n isInvalid={isInvalid}\n data-size={size}\n data-readonly={isReadOnly}\n >\n {composeRenderProps(\n children,\n (children, { isRequired, isDisabled, isInvalid }) => (\n <>\n {showLabel && (\n <Label\n className={clsx(styles.label, classNames?.label)}\n isRequired={isRequired}\n isDisabled={isDisabled}\n >\n {labelProp}\n </Label>\n )}\n {isReadOnly ? (\n // Using the native RAC disabled button component because we don't want the DTK button styles\n <AriaButton isDisabled className={styles.readonly}>\n <SelectValue\n className={clsx(styles.value, classNames?.value)}\n />\n </AriaButton>\n ) : (\n <Button\n className={composeRenderProps(\n classNames?.trigger,\n (className) => clsx(styles.trigger, className),\n )}\n size={size}\n variant='outline'\n >\n <SelectValue\n className={clsx(styles.value, classNames?.value)}\n />\n <Icon>\n <ChevronDown className='transform group-open/select-field:rotate-180' />\n </Icon>\n </Button>\n )}\n {shouldShowDescription && (\n <Text\n slot='description'\n className={clsx(styles.description, classNames?.description)}\n >\n {descriptionProp}\n </Text>\n )}\n <FieldError\n className={composeRenderProps(classNames?.error, (className) =>\n clsx(styles.error, className),\n )}\n >\n {errorMessage}\n </FieldError>\n <Popover\n className={composeRenderProps(classNames?.popover, (className) =>\n clsx(styles.popover, className),\n )}\n >\n <Virtualizer layout={ListLayout} layoutOptions={layoutOptions}>\n <Options>{children}</Options>\n </Virtualizer>\n </Popover>\n </>\n ),\n )}\n </AriaSelect>\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAgFA,SAAgB,YAAY,EAAE,KAAK,GAAG,SAA2B;AAC/D,EAAC,OAAO,OAAO,gBAAgB,OAAO,OAAO,MAAM,mBAAmB;CAEtE,MAAM,EACJ,OAAO,UACP,UACA,YACA,aAAa,iBACb,cAAc,kBACd,OAAO,WACP,eACA,WAAW,eACX,YACA,GAAG,SACD;CAEJ,MAAM,eAAe,kBAAkB,MAAM,IAAI;CAEjD,MAAM,YAAY,iBADD,CAAC,CAAC;CAEnB,MAAM,UAAU,SAAS;CACzB,MAAM,YAAY,CAAC,WAAW,CAAC,CAAC;CAChC,MAAM,wBACJ,CAAC,cAAc,CAAC,CAAC,mBAAmB,EAAE,WAAW;AAEnD,QACE,oBAACA;EACC,GAAI;EACC;EACL,WAAW,mBAAmB,YAAY,QAAQ,cAChD,KAAK,sBAAsB,OAAO,OAAO,UAAU,CACpD;EACU;EACX,aAAW;EACX,iBAAe;YAEd,mBACC,WACC,YAAU,EAAE,YAAY,YAAY,6BACnC;GACG,aACC,oBAACC;IACC,WAAW,KAAK,OAAO,OAAO,YAAY,MAAM;IACpC;IACA;cAEX;KACK;GAET,aAEC,oBAACC;IAAW;IAAW,WAAW,OAAO;cACvC,oBAAC,eACC,WAAW,KAAK,OAAO,OAAO,YAAY,MAAM,GAChD;KACS,GAEb,qBAACC;IACC,WAAW,mBACT,YAAY,UACX,cAAc,KAAK,OAAO,SAAS,UAAU,CAC/C;IACK;IACN,SAAQ;eAER,oBAAC,eACC,WAAW,KAAK,OAAO,OAAO,YAAY,MAAM,GAChD,EACF,oBAAC,kBACC,oBAAC,eAAY,WAAU,iDAAiD,GACnE;KACA;GAEV,yBACC,oBAAC;IACC,MAAK;IACL,WAAW,KAAK,OAAO,aAAa,YAAY,YAAY;cAE3D;KACI;GAET,oBAAC;IACC,WAAW,mBAAmB,YAAY,QAAQ,cAChD,KAAK,OAAO,OAAO,UAAU,CAC9B;cAEA;KACU;GACb,oBAAC;IACC,WAAW,mBAAmB,YAAY,UAAU,cAClD,KAAK,OAAO,SAAS,UAAU,CAChC;cAED,oBAAC;KAAY,QAAQ;KAA2B;eAC9C,oBAAC,qBAASC,aAAmB;MACjB;KACN;MACT,CAEN;GACU"}
@@ -36,6 +36,10 @@
36
36
  .error {
37
37
  @apply fg-serious-bold text-body-xs;
38
38
  }
39
+
40
+ .readonly {
41
+ @apply py-xs block;
42
+ }
39
43
  }
40
44
 
41
45
  @layer components.l2 {
@@ -29,6 +29,7 @@ type SelectFieldProps = Omit<SelectProps, 'className'> & Pick<VirtualizerProps<L
29
29
  label?: string;
30
30
  description?: string;
31
31
  errorMessage?: string;
32
+ isReadOnly?: boolean;
32
33
  size?: 'medium' | 'small';
33
34
  };
34
35
  //#endregion
@@ -12,7 +12,7 @@
12
12
 
13
13
  import { SidenavAvatarProps } from "./types.js";
14
14
  import "client-only";
15
- import * as react_jsx_runtime128 from "react/jsx-runtime";
15
+ import * as react_jsx_runtime139 from "react/jsx-runtime";
16
16
 
17
17
  //#region src/components/sidenav/avatar.d.ts
18
18
  /**
@@ -24,7 +24,7 @@ declare function SidenavAvatar({
24
24
  children,
25
25
  className,
26
26
  ...rest
27
- }: SidenavAvatarProps): react_jsx_runtime128.JSX.Element;
27
+ }: SidenavAvatarProps): react_jsx_runtime139.JSX.Element;
28
28
  //#endregion
29
29
  export { SidenavAvatar };
30
30
  //# sourceMappingURL=avatar.d.ts.map