gd-design-library 1.8.0 → 1.8.2

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 (1483) hide show
  1. package/README.md +260 -10
  2. package/_virtual/_rolldown/runtime.cjs +1 -0
  3. package/ai/README.md +29 -3
  4. package/ai/a2ui/component-map.cjs +1 -0
  5. package/ai/a2ui/component-map.d.ts +1 -0
  6. package/ai/a2ui/component-map.js +63 -72
  7. package/ai/a2ui/image-policy.cjs +1 -0
  8. package/ai/a2ui/image-policy.js +6 -0
  9. package/ai/a2ui/index.d.ts +1 -1
  10. package/ai/a2ui/spec-schema.cjs +1 -0
  11. package/ai/a2ui/spec-schema.d.ts +536 -93
  12. package/ai/a2ui/spec-schema.js +1811 -0
  13. package/ai/a2ui/system-prompt.cjs +15 -0
  14. package/ai/a2ui/system-prompt.d.ts +10 -1
  15. package/ai/a2ui/system-prompt.js +683 -0
  16. package/ai/a2ui/ui-specification-schema.json +587 -1026
  17. package/ai/discovery.cjs +1 -0
  18. package/ai/discovery.js +62 -0
  19. package/ai/index.cjs +1 -0
  20. package/ai/index.d.ts +1 -0
  21. package/ai/index.js +10 -0
  22. package/ai/prompts.cjs +13 -0
  23. package/ai/prompts.js +117 -0
  24. package/ai/schemas/components/Accordion.cjs +233 -0
  25. package/ai/schemas/components/Accordion.js +639 -731
  26. package/ai/schemas/components/AttachmentFile.cjs +1 -0
  27. package/ai/schemas/components/AttachmentFile.d.ts +45 -0
  28. package/ai/schemas/components/AttachmentFile.js +89 -0
  29. package/ai/schemas/components/Avatar.cjs +1 -0
  30. package/ai/schemas/components/Avatar.js +153 -111
  31. package/ai/schemas/components/AvatarUser.cjs +1 -0
  32. package/ai/schemas/components/AvatarUser.js +118 -84
  33. package/ai/schemas/components/Badge.cjs +1 -0
  34. package/ai/schemas/components/Badge.js +101 -60
  35. package/ai/schemas/components/Box.cjs +1 -0
  36. package/ai/schemas/components/Box.js +132 -96
  37. package/ai/schemas/components/Breadcrumbs.cjs +1 -0
  38. package/ai/schemas/components/Breadcrumbs.js +153 -90
  39. package/ai/schemas/components/Button.cjs +1 -0
  40. package/ai/schemas/components/Button.js +199 -127
  41. package/ai/schemas/components/Card.cjs +1 -0
  42. package/ai/schemas/components/Card.js +545 -350
  43. package/ai/schemas/components/Carousel.cjs +1 -0
  44. package/ai/schemas/components/Carousel.js +136 -71
  45. package/ai/schemas/components/Chart.cjs +86 -0
  46. package/ai/schemas/components/Chart.js +281 -260
  47. package/ai/schemas/components/ChatBubble.cjs +1 -0
  48. package/ai/schemas/components/ChatBubble.js +114 -84
  49. package/ai/schemas/components/ChatContainer.cjs +1 -0
  50. package/ai/schemas/components/ChatContainer.js +94 -60
  51. package/ai/schemas/components/Checkbox.cjs +1 -0
  52. package/ai/schemas/components/Checkbox.js +83 -64
  53. package/ai/schemas/components/Column.cjs +1 -0
  54. package/ai/schemas/components/Column.js +107 -66
  55. package/ai/schemas/components/ContentCarousel.cjs +1 -0
  56. package/ai/schemas/components/ContentCarousel.js +232 -105
  57. package/ai/schemas/components/Counter.cjs +1 -0
  58. package/ai/schemas/components/Counter.js +96 -48
  59. package/ai/schemas/components/DragAndDrop.cjs +1 -0
  60. package/ai/schemas/components/DragAndDrop.js +141 -107
  61. package/ai/schemas/components/DragAndDropFiles.cjs +1 -0
  62. package/ai/schemas/components/DragAndDropFiles.js +103 -40
  63. package/ai/schemas/components/Dropdown.cjs +1 -0
  64. package/ai/schemas/components/Dropdown.js +40 -32
  65. package/ai/schemas/components/DropdownItem.cjs +1 -0
  66. package/ai/schemas/components/DropdownItem.js +45 -36
  67. package/ai/schemas/components/FlexContainer.cjs +1 -0
  68. package/ai/schemas/components/FlexContainer.js +74 -51
  69. package/ai/schemas/components/Form.cjs +1 -0
  70. package/ai/schemas/components/Form.js +44 -37
  71. package/ai/schemas/components/Header.cjs +1 -0
  72. package/ai/schemas/components/Header.js +85 -64
  73. package/ai/schemas/components/Icon.cjs +1 -0
  74. package/ai/schemas/components/Icon.d.ts +1 -0
  75. package/ai/schemas/components/Icon.js +183 -137
  76. package/ai/schemas/components/Image.cjs +1 -0
  77. package/ai/schemas/components/Image.js +94 -66
  78. package/ai/schemas/components/ImagePreview.cjs +1 -0
  79. package/ai/schemas/components/ImagePreview.js +74 -55
  80. package/ai/schemas/components/InlineNotification.cjs +1 -0
  81. package/ai/schemas/components/InlineNotification.js +62 -46
  82. package/ai/schemas/components/Input.cjs +1 -0
  83. package/ai/schemas/components/Input.js +138 -90
  84. package/ai/schemas/components/InputArea.cjs +1 -0
  85. package/ai/schemas/components/InputArea.d.ts +21 -0
  86. package/ai/schemas/components/InputArea.js +140 -70
  87. package/ai/schemas/components/InputFile.cjs +112 -0
  88. package/ai/schemas/components/InputFile.js +107 -183
  89. package/ai/schemas/components/Label.cjs +1 -0
  90. package/ai/schemas/components/Label.js +56 -41
  91. package/ai/schemas/components/Link.cjs +1 -0
  92. package/ai/schemas/components/Link.js +113 -73
  93. package/ai/schemas/components/List.cjs +1 -0
  94. package/ai/schemas/components/List.js +62 -46
  95. package/ai/schemas/components/Loader.cjs +1 -0
  96. package/ai/schemas/components/Loader.js +102 -59
  97. package/ai/schemas/components/Menu.cjs +1 -0
  98. package/ai/schemas/components/Menu.js +143 -89
  99. package/ai/schemas/components/Modal.cjs +1 -0
  100. package/ai/schemas/components/Modal.js +134 -63
  101. package/ai/schemas/components/Portal.cjs +1 -0
  102. package/ai/schemas/components/Portal.js +75 -59
  103. package/ai/schemas/components/Price.cjs +4 -0
  104. package/ai/schemas/components/Price.js +117 -53
  105. package/ai/schemas/components/ProgressBar.cjs +1 -0
  106. package/ai/schemas/components/ProgressBar.js +124 -56
  107. package/ai/schemas/components/RadioGroup.cjs +1 -0
  108. package/ai/schemas/components/RadioGroup.js +183 -100
  109. package/ai/schemas/components/Rating.cjs +1 -0
  110. package/ai/schemas/components/Rating.js +129 -57
  111. package/ai/schemas/components/Row.cjs +1 -0
  112. package/ai/schemas/components/Row.js +110 -66
  113. package/ai/schemas/components/Scroll.cjs +1 -0
  114. package/ai/schemas/components/Scroll.js +70 -50
  115. package/ai/schemas/components/Search.cjs +1 -0
  116. package/ai/schemas/components/Search.js +114 -52
  117. package/ai/schemas/components/SearchModal.cjs +1 -0
  118. package/ai/schemas/components/SearchModal.js +96 -76
  119. package/ai/schemas/components/Select.cjs +1 -0
  120. package/ai/schemas/components/Select.js +112 -82
  121. package/ai/schemas/components/Separator.cjs +1 -0
  122. package/ai/schemas/components/Separator.js +113 -72
  123. package/ai/schemas/components/Sidebar.cjs +1 -0
  124. package/ai/schemas/components/Sidebar.js +77 -57
  125. package/ai/schemas/components/Skeleton.cjs +1 -0
  126. package/ai/schemas/components/Skeleton.js +80 -57
  127. package/ai/schemas/components/Slider.cjs +1 -0
  128. package/ai/schemas/components/Slider.js +70 -52
  129. package/ai/schemas/components/SliderDots.cjs +1 -0
  130. package/ai/schemas/components/SliderDots.js +52 -42
  131. package/ai/schemas/components/Snackbar.cjs +1 -0
  132. package/ai/schemas/components/Snackbar.js +126 -67
  133. package/ai/schemas/components/SnackbarManager.cjs +1 -0
  134. package/ai/schemas/components/SnackbarManager.js +29 -23
  135. package/ai/schemas/components/Stepper.cjs +1 -0
  136. package/ai/schemas/components/Stepper.js +111 -45
  137. package/ai/schemas/components/Switch.cjs +1 -0
  138. package/ai/schemas/components/Switch.js +79 -58
  139. package/ai/schemas/components/Table.cjs +240 -0
  140. package/ai/schemas/components/Table.js +194 -345
  141. package/ai/schemas/components/Tabs.cjs +1 -0
  142. package/ai/schemas/components/Tabs.js +117 -50
  143. package/ai/schemas/components/Textarea.cjs +1 -0
  144. package/ai/schemas/components/Textarea.js +194 -98
  145. package/ai/schemas/components/Toggle.cjs +1 -0
  146. package/ai/schemas/components/Toggle.js +61 -45
  147. package/ai/schemas/components/Tooltip.cjs +1 -0
  148. package/ai/schemas/components/Tooltip.js +138 -64
  149. package/ai/schemas/components/Truncate.cjs +1 -0
  150. package/ai/schemas/components/Truncate.js +53 -37
  151. package/ai/schemas/components/Typography.cjs +48 -0
  152. package/ai/schemas/components/Typography.js +132 -108
  153. package/ai/schemas/components/Wrapper.cjs +1 -0
  154. package/ai/schemas/components/Wrapper.js +67 -46
  155. package/ai/schemas/components.cjs +1 -0
  156. package/ai/schemas/components.js +273 -67
  157. package/ai/schemas/hooks/useTheme.cjs +1 -0
  158. package/ai/schemas/hooks/useTheme.js +59 -45
  159. package/ai/schemas/index.cjs +1 -0
  160. package/ai/schemas/index.js +86 -0
  161. package/ai/testing_prompts/atomic_prompts.md +13 -15
  162. package/ai/testing_prompts/layouts_template_prompts.md +78 -0
  163. package/ai/testing_prompts/molecular_prompts.md +11 -10
  164. package/ai/testing_prompts/organisms_prompts.md +139 -0
  165. package/ai/validation.cjs +1 -0
  166. package/ai/validation.js +100 -0
  167. package/assets/icons/account_circle.cjs +1 -0
  168. package/assets/icons/account_circle.js +14 -9
  169. package/assets/icons/arrow-down.cjs +1 -0
  170. package/assets/icons/arrow-down.js +14 -9
  171. package/assets/icons/arrow-forward.cjs +1 -0
  172. package/assets/icons/arrow-forward.js +14 -9
  173. package/assets/icons/attachment.cjs +1 -0
  174. package/assets/icons/attachment.js +14 -9
  175. package/assets/icons/chat-bubble.cjs +1 -0
  176. package/assets/icons/chat-bubble.js +14 -9
  177. package/assets/icons/chat.cjs +1 -0
  178. package/assets/icons/chat.js +14 -9
  179. package/assets/icons/check.cjs +1 -0
  180. package/assets/icons/check.js +14 -9
  181. package/assets/icons/chevron-left.cjs +1 -0
  182. package/assets/icons/chevron-left.js +17 -9
  183. package/assets/icons/chevron-right.cjs +1 -0
  184. package/assets/icons/chevron-right.js +14 -9
  185. package/assets/icons/content-copy.cjs +1 -0
  186. package/assets/icons/content-copy.js +14 -9
  187. package/assets/icons/cross.cjs +1 -0
  188. package/assets/icons/cross.js +14 -9
  189. package/assets/icons/delete_outlined.cjs +1 -0
  190. package/assets/icons/delete_outlined.js +13 -8
  191. package/assets/icons/dot.cjs +1 -0
  192. package/assets/icons/dot.js +14 -9
  193. package/assets/icons/edit.cjs +1 -0
  194. package/assets/icons/edit.js +14 -9
  195. package/assets/icons/error_outline.cjs +1 -0
  196. package/assets/icons/error_outline.js +14 -9
  197. package/assets/icons/eye.cjs +1 -0
  198. package/assets/icons/eye.js +14 -9
  199. package/assets/icons/favorite.cjs +1 -0
  200. package/assets/icons/favorite.js +14 -9
  201. package/assets/icons/favorite_outlined.cjs +1 -0
  202. package/assets/icons/favorite_outlined.js +14 -9
  203. package/assets/icons/file-copy.cjs +1 -0
  204. package/assets/icons/file-copy.js +15 -9
  205. package/assets/icons/filter.cjs +1 -0
  206. package/assets/icons/filter.js +14 -9
  207. package/assets/icons/folder.cjs +1 -0
  208. package/assets/icons/folder.js +14 -9
  209. package/assets/icons/folderOpen.cjs +1 -0
  210. package/assets/icons/folderOpen.js +14 -9
  211. package/assets/icons/fullscreen-exit.cjs +1 -0
  212. package/assets/icons/fullscreen-exit.d.ts +4 -0
  213. package/assets/icons/fullscreen-exit.js +30 -0
  214. package/assets/icons/fullscreen.cjs +1 -0
  215. package/assets/icons/fullscreen.d.ts +4 -0
  216. package/assets/icons/fullscreen.js +30 -0
  217. package/assets/icons/home.cjs +1 -0
  218. package/assets/icons/home.js +14 -9
  219. package/assets/icons/keyboard_arrow_down.cjs +1 -0
  220. package/assets/icons/keyboard_arrow_down.js +14 -9
  221. package/assets/icons/keyboard_arrow_up.cjs +1 -0
  222. package/assets/icons/keyboard_arrow_up.js +14 -9
  223. package/assets/icons/local_shipping.cjs +1 -0
  224. package/assets/icons/local_shipping.js +14 -9
  225. package/assets/icons/mic.cjs +1 -0
  226. package/assets/icons/mic.d.ts +5 -0
  227. package/assets/icons/mic.js +15 -0
  228. package/assets/icons/minus.cjs +1 -0
  229. package/assets/icons/minus.js +14 -9
  230. package/assets/icons/mobile_menu_button.cjs +1 -0
  231. package/assets/icons/mobile_menu_button.js +14 -9
  232. package/assets/icons/paymentCard.cjs +1 -0
  233. package/assets/icons/paymentCard.js +14 -9
  234. package/assets/icons/phone.cjs +1 -0
  235. package/assets/icons/phone.js +14 -9
  236. package/assets/icons/plus.cjs +1 -0
  237. package/assets/icons/plus.js +14 -9
  238. package/assets/icons/portrait.cjs +1 -0
  239. package/assets/icons/portrait.js +14 -9
  240. package/assets/icons/processing.cjs +1 -0
  241. package/assets/icons/processing.js +14 -9
  242. package/assets/icons/ruler.cjs +1 -0
  243. package/assets/icons/ruler.js +14 -9
  244. package/assets/icons/search.cjs +1 -0
  245. package/assets/icons/search.js +14 -9
  246. package/assets/icons/send.cjs +1 -0
  247. package/assets/icons/send.js +14 -9
  248. package/assets/icons/shopping_bag.cjs +1 -0
  249. package/assets/icons/shopping_bag.js +14 -9
  250. package/assets/icons/slash.cjs +1 -0
  251. package/assets/icons/slash.js +14 -9
  252. package/assets/icons/star.cjs +1 -0
  253. package/assets/icons/star.js +14 -9
  254. package/assets/icons/starHalf.cjs +1 -0
  255. package/assets/icons/starHalf.js +14 -9
  256. package/assets/icons/starOutlined.cjs +1 -0
  257. package/assets/icons/starOutlined.js +14 -9
  258. package/assets/icons/thumb-down-filled.cjs +1 -0
  259. package/assets/icons/thumb-down-filled.js +14 -9
  260. package/assets/icons/thumb-down.cjs +1 -0
  261. package/assets/icons/thumb-down.js +14 -9
  262. package/assets/icons/thumb-up-filled.cjs +1 -0
  263. package/assets/icons/thumb-up-filled.js +14 -9
  264. package/assets/icons/thumb-up.cjs +1 -0
  265. package/assets/icons/thumb-up.js +14 -9
  266. package/assets/icons/toast_error.cjs +1 -0
  267. package/assets/icons/toast_error.js +24 -13
  268. package/assets/icons/toast_info.cjs +1 -0
  269. package/assets/icons/toast_info.js +14 -9
  270. package/assets/icons/toast_success.cjs +1 -0
  271. package/assets/icons/toast_success.js +24 -13
  272. package/assets/icons/toast_warning.cjs +1 -0
  273. package/assets/icons/toast_warning.js +14 -9
  274. package/assets/icons/upload.cjs +1 -0
  275. package/assets/icons/upload.js +14 -9
  276. package/assets/icons/volume-up.cjs +1 -0
  277. package/assets/icons/volume-up.js +14 -9
  278. package/assets/icons/wifiTethering.cjs +1 -0
  279. package/assets/icons/wifiTethering.js +14 -9
  280. package/assets/index.d.ts +3 -0
  281. package/assets/svg/{checkbox_bg_checked.svg.js → checkbox_bg_checked.cjs} +2 -5
  282. package/assets/svg/checkbox_bg_checked.js +4 -0
  283. package/assets/svg/{checkbox_border.svg.js → checkbox_border.cjs} +2 -5
  284. package/assets/svg/checkbox_border.js +4 -0
  285. package/assets/svg/{checkbox_disabled_bg_checked.svg.js → checkbox_disabled_bg_checked.cjs} +2 -5
  286. package/assets/svg/checkbox_disabled_bg_checked.js +4 -0
  287. package/assets/svg/{radio_bg.svg.js → radio_bg.cjs} +2 -5
  288. package/assets/svg/radio_bg.js +4 -0
  289. package/assets/svg/{radio_bg_checked.svg.js → radio_bg_checked.cjs} +2 -5
  290. package/assets/svg/radio_bg_checked.js +4 -0
  291. package/components/atoms/Avatar/Avatar.cjs +1 -0
  292. package/components/atoms/Avatar/Avatar.d.ts +6 -3
  293. package/components/atoms/Avatar/Avatar.js +60 -45
  294. package/components/atoms/Avatar/AvatarStyled.cjs +1 -0
  295. package/components/atoms/Avatar/AvatarStyled.js +56 -78
  296. package/components/atoms/Avatar/constants.cjs +1 -0
  297. package/components/atoms/Avatar/constants.js +4 -6
  298. package/components/atoms/Avatar/index.d.ts +0 -1
  299. package/components/atoms/Badge/Badge.cjs +1 -0
  300. package/components/atoms/Badge/Badge.js +39 -28
  301. package/components/atoms/Badge/BadgeStyled.cjs +1 -0
  302. package/components/atoms/Badge/BadgeStyled.js +45 -53
  303. package/components/atoms/Badge/constants.cjs +1 -0
  304. package/components/atoms/Badge/constants.js +4 -4
  305. package/components/atoms/Box/Box.cjs +1 -0
  306. package/components/atoms/Box/Box.js +24 -24
  307. package/components/atoms/Box/BoxStyled.cjs +1 -0
  308. package/components/atoms/Box/BoxStyled.js +22 -24
  309. package/components/atoms/Button/Button.cjs +1 -0
  310. package/components/atoms/Button/Button.js +55 -47
  311. package/components/atoms/Button/ButtonStyled.cjs +1 -0
  312. package/components/atoms/Button/ButtonStyled.js +45 -58
  313. package/components/atoms/Button/constants.cjs +1 -0
  314. package/components/atoms/Button/constants.js +4 -4
  315. package/components/atoms/Checkbox/Checkbox.cjs +1 -0
  316. package/components/atoms/Checkbox/Checkbox.js +74 -45
  317. package/components/atoms/Checkbox/CheckboxStyled.cjs +1 -0
  318. package/components/atoms/Checkbox/CheckboxStyled.d.ts +1 -1
  319. package/components/atoms/Checkbox/CheckboxStyled.js +44 -53
  320. package/components/atoms/Checkbox/constants.cjs +1 -0
  321. package/components/atoms/Checkbox/constants.js +4 -4
  322. package/components/atoms/Icon/Icon.cjs +1 -0
  323. package/components/atoms/Icon/Icon.js +34 -46
  324. package/components/atoms/Icon/constants.cjs +1 -0
  325. package/components/atoms/Icon/constants.d.ts +13 -0
  326. package/components/atoms/Icon/constants.js +114 -109
  327. package/components/atoms/Image/Image.cjs +1 -0
  328. package/components/atoms/Image/Image.js +57 -40
  329. package/components/atoms/Image/ImageStyled.cjs +1 -0
  330. package/components/atoms/Image/ImageStyled.js +58 -77
  331. package/components/atoms/Image/constants.cjs +1 -0
  332. package/components/atoms/Image/constants.js +4 -4
  333. package/components/atoms/Input/Input.cjs +1 -0
  334. package/components/atoms/Input/Input.d.ts +1 -1
  335. package/components/atoms/Input/Input.js +61 -71
  336. package/components/atoms/Input/InputAdornment/InputAdornment.cjs +1 -0
  337. package/components/atoms/Input/InputAdornment/InputAdornment.js +16 -15
  338. package/components/atoms/Input/InputAdornment/InputAdornmentStyled.cjs +1 -0
  339. package/components/atoms/Input/InputAdornment/InputAdornmentStyled.js +16 -19
  340. package/components/atoms/Input/InputAdornment/constants.cjs +1 -0
  341. package/components/atoms/Input/InputAdornment/constants.js +4 -4
  342. package/components/atoms/Input/InputHelper/InputHelper.cjs +1 -0
  343. package/components/atoms/Input/InputHelper/InputHelper.js +20 -19
  344. package/components/atoms/Input/InputHelper/InputHelperStyled.cjs +1 -0
  345. package/components/atoms/Input/InputHelper/InputHelperStyled.js +17 -21
  346. package/components/atoms/Input/InputHelper/constants.cjs +1 -0
  347. package/components/atoms/Input/InputHelper/constants.js +4 -4
  348. package/components/atoms/Input/InputStyled.cjs +1 -0
  349. package/components/atoms/Input/InputStyled.js +20 -22
  350. package/components/atoms/Input/InputWrapper/InputWrapper.cjs +1 -0
  351. package/components/atoms/Input/InputWrapper/InputWrapper.js +19 -18
  352. package/components/atoms/Input/InputWrapper/InputWrapperStyled.cjs +1 -0
  353. package/components/atoms/Input/InputWrapper/InputWrapperStyled.js +17 -21
  354. package/components/atoms/Input/InputWrapper/constants.cjs +1 -0
  355. package/components/atoms/Input/InputWrapper/constants.js +4 -4
  356. package/components/atoms/Input/constants.cjs +1 -0
  357. package/components/atoms/Input/constants.js +16 -14
  358. package/components/atoms/Input/useInputHandlers.cjs +1 -0
  359. package/components/atoms/Input/useInputHandlers.js +31 -37
  360. package/components/atoms/InputFile/InputFile.cjs +1 -0
  361. package/components/atoms/InputFile/InputFile.js +55 -52
  362. package/components/atoms/InputFile/InputFileStyled.cjs +1 -0
  363. package/components/atoms/InputFile/InputFileStyled.js +18 -28
  364. package/components/atoms/InputFile/constants.cjs +1 -0
  365. package/components/atoms/InputFile/constants.js +4 -6
  366. package/components/atoms/Label/Label.cjs +1 -0
  367. package/components/atoms/Label/Label.js +22 -25
  368. package/components/atoms/Label/LabelStyled.cjs +1 -0
  369. package/components/atoms/Label/LabelStyled.js +18 -20
  370. package/components/atoms/Label/constants.cjs +1 -0
  371. package/components/atoms/Label/constants.js +4 -4
  372. package/components/atoms/Link/Link.cjs +1 -0
  373. package/components/atoms/Link/Link.js +36 -41
  374. package/components/atoms/Link/LinkStyled.cjs +1 -0
  375. package/components/atoms/Link/LinkStyled.js +25 -29
  376. package/components/atoms/Link/constants.cjs +1 -0
  377. package/components/atoms/Link/constants.js +4 -4
  378. package/components/atoms/Loader/Loader.cjs +1 -0
  379. package/components/atoms/Loader/Loader.js +36 -29
  380. package/components/atoms/Loader/LoaderStyled.cjs +1 -0
  381. package/components/atoms/Loader/LoaderStyled.js +31 -42
  382. package/components/atoms/Loader/constants.cjs +1 -0
  383. package/components/atoms/Loader/constants.js +5 -6
  384. package/components/atoms/Loader/utils.cjs +1 -0
  385. package/components/atoms/Loader/utils.js +35 -35
  386. package/components/atoms/Select/Select.cjs +1 -0
  387. package/components/atoms/Select/Select.js +269 -270
  388. package/components/atoms/Select/SelectStyled.cjs +1 -0
  389. package/components/atoms/Select/SelectStyled.js +71 -91
  390. package/components/atoms/Select/constants.cjs +1 -0
  391. package/components/atoms/Select/constants.js +4 -5
  392. package/components/atoms/Select/hooks/useSelectContext.cjs +1 -0
  393. package/components/atoms/Select/hooks/useSelectContext.js +8 -10
  394. package/components/atoms/Separator/Separator.cjs +1 -0
  395. package/components/atoms/Separator/Separator.js +57 -35
  396. package/components/atoms/Separator/SeparatorStyled.cjs +1 -0
  397. package/components/atoms/Separator/SeparatorStyled.js +50 -71
  398. package/components/atoms/Separator/constants.cjs +1 -0
  399. package/components/atoms/Separator/constants.js +4 -4
  400. package/components/atoms/Skeleton/Skeleton.cjs +1 -0
  401. package/components/atoms/Skeleton/Skeleton.js +24 -23
  402. package/components/atoms/Skeleton/SkeletonStyled.cjs +1 -0
  403. package/components/atoms/Skeleton/SkeletonStyled.js +22 -31
  404. package/components/atoms/Skeleton/constants.cjs +1 -0
  405. package/components/atoms/Skeleton/constants.js +5 -6
  406. package/components/atoms/Slider/Slider.cjs +1 -0
  407. package/components/atoms/Slider/Slider.js +39 -33
  408. package/components/atoms/Slider/SliderStyled.cjs +1 -0
  409. package/components/atoms/Slider/SliderStyled.js +17 -19
  410. package/components/atoms/Slider/constants.cjs +1 -0
  411. package/components/atoms/Slider/constants.js +4 -6
  412. package/components/atoms/SliderDots/SliderDots.cjs +1 -0
  413. package/components/atoms/SliderDots/SliderDots.js +31 -28
  414. package/components/atoms/SliderDots/SliderDotsStyled.cjs +1 -0
  415. package/components/atoms/SliderDots/SliderDotsStyled.js +18 -20
  416. package/components/atoms/SliderDots/constants.cjs +1 -0
  417. package/components/atoms/SliderDots/constants.js +4 -4
  418. package/components/atoms/Switch/Switch.cjs +1 -0
  419. package/components/atoms/Switch/Switch.js +79 -58
  420. package/components/atoms/Switch/SwitchStyled.cjs +1 -0
  421. package/components/atoms/Switch/SwitchStyled.js +63 -80
  422. package/components/atoms/Switch/constants.cjs +1 -0
  423. package/components/atoms/Switch/constants.js +4 -4
  424. package/components/atoms/Textarea/Textarea.cjs +1 -0
  425. package/components/atoms/Textarea/Textarea.js +64 -57
  426. package/components/atoms/Textarea/Textarea.types.cjs +1 -0
  427. package/components/atoms/Textarea/Textarea.types.js +6 -4
  428. package/components/atoms/Textarea/TextareaStyled.cjs +1 -0
  429. package/components/atoms/Textarea/TextareaStyled.js +23 -32
  430. package/components/atoms/Textarea/constants.cjs +1 -0
  431. package/components/atoms/Textarea/constants.js +4 -4
  432. package/components/atoms/Textarea/hooks/useDynamicHeightAdjustment.cjs +1 -0
  433. package/components/atoms/Textarea/hooks/useDynamicHeightAdjustment.js +8 -8
  434. package/components/atoms/Textarea/hooks/useResizeObserver.cjs +1 -0
  435. package/components/atoms/Textarea/hooks/useResizeObserver.js +24 -23
  436. package/components/atoms/Toggle/Toggle.cjs +1 -0
  437. package/components/atoms/Toggle/Toggle.js +34 -35
  438. package/components/atoms/Toggle/ToggleStyled.cjs +1 -0
  439. package/components/atoms/Toggle/ToggleStyled.js +19 -21
  440. package/components/atoms/Toggle/constants.cjs +1 -0
  441. package/components/atoms/Toggle/constants.js +4 -4
  442. package/components/atoms/Truncate/Truncate.cjs +1 -0
  443. package/components/atoms/Truncate/Truncate.js +44 -50
  444. package/components/atoms/Truncate/TruncateStyled.cjs +1 -0
  445. package/components/atoms/Truncate/TruncateStyled.js +19 -22
  446. package/components/atoms/Truncate/constants.cjs +1 -0
  447. package/components/atoms/Truncate/constants.js +4 -4
  448. package/components/atoms/Typography/Typography.cjs +1 -0
  449. package/components/atoms/Typography/Typography.js +25 -24
  450. package/components/atoms/Typography/TypographyStyled.cjs +1 -0
  451. package/components/atoms/Typography/TypographyStyled.js +30 -35
  452. package/components/atoms/Typography/constants.cjs +1 -0
  453. package/components/atoms/Typography/constants.js +4 -4
  454. package/components/atoms/Wrapper/Wrapper.cjs +1 -0
  455. package/components/atoms/Wrapper/Wrapper.js +20 -19
  456. package/components/atoms/Wrapper/WrapperStyled.cjs +1 -0
  457. package/components/atoms/Wrapper/WrapperStyled.js +19 -22
  458. package/components/atoms/Wrapper/constants.cjs +1 -0
  459. package/components/atoms/Wrapper/constants.js +4 -4
  460. package/components/atoms/types/roles.types.cjs +1 -0
  461. package/components/atoms/types/roles.types.js +6 -4
  462. package/components/index.types.cjs +1 -0
  463. package/components/index.types.js +6 -4
  464. package/components/layout/ChatContainer/ChatContainer.cjs +1 -0
  465. package/components/layout/ChatContainer/ChatContainer.js +106 -72
  466. package/components/layout/ChatContainer/ChatContainerStyled.cjs +1 -0
  467. package/components/layout/ChatContainer/ChatContainerStyled.js +103 -153
  468. package/components/layout/ChatContainer/constants.cjs +1 -0
  469. package/components/layout/ChatContainer/constants.js +4 -4
  470. package/components/layout/Column/Column.cjs +1 -0
  471. package/components/layout/Column/Column.js +25 -24
  472. package/components/layout/Column/ColumnStyled.cjs +1 -0
  473. package/components/layout/Column/ColumnStyled.js +27 -36
  474. package/components/layout/Column/constants.cjs +1 -0
  475. package/components/layout/Column/constants.js +4 -4
  476. package/components/layout/FlexContainer/FlexContainer.cjs +1 -0
  477. package/components/layout/FlexContainer/FlexContainer.js +21 -20
  478. package/components/layout/FlexContainer/FlexContainerStyled.cjs +1 -0
  479. package/components/layout/FlexContainer/FlexContainerStyled.js +17 -19
  480. package/components/layout/FlexContainer/constants.cjs +1 -0
  481. package/components/layout/FlexContainer/constants.js +4 -4
  482. package/components/layout/Portal/Portal.cjs +1 -0
  483. package/components/layout/Portal/Portal.js +22 -24
  484. package/components/layout/Row/Row.cjs +1 -0
  485. package/components/layout/Row/Row.js +24 -24
  486. package/components/layout/Row/RowStyled.cjs +1 -0
  487. package/components/layout/Row/RowStyled.js +27 -36
  488. package/components/layout/Scroll/Scroll.cjs +1 -0
  489. package/components/layout/Scroll/Scroll.js +63 -60
  490. package/components/layout/Scroll/ScrollBar.cjs +1 -0
  491. package/components/layout/Scroll/ScrollBar.js +60 -68
  492. package/components/layout/Scroll/ScrollStyled.cjs +1 -0
  493. package/components/layout/Scroll/ScrollStyled.js +50 -65
  494. package/components/layout/Scroll/constants.cjs +1 -0
  495. package/components/layout/Scroll/constants.js +4 -8
  496. package/components/layout/Scroll/utils.cjs +1 -0
  497. package/components/layout/Scroll/utils.js +18 -37
  498. package/components/molecules/Accordion/Accordion.cjs +1 -0
  499. package/components/molecules/Accordion/Accordion.js +41 -44
  500. package/components/molecules/Accordion/AccordionContent/AccordionContent.cjs +1 -0
  501. package/components/molecules/Accordion/AccordionContent/AccordionContent.js +22 -20
  502. package/components/molecules/Accordion/AccordionHeader/AccordionHeader.cjs +1 -0
  503. package/components/molecules/Accordion/AccordionHeader/AccordionHeader.js +29 -29
  504. package/components/molecules/Accordion/AccordionItem/AccordionItem.cjs +1 -0
  505. package/components/molecules/Accordion/AccordionItem/AccordionItem.js +26 -26
  506. package/components/molecules/Accordion/AccordionStyled.cjs +1 -0
  507. package/components/molecules/Accordion/AccordionStyled.js +46 -63
  508. package/components/molecules/Accordion/constants.cjs +1 -0
  509. package/components/molecules/Accordion/constants.js +4 -8
  510. package/components/molecules/Accordion/hooks/useAccordion.cjs +1 -0
  511. package/components/molecules/Accordion/hooks/useAccordion.js +8 -9
  512. package/components/molecules/AttachmentFile/AttachmentFile.cjs +1 -0
  513. package/components/molecules/AttachmentFile/AttachmentFile.d.ts +2 -0
  514. package/components/molecules/AttachmentFile/AttachmentFile.js +72 -0
  515. package/components/molecules/AttachmentFile/AttachmentFile.types.d.ts +16 -0
  516. package/components/molecules/AttachmentFile/AttachmentFileStyled.cjs +1 -0
  517. package/components/molecules/AttachmentFile/AttachmentFileStyled.d.ts +15 -0
  518. package/components/molecules/AttachmentFile/AttachmentFileStyled.js +64 -0
  519. package/components/molecules/AttachmentFile/constants.cjs +1 -0
  520. package/components/molecules/AttachmentFile/constants.d.ts +1 -0
  521. package/components/molecules/AttachmentFile/constants.js +4 -0
  522. package/components/molecules/AttachmentFile/index.d.ts +2 -0
  523. package/components/molecules/AvatarUser/AvatarUser.cjs +1 -0
  524. package/components/molecules/AvatarUser/AvatarUser.d.ts +1 -1
  525. package/components/molecules/AvatarUser/AvatarUser.js +45 -37
  526. package/components/molecules/AvatarUser/AvatarUserStyled.cjs +1 -0
  527. package/components/molecules/AvatarUser/AvatarUserStyled.js +18 -21
  528. package/components/molecules/AvatarUser/constants.cjs +1 -0
  529. package/components/molecules/AvatarUser/constants.js +4 -4
  530. package/components/molecules/Breadcrumbs/Breadcrumbs.cjs +1 -0
  531. package/components/molecules/Breadcrumbs/Breadcrumbs.js +40 -32
  532. package/components/molecules/Breadcrumbs/BreadcrumbsStyled.cjs +1 -0
  533. package/components/molecules/Breadcrumbs/BreadcrumbsStyled.js +43 -65
  534. package/components/molecules/Breadcrumbs/constants.cjs +1 -0
  535. package/components/molecules/Breadcrumbs/constants.js +4 -4
  536. package/components/molecules/Counter/Counter.cjs +1 -0
  537. package/components/molecules/Counter/Counter.js +117 -102
  538. package/components/molecules/Counter/CounterStyled.cjs +1 -0
  539. package/components/molecules/Counter/CounterStyled.js +22 -28
  540. package/components/molecules/Counter/constants.cjs +1 -0
  541. package/components/molecules/Counter/constants.js +4 -8
  542. package/components/molecules/Dropdown/Dropdown.cjs +1 -0
  543. package/components/molecules/Dropdown/Dropdown.js +36 -36
  544. package/components/molecules/Dropdown/DropdownStyled.cjs +1 -0
  545. package/components/molecules/Dropdown/DropdownStyled.d.ts +1 -1
  546. package/components/molecules/Dropdown/DropdownStyled.js +18 -20
  547. package/components/molecules/Dropdown/constants.cjs +1 -0
  548. package/components/molecules/Dropdown/constants.js +4 -4
  549. package/components/molecules/Dropdown/hooks/useDropdown.cjs +1 -0
  550. package/components/molecules/Dropdown/hooks/useDropdown.js +8 -10
  551. package/components/molecules/DropdownItem/DropdownItem.cjs +1 -0
  552. package/components/molecules/DropdownItem/DropdownItem.js +49 -44
  553. package/components/molecules/DropdownItem/DropdownItemStyled.cjs +1 -0
  554. package/components/molecules/DropdownItem/DropdownItemStyled.js +19 -21
  555. package/components/molecules/DropdownItem/constants.cjs +1 -0
  556. package/components/molecules/DropdownItem/constants.js +4 -4
  557. package/components/molecules/Form/Form.cjs +1 -0
  558. package/components/molecules/Form/Form.js +39 -46
  559. package/components/molecules/Form/Form.types.d.ts +3 -1
  560. package/components/molecules/Form/FormStyled.cjs +1 -0
  561. package/components/molecules/Form/FormStyled.js +18 -20
  562. package/components/molecules/Form/constants.cjs +1 -0
  563. package/components/molecules/Form/constants.js +4 -4
  564. package/components/molecules/Form/utils.cjs +1 -0
  565. package/components/molecules/Form/utils.js +29 -33
  566. package/components/molecules/InlineNotification/InlineNotification.cjs +1 -0
  567. package/components/molecules/InlineNotification/InlineNotification.js +39 -36
  568. package/components/molecules/InlineNotification/InlineNotificationStyled.cjs +1 -0
  569. package/components/molecules/InlineNotification/InlineNotificationStyled.js +28 -30
  570. package/components/molecules/InlineNotification/constants.cjs +1 -0
  571. package/components/molecules/InlineNotification/constants.js +16 -21
  572. package/components/molecules/List/List.cjs +1 -0
  573. package/components/molecules/List/List.js +43 -44
  574. package/components/molecules/List/ListStyled.cjs +1 -0
  575. package/components/molecules/List/ListStyled.js +30 -37
  576. package/components/molecules/List/constants.cjs +1 -0
  577. package/components/molecules/List/constants.js +4 -4
  578. package/components/molecules/Menu/Menu.cjs +1 -0
  579. package/components/molecules/Menu/Menu.js +117 -132
  580. package/components/molecules/Menu/MenuStyled.cjs +1 -0
  581. package/components/molecules/Menu/MenuStyled.js +30 -39
  582. package/components/molecules/Menu/constants.cjs +1 -0
  583. package/components/molecules/Menu/constants.js +17 -15
  584. package/components/molecules/Price/Price.cjs +1 -0
  585. package/components/molecules/Price/Price.js +28 -24
  586. package/components/molecules/Price/PriceStyled.cjs +1 -0
  587. package/components/molecules/Price/PriceStyled.js +35 -52
  588. package/components/molecules/Price/constants.cjs +1 -0
  589. package/components/molecules/Price/constants.js +4 -4
  590. package/components/molecules/ProgressBar/ProgressBar.cjs +1 -0
  591. package/components/molecules/ProgressBar/ProgressBar.js +41 -27
  592. package/components/molecules/ProgressBar/ProgressBarStyled.cjs +1 -0
  593. package/components/molecules/ProgressBar/ProgressBarStyled.js +52 -80
  594. package/components/molecules/ProgressBar/constants.cjs +1 -0
  595. package/components/molecules/ProgressBar/constants.js +4 -7
  596. package/components/molecules/RadioGroup/RadioGroup.cjs +1 -0
  597. package/components/molecules/RadioGroup/RadioGroup.js +71 -53
  598. package/components/molecules/RadioGroup/RadioGroup.types.cjs +1 -0
  599. package/components/molecules/RadioGroup/RadioGroup.types.js +6 -4
  600. package/components/molecules/RadioGroup/RadioGroupItem/RadioGroupItem.cjs +1 -0
  601. package/components/molecules/RadioGroup/RadioGroupItem/RadioGroupItem.js +89 -37
  602. package/components/molecules/RadioGroup/RadioGroupStyled.cjs +1 -0
  603. package/components/molecules/RadioGroup/RadioGroupStyled.js +83 -136
  604. package/components/molecules/RadioGroup/constants.cjs +1 -0
  605. package/components/molecules/RadioGroup/constants.js +4 -5
  606. package/components/molecules/Rating/Rating.cjs +1 -0
  607. package/components/molecules/Rating/Rating.js +73 -61
  608. package/components/molecules/Rating/RatingStyled.cjs +1 -0
  609. package/components/molecules/Rating/RatingStyled.js +44 -64
  610. package/components/molecules/Rating/constants.cjs +1 -0
  611. package/components/molecules/Rating/constants.js +4 -9
  612. package/components/molecules/Snackbar/Snackbar.cjs +1 -0
  613. package/components/molecules/Snackbar/Snackbar.js +106 -69
  614. package/components/molecules/Snackbar/SnackbarManager.cjs +1 -0
  615. package/components/molecules/Snackbar/SnackbarManager.js +67 -61
  616. package/components/molecules/Snackbar/SnackbarStyled.cjs +1 -0
  617. package/components/molecules/Snackbar/SnackbarStyled.js +94 -143
  618. package/components/molecules/Snackbar/constants.cjs +1 -0
  619. package/components/molecules/Snackbar/constants.js +5 -10
  620. package/components/molecules/Stepper/Stepper.cjs +1 -0
  621. package/components/molecules/Stepper/Stepper.js +48 -39
  622. package/components/molecules/Stepper/StepperStyled.cjs +1 -0
  623. package/components/molecules/Stepper/StepperStyled.js +46 -63
  624. package/components/molecules/Stepper/constants.cjs +1 -0
  625. package/components/molecules/Stepper/constants.js +6 -6
  626. package/components/molecules/Stepper/utils.cjs +1 -0
  627. package/components/molecules/Stepper/utils.js +14 -34
  628. package/components/molecules/Table/Table.cjs +1 -0
  629. package/components/molecules/Table/Table.js +300 -274
  630. package/components/molecules/Table/TableBody.cjs +1 -0
  631. package/components/molecules/Table/TableBody.js +20 -19
  632. package/components/molecules/Table/TableCell.cjs +1 -0
  633. package/components/molecules/Table/TableCell.js +19 -18
  634. package/components/molecules/Table/TableFooter.cjs +1 -0
  635. package/components/molecules/Table/TableFooter.js +21 -20
  636. package/components/molecules/Table/TableHead.cjs +1 -0
  637. package/components/molecules/Table/TableHead.js +19 -18
  638. package/components/molecules/Table/TableHeaderCell.cjs +1 -0
  639. package/components/molecules/Table/TableHeaderCell.js +19 -18
  640. package/components/molecules/Table/TablePagination.cjs +1 -0
  641. package/components/molecules/Table/TablePagination.js +67 -54
  642. package/components/molecules/Table/TableRow.cjs +1 -0
  643. package/components/molecules/Table/TableRow.js +28 -27
  644. package/components/molecules/Table/TableStyled.cjs +1 -0
  645. package/components/molecules/Table/TableStyled.js +129 -162
  646. package/components/molecules/Table/constants.cjs +1 -0
  647. package/components/molecules/Table/constants.js +8 -12
  648. package/components/molecules/Tabs/Tabs.cjs +1 -0
  649. package/components/molecules/Tabs/Tabs.js +62 -38
  650. package/components/molecules/Tabs/TabsStyled.cjs +1 -0
  651. package/components/molecules/Tabs/TabsStyled.js +63 -85
  652. package/components/molecules/Tabs/constants.cjs +1 -0
  653. package/components/molecules/Tabs/constants.js +6 -6
  654. package/components/molecules/Tooltip/Tooltip.cjs +1 -0
  655. package/components/molecules/Tooltip/Tooltip.js +69 -65
  656. package/components/molecules/Tooltip/Tooltip.types.d.ts +1 -6
  657. package/components/molecules/Tooltip/TooltipStyled.cjs +1 -0
  658. package/components/molecules/Tooltip/TooltipStyled.js +16 -30
  659. package/components/molecules/Tooltip/constants.cjs +1 -0
  660. package/components/molecules/Tooltip/constants.js +4 -6
  661. package/components/molecules/Tooltip/utils.cjs +1 -0
  662. package/components/molecules/Tooltip/utils.d.ts +2 -2
  663. package/components/molecules/Tooltip/utils.js +112 -119
  664. package/components/molecules/index.d.ts +2 -0
  665. package/components/organisms/Card/Card.cjs +1 -0
  666. package/components/organisms/Card/Card.js +41 -40
  667. package/components/organisms/Card/CardBadge/CardBadge.cjs +1 -0
  668. package/components/organisms/Card/CardBadge/CardBadge.js +27 -24
  669. package/components/organisms/Card/CardBadge/CardBadgeStyled.cjs +1 -0
  670. package/components/organisms/Card/CardBadge/CardBadgeStyled.js +19 -22
  671. package/components/organisms/Card/CardBadge/constants.cjs +1 -0
  672. package/components/organisms/Card/CardBadge/constants.js +4 -4
  673. package/components/organisms/Card/CardButton/CardButton.cjs +1 -0
  674. package/components/organisms/Card/CardButton/CardButton.js +26 -22
  675. package/components/organisms/Card/CardButton/CardButtonStyled.cjs +1 -0
  676. package/components/organisms/Card/CardButton/CardButtonStyled.js +19 -22
  677. package/components/organisms/Card/CardButton/constants.cjs +1 -0
  678. package/components/organisms/Card/CardButton/constants.js +4 -4
  679. package/components/organisms/Card/CardCounter/CardCounter.cjs +1 -0
  680. package/components/organisms/Card/CardCounter/CardCounter.js +21 -24
  681. package/components/organisms/Card/CardCounter/CardCounterStyled.cjs +1 -0
  682. package/components/organisms/Card/CardCounter/CardCounterStyled.js +17 -21
  683. package/components/organisms/Card/CardCounter/constants.cjs +1 -0
  684. package/components/organisms/Card/CardCounter/constants.js +4 -4
  685. package/components/organisms/Card/CardDescription/CardDescription.cjs +1 -0
  686. package/components/organisms/Card/CardDescription/CardDescription.js +23 -22
  687. package/components/organisms/Card/CardDescription/CardDescriptionStyled.cjs +1 -0
  688. package/components/organisms/Card/CardDescription/CardDescriptionStyled.js +21 -23
  689. package/components/organisms/Card/CardDescription/constants.cjs +1 -0
  690. package/components/organisms/Card/CardDescription/constants.js +8 -9
  691. package/components/organisms/Card/CardImage/CardImage.cjs +1 -0
  692. package/components/organisms/Card/CardImage/CardImage.js +21 -24
  693. package/components/organisms/Card/CardImage/CardImageStyled.cjs +1 -0
  694. package/components/organisms/Card/CardImage/CardImageStyled.js +19 -22
  695. package/components/organisms/Card/CardImage/constants.cjs +1 -0
  696. package/components/organisms/Card/CardImage/constants.js +4 -4
  697. package/components/organisms/Card/CardPrice/CardPrice.cjs +1 -0
  698. package/components/organisms/Card/CardPrice/CardPrice.js +21 -20
  699. package/components/organisms/Card/CardPrice/CardPriceStyled.cjs +1 -0
  700. package/components/organisms/Card/CardPrice/CardPriceStyled.js +19 -22
  701. package/components/organisms/Card/CardPrice/constants.cjs +1 -0
  702. package/components/organisms/Card/CardPrice/constants.js +4 -4
  703. package/components/organisms/Card/CardRating/CardRating.cjs +1 -0
  704. package/components/organisms/Card/CardRating/CardRating.js +27 -28
  705. package/components/organisms/Card/CardRating/CardRatingStyled.cjs +1 -0
  706. package/components/organisms/Card/CardRating/CardRatingStyled.js +19 -22
  707. package/components/organisms/Card/CardRating/constants.cjs +1 -0
  708. package/components/organisms/Card/CardRating/constants.js +4 -6
  709. package/components/organisms/Card/CardTitle/CardTitle.cjs +1 -0
  710. package/components/organisms/Card/CardTitle/CardTitle.js +24 -23
  711. package/components/organisms/Card/CardTitle/CardTitleStyled.cjs +1 -0
  712. package/components/organisms/Card/CardTitle/CardTitleStyled.js +20 -23
  713. package/components/organisms/Card/CardTitle/constants.cjs +1 -0
  714. package/components/organisms/Card/CardTitle/constants.js +8 -9
  715. package/components/organisms/Card/CardWishlist/CardWishlist.cjs +1 -0
  716. package/components/organisms/Card/CardWishlist/CardWishlist.js +27 -28
  717. package/components/organisms/Card/CardWishlist/CardWishlistStyled.cjs +1 -0
  718. package/components/organisms/Card/CardWishlist/CardWishlistStyled.js +21 -23
  719. package/components/organisms/Card/CardWishlist/constants.cjs +1 -0
  720. package/components/organisms/Card/CardWishlist/constants.js +4 -4
  721. package/components/organisms/Card/constants.cjs +1 -0
  722. package/components/organisms/Card/constants.js +4 -4
  723. package/components/organisms/Carousel/Carousel.cjs +1 -0
  724. package/components/organisms/Carousel/Carousel.js +274 -170
  725. package/components/organisms/Carousel/CarouselStyled.cjs +1 -0
  726. package/components/organisms/Carousel/CarouselStyled.js +116 -162
  727. package/components/organisms/Carousel/constants.cjs +1 -0
  728. package/components/organisms/Carousel/constants.js +4 -4
  729. package/components/organisms/Chart/AreaChart.cjs +1 -0
  730. package/components/organisms/Chart/AreaChart.js +44 -22
  731. package/components/organisms/Chart/BarChart.cjs +1 -0
  732. package/components/organisms/Chart/BarChart.js +44 -22
  733. package/components/organisms/Chart/Chart.cjs +1 -0
  734. package/components/organisms/Chart/Chart.js +59 -26
  735. package/components/organisms/Chart/ChartBase.cjs +1 -0
  736. package/components/organisms/Chart/ChartBase.js +248 -148
  737. package/components/organisms/Chart/ChartCartesian.cjs +1 -0
  738. package/components/organisms/Chart/ChartCartesian.js +433 -264
  739. package/components/organisms/Chart/ChartLegend.cjs +1 -0
  740. package/components/organisms/Chart/ChartLegend.js +73 -47
  741. package/components/organisms/Chart/ChartPie.cjs +1 -0
  742. package/components/organisms/Chart/ChartPie.js +181 -151
  743. package/components/organisms/Chart/ChartStyled.cjs +1 -0
  744. package/components/organisms/Chart/ChartStyled.js +41 -51
  745. package/components/organisms/Chart/ChartTooltip.cjs +1 -0
  746. package/components/organisms/Chart/ChartTooltip.js +71 -82
  747. package/components/organisms/Chart/LineChart.cjs +1 -0
  748. package/components/organisms/Chart/LineChart.js +44 -22
  749. package/components/organisms/Chart/PieChart.cjs +1 -0
  750. package/components/organisms/Chart/PieChart.js +31 -17
  751. package/components/organisms/Chart/constants.cjs +1 -0
  752. package/components/organisms/Chart/constants.js +8 -12
  753. package/components/organisms/Chart/useChartTheme.cjs +1 -0
  754. package/components/organisms/Chart/useChartTheme.d.ts +1069 -54
  755. package/components/organisms/Chart/useChartTheme.js +50 -98
  756. package/components/organisms/ChatBubble/ChatBubble.cjs +1 -0
  757. package/components/organisms/ChatBubble/ChatBubble.js +36 -30
  758. package/components/organisms/ChatBubble/ChatBubbleStyled.cjs +1 -0
  759. package/components/organisms/ChatBubble/ChatBubbleStyled.js +48 -64
  760. package/components/organisms/ChatBubble/ChatImageGallery/ChatImageGallery.cjs +1 -0
  761. package/components/organisms/ChatBubble/ChatImageGallery/ChatImageGallery.js +35 -27
  762. package/components/organisms/ChatBubble/ChatImageGallery/ChatImageGalleryStyled.cjs +1 -0
  763. package/components/organisms/ChatBubble/ChatImageGallery/ChatImageGalleryStyled.js +18 -20
  764. package/components/organisms/ChatBubble/ChatImageGallery/constants.cjs +1 -0
  765. package/components/organisms/ChatBubble/ChatImageGallery/constants.js +4 -4
  766. package/components/organisms/ChatBubble/ChatLinkPreview/ChatLinkPreview.cjs +1 -0
  767. package/components/organisms/ChatBubble/ChatLinkPreview/ChatLinkPreview.js +52 -33
  768. package/components/organisms/ChatBubble/ChatLinkPreview/ChatLinkPreviewStyled.cjs +1 -0
  769. package/components/organisms/ChatBubble/ChatLinkPreview/ChatLinkPreviewStyled.js +18 -20
  770. package/components/organisms/ChatBubble/ChatLinkPreview/constants.cjs +1 -0
  771. package/components/organisms/ChatBubble/ChatLinkPreview/constants.js +4 -4
  772. package/components/organisms/ChatBubble/constants.cjs +1 -0
  773. package/components/organisms/ChatBubble/constants.js +4 -4
  774. package/components/organisms/ContentCarousel/ContentCarousel.cjs +1 -0
  775. package/components/organisms/ContentCarousel/ContentCarousel.js +168 -118
  776. package/components/organisms/ContentCarousel/ContentCarouselStyled.cjs +1 -0
  777. package/components/organisms/ContentCarousel/ContentCarouselStyled.js +31 -43
  778. package/components/organisms/ContentCarousel/constants.cjs +1 -0
  779. package/components/organisms/ContentCarousel/constants.js +4 -4
  780. package/components/organisms/DragAndDropFiles/DragAndDropFiles.cjs +1 -0
  781. package/components/organisms/DragAndDropFiles/DragAndDropFiles.js +45 -46
  782. package/components/organisms/DragAndDropFiles/DragAndDropFilesStyled.cjs +1 -0
  783. package/components/organisms/DragAndDropFiles/DragAndDropFilesStyled.js +14 -17
  784. package/components/organisms/DragAndDropFiles/constants.cjs +1 -0
  785. package/components/organisms/DragAndDropFiles/constants.js +4 -4
  786. package/components/organisms/DragAndDropFiles/hooks/useDragAndDrop/useDragAndDrop.cjs +1 -0
  787. package/components/organisms/DragAndDropFiles/hooks/useDragAndDrop/useDragAndDrop.js +65 -48
  788. package/components/organisms/Header/Header.cjs +1 -0
  789. package/components/organisms/Header/Header.js +129 -86
  790. package/components/organisms/Header/HeaderStyled.cjs +1 -0
  791. package/components/organisms/Header/HeaderStyled.js +93 -147
  792. package/components/organisms/Header/constants.cjs +1 -0
  793. package/components/organisms/Header/constants.js +4 -4
  794. package/components/organisms/ImagePreview/ImagePreview.cjs +1 -0
  795. package/components/organisms/ImagePreview/ImagePreview.js +114 -61
  796. package/components/organisms/ImagePreview/ImagePreviewLightbox.cjs +1 -0
  797. package/components/organisms/ImagePreview/ImagePreviewLightbox.js +93 -56
  798. package/components/organisms/ImagePreview/ImagePreviewStyled.cjs +1 -0
  799. package/components/organisms/ImagePreview/ImagePreviewStyled.js +18 -20
  800. package/components/organisms/ImagePreview/constants.cjs +1 -0
  801. package/components/organisms/ImagePreview/constants.js +4 -4
  802. package/components/organisms/InputArea/InputArea.cjs +1 -0
  803. package/components/organisms/InputArea/InputArea.js +145 -65
  804. package/components/organisms/InputArea/InputArea.types.d.ts +20 -1
  805. package/components/organisms/InputArea/InputAreaStyled.cjs +1 -0
  806. package/components/organisms/InputArea/InputAreaStyled.d.ts +37 -1
  807. package/components/organisms/InputArea/InputAreaStyled.js +70 -20
  808. package/components/organisms/InputArea/constants.cjs +1 -0
  809. package/components/organisms/InputArea/constants.js +4 -4
  810. package/components/organisms/Modal/Modal.cjs +1 -0
  811. package/components/organisms/Modal/Modal.js +84 -60
  812. package/components/organisms/Modal/ModalStyled.cjs +1 -0
  813. package/components/organisms/Modal/ModalStyled.js +79 -105
  814. package/components/organisms/Modal/constants.cjs +1 -0
  815. package/components/organisms/Modal/constants.js +4 -4
  816. package/components/organisms/Search/Search.cjs +1 -0
  817. package/components/organisms/Search/Search.js +45 -37
  818. package/components/organisms/Search/SearchStyled.cjs +1 -0
  819. package/components/organisms/Search/SearchStyled.js +17 -20
  820. package/components/organisms/Search/constants.cjs +1 -0
  821. package/components/organisms/Search/constants.js +4 -7
  822. package/components/organisms/SearchModal/SearchInput/SearchInput.cjs +1 -0
  823. package/components/organisms/SearchModal/SearchInput/SearchInput.js +27 -24
  824. package/components/organisms/SearchModal/SearchInput/SearchInputStyled.cjs +1 -0
  825. package/components/organisms/SearchModal/SearchInput/SearchInputStyled.js +19 -26
  826. package/components/organisms/SearchModal/SearchInput/constants.cjs +1 -0
  827. package/components/organisms/SearchModal/SearchInput/constants.js +4 -6
  828. package/components/organisms/SearchModal/SearchItems/SearchItems.cjs +1 -0
  829. package/components/organisms/SearchModal/SearchItems/SearchItems.js +62 -46
  830. package/components/organisms/SearchModal/SearchItems/SearchItemsStyled.cjs +1 -0
  831. package/components/organisms/SearchModal/SearchItems/SearchItemsStyled.js +59 -89
  832. package/components/organisms/SearchModal/SearchItems/constants.cjs +1 -0
  833. package/components/organisms/SearchModal/SearchItems/constants.js +4 -10
  834. package/components/organisms/SearchModal/SearchItems/utils.cjs +1 -0
  835. package/components/organisms/SearchModal/SearchItems/utils.js +9 -6
  836. package/components/organisms/SearchModal/SearchLoader/SearchLoader.cjs +1 -0
  837. package/components/organisms/SearchModal/SearchLoader/SearchLoader.js +16 -18
  838. package/components/organisms/SearchModal/SearchLoader/SearchLoaderStyled.cjs +1 -0
  839. package/components/organisms/SearchModal/SearchLoader/SearchLoaderStyled.js +12 -15
  840. package/components/organisms/SearchModal/SearchLoader/constants.cjs +1 -0
  841. package/components/organisms/SearchModal/SearchLoader/constants.js +4 -4
  842. package/components/organisms/SearchModal/SearchModal.cjs +1 -0
  843. package/components/organisms/SearchModal/SearchModal.js +68 -57
  844. package/components/organisms/SearchModal/SearchModalStyled.cjs +1 -0
  845. package/components/organisms/SearchModal/SearchModalStyled.js +29 -34
  846. package/components/organisms/SearchModal/constants.cjs +1 -0
  847. package/components/organisms/SearchModal/constants.js +4 -8
  848. package/components/organisms/Sidebar/Sidebar.cjs +1 -0
  849. package/components/organisms/Sidebar/Sidebar.js +60 -44
  850. package/components/organisms/Sidebar/SidebarItem.cjs +1 -0
  851. package/components/organisms/Sidebar/SidebarItem.js +65 -46
  852. package/components/organisms/Sidebar/SidebarStyled.cjs +1 -0
  853. package/components/organisms/Sidebar/SidebarStyled.js +67 -89
  854. package/components/organisms/Sidebar/constants.cjs +1 -0
  855. package/components/organisms/Sidebar/constants.js +4 -4
  856. package/components/widget/DragAndDrop/DragAndDrop.cjs +1 -0
  857. package/components/widget/DragAndDrop/DragAndDrop.js +110 -72
  858. package/components/widget/DragAndDrop/DragAndDropStyled.cjs +1 -0
  859. package/components/widget/DragAndDrop/DragAndDropStyled.js +50 -66
  860. package/components/widget/DragAndDrop/constants.cjs +1 -0
  861. package/components/widget/DragAndDrop/constants.js +4 -4
  862. package/components/widget/DragAndDrop/utils/validators.cjs +1 -0
  863. package/components/widget/DragAndDrop/utils/validators.js +15 -16
  864. package/constants/keyboard.cjs +1 -0
  865. package/constants/keyboard.js +10 -10
  866. package/constants/timers.cjs +1 -0
  867. package/constants/timers.js +4 -5
  868. package/hooks/useAutoFocus/useAutoFocus.cjs +1 -0
  869. package/hooks/useAutoFocus/useAutoFocus.js +8 -9
  870. package/hooks/useCarousel/useCarousel.cjs +1 -0
  871. package/hooks/useCarousel/useCarousel.js +67 -73
  872. package/hooks/useClickOutside/useClickOutside.cjs +1 -0
  873. package/hooks/useClickOutside/useClickOutside.js +14 -14
  874. package/hooks/useKeyControls/useKeyControls.cjs +1 -0
  875. package/hooks/useKeyControls/useKeyControls.js +14 -17
  876. package/hooks/useLogger/NoOpLogger.cjs +1 -0
  877. package/hooks/useLogger/NoOpLogger.js +8 -15
  878. package/hooks/useLogger/useLogger.cjs +1 -0
  879. package/hooks/useLogger/useLogger.js +22 -26
  880. package/hooks/useMediaQuery/useMediaQuery.cjs +1 -0
  881. package/hooks/useMediaQuery/useMediaQuery.js +16 -23
  882. package/hooks/useTheme/NoOpTheme.cjs +1 -0
  883. package/hooks/useTheme/NoOpTheme.d.ts +182 -46
  884. package/hooks/useTheme/NoOpTheme.js +9 -14
  885. package/hooks/useTheme/useTheme.cjs +1 -0
  886. package/hooks/useTheme/useTheme.js +59 -66
  887. package/hooks/useTheme/utils.cjs +1 -0
  888. package/hooks/useTheme/utils.d.ts +1 -1
  889. package/hooks/useTheme/utils.js +8 -8
  890. package/index.cjs +1 -0
  891. package/index.js +225 -462
  892. package/llms.txt +23 -5
  893. package/package.json +22 -9
  894. package/styles.css +1 -1
  895. package/tokens/accordion.cjs +1 -0
  896. package/tokens/accordion.js +79 -91
  897. package/tokens/animations.cjs +1 -0
  898. package/tokens/animations.js +52 -72
  899. package/tokens/attachmentFile.cjs +1 -0
  900. package/tokens/attachmentFile.d.ts +64 -0
  901. package/tokens/attachmentFile.js +62 -0
  902. package/tokens/avatar.cjs +1 -0
  903. package/tokens/avatar.js +182 -200
  904. package/tokens/badge.cjs +1 -0
  905. package/tokens/badge.js +200 -246
  906. package/tokens/borders.cjs +1 -0
  907. package/tokens/borders.js +11 -15
  908. package/tokens/box.cjs +1 -0
  909. package/tokens/box.js +32 -48
  910. package/tokens/breadcrumbs.cjs +1 -0
  911. package/tokens/breadcrumbs.js +27 -33
  912. package/tokens/breakpoints.cjs +1 -0
  913. package/tokens/breakpoints.js +11 -11
  914. package/tokens/button.cjs +1 -0
  915. package/tokens/button.d.ts +7 -0
  916. package/tokens/button.js +112 -139
  917. package/tokens/card.cjs +1 -0
  918. package/tokens/card.js +186 -196
  919. package/tokens/carousel.cjs +1 -0
  920. package/tokens/carousel.js +250 -280
  921. package/tokens/chart.cjs +1 -0
  922. package/tokens/chart.d.ts +6 -0
  923. package/tokens/chart.js +174 -190
  924. package/tokens/chat.cjs +1 -0
  925. package/tokens/chat.js +144 -160
  926. package/tokens/chatbubble.cjs +1 -0
  927. package/tokens/chatbubble.js +156 -174
  928. package/tokens/checkbox.cjs +1 -0
  929. package/tokens/checkbox.js +79 -83
  930. package/tokens/colors.cjs +1 -0
  931. package/tokens/colors.js +285 -287
  932. package/tokens/column.cjs +1 -0
  933. package/tokens/column.js +7 -9
  934. package/tokens/constants.cjs +1 -0
  935. package/tokens/constants.js +4 -4
  936. package/tokens/counter.cjs +1 -0
  937. package/tokens/counter.js +44 -44
  938. package/tokens/cursors.cjs +1 -0
  939. package/tokens/cursors.js +19 -19
  940. package/tokens/defaultTheme.cjs +1 -0
  941. package/tokens/defaultTheme.d.ts +182 -46
  942. package/tokens/defaultTheme.js +147 -145
  943. package/tokens/display.cjs +1 -0
  944. package/tokens/display.js +17 -18
  945. package/tokens/draganddrop.cjs +1 -0
  946. package/tokens/draganddrop.js +68 -82
  947. package/tokens/draganddropfiles.cjs +1 -0
  948. package/tokens/draganddropfiles.js +4 -6
  949. package/tokens/flexContainer.cjs +1 -0
  950. package/tokens/flexContainer.js +11 -13
  951. package/tokens/font.cjs +1 -0
  952. package/tokens/font.js +54 -58
  953. package/tokens/form.cjs +1 -0
  954. package/tokens/form.js +4 -6
  955. package/tokens/header.cjs +1 -0
  956. package/tokens/header.js +102 -118
  957. package/tokens/icon.cjs +1 -0
  958. package/tokens/icon.js +30 -32
  959. package/tokens/image.cjs +1 -0
  960. package/tokens/image.js +35 -35
  961. package/tokens/imagePreview.cjs +1 -0
  962. package/tokens/imagePreview.js +164 -180
  963. package/tokens/index.cjs +1 -0
  964. package/tokens/index.d.ts +177 -46
  965. package/tokens/index.js +117 -167
  966. package/tokens/inlineNotification.cjs +1 -0
  967. package/tokens/inlineNotification.js +69 -73
  968. package/tokens/input.cjs +1 -0
  969. package/tokens/input.js +167 -203
  970. package/tokens/inputArea.cjs +1 -0
  971. package/tokens/inputArea.d.ts +96 -46
  972. package/tokens/inputArea.js +137 -107
  973. package/tokens/inputfile.cjs +1 -0
  974. package/tokens/inputfile.js +17 -17
  975. package/tokens/label.cjs +1 -0
  976. package/tokens/label.js +8 -10
  977. package/tokens/link.cjs +1 -0
  978. package/tokens/link.js +101 -121
  979. package/tokens/list.cjs +1 -0
  980. package/tokens/list.js +75 -84
  981. package/tokens/loader.cjs +1 -0
  982. package/tokens/loader.d.ts +9 -0
  983. package/tokens/loader.js +124 -143
  984. package/tokens/menu.cjs +1 -0
  985. package/tokens/menu.js +19 -23
  986. package/tokens/modal.cjs +1 -0
  987. package/tokens/modal.js +88 -104
  988. package/tokens/price.cjs +1 -0
  989. package/tokens/price.js +52 -52
  990. package/tokens/progressbar.cjs +1 -0
  991. package/tokens/progressbar.js +46 -56
  992. package/tokens/radiogroup.cjs +9 -0
  993. package/tokens/radiogroup.js +95 -117
  994. package/tokens/radius.cjs +1 -0
  995. package/tokens/radius.js +12 -12
  996. package/tokens/rating.cjs +1 -0
  997. package/tokens/rating.js +67 -79
  998. package/tokens/reset.cjs +1 -0
  999. package/tokens/reset.js +4 -4
  1000. package/tokens/row.cjs +1 -0
  1001. package/tokens/row.js +4 -8
  1002. package/tokens/scroll.cjs +1 -0
  1003. package/tokens/scroll.js +100 -112
  1004. package/tokens/search.cjs +1 -0
  1005. package/tokens/search.js +37 -43
  1006. package/tokens/searchModal.cjs +1 -0
  1007. package/tokens/searchModal.js +178 -200
  1008. package/tokens/select.cjs +1 -0
  1009. package/tokens/select.js +122 -153
  1010. package/tokens/separator.cjs +1 -0
  1011. package/tokens/separator.js +59 -63
  1012. package/tokens/shadow.cjs +1 -0
  1013. package/tokens/shadow.js +17 -22
  1014. package/tokens/sidebar.cjs +1 -0
  1015. package/tokens/sidebar.js +102 -126
  1016. package/tokens/skeleton.cjs +1 -0
  1017. package/tokens/skeleton.js +60 -74
  1018. package/tokens/slider.cjs +1 -0
  1019. package/tokens/slider.js +43 -45
  1020. package/tokens/sliderDots.cjs +1 -0
  1021. package/tokens/sliderDots.js +30 -36
  1022. package/tokens/snackbar.cjs +1 -0
  1023. package/tokens/snackbar.js +164 -178
  1024. package/tokens/spacing.cjs +1 -0
  1025. package/tokens/spacing.js +32 -35
  1026. package/tokens/stepper.cjs +1 -0
  1027. package/tokens/stepper.js +130 -138
  1028. package/tokens/switch.cjs +1 -0
  1029. package/tokens/switch.js +67 -81
  1030. package/tokens/table.cjs +1 -0
  1031. package/tokens/table.js +126 -148
  1032. package/tokens/tabs.cjs +1 -0
  1033. package/tokens/tabs.js +76 -102
  1034. package/tokens/textarea.cjs +1 -0
  1035. package/tokens/textarea.js +78 -100
  1036. package/tokens/toggle.cjs +1 -0
  1037. package/tokens/toggle.js +17 -19
  1038. package/tokens/tooltip.cjs +1 -0
  1039. package/tokens/tooltip.js +69 -71
  1040. package/tokens/truncate.cjs +1 -0
  1041. package/tokens/truncate.js +10 -12
  1042. package/tokens/types/index.types.cjs +1 -0
  1043. package/tokens/types/index.types.js +6 -4
  1044. package/tokens/typography.cjs +1 -0
  1045. package/tokens/typography.js +121 -147
  1046. package/tokens/utils.cjs +1 -0
  1047. package/tokens/utils.d.ts +1 -4
  1048. package/tokens/utils.js +63 -102
  1049. package/tokens/values.cjs +1 -0
  1050. package/tokens/values.js +72 -98
  1051. package/tokens/wrapper.cjs +1 -0
  1052. package/tokens/wrapper.js +30 -32
  1053. package/tokens/zIndex.cjs +1 -0
  1054. package/tokens/zIndex.js +11 -11
  1055. package/types/accesability.cjs +1 -0
  1056. package/types/accesability.js +6 -4
  1057. package/types/button.cjs +1 -0
  1058. package/types/button.js +10 -6
  1059. package/types/card.cjs +1 -0
  1060. package/types/card.js +8 -5
  1061. package/types/carousel.cjs +1 -0
  1062. package/types/carousel.js +10 -6
  1063. package/types/common.cjs +1 -0
  1064. package/types/common.js +8 -5
  1065. package/types/cursors.cjs +1 -0
  1066. package/types/cursors.js +6 -4
  1067. package/types/input.cjs +1 -0
  1068. package/types/input.js +8 -5
  1069. package/types/layout.cjs +1 -0
  1070. package/types/layout.js +6 -4
  1071. package/types/link.cjs +1 -0
  1072. package/types/link.js +8 -5
  1073. package/types/list.cjs +1 -0
  1074. package/types/list.js +6 -4
  1075. package/types/separator.cjs +1 -0
  1076. package/types/separator.js +8 -5
  1077. package/types/skeleton.cjs +1 -0
  1078. package/types/skeleton.js +6 -4
  1079. package/types/snackbar.cjs +1 -0
  1080. package/types/snackbar.js +8 -5
  1081. package/types/stepper.cjs +1 -0
  1082. package/types/stepper.js +8 -5
  1083. package/types/typography.cjs +1 -0
  1084. package/types/typography.js +10 -6
  1085. package/types/wrapper.cjs +1 -0
  1086. package/types/wrapper.js +6 -4
  1087. package/utils/a2ui/constants.cjs +1 -0
  1088. package/utils/a2ui/constants.d.ts +7 -0
  1089. package/utils/a2ui/constants.js +16 -0
  1090. package/utils/a2ui/helpers/attributes.cjs +1 -0
  1091. package/utils/a2ui/helpers/attributes.d.ts +11 -0
  1092. package/utils/a2ui/helpers/attributes.js +58 -0
  1093. package/utils/a2ui/helpers/index.d.ts +4 -0
  1094. package/utils/a2ui/helpers/misc.cjs +1 -0
  1095. package/utils/a2ui/helpers/misc.d.ts +19 -0
  1096. package/utils/a2ui/helpers/misc.js +87 -0
  1097. package/utils/a2ui/helpers/options.cjs +1 -0
  1098. package/utils/a2ui/helpers/options.d.ts +48 -0
  1099. package/utils/a2ui/helpers/options.js +66 -0
  1100. package/utils/a2ui/helpers/styling.cjs +1 -0
  1101. package/utils/a2ui/helpers/styling.d.ts +7 -0
  1102. package/utils/a2ui/helpers/styling.js +28 -0
  1103. package/utils/a2ui/index.d.ts +2 -0
  1104. package/utils/a2ui/render.cjs +1 -0
  1105. package/utils/a2ui/render.d.ts +5 -0
  1106. package/utils/a2ui/render.js +92 -0
  1107. package/utils/a2ui/renderers/accordion.cjs +1 -0
  1108. package/utils/a2ui/renderers/accordion.d.ts +8 -0
  1109. package/utils/a2ui/renderers/accordion.js +39 -0
  1110. package/utils/a2ui/renderers/avatar.cjs +1 -0
  1111. package/utils/a2ui/renderers/avatar.d.ts +10 -0
  1112. package/utils/a2ui/renderers/avatar.js +75 -0
  1113. package/utils/a2ui/renderers/badge.cjs +1 -0
  1114. package/utils/a2ui/renderers/badge.d.ts +4 -0
  1115. package/utils/a2ui/renderers/badge.js +21 -0
  1116. package/utils/a2ui/renderers/box.cjs +1 -0
  1117. package/utils/a2ui/renderers/box.d.ts +5 -0
  1118. package/utils/a2ui/renderers/box.js +22 -0
  1119. package/utils/a2ui/renderers/breadcrumbs.cjs +1 -0
  1120. package/utils/a2ui/renderers/breadcrumbs.d.ts +4 -0
  1121. package/utils/a2ui/renderers/breadcrumbs.js +31 -0
  1122. package/utils/a2ui/renderers/button.cjs +1 -0
  1123. package/utils/a2ui/renderers/button.d.ts +5 -0
  1124. package/utils/a2ui/renderers/button.js +27 -0
  1125. package/utils/a2ui/renderers/card.cjs +1 -0
  1126. package/utils/a2ui/renderers/card.d.ts +14 -0
  1127. package/utils/a2ui/renderers/card.js +105 -0
  1128. package/utils/a2ui/renderers/carousel.cjs +1 -0
  1129. package/utils/a2ui/renderers/carousel.d.ts +6 -0
  1130. package/utils/a2ui/renderers/carousel.js +56 -0
  1131. package/utils/a2ui/renderers/chart.cjs +1 -0
  1132. package/utils/a2ui/renderers/chart.d.ts +4 -0
  1133. package/utils/a2ui/renderers/chart.js +168 -0
  1134. package/utils/a2ui/renderers/chat.cjs +1 -0
  1135. package/utils/a2ui/renderers/chat.d.ts +6 -0
  1136. package/utils/a2ui/renderers/chat.js +32 -0
  1137. package/utils/a2ui/renderers/checkbox.cjs +1 -0
  1138. package/utils/a2ui/renderers/checkbox.d.ts +11 -0
  1139. package/utils/a2ui/renderers/checkbox.js +43 -0
  1140. package/utils/a2ui/renderers/content-carousel.cjs +1 -0
  1141. package/utils/a2ui/renderers/content-carousel.d.ts +5 -0
  1142. package/utils/a2ui/renderers/content-carousel.js +43 -0
  1143. package/utils/a2ui/renderers/counter.cjs +1 -0
  1144. package/utils/a2ui/renderers/counter.d.ts +5 -0
  1145. package/utils/a2ui/renderers/counter.js +15 -0
  1146. package/utils/a2ui/renderers/drag-and-drop.cjs +1 -0
  1147. package/utils/a2ui/renderers/drag-and-drop.d.ts +7 -0
  1148. package/utils/a2ui/renderers/drag-and-drop.js +88 -0
  1149. package/utils/a2ui/renderers/dropdown.cjs +1 -0
  1150. package/utils/a2ui/renderers/dropdown.d.ts +6 -0
  1151. package/utils/a2ui/renderers/dropdown.js +33 -0
  1152. package/utils/a2ui/renderers/form.cjs +1 -0
  1153. package/utils/a2ui/renderers/form.d.ts +9 -0
  1154. package/utils/a2ui/renderers/form.js +97 -0
  1155. package/utils/a2ui/renderers/header.cjs +1 -0
  1156. package/utils/a2ui/renderers/header.d.ts +5 -0
  1157. package/utils/a2ui/renderers/header.js +35 -0
  1158. package/utils/a2ui/renderers/icon.cjs +1 -0
  1159. package/utils/a2ui/renderers/icon.d.ts +5 -0
  1160. package/utils/a2ui/renderers/icon.js +20 -0
  1161. package/utils/a2ui/renderers/image.cjs +1 -0
  1162. package/utils/a2ui/renderers/image.d.ts +1025 -0
  1163. package/utils/a2ui/renderers/image.js +80 -0
  1164. package/utils/a2ui/renderers/index.cjs +1 -0
  1165. package/utils/a2ui/renderers/index.d.ts +3 -0
  1166. package/utils/a2ui/renderers/index.js +95 -0
  1167. package/utils/a2ui/renderers/label.cjs +1 -0
  1168. package/utils/a2ui/renderers/label.d.ts +5 -0
  1169. package/utils/a2ui/renderers/label.js +14 -0
  1170. package/utils/a2ui/renderers/layout.cjs +1 -0
  1171. package/utils/a2ui/renderers/layout.d.ts +10 -0
  1172. package/utils/a2ui/renderers/layout.js +78 -0
  1173. package/utils/a2ui/renderers/link.cjs +1 -0
  1174. package/utils/a2ui/renderers/link.d.ts +5 -0
  1175. package/utils/a2ui/renderers/link.js +22 -0
  1176. package/utils/a2ui/renderers/list.cjs +1 -0
  1177. package/utils/a2ui/renderers/list.d.ts +4 -0
  1178. package/utils/a2ui/renderers/list.js +23 -0
  1179. package/utils/a2ui/renderers/loader.cjs +1 -0
  1180. package/utils/a2ui/renderers/loader.d.ts +4 -0
  1181. package/utils/a2ui/renderers/loader.js +16 -0
  1182. package/utils/a2ui/renderers/menu.cjs +1 -0
  1183. package/utils/a2ui/renderers/menu.d.ts +5 -0
  1184. package/utils/a2ui/renderers/menu.js +36 -0
  1185. package/utils/a2ui/renderers/modal.cjs +1 -0
  1186. package/utils/a2ui/renderers/modal.d.ts +6 -0
  1187. package/utils/a2ui/renderers/modal.js +21 -0
  1188. package/utils/a2ui/renderers/notification.cjs +1 -0
  1189. package/utils/a2ui/renderers/notification.d.ts +6 -0
  1190. package/utils/a2ui/renderers/notification.js +83 -0
  1191. package/utils/a2ui/renderers/price.cjs +1 -0
  1192. package/utils/a2ui/renderers/price.d.ts +4 -0
  1193. package/utils/a2ui/renderers/price.js +19 -0
  1194. package/utils/a2ui/renderers/progress-bar.cjs +1 -0
  1195. package/utils/a2ui/renderers/progress-bar.d.ts +4 -0
  1196. package/utils/a2ui/renderers/progress-bar.js +23 -0
  1197. package/utils/a2ui/renderers/radio-group.cjs +1 -0
  1198. package/utils/a2ui/renderers/radio-group.d.ts +5 -0
  1199. package/utils/a2ui/renderers/radio-group.js +27 -0
  1200. package/utils/a2ui/renderers/rating.cjs +1 -0
  1201. package/utils/a2ui/renderers/rating.d.ts +5 -0
  1202. package/utils/a2ui/renderers/rating.js +26 -0
  1203. package/utils/a2ui/renderers/search.cjs +1 -0
  1204. package/utils/a2ui/renderers/search.d.ts +6 -0
  1205. package/utils/a2ui/renderers/search.js +89 -0
  1206. package/utils/a2ui/renderers/select.cjs +1 -0
  1207. package/utils/a2ui/renderers/select.d.ts +5 -0
  1208. package/utils/a2ui/renderers/select.js +33 -0
  1209. package/utils/a2ui/renderers/separator.cjs +1 -0
  1210. package/utils/a2ui/renderers/separator.d.ts +4 -0
  1211. package/utils/a2ui/renderers/separator.js +37 -0
  1212. package/utils/a2ui/renderers/sidebar.cjs +1 -0
  1213. package/utils/a2ui/renderers/sidebar.d.ts +5 -0
  1214. package/utils/a2ui/renderers/sidebar.js +42 -0
  1215. package/utils/a2ui/renderers/skeleton.cjs +1 -0
  1216. package/utils/a2ui/renderers/skeleton.d.ts +5 -0
  1217. package/utils/a2ui/renderers/skeleton.js +29 -0
  1218. package/utils/a2ui/renderers/slider.cjs +1 -0
  1219. package/utils/a2ui/renderers/slider.d.ts +6 -0
  1220. package/utils/a2ui/renderers/slider.js +34 -0
  1221. package/utils/a2ui/renderers/stepper.cjs +1 -0
  1222. package/utils/a2ui/renderers/stepper.d.ts +5 -0
  1223. package/utils/a2ui/renderers/stepper.js +30 -0
  1224. package/utils/a2ui/renderers/switch.cjs +1 -0
  1225. package/utils/a2ui/renderers/switch.d.ts +5 -0
  1226. package/utils/a2ui/renderers/switch.js +22 -0
  1227. package/utils/a2ui/renderers/table.cjs +1 -0
  1228. package/utils/a2ui/renderers/table.d.ts +5 -0
  1229. package/utils/a2ui/renderers/table.js +36 -0
  1230. package/utils/a2ui/renderers/tabs.cjs +1 -0
  1231. package/utils/a2ui/renderers/tabs.d.ts +5 -0
  1232. package/utils/a2ui/renderers/tabs.js +40 -0
  1233. package/utils/a2ui/renderers/toggle.cjs +1 -0
  1234. package/utils/a2ui/renderers/toggle.d.ts +5 -0
  1235. package/utils/a2ui/renderers/toggle.js +14 -0
  1236. package/utils/a2ui/renderers/tooltip.cjs +1 -0
  1237. package/utils/a2ui/renderers/tooltip.d.ts +5 -0
  1238. package/utils/a2ui/renderers/tooltip.js +22 -0
  1239. package/utils/a2ui/renderers/truncate.cjs +1 -0
  1240. package/utils/a2ui/renderers/truncate.d.ts +4 -0
  1241. package/utils/a2ui/renderers/truncate.js +13 -0
  1242. package/utils/a2ui/renderers/typography.cjs +1 -0
  1243. package/utils/a2ui/renderers/typography.d.ts +4 -0
  1244. package/utils/a2ui/renderers/typography.js +17 -0
  1245. package/utils/a2ui/types.d.ts +19 -0
  1246. package/utils/a2ui.d.ts +2 -6
  1247. package/utils/animationFrame.cjs +1 -0
  1248. package/utils/animationFrame.js +17 -16
  1249. package/utils/common.cjs +1 -0
  1250. package/utils/common.js +4 -5
  1251. package/utils/date.cjs +1 -0
  1252. package/utils/date.js +7 -11
  1253. package/utils/focus.cjs +1 -0
  1254. package/utils/focus.js +31 -50
  1255. package/utils/getContrastColor.cjs +1 -0
  1256. package/utils/getContrastColor.js +6 -6
  1257. package/utils/helpers.cjs +2 -0
  1258. package/utils/helpers.js +46 -59
  1259. package/utils/layout.cjs +1 -0
  1260. package/utils/layout.js +25 -40
  1261. package/utils/math.cjs +1 -0
  1262. package/utils/math.js +6 -10
  1263. package/utils/setInRange.cjs +1 -0
  1264. package/utils/setInRange.js +6 -10
  1265. package/utils/uniqueKeys.cjs +1 -0
  1266. package/utils/uniqueKeys.js +4 -4
  1267. package/_virtual/Area.js +0 -7
  1268. package/_virtual/Area2.js +0 -4
  1269. package/_virtual/D3ShapeFactories.js +0 -4
  1270. package/_virtual/GridColumns.js +0 -7
  1271. package/_virtual/GridColumns2.js +0 -4
  1272. package/_virtual/GridRows.js +0 -7
  1273. package/_virtual/GridRows2.js +0 -4
  1274. package/_virtual/Line.js +0 -4
  1275. package/_virtual/LinePath.js +0 -7
  1276. package/_virtual/LinePath2.js +0 -4
  1277. package/_virtual/ParentSize.js +0 -7
  1278. package/_virtual/ParentSize2.js +0 -4
  1279. package/_virtual/_commonjsHelpers.js +0 -28
  1280. package/_virtual/accessors.js +0 -5
  1281. package/_virtual/accessors2.js +0 -4
  1282. package/_virtual/align.js +0 -4
  1283. package/_virtual/array.js +0 -4
  1284. package/_virtual/array2.js +0 -4
  1285. package/_virtual/ascending.js +0 -4
  1286. package/_virtual/band.js +0 -4
  1287. package/_virtual/base.js +0 -4
  1288. package/_virtual/basis.js +0 -4
  1289. package/_virtual/basisClosed.js +0 -4
  1290. package/_virtual/bin.js +0 -4
  1291. package/_virtual/bisect.js +0 -4
  1292. package/_virtual/bisector.js +0 -4
  1293. package/_virtual/blur.js +0 -4
  1294. package/_virtual/clamp.js +0 -4
  1295. package/_virtual/color.js +0 -4
  1296. package/_virtual/color2.js +0 -4
  1297. package/_virtual/constant.js +0 -4
  1298. package/_virtual/constant2.js +0 -4
  1299. package/_virtual/constant3.js +0 -4
  1300. package/_virtual/constant4.js +0 -4
  1301. package/_virtual/continuous.js +0 -4
  1302. package/_virtual/count.js +0 -4
  1303. package/_virtual/createColorInterpolator.js +0 -4
  1304. package/_virtual/cross.js +0 -4
  1305. package/_virtual/cubehelix.js +0 -4
  1306. package/_virtual/cubehelix2.js +0 -4
  1307. package/_virtual/cumsum.js +0 -4
  1308. package/_virtual/date.js +0 -4
  1309. package/_virtual/day.js +0 -4
  1310. package/_virtual/debounce.js +0 -7
  1311. package/_virtual/decompose.js +0 -4
  1312. package/_virtual/defaultLocale.js +0 -4
  1313. package/_virtual/defaultLocale2.js +0 -4
  1314. package/_virtual/define.js +0 -4
  1315. package/_virtual/descending.js +0 -4
  1316. package/_virtual/deviation.js +0 -4
  1317. package/_virtual/difference.js +0 -4
  1318. package/_virtual/discrete.js +0 -4
  1319. package/_virtual/disjoint.js +0 -4
  1320. package/_virtual/diverging.js +0 -4
  1321. package/_virtual/domain.js +0 -4
  1322. package/_virtual/duration.js +0 -4
  1323. package/_virtual/every.js +0 -4
  1324. package/_virtual/exponent.js +0 -4
  1325. package/_virtual/exponent2.js +0 -4
  1326. package/_virtual/extent.js +0 -4
  1327. package/_virtual/filter.js +0 -4
  1328. package/_virtual/formatDecimal.js +0 -4
  1329. package/_virtual/formatGroup.js +0 -4
  1330. package/_virtual/formatNumerals.js +0 -4
  1331. package/_virtual/formatPrefixAuto.js +0 -4
  1332. package/_virtual/formatRounded.js +0 -4
  1333. package/_virtual/formatSpecifier.js +0 -4
  1334. package/_virtual/formatTrim.js +0 -4
  1335. package/_virtual/formatTypes.js +0 -4
  1336. package/_virtual/freedmanDiaconis.js +0 -4
  1337. package/_virtual/fsum.js +0 -4
  1338. package/_virtual/getBandwidth.js +0 -7
  1339. package/_virtual/getBandwidth2.js +0 -4
  1340. package/_virtual/getScaleBandwidth.js +0 -4
  1341. package/_virtual/greatest.js +0 -4
  1342. package/_virtual/greatestIndex.js +0 -4
  1343. package/_virtual/group.js +0 -4
  1344. package/_virtual/groupSort.js +0 -4
  1345. package/_virtual/hcl.js +0 -4
  1346. package/_virtual/hour.js +0 -4
  1347. package/_virtual/hsl.js +0 -4
  1348. package/_virtual/hue.js +0 -4
  1349. package/_virtual/identity.js +0 -4
  1350. package/_virtual/identity2.js +0 -4
  1351. package/_virtual/identity3.js +0 -4
  1352. package/_virtual/index.js +0 -7
  1353. package/_virtual/index10.js +0 -6
  1354. package/_virtual/index11.js +0 -7
  1355. package/_virtual/index12.js +0 -4
  1356. package/_virtual/index13.js +0 -4
  1357. package/_virtual/index14.js +0 -4
  1358. package/_virtual/index15.js +0 -4
  1359. package/_virtual/index16.js +0 -4
  1360. package/_virtual/index17.js +0 -4
  1361. package/_virtual/index18.js +0 -4
  1362. package/_virtual/index19.js +0 -4
  1363. package/_virtual/index2.js +0 -7
  1364. package/_virtual/index3.js +0 -4
  1365. package/_virtual/index4.js +0 -6
  1366. package/_virtual/index5.js +0 -6
  1367. package/_virtual/index6.js +0 -6
  1368. package/_virtual/index7.js +0 -4
  1369. package/_virtual/index8.js +0 -4
  1370. package/_virtual/index9.js +0 -4
  1371. package/_virtual/init.js +0 -4
  1372. package/_virtual/interpolate.js +0 -4
  1373. package/_virtual/intersection.js +0 -4
  1374. package/_virtual/interval.js +0 -4
  1375. package/_virtual/isUtcScale.js +0 -4
  1376. package/_virtual/isoFormat.js +0 -4
  1377. package/_virtual/isoParse.js +0 -4
  1378. package/_virtual/lab.js +0 -4
  1379. package/_virtual/lab2.js +0 -4
  1380. package/_virtual/least.js +0 -4
  1381. package/_virtual/leastIndex.js +0 -4
  1382. package/_virtual/linear.js +0 -4
  1383. package/_virtual/locale.js +0 -4
  1384. package/_virtual/locale2.js +0 -4
  1385. package/_virtual/log.js +0 -4
  1386. package/_virtual/map.js +0 -4
  1387. package/_virtual/math.js +0 -4
  1388. package/_virtual/max.js +0 -4
  1389. package/_virtual/maxIndex.js +0 -4
  1390. package/_virtual/mean.js +0 -4
  1391. package/_virtual/median.js +0 -4
  1392. package/_virtual/memoize.js +0 -7
  1393. package/_virtual/merge.js +0 -4
  1394. package/_virtual/millisecond.js +0 -4
  1395. package/_virtual/min.js +0 -4
  1396. package/_virtual/minIndex.js +0 -4
  1397. package/_virtual/minute.js +0 -4
  1398. package/_virtual/mode.js +0 -4
  1399. package/_virtual/month.js +0 -4
  1400. package/_virtual/nice.js +0 -4
  1401. package/_virtual/nice2.js +0 -4
  1402. package/_virtual/nice3.js +0 -4
  1403. package/_virtual/number.js +0 -4
  1404. package/_virtual/number2.js +0 -4
  1405. package/_virtual/number3.js +0 -4
  1406. package/_virtual/numberArray.js +0 -4
  1407. package/_virtual/object.js +0 -4
  1408. package/_virtual/ordinal.js +0 -7
  1409. package/_virtual/ordinal2.js +0 -4
  1410. package/_virtual/ordinal3.js +0 -4
  1411. package/_virtual/padding.js +0 -4
  1412. package/_virtual/pairs.js +0 -4
  1413. package/_virtual/parse.js +0 -4
  1414. package/_virtual/permute.js +0 -4
  1415. package/_virtual/piecewise.js +0 -4
  1416. package/_virtual/pow.js +0 -4
  1417. package/_virtual/precisionFixed.js +0 -4
  1418. package/_virtual/precisionPrefix.js +0 -4
  1419. package/_virtual/precisionRound.js +0 -4
  1420. package/_virtual/quantile.js +0 -4
  1421. package/_virtual/quantile2.js +0 -4
  1422. package/_virtual/quantize.js +0 -4
  1423. package/_virtual/quantize2.js +0 -4
  1424. package/_virtual/quickselect.js +0 -4
  1425. package/_virtual/radial.js +0 -4
  1426. package/_virtual/range.js +0 -4
  1427. package/_virtual/range2.js +0 -4
  1428. package/_virtual/rank.js +0 -4
  1429. package/_virtual/react-is.development.js +0 -4
  1430. package/_virtual/react-is.production.min.js +0 -4
  1431. package/_virtual/reduce.js +0 -4
  1432. package/_virtual/reverse.js +0 -4
  1433. package/_virtual/reverse2.js +0 -4
  1434. package/_virtual/rgb.js +0 -4
  1435. package/_virtual/round.js +0 -4
  1436. package/_virtual/round2.js +0 -4
  1437. package/_virtual/scaleOperator.js +0 -4
  1438. package/_virtual/scan.js +0 -4
  1439. package/_virtual/scott.js +0 -4
  1440. package/_virtual/second.js +0 -4
  1441. package/_virtual/sequential.js +0 -4
  1442. package/_virtual/sequentialQuantile.js +0 -4
  1443. package/_virtual/setNumberOrNumberAccessor.js +0 -4
  1444. package/_virtual/shuffle.js +0 -4
  1445. package/_virtual/some.js +0 -4
  1446. package/_virtual/sort.js +0 -4
  1447. package/_virtual/stackOffset.js +0 -7
  1448. package/_virtual/stackOffset2.js +0 -4
  1449. package/_virtual/stackOrder.js +0 -7
  1450. package/_virtual/stackOrder2.js +0 -4
  1451. package/_virtual/string.js +0 -4
  1452. package/_virtual/sturges.js +0 -4
  1453. package/_virtual/subset.js +0 -4
  1454. package/_virtual/sum.js +0 -4
  1455. package/_virtual/superset.js +0 -4
  1456. package/_virtual/symlog.js +0 -4
  1457. package/_virtual/threshold.js +0 -4
  1458. package/_virtual/tickFormat.js +0 -4
  1459. package/_virtual/ticks.js +0 -4
  1460. package/_virtual/ticks2.js +0 -4
  1461. package/_virtual/time.js +0 -4
  1462. package/_virtual/transpose.js +0 -4
  1463. package/_virtual/union.js +0 -4
  1464. package/_virtual/unknown.js +0 -4
  1465. package/_virtual/useParentSize.js +0 -4
  1466. package/_virtual/utcTime.js +0 -4
  1467. package/_virtual/value.js +0 -4
  1468. package/_virtual/variance.js +0 -4
  1469. package/_virtual/week.js +0 -4
  1470. package/_virtual/year.js +0 -4
  1471. package/_virtual/zero.js +0 -4
  1472. package/_virtual/zip.js +0 -4
  1473. package/_virtual/zoom.js +0 -4
  1474. package/components/atoms/Box/constants.js +0 -4
  1475. package/components/layout/Row/constants.js +0 -4
  1476. package/components/molecules/Tooltip/Tooltip.types.js +0 -4
  1477. package/stories/Introduction/ThemeJsonPreview.d.ts +0 -4
  1478. package/stories/components/TokenViewer/TokenViewer.d.ts +0 -2
  1479. package/stories/components/TokenViewer/TokenViewer.types.d.ts +0 -12
  1480. package/stories/components/TokenViewer/TokenViewerStyled.d.ts +0 -11
  1481. package/stories/components/TokenViewer/index.d.ts +0 -1
  1482. package/test-utils.d.ts +0 -9
  1483. package/utils/a2ui.js +0 -1227
package/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # GridKit – Grid Dynamics Design System
2
2
 
3
- ![GridKit Logo](./gridKit_logo.png)
3
+ ![GridKit Logo](https://unpkg.com/gd-design-library/gridKit_logo.png)
4
4
 
5
5
  **GridKit** is the official design system and component library from Grid Dynamics.
6
6
  It provides a set of reusable, accessible, and themeable React UI components designed to accelerate the development of consistent, scalable applications – with a focus on e-commerce and enterprise platforms.
@@ -9,13 +9,17 @@ It provides a set of reusable, accessible, and themeable React UI components des
9
9
 
10
10
  ## ✨ Features
11
11
 
12
- - 🧩 55+ modular components (atoms, molecules, organisms, layout)
12
+ - 🧩 64 modular components (atoms, molecules, organisms, layout)
13
13
  - 🎨 Theming support with dynamic runtime switching
14
14
  - 🔗 Design tokens synced with Figma
15
15
  - 📦 Optimized build using Vite
16
16
  - 📚 Fully documented via Storybook
17
17
  - ♿ WCAG 2.1 AA-compliant components
18
18
  - ⚙️ Type-safe and fully tested with Vitest + RTL
19
+ - 🤖 Built-in AI integration — LLM → React/TSX code generation or A2UI JSON spec rendering
20
+ - 🔄 A2UI mode: LLMs generate structured JSON specs validated against `ui-specification-schema.json`, rendered at runtime by `renderA2UISpec` with zero custom JSX
21
+ - 🎯 `buildA2UISystemPrompt` keeps LLM instructions in sync with the live component map — no manual prompt maintenance
22
+ - 🔌 Action system: define `A2UIActionDefinition[]` once, share between `buildA2UISystemPrompt` (LLM constraint) and `renderA2UISpec` (runtime handler wiring)
19
23
 
20
24
  ---
21
25
 
@@ -29,14 +33,6 @@ npm install gd-design-library @emotion/styled @emotion/react
29
33
  yarn add gd-design-library @emotion/styled @emotion/react
30
34
  ```
31
35
 
32
- Make sure you're using Node.js **version ≥22.17.0**.
33
-
34
- Note: Since this package is private, you need to configure your `.npmrc` with a valid auth token:
35
-
36
- ```bash
37
- //registry.npmjs.org/:_authToken=<npm_token>
38
- ```
39
-
40
36
  ---
41
37
 
42
38
  ## 🧑‍💻 Getting Started
@@ -124,6 +120,145 @@ yarn format:check
124
120
 
125
121
  ---
126
122
 
123
+ ## 🔍 Build Verification
124
+
125
+ GridKit ships a 5-phase verification pipeline that runs automatically after every `yarn build:ui`. It checks that the published package works correctly for all consumers — ESM, CJS, SSR, and tree-shaking.
126
+
127
+ ### Commands
128
+
129
+ | Command | What it does |
130
+ | ---------------- | --------------------------------------------------------------------- |
131
+ | `yarn build:ui` | Full build → phases 1–5 → summary |
132
+ | `yarn verify:ui` | Phases 1–5 + summary, skips rebuild — use after an existing build |
133
+ | `yarn view:ui` | Generates `report.html` from JSON reports and opens it in the browser |
134
+
135
+ `yarn build:ui` runs in order: readme stats check → AI docs generation → type-check → lint → Vite build → all 5 phases → combined terminal summary.
136
+
137
+ `yarn view:ui` can be run any time after `yarn verify:ui` (or `yarn build:ui`) has written JSON reports to `libs/ui/scripts/output/`. It opens a dark-theme HTML dashboard with charts and tables for every phase — no server needed.
138
+
139
+ ### Visual dashboard
140
+
141
+ ```bash
142
+ yarn verify:ui && yarn view:ui
143
+ # or after a full build:
144
+ yarn build:ui && yarn view:ui
145
+ ```
146
+
147
+ The dashboard (`libs/ui/scripts/output/report.html`) includes:
148
+
149
+ - **Overview** — totals banner, 5 phase status cards, summary charts
150
+ - **Phase 1** — exports by category (donut), dependency status (pie), warnings table
151
+ - **Phase 2** — violations list, per-component KB footprint bar chart (yellow = cross-component deps)
152
+ - **Phase 3** — errors with full publint issue list, warnings by type (pie), circular deps breakdown
153
+ - **Phase 4** — RSC readiness donut, browser globals by context (pie), unguarded globals table (file · line · global · context)
154
+ - **Phase 5** — CJS errors and warnings
155
+
156
+ To generate without opening: `node libs/ui/scripts/view-reports.mjs --no-open`
157
+
158
+ ### What each phase checks
159
+
160
+ | Phase | Script | Checks |
161
+ | -------------------- | --------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
162
+ | 1 · Public API Audit | `audit-api.mjs` | All exported symbols traceable from `src/index.ts`; undeclared / unused / bundled deps; exports gap in `package.json` |
163
+ | 2 · Tree-Shaking | `treeshake-check.mjs` | Import graph built from `dist/`; cross-component contamination per probe; `sideEffects` field; per-component KB footprint |
164
+ | 3 · Build Lint | `build-lint.mjs` | Circular imports (structural vs barrel); `package.json` exports validity; `.d.ts` completeness; private/internal leaks; `"use client"` consistency; `publint` standards check |
165
+ | 4 · SSR Safety | `ssr-check.mjs` | Node.js `import()` test; unguarded browser globals; RSC `"use client"` coverage; Emotion SSR guidance |
166
+ | 5 · CJS Verification | `cjs-check.mjs` | `.cjs` output exists; `require()` works in Node.js; `exports` map has `"require"` conditions; `.cjs` uses CommonJS syntax; `"main"` field points to CJS |
167
+
168
+ ### Terminal summary
169
+
170
+ After all phases run, a combined table is printed:
171
+
172
+ ```text
173
+ ╔══════════════════════════════════════════════════╗
174
+ ║ gd-design-library · Build Verify Summary ║
175
+ ╚══════════════════════════════════════════════════╝
176
+
177
+ Phase 1 ✓ Public API Audit 142 exports · 0 warnings
178
+ Phase 2 ✓ Tree-Shaking Check 0 violations
179
+ Phase 3 ⚠ Build Lint 0 errors · 3 warnings
180
+ Phase 4 ✓ SSR Safety Check 0 errors · 0 warnings
181
+ Phase 5 ✗ CJS Verification 1 errors · 0 warnings
182
+
183
+ ── Totals ──────────────────────────────────────────
184
+ Errors : 1
185
+ Warnings : 3
186
+ Violations : 0
187
+ ```
188
+
189
+ Status icons: `✓` pass · `⚠` warnings only · `✗` errors · `–` report not found (phase was not run).
190
+
191
+ ### Investigating failures
192
+
193
+ **Visual dashboard** — easiest way to explore all phases at once:
194
+
195
+ ```bash
196
+ yarn view:ui
197
+ ```
198
+
199
+ **Run a phase directly** — full console output with file paths and line numbers:
200
+
201
+ ```bash
202
+ node libs/ui/scripts/treeshake-check.mjs # Phase 2
203
+ node libs/ui/scripts/build-lint.mjs # Phase 3
204
+ node libs/ui/scripts/ssr-check.mjs # Phase 4
205
+
206
+ # --verbose for full import chains / all global usages:
207
+ node libs/ui/scripts/treeshake-check.mjs --verbose
208
+ node libs/ui/scripts/ssr-check.mjs --verbose
209
+ ```
210
+
211
+ Or via nx:
212
+
213
+ ```bash
214
+ nx run ui:treeshake-check
215
+ nx run ui:build-lint
216
+ nx run ui:ssr-check
217
+ ```
218
+
219
+ **Read the JSON report** directly — already written by `yarn verify:ui`:
220
+
221
+ ```bash
222
+ cat libs/ui/scripts/output/treeshake-report.json # Phase 2 — "violations"
223
+ cat libs/ui/scripts/output/build-lint-report.json # Phase 3 — "errors", "warnings"
224
+ cat libs/ui/scripts/output/ssr-report.json # Phase 4 — "errors", "warnings"
225
+ ```
226
+
227
+ ### JSON reports
228
+
229
+ Each phase writes to `libs/ui/scripts/output/`:
230
+
231
+ | File | Phase | Key fields |
232
+ | ------------------------ | ----- | ----------------------------------------------------------- |
233
+ | `public-api-map.json` | 1 | `totalExports`, `byCategory`, `exports` |
234
+ | `deps-map.json` | 1 | `analysis.undeclared`, `analysis.unusedDeps`, `warnings` |
235
+ | `treeshake-report.json` | 2 | `violations`, `probes`, `buildFormats` |
236
+ | `build-lint-report.json` | 3 | `errors`, `warnings`, `circularDeps` |
237
+ | `ssr-report.json` | 4 | `errors`, `warnings`, `nodeImport`, `browserGlobals`, `rsc` |
238
+ | `cjs-report.json` | 5 | `errors`, `warnings` |
239
+ | `report.html` | all | visual dashboard generated by `yarn view:ui` |
240
+
241
+ ### CI usage
242
+
243
+ Use `nx run ui:verify` for CI — runs all 5 phases with `--check` (exits 1 on any error) and `--json`:
244
+
245
+ ```bash
246
+ nx run ui:verify
247
+ ```
248
+
249
+ Individual phase targets:
250
+
251
+ ```bash
252
+ nx run ui:audit-api # Phase 1
253
+ nx run ui:treeshake-check # Phase 2
254
+ nx run ui:build-lint # Phase 3
255
+ nx run ui:ssr-check # Phase 4
256
+ nx run ui:cjs-check # Phase 5
257
+ nx run ui:view-reports # open dashboard (reads existing JSON reports)
258
+ ```
259
+
260
+ ---
261
+
127
262
  ## 🧰 Component Generator
128
263
 
129
264
  Use our CLI script to quickly scaffold new components:
@@ -331,6 +466,121 @@ See [`./ai/README.md`](./ai/README.md) for full documentation.
331
466
 
332
467
  ---
333
468
 
469
+ ## 🔄 A2UI Mode — LLM → JSON → UI
470
+
471
+ A2UI (Agent-to-UI) is a JSON protocol where an LLM produces a structured spec and GridKit renders it at runtime — no JSX required on the consuming side.
472
+
473
+ ### Two functions, one shared contract
474
+
475
+ | Function | Role |
476
+ | --------------------------------- | -------------------------------------------------------------------------------------------------------------------------------- |
477
+ | `buildA2UISystemPrompt(options?)` | Generates the LLM system instruction from the live component map. Injects your `actions` as the only available action types. |
478
+ | `renderA2UISpec(spec, actions?)` | Takes a validated `A2UISpec` and renders it as React components. Wires action `handler` callbacks from the same `actions` array. |
479
+
480
+ Pass the **same `A2UIActionDefinition[]` array** to both — it is the single source of truth for what actions the LLM can emit and what your app will handle.
481
+
482
+ ### `buildA2UISystemPrompt`
483
+
484
+ ```typescript
485
+ import { buildA2UISystemPrompt } from 'gd-design-library/ai';
486
+
487
+ const systemInstruction = buildA2UISystemPrompt({
488
+ agentId: 'shop-agent',
489
+ agentName: 'Shop Assistant',
490
+ context: 'E-commerce product catalog assistant for MyShop.',
491
+ imageSources: ['cdn.myshop.com'],
492
+ locale: 'en-US',
493
+ actions: [
494
+ {
495
+ type: 'add-to-cart',
496
+ description: 'Add a product to the cart. payload: { productId: string, quantity: number }',
497
+ handler: ({ payload }) => addToCart(payload),
498
+ },
499
+ {
500
+ type: 'open-checkout',
501
+ description: 'Navigate to the checkout flow. No payload required.',
502
+ handler: () => navigate('/checkout'),
503
+ },
504
+ ],
505
+ });
506
+ ```
507
+
508
+ Key options:
509
+
510
+ | Option | Description |
511
+ | ----------------------- | -------------------------------------------------------------------------------- |
512
+ | `agentId` / `agentName` | Identifiers placed in every generated spec's `metadata` |
513
+ | `context` | Free-form use-case description injected near the top of the prompt |
514
+ | `actions` | App-defined action types — the **only** way to make actions available to the LLM |
515
+ | `imageSources` | Restrict image `src` hosts; pass `[]` to disable remote images entirely |
516
+ | `locale` | BCP 47 locale code; auto-selects EU/US price formatting |
517
+ | `priceFormat` | `'us'` · `'eu'` · or a `PriceFormatCustom` object for full control |
518
+ | `customGuardrails` | Extra guardrail rules appended after the system-defined ones |
519
+ | `customRules` | Extra generation rules appended after the system-defined ones |
520
+ | `theme` | `'light'` (default) · `'dark'` · `'auto'` |
521
+
522
+ ### `renderA2UISpec`
523
+
524
+ ```tsx
525
+ import { renderA2UISpec } from 'gd-design-library';
526
+ import type { A2UIActionDefinition } from 'gd-design-library/ai';
527
+
528
+ const actions: A2UIActionDefinition[] = [
529
+ {
530
+ type: 'add-to-cart',
531
+ description: 'Add a product to the cart.',
532
+ handler: ({ payload }) => addToCart(payload),
533
+ },
534
+ ];
535
+
536
+ function AgentResponse({ spec }) {
537
+ return <>{renderA2UISpec(spec, actions)}</>;
538
+ }
539
+ ```
540
+
541
+ `renderA2UISpec` maps every `A2UIComponent` in the spec to the corresponding GridKit component, resolves layout (vertical / horizontal / grid), and dispatches action callbacks when user events fire. Returns `null` for empty or invalid specs.
542
+
543
+ ### Schema validation — `ui-specification-schema.json`
544
+
545
+ Every A2UI response should be validated before rendering. The schema is exported from the package:
546
+
547
+ ```typescript
548
+ import schema from 'gd-design-library/ai/ui-specification-schema.json';
549
+ import Ajv from 'ajv';
550
+
551
+ const ajv = new Ajv();
552
+ const validate = ajv.compile(schema);
553
+
554
+ if (!validate(spec)) {
555
+ console.error('Invalid A2UI spec:', validate.errors);
556
+ }
557
+ ```
558
+
559
+ For **Gemini** structured output, pass `A2UI_SPEC_SCHEMA` directly as `responseSchema` to enforce JSON shape at the model level:
560
+
561
+ ```typescript
562
+ import { buildA2UIGeminiRequest, A2UI_SPEC_SCHEMA } from 'gd-design-library/ai';
563
+
564
+ const model = genAI.getGenerativeModel({
565
+ model: 'gemini-2.5-flash',
566
+ generationConfig: {
567
+ responseMimeType: 'application/json',
568
+ responseSchema: A2UI_SPEC_SCHEMA,
569
+ },
570
+ });
571
+
572
+ const result = await model.generateContent(
573
+ buildA2UIGeminiRequest('Show a product analytics dashboard', {
574
+ agentId: 'analytics-agent',
575
+ context: 'Product analytics for an e-commerce platform.',
576
+ })
577
+ );
578
+ ```
579
+
580
+ The schema enforces the full `A2UISpec` structure including `version`, `metadata`, `ui.layout`, `ui.components`, and `ui.actions`. The agent service retries up to 3 times on validation failure.
581
+
582
+ ---
583
+
334
584
  ## 📘 Documentation
335
585
 
336
586
  Explore our hosted Storybook:
@@ -0,0 +1 @@
1
+ var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,i=Object.getPrototypeOf,a=Object.prototype.hasOwnProperty,o=(e,i,o,s)=>{if(i&&typeof i==`object`||typeof i==`function`)for(var c=r(i),l=0,u=c.length,d;l<u;l++)d=c[l],!a.call(e,d)&&d!==o&&t(e,d,{get:(e=>i[e]).bind(null,d),enumerable:!(s=n(i,d))||s.enumerable});return e},s=(n,r,a)=>(a=n==null?{}:e(i(n)),o(r||!n||!n.__esModule?t(a,`default`,{value:n,enumerable:!0}):a,n));exports.__toESM=s;
package/ai/README.md CHANGED
@@ -539,7 +539,7 @@ yarn test:ai:watch
539
539
 
540
540
  <!-- AUTO-GENERATED:COMPONENTS:START -->
541
541
 
542
- _65 components total — generated from `libs/ui/src/ai/schemas/` on 2026-04-09._
542
+ _66 components total — generated from `libs/ui/src/ai/schemas/` on 2026-05-05._
543
543
 
544
544
  ### Other
545
545
 
@@ -1197,13 +1197,39 @@ Multi-line text input organism with auto-growing rows, character count, attachme
1197
1197
  | `showAttachmentButton` | `boolean` | Whether to show the attachment action button |
1198
1198
  | `showSendButton` | `boolean` | Whether to show the send action button |
1199
1199
  | `sendButtonLabel` | `string` | Accessible label for the send button |
1200
- | _...+5 more_ | | |
1200
+ | _...+10 more_ | | |
1201
1201
 
1202
1202
  **Example:**
1203
1203
 
1204
1204
  <!-- prettier-ignore -->
1205
1205
  ```tsx
1206
- <InputArea value={message} onValueChange={setMessage} onSend={handleSend} showSendButton placeholder="Type a message..." />
1206
+ <InputArea value={message} showSendButton placeholder="Type a message..." actions={["send"]} />
1207
+ ```
1208
+
1209
+ #### AttachmentFile
1210
+
1211
+ **Complexity:** Low | **Import:** `import { AttachmentFile } from 'gd-design-library'`
1212
+
1213
+ File attachment chip that displays a selected file with its name, optional type and size metadata, and a remove action. Long file names truncate with ellipsis and show a tooltip on hover; long fileType values truncate with ellipsis. The separator between fileType and fileSize defaults to "·" and is configurable. Designed to render as a child of InputArea above the textarea, or standalone in any file-selection context.
1214
+
1215
+ <!-- prettier-ignore -->
1216
+ | Prop | Type | Description |
1217
+ | ------------------- | ------------ | ---------------------------------------------------------------------------------------------------------------- |
1218
+ | `fileName` | `string` | Name of the attached file displayed in the chip |
1219
+ | `fileType` | `string` | File type label shown below the file name (e.g. "PDF", "doc") |
1220
+ | `fileSize` | `string` | File size label shown below the file name (e.g. "1.2 MB") |
1221
+ | `separator` | `string` | Character rendered between fileType and fileSize in the meta row |
1222
+ | `fileIcon` | `ReactNode` | Custom icon replacing the default fileCopy icon. Use an Icon component sized xl (32px). |
1223
+ | `onRemove` | `() => void` | Callback fired when the remove button is clicked. The remove button is only rendered when this prop is provided. |
1224
+ | `removeButtonLabel` | `string` | Accessible aria-label for the remove button |
1225
+ | `disabled` | `boolean` | Disables the remove button |
1226
+ | _...+2 more_ | | |
1227
+
1228
+ **Example:**
1229
+
1230
+ <!-- prettier-ignore -->
1231
+ ```tsx
1232
+ <AttachmentFile fileName="report.pdf" fileType="PDF" fileSize="1.2 MB" onRemove={() => removeFile(id)} />
1207
1233
  ```
1208
1234
 
1209
1235
  ### Communication & Chat
@@ -0,0 +1 @@
1
+ const e=require(`../schemas/components/Icon.cjs`),t=require(`../schemas/components.cjs`);function n(e){let t={};for(let n of e){let e;e=n.enum&&n.enum.length>0?n.enum.map(e=>`"${e}"`).join(`|`):n.type,n.description&&(e+=` — ${n.description}`),t[n.name]=e}return t}function r(e,t){let n=[],r=e,i=!!e.a2uiName;if(t&&t.compositionTips.length>0&&n.push(...t.compositionTips),i)return n.length>0?n:void 0;let a=r.commonPatterns;if(a)for(let[e,t]of Object.entries(a)){let r=t.useCase??``,i=t.code?` Example: ${t.code}`:``;n.push(`${e}: ${r}${i}`)}let o=r.examples;if(Array.isArray(o))for(let e of o)typeof e==`string`&&n.push(e);let s=r.troubleshooting;if(s)for(let[e,t]of Object.entries(s))n.push(`Troubleshooting — ${e}: ${t}`);return n.length>0?n:void 0}function i(){let e={};for(let i of t.aiComponentsSchema.components){let a=i;if(!a.a2uiName)continue;let o=t.componentModulesByName.get(a.name);if(e[a.a2uiName]={component:a.name,import:a.import,description:a.description,props:n(a.props),notes:r(a,o),category:a.category,complexity:a.complexity},a.a2uiSubcomponents){let t=a.subcomponents;for(let[r,i]of Object.entries(a.a2uiSubcomponents)){let s=t?.[i.component]?.description??a.description;e[r]={component:i.component,import:a.import,description:s,props:n(i.props),notes:o&&o.compositionTips.length>0?o.compositionTips:void 0,category:a.category?`${a.category} Subcomponents`:`Card Subcomponents`,complexity:a.complexity}}}}return e}var a=i(),o=Object.keys(a),s=e.default.component.availableIcons,c=e.default.component.iconCatalog;function l(e,n){return t.aiComponentsSchema.components.find(t=>t.a2uiName===e)?.props.find(e=>e.name===n)?.enum??[]}var u=l(`button`,`variant`);function d(e){return a[e]?.component??`Unknown`}exports.A2UI_AVAILABLE_ICONS=s,exports.A2UI_BUTTON_VARIANTS=u,exports.A2UI_COMPONENT_MAP=a,exports.A2UI_COMPONENT_TYPES=o,exports.A2UI_ICON_CATALOG=c,exports.getA2UIPropEnum=l,exports.getGridKitComponent=d;
@@ -97,6 +97,7 @@ export declare const A2UI_ICON_CATALOG: {
97
97
  eye: string;
98
98
  volumeUp: string;
99
99
  send: string;
100
+ mic: string;
100
101
  chat: string;
101
102
  chatBubble: string;
102
103
  phone: string;
@@ -1,76 +1,67 @@
1
- import { aiComponentsSchema as u, componentModulesByName as b } from "../schemas/components.js";
2
- import f from "../schemas/components/Icon.js";
3
- function a(s) {
4
- const e = {};
5
- for (const n of s) {
6
- let o;
7
- n.enum && n.enum.length > 0 ? o = n.enum.map((t) => `"${t}"`).join("|") : o = n.type, n.description && (o += ` — ${n.description}`), e[n.name] = o;
8
- }
9
- return e;
1
+ import e from "../schemas/components/Icon.js";
2
+ import { aiComponentsSchema as t, componentModulesByName as n } from "../schemas/components.js";
3
+ //#region src/ai/a2ui/component-map.ts
4
+ function r(e) {
5
+ let t = {};
6
+ for (let n of e) {
7
+ let e;
8
+ e = n.enum && n.enum.length > 0 ? n.enum.map((e) => `"${e}"`).join("|") : n.type, n.description && (e += ` — ${n.description}`), t[n.name] = e;
9
+ }
10
+ return t;
10
11
  }
11
- function g(s, e) {
12
- const n = [], o = s, t = !!s.a2uiName;
13
- if (e && e.compositionTips.length > 0 && n.push(...e.compositionTips), t)
14
- return n.length > 0 ? n : void 0;
15
- const m = o.commonPatterns;
16
- if (m)
17
- for (const [i, c] of Object.entries(m)) {
18
- const l = c.useCase ?? "", d = c.code ? ` Example: ${c.code}` : "";
19
- n.push(`${i}: ${l}${d}`);
20
- }
21
- const p = o.examples;
22
- if (Array.isArray(p))
23
- for (const i of p)
24
- typeof i == "string" && n.push(i);
25
- const r = o.troubleshooting;
26
- if (r)
27
- for (const [i, c] of Object.entries(r))
28
- n.push(`Troubleshooting — ${i}: ${c}`);
29
- return n.length > 0 ? n : void 0;
12
+ function i(e, t) {
13
+ let n = [], r = e, i = !!e.a2uiName;
14
+ if (t && t.compositionTips.length > 0 && n.push(...t.compositionTips), i) return n.length > 0 ? n : void 0;
15
+ let a = r.commonPatterns;
16
+ if (a) for (let [e, t] of Object.entries(a)) {
17
+ let r = t.useCase ?? "", i = t.code ? ` Example: ${t.code}` : "";
18
+ n.push(`${e}: ${r}${i}`);
19
+ }
20
+ let o = r.examples;
21
+ if (Array.isArray(o)) for (let e of o) typeof e == "string" && n.push(e);
22
+ let s = r.troubleshooting;
23
+ if (s) for (let [e, t] of Object.entries(s)) n.push(`Troubleshooting — ${e}: ${t}`);
24
+ return n.length > 0 ? n : void 0;
30
25
  }
31
- function y() {
32
- var e;
33
- const s = {};
34
- for (const n of u.components) {
35
- const o = n;
36
- if (!o.a2uiName) continue;
37
- const t = b.get(o.name);
38
- if (s[o.a2uiName] = {
39
- component: o.name,
40
- import: o.import,
41
- description: o.description,
42
- props: a(o.props),
43
- notes: g(o, t),
44
- category: o.category,
45
- complexity: o.complexity
46
- }, o.a2uiSubcomponents) {
47
- const p = o.subcomponents;
48
- for (const [r, i] of Object.entries(o.a2uiSubcomponents)) {
49
- const c = ((e = p == null ? void 0 : p[i.component]) == null ? void 0 : e.description) ?? o.description;
50
- s[r] = {
51
- component: i.component,
52
- import: o.import,
53
- description: c,
54
- props: a(i.props),
55
- notes: t && t.compositionTips.length > 0 ? t.compositionTips : void 0,
56
- category: o.category ? `${o.category} Subcomponents` : "Card Subcomponents",
57
- complexity: o.complexity
58
- };
59
- }
60
- }
61
- }
62
- return s;
26
+ function a() {
27
+ let e = {};
28
+ for (let a of t.components) {
29
+ let t = a;
30
+ if (!t.a2uiName) continue;
31
+ let o = n.get(t.name);
32
+ if (e[t.a2uiName] = {
33
+ component: t.name,
34
+ import: t.import,
35
+ description: t.description,
36
+ props: r(t.props),
37
+ notes: i(t, o),
38
+ category: t.category,
39
+ complexity: t.complexity
40
+ }, t.a2uiSubcomponents) {
41
+ let n = t.subcomponents;
42
+ for (let [i, a] of Object.entries(t.a2uiSubcomponents)) {
43
+ let s = n?.[a.component]?.description ?? t.description;
44
+ e[i] = {
45
+ component: a.component,
46
+ import: t.import,
47
+ description: s,
48
+ props: r(a.props),
49
+ notes: o && o.compositionTips.length > 0 ? o.compositionTips : void 0,
50
+ category: t.category ? `${t.category} Subcomponents` : "Card Subcomponents",
51
+ complexity: t.complexity
52
+ };
53
+ }
54
+ }
55
+ }
56
+ return e;
63
57
  }
64
- const $ = y();
65
- f.component.availableIcons;
66
- f.component.iconCatalog;
67
- function h(s, e) {
68
- var o;
69
- const n = u.components.find((t) => t.a2uiName === s);
70
- return ((o = n == null ? void 0 : n.props.find((t) => t.name === e)) == null ? void 0 : o.enum) ?? [];
58
+ var o = a(), s = Object.keys(o), c = e.component.availableIcons, l = e.component.iconCatalog;
59
+ function u(e, n) {
60
+ return t.components.find((t) => t.a2uiName === e)?.props.find((e) => e.name === n)?.enum ?? [];
71
61
  }
72
- h("button", "variant");
73
- export {
74
- $ as A2UI_COMPONENT_MAP,
75
- h as getA2UIPropEnum
76
- };
62
+ var d = u("button", "variant");
63
+ function f(e) {
64
+ return o[e]?.component ?? "Unknown";
65
+ }
66
+ //#endregion
67
+ export { c as A2UI_AVAILABLE_ICONS, d as A2UI_BUTTON_VARIANTS, o as A2UI_COMPONENT_MAP, s as A2UI_COMPONENT_TYPES, l as A2UI_ICON_CATALOG, u as getA2UIPropEnum, f as getGridKitComponent };
@@ -0,0 +1 @@
1
+ function e(e){return e===void 0?null:(Array.isArray(e)?e:[e]).map(e=>e.trim().toLowerCase()).filter(e=>e.length>0)}exports.normalizeImageSources=e;
@@ -0,0 +1,6 @@
1
+ //#region src/ai/a2ui/image-policy.ts
2
+ function e(e) {
3
+ return e === void 0 ? null : (Array.isArray(e) ? e : [e]).map((e) => e.trim().toLowerCase()).filter((e) => e.length > 0);
4
+ }
5
+ //#endregion
6
+ export { e as normalizeImageSources };
@@ -17,6 +17,6 @@
17
17
  * A2UI protocol: https://a2ui.org
18
18
  */
19
19
  export { A2UI_COMPONENT_MAP, A2UI_COMPONENT_TYPES, A2UI_AVAILABLE_ICONS, A2UI_ICON_CATALOG, A2UI_BUTTON_VARIANTS, getA2UIPropEnum, getGridKitComponent, type A2UIComponentEntry, type A2UIIconName, type A2UIIconCatalog, type A2UIButtonVariant, } from './component-map';
20
- export { A2UI_SPEC_SCHEMA, A2UI_SPEC_SCHEMA_SIMPLE, type A2UISpec, type A2UIMetadata, type A2UIComponent, type A2UIAction, type A2UIStyling, type A2UILayoutType, type A2UIVariant, type A2UIActionDefinition, } from './spec-schema';
20
+ export { A2UI_SPEC_SCHEMA, A2UI_SPEC_SCHEMA_SIMPLE, extendA2UISpecSchema, type A2UISpec, type A2UIMetadata, type A2UIComponent, type A2UIAction, type A2UIStyling, type A2UILayoutType, type A2UIVariant, type A2UIActionDefinition, type A2UICustomComponentMeta, } from './spec-schema';
21
21
  export { buildA2UISystemPrompt, buildA2UIGeminiRequest, type PriceFormatCustom, type A2UISystemPromptOptions, } from './system-prompt';
22
22
  export { type A2UIImageSources, normalizeImageSources } from './image-policy';
@@ -0,0 +1 @@
1
+ const e=require(`./component-map.cjs`);var t={type:`object`,required:[`version`,`metadata`,`ui`],properties:{version:{type:`string`,pattern:`^\\d+\\.\\d+\\.\\d+$`,description:`Semantic version of the UI specification`,example:`1.0.0`},metadata:{type:`object`,required:[`agentId`,`agentName`,`timestamp`],properties:{agentId:{type:`string`,description:`Unique identifier for the agent`},agentName:{type:`string`,description:`Human-readable agent name`},agentVersion:{type:`string`,pattern:`^\\d+\\.\\d+\\.\\d+$`},timestamp:{type:`string`,format:`date-time`,description:`ISO 8601 timestamp of UI generation`},sessionId:{type:`string`,description:`Session identifier for conversation continuity`},provider:{type:`string`,description:`LLM provider or orchestration source for the generated spec, for example openai, anthropic, gemini, or local`},scenario:{type:`string`,description:`Scenario, use case, or workflow identifier associated with this spec`},segment:{type:`string`,description:`Optional orchestration segment or stage identifier when a flow is generated in multiple parts`},isSimulated:{type:`boolean`,description:`Demo-only flag indicating the spec was simulated or replayed instead of generated live`},locale:{type:`string`,default:`en-US`,pattern:`^[a-z]{2}-[A-Z]{2}$`},theme:{type:`string`,enum:[`light`,`dark`,`auto`],default:`auto`},customData:{type:`object`,description:`Agent-specific metadata`}}},ui:{type:`object`,required:[`layout`,`components`],properties:{layout:{type:`object`,required:[`type`],properties:{type:{type:`string`,enum:[`vertical`,`horizontal`,`grid`,`flex`,`stack`,`split`],description:`Layout type mapping to GD Design Library layout components`},spacing:{type:`string`,description:`Spacing between elements — must be a real CSS value (e.g. '16px', '1rem'). Never use token strings like 'xs', 'sm', 'md', 'lg', 'xl', 'none'.`},gridColumns:{type:`integer`,minimum:1,maximum:12,description:`Number of columns for grid layout`},alignment:{type:`string`,enum:[`start`,`center`,`end`,`stretch`,`baseline`]},justification:{type:`string`,enum:[`start`,`center`,`end`,`space-between`,`space-around`,`space-evenly`]},responsive:{type:`object`,properties:{mobile:{type:`object`,properties:{type:{type:`string`},gridColumns:{type:`integer`},spacing:{type:`string`}}},tablet:{type:`object`,properties:{type:{type:`string`},gridColumns:{type:`integer`},spacing:{type:`string`}}},desktop:{type:`object`,properties:{type:{type:`string`},gridColumns:{type:`integer`},spacing:{type:`string`}}}}}}},components:{type:`array`,minItems:1,description:`Array of UI components to render.`,items:{type:`object`,required:[`id`,`type`],properties:{id:{type:`string`,description:`Unique component identifier`},type:{type:`string`,enum:e.A2UI_COMPONENT_TYPES,description:`Component type — maps to gd-design-library (GridKit) React component. Source of truth: ./component-map.ts`},label:{type:`string`,description:`Component label or title`},value:{description:`Component value (any type)`},initial:{type:`number`,description:`Initial numeric value used by counter components.`},caption:{type:`string`,description:`Optional caption text for images. Only used by type "image".`},placeholder:{type:`string`},helpText:{type:`string`,description:`Helper text or description`},ariaLabel:{type:`string`,description:`Accessible label used when visible text alone is not sufficient.`},content:{type:`string`,description:`Tooltip text content. Only used by type "tooltip".`},name:{type:`string`,description:`Component-specific name. For avatar-user: user display name. For loader: animation type ("circle" or "dots"). For rating: radio group name. Prefer dedicated props where documented.`},subtitle:{type:`string`,description:`Secondary text line. Only used by type "avatar-user".`},className:{type:`string`,description:`Optional CSS class name forwarded to wrapper-style primitives such as box and wrapper.`},tabIndex:{type:`number`,description:`Keyboard tab order for focusable primitives such as box.`},layout:{type:`string`,enum:[`horizontal`,`vertical`],description:`Carousel layout direction. Only used by type "carousel".`},as:{type:`string`,description:`Underlying HTML tag override (for example "section", "article", "figure", "figcaption", "span").`},htmlFor:{type:`string`,description:`Associated form control ID for label components. Only used by type "label".`},captionAs:{type:`string`,description:`HTML tag override for image captions. Only used by type "image".`},WrapperView:{type:`string`,description:`Underlying HTML tag for the optional portal wrapper. Only used by type "portal".`},container:{type:`string`,description:`CSS selector for an existing DOM node that should receive portal content. Only used by type "portal".`},href:{type:`string`,description:`Link destination URL. Top-level field for type "link".`},target:{type:`string`,enum:[`_blank`,`_self`,`_parent`,`_top`],description:`Link browsing context. Top-level field for type "link".`},rel:{type:`string`,description:`Link relationship attribute. Top-level field for type "link".`},buttonType:{type:`string`,enum:[`button`,`submit`,`reset`],description:`HTML button type attribute. Only used by type "button".`},placement:{type:`string`,enum:[`top`,`bottom`,`left`,`right`,`top-left`,`top-center`,`top-right`,`bottom-left`,`bottom-center`,`bottom-right`],description:`Component placement. Used by tooltip ("top" | "bottom" | "left" | "right"), menu corner placement, and snackbar overlay placement.`},delay:{type:`number`,description:`Tooltip open delay in milliseconds.`},length:{type:`string`,description:`Separator explicit length (for example "40px" or "100%"). Especially useful for vertical separators. Only used by type "separator".`},required:{type:`boolean`,default:!1},disabled:{type:`boolean`,default:!1},readOnly:{type:`boolean`,default:!1},visible:{type:`boolean`,default:!0},isOpen:{type:`boolean`,description:`Controlled open state for collapsible layout components such as chat-container.`},bordered:{type:`boolean`,description:`Whether the component renders with a bordered container. Used by type "breadcrumbs".`},checked:{type:`boolean`,description:`Checked/on state for checkbox and switch components.`},indeterminate:{type:`boolean`,description:`Mixed state for checkbox components.`},allowMultipleExpand:{type:`boolean`,description:`Whether accordion allows multiple items to stay expanded at once.`},withoutSeparator:{type:`boolean`,description:`Whether accordion items render without divider lines.`},isInline:{type:`boolean`,description:`Whether accordion headers render using inline layout.`},defaultValue:{description:`Initial uncontrolled value. Used by accordion, radio-group, and rating components. Type depends on the component.`},max:{type:`number`,description:`Maximum numeric value. Used by counter as the upper bound, by rating as the total item count, and by slider when modeled as a top-level prop.`},min:{type:`number`,description:`Minimum numeric value. Used by counter as the lower bound and by slider when modeled as a top-level prop.`},variant:{type:`string`,description:`Visual variant for the component. Button: primary|secondary|tertiary|outlined|text|inherit. Separator: solid|dashed|dotted. Card: vertical|horizontal. Badge: primary|secondary|tertiary|quaternary|quinary. Inline-notification: success|warning|error|info.`},appearance:{type:`string`,description:`Secondary visual appearance modifier. For badge: filled|filledLight|outline|outlineFilledLight.`},size:{type:`string`,enum:[`xs`,`sm`,`md`,`lg`,`xl`],default:`md`},styleVariant:{type:[`string`,`array`],items:{type:`string`},description:`Typography style modifiers. Use a string or array such as "bold" or ["italic", "underline"]. Only used by type "typography".`},underline:{type:`string`,enum:[`default`,`highlight`,`none`],description:`Link underline behavior. Top-level field for type "link".`},labelSide:{type:`string`,enum:[`left`,`right`],description:`Switch label placement relative to the control. Only used by type "switch".`},separator:{type:`string`,description:`Breadcrumb text separator (for example "/" or ">"). Also used by type "attachment-file" as the character between fileType and fileSize (defaults to "·").`},separatorIcon:{type:`string`,description:`Icon name used as the breadcrumb separator. Only used by type "breadcrumbs".`},separatorAfterLastItem:{type:`boolean`,description:`Whether breadcrumbs should render a separator after the last item.`},rounded:{type:`string`,enum:[`none`,`default`,`round`,`xs`,`sm`,`md`,`lg`,`xl`],description:`Loader border radius for dots animation. Top-level field for type "loader".`},withWrapper:{type:`boolean`,description:`Whether a helper wrapper container should be rendered. Used by type "loader" and "portal".`},wrapperVariant:{type:`string`,enum:[`inline`,`section`,`fullPage`],description:`Wrapper preset used by the portal helper wrapper. Only used by type "portal".`},blocksScroll:{type:`boolean`,description:`Whether the portal should lock background document scrolling while mounted.`},animationName:{type:[`string`,`null`],description:`Skeleton animation keyframe name. Accepts theme animation token names such as "blinkKeyframes", raw CSS animation names, or null to disable the built-in animation. Only used by type "skeleton".`},animationProps:{type:`string`,description:`Custom CSS animation shorthand forwarded to skeleton or loader when fine-grained animation control is needed.`},color:{type:`string`,description:`Top-level color prop. Prefer theme color token paths (e.g. "text.secondary", "border.default"). Palette-style aliases like "brand.500" and "theme.palette.warning.main" are also accepted. Use raw CSS/hex only when no theme token fits. Used by typography and separator.`},icon:{type:`string`,description:`Icon name from GD icon set. Used by the icon component, snackbar, accordion header expand icons, and avatar icon fallbacks. Also accepted as a legacy alias for iconStart on some leading-adornment components.`},iconStart:{type:`string`,description:`Leading icon name from GD icon set. Preferred field for components with a start icon or adornment such as badge, button, input, input-file, menu triggers, and select.`},iconEnd:{type:`string`,description:`Trailing icon name from GD icon set. Used by button, badge, input, input-file, and select.`},fill:{type:`string`,description:`Fill color for multi-path icons. Prefer theme color token paths (e.g. "icon.error", "icon.primary", "icon.default"). Use raw CSS/hex only when no theme token fits. Used by type "icon" and avatar icon fallbacks.`},fillSvg:{type:`string`,description:`Uniform fill color for the entire SVG. Prefer theme color token paths (same options as fill). Use raw CSS/hex only when no theme token fits. Overrides fill. Used by type "icon" and avatar icon fallbacks.`},width:{description:`Width. For icon: pixel number (e.g. 24). For layout components: CSS string (e.g. "100%", "200px").`},height:{description:`Height. For icon: pixel number (e.g. 24). For layout components: CSS string (e.g. "100px").`},minHeight:{type:[`string`,`number`],description:`Minimum height constraint. Use CSS strings for layout components (for example "120px") or numbers for menu positioning logic.`},count:{type:`number`,description:`SliderDots total dot count. Only used by type "slider-dots".`},activeIndex:{type:[`string`,`number`],description:`Active index or active option value. Used by slider-dots and select components.`},step:{type:`number`,description:`Slider step increment. Only used by type "slider".`},lines:{type:`number`,description:`Maximum number of lines before truncation. Only used by type "truncate".`},objectFit:{type:`string`,enum:[`cover`,`contain`,`fill`,`none`,`scale-down`],description:`Image object-fit behavior. Only used by type "image".`},isBordered:{type:`boolean`},isHighlighted:{type:`boolean`},withShadowHover:{type:`boolean`},fullWidth:{type:`boolean`,description:`Whether the internal button should stretch to the full container width. Used by button/input-file.`},isIcon:{type:`boolean`,description:`Whether the control should render as an icon-only button. Used by button/input-file.`},showArrows:{type:`boolean`,description:`Whether carousel navigation arrows are visible. Used by type "carousel" and "content-carousel".`},showDots:{type:`boolean`,description:`Whether carousel dot indicators are visible. Used by type "carousel" and "content-carousel".`},thumbs:{type:`string`,enum:[`start`,`end`],description:`Thumbnail strip position. Only used by type "carousel".`},isFocusable:{type:`boolean`,description:`Whether the carousel root receives keyboard focus. Used by type "carousel" and "content-carousel".`},visibleItems:{type:`number`,description:`Number of items visible at once. Only used by type "content-carousel".`},scrollStep:{type:`number`,description:`Number of items to scroll per navigation action. Only used by type "content-carousel".`},scrollAlignment:{type:`string`,enum:[`left`,`centered`],description:`Content carousel scroll alignment. Only used by type "content-carousel".`},vertical:{type:`string`,enum:[`hidden`,`visible`,`auto`],description:`Vertical scrollbar visibility. Only used by type "scroll".`},horizontal:{type:`string`,enum:[`hidden`,`visible`,`auto`],description:`Horizontal scrollbar visibility. Only used by type "scroll".`},autoHide:{type:`boolean`,description:`Whether visible scrollbars should fade out after scrolling stops. Only used by type "scroll".`},showSidebarAsideControl:{type:`boolean`,description:`Whether the chat sidebar shows its internal collapse/close control.`},showSidebarHeaderControl:{type:`boolean`,description:`Whether the main chat header shows the control that reopens the sidebar.`},multiple:{type:`boolean`,description:`Multi-value selection mode for select/input-file components.`},searchable:{type:`boolean`,description:`Whether the select shows a search field.`},searchPlaceholder:{type:`string`,description:`Placeholder text for the select search field.`},autoOpen:{type:`boolean`,description:`Whether the select dropdown opens automatically on render.`},accept:{type:`string`,description:`Accepted file MIME types or extensions for input-file.`},capture:{type:[`boolean`,`string`],enum:[!0,!1,`user`,`environment`],description:`Mobile capture mode for input-file.`},inputFileButtonLabel:{type:`string`,description:`Visible label for the drag-and-drop file picker button.`},acceptedFileTypes:{type:`array`,items:{type:`string`},description:`Allowed MIME types for drag-and-drop file validation.`},maxFileSize:{type:`number`,description:`Maximum allowed file size in bytes for each dropped or selected file.`},maxFiles:{type:`number`,description:`Maximum total number of files allowed by drag-and-drop.`},debounceCallbackTime:{type:`number`,description:`Debounce delay in milliseconds for input change handlers.`},ariaDescribedBy:{type:`string`,description:`ID of helper/error text announced by screen readers.`},resize:{type:`string`,enum:[`none`,`both`,`horizontal`,`vertical`],description:`Textarea resize mode. Only used by type "textarea".`},dynamicHeightAdjustment:{type:`boolean`,description:`Whether textarea height should auto-grow with content.`},maxCharacters:{type:`number`,description:`Maximum character count for textarea. Shows a counter in the UI.`},maxLength:{type:`number`,description:`Maximum character count for InputArea.`},currentValue:{type:`string`,description:`Current formatted price value without the currency symbol. Only used by type "price".`},oldValue:{type:`string`,description:`Optional previous price shown as the struck-through comparison value. Only used by type "price".`},currencySymbol:{type:`string`,description:`Currency symbol displayed by price components (for example "$", "€", or "zł").`},currencySymbolPosition:{type:`string`,enum:[`before`,`after`],description:`Where the currency symbol should appear relative to the value. Only used by type "price".`},gutter:{type:[`string`,`number`],description:`Gap between direct children for row, column, and card container components.`},gap:{type:`string`,description:`Top-level gap prop used by flex-container and as an alias for row/column gutter.`},padding:{type:`string`,description:`CSS inner padding for card and related layout containers.`},align:{type:`string`,enum:[`start`,`center`,`end`,`stretch`],description:`Cross-axis alignment for row and column layout primitives.`},justify:{type:`string`,enum:[`start`,`center`,`end`,`space-between`,`space-around`],description:`Main-axis distribution for row and column layout primitives.`},isWrap:{type:`boolean`,description:`Whether row or column children are allowed to wrap.`},flex:{type:`string`,description:`CSS flex shorthand for row or column components when they are children of another flex container.`},isReversed:{type:`boolean`,description:`Whether row or column direction is visually reversed.`},flexDirection:{type:`string`,enum:[`row`,`column`,`row-reverse`,`column-reverse`],description:`Top-level flex direction prop for flex-container.`},alignItems:{type:`string`,description:`Top-level align-items prop for flex-container or alias for row/column alignment.`},justifyContent:{type:`string`,description:`Top-level justify-content prop for flex-container or alias for row/column justification.`},showPercentage:{type:`boolean`,description:`Whether the progress bar should show a numeric percentage label.`},fillColor:{type:`string`,description:`Filled-track color for progress bars. Prefer theme token paths before raw CSS or hex colors.`},closeOnSelect:{type:`boolean`,description:`Whether a menu closes immediately after an option is selected.`},offsetX:{type:`number`,description:`Horizontal offset in pixels used by menu positioning.`},offsetY:{type:`number`,description:`Vertical offset in pixels used by menu positioning.`},gridColumns:{type:[`number`,`string`],description:`Radio-group grid column count when variant is "grid".`},gridRows:{type:[`number`,`string`],description:`Radio-group grid row count when variant is "grid".`},gridColumnGutter:{type:[`number`,`string`],description:`Horizontal spacing between radio-group grid items.`},gridRowGutter:{type:[`number`,`string`],description:`Vertical spacing between radio-group grid rows.`},wrapItems:{type:`boolean`,description:`Whether radio-group items should wrap in row or column layouts.`},itemWidth:{type:`string`,description:`Per-option width for radio-group visual tiles.`},itemHeight:{type:`string`,description:`Per-option height for radio-group visual tiles.`},isIconsView:{type:`boolean`,description:`Whether stepper indicators should render icons instead of step numbers.`},duration:{type:[`number`,`null`],description:`Auto-dismiss duration in milliseconds. Only used by type "snackbar".`},dismissOnClick:{type:`boolean`,description:`Whether clicking the snackbar should dismiss it.`},colored:{type:`boolean`,description:`Whether the snackbar uses a filled background matching its variant.`},isAnimated:{type:`boolean`,description:`Whether the snackbar should animate in and out.`},stickyHeader:{type:`boolean`,description:`Whether the table header should remain visible while scrolling.`},stickyFooter:{type:`boolean`,description:`Whether the table footer should remain visible while scrolling.`},stickyPagination:{type:`boolean`,description:`Whether the table pagination row should remain visible while scrolling.`},pagination:{type:`boolean`,description:`Whether the table should render built-in pagination controls.`},pageSize:{type:`number`,description:`Initial number of rows per page when table pagination is enabled.`},pageSizes:{type:`array`,items:{type:`number`},description:`Selectable page-size options for table pagination.`},virtualized:{type:`boolean`,description:`Whether the table should use virtualization for large row sets.`},rowHeight:{type:`number`,description:`Row height in pixels for virtualized tables.`},minVisibleRange:{type:`number`,description:`Minimum buffered visible range for virtualized tables.`},options:{type:`array`,description:`Options for select, radio, checkbox groups`,items:{type:`object`,required:[`value`,`label`],properties:{value:{description:`Option value`},label:{type:`string`,description:`Display label`},disabled:{type:`boolean`,default:!1},icon:{type:`string`}}}},columns:{type:`array`,description:`Column definitions for table component`,items:{type:`object`,required:[`key`,`label`],properties:{key:{type:`string`,description:`Column key/field name.`},label:{type:`string`,description:`Column header label.`},width:{type:`string`,description:`CSS column width (e.g. "120px", "20%").`},sortable:{type:`boolean`,default:!1},filterable:{type:`boolean`,default:!1},align:{type:`string`,enum:[`left`,`center`,`right`],default:`left`},formatter:{type:`string`,enum:[`text`,`number`,`currency`,`date`,`datetime`,`boolean`,`custom`]}}}},rows:{type:`array`,description:`Data rows for table or list component`},data:{type:`array`,description:`Alias for rows — accepted when LLM generates data instead of rows`},errors:{type:`array`,items:{type:`string`},description:`Inline validation or upload error messages, used by drag-and-drop.`},files:{type:`array`,description:`Current file metadata for drag-and-drop controlled state.`,items:{type:`object`,required:[`name`],properties:{name:{type:`string`},size:{type:`number`},type:{type:`string`}}}},children:{type:`array`,description:`Nested child components (not recursively validated to avoid cascading errors)`,items:{type:`object`}},dragOverContent:{type:`array`,description:`Custom nested components shown while drag-and-drop is in its active hover state.`,items:{type:`object`}},loadingOverlay:{type:`array`,description:`Custom nested components shown while drag-and-drop isLoading is true.`,items:{type:`object`}},dragOverChildren:{type:`array`,description:`A2UI child components shown while drag-and-drop is in its hover state.`,items:{type:`object`}},footer:{type:`array`,description:`Footer components rendered in the modal footer bar (e.g. action buttons). Only used by type "modal".`,items:{type:`object`}},actionChildren:{type:`array`,description:`Nested child components rendered in a dedicated action area such as chat-bubble actions or header utilities.`,items:{type:`object`}},logoChildren:{type:`array`,description:`Header logo slot content. Only used by type "header".`,items:{type:`object`}},menuChildren:{type:`array`,description:`Header primary navigation slot content. Only used by type "header".`,items:{type:`object`}},bannerChildren:{type:`array`,description:`Header top banner content. Only used by type "header".`,items:{type:`object`}},advChildren:{type:`array`,description:`Header promo/supporting content shown below the mobile menu. Only used by type "header".`,items:{type:`object`}},headerChildren:{type:`array`,description:`Sidebar header slot content. Only used by type "sidebar".`,items:{type:`object`}},footerChildren:{type:`array`,description:`Sidebar footer slot content. Only used by type "sidebar".`,items:{type:`object`}},headerContent:{type:`array`,description:`Named slot content for the main chat header. Only used by type "chat-container".`,items:{type:`object`}},sidebarContent:{type:`array`,description:`Named slot content for the expanded chat sidebar. Only used by type "chat-container".`,items:{type:`object`}},sidebarMinifiedContent:{type:`array`,description:`Named slot content for the collapsed chat sidebar rail. Only used by type "chat-container".`,items:{type:`object`}},sidebarHeaderContent:{type:`array`,description:`Named slot content above the expanded chat sidebar. Only used by type "chat-container".`,items:{type:`object`}},items:{type:`array`,description:`Component-specific items collection. Used by sidebar for nested navigation items and by search-modal grouped sections.`,items:{type:`object`}},images:{type:`array`,description:`ImagePreview image items with src, optional alt text, and optional caption.`,items:{type:`object`,required:[`src`],properties:{src:{type:`string`},alt:{type:`string`},caption:{type:`string`}}}},results:{type:`array`,description:`SearchModal result items or grouped sections displayed for an active query.`,items:{type:`object`}},historyResults:{type:`array`,description:`SearchModal recent or grouped history items displayed before a query is typed.`,items:{type:`object`}},popularItems:{type:`object`,description:`Optional SearchModal section object with title and items[].`},aiSuggestions:{type:`object`,description:`Optional SearchModal AI suggestions section object with title and items[].`},articles:{type:`object`,description:`Optional SearchModal articles section object with title and items[].`},src:{type:`string`,description:`Image URL for image/avatar/carousel media.`},alt:{type:`string`,description:`Alternative text for image/avatar/carousel media.`},sizeVariant:{type:`string`,enum:[`xs`,`sm`,`md`,`lg`,`xl`],description:`Avatar size variant — alias for "size" on avatar components.`},orientation:{type:`string`,enum:[`horizontal`,`vertical`],description:`Separator direction. Only used by type "separator".`},labelPosition:{type:`string`,enum:[`start`,`center`,`end`],description:`Separator label position. Only used by type "separator".`},backgroundColor:{type:`string`,description:`Avatar background color for initials fallback, or skeleton fill color. Prefer theme color token paths (e.g. "bg.fill.secondary", "bg.fill.success.primary.default") or palette-style aliases like "brand.500" and "theme.palette.success.main". Use raw CSS/hex only when no theme token fits.`},withBadge:{type:`boolean`,description:`Avatar: show status dot badge.`},badgeColor:{type:`string`,description:`Avatar badge dot color. Prefer theme color token paths (e.g. "bg.fill.success.primary.default"). Use raw CSS/hex only when no theme token fits. Only when withBadge is true.`},labelColor:{type:`string`,description:`Separator label text color. Prefer theme color token paths (e.g. "text.caption", "text.warning"). Palette-style aliases like "brand.500" and "theme.palette.warning.main" are also accepted. Use raw CSS/hex only when no theme token fits. Only used by type "separator".`},showCloseButton:{type:`boolean`,description:`Whether to show the × close button in the modal header. Only used by type "modal". Defaults to true.`},closeOnEscape:{type:`boolean`,description:`Whether pressing Escape closes the modal. Only used by type "modal".`},closeOnClickOutside:{type:`boolean`,description:`Whether clicking the backdrop closes the modal. Only used by type "modal".`},isCustomView:{type:`boolean`,description:`Whether the modal uses a fully custom layout without the default header/footer chrome. Only used by type "modal".`},title:{type:`string`,description:`Component-specific title text. Used by chart for accessible titles and by modal as an alternate heading field.`},description:{type:`string`,description:`Component-specific descriptive text, for example chart descriptions or drag-and-drop helper text.`},status:{type:`string`,enum:[`pending`,`fulfilled`,`rejected`],description:`Chat bubble generation status. Only used by type "chat-bubble".`},bgColor:{type:`string`,description:`Header background color override. Prefer theme color token paths (for example "bg.surface") before raw CSS/hex colors.`},mobileMenuList:{type:`array`,description:`Header mobile drawer menu items. Only used by type "header".`,items:{type:`object`,required:[`title`],properties:{id:{type:`string`},title:{type:`string`},path:{type:`string`},icon:{type:`string`}}}},emptyItemsResult:{type:`string`,description:`Search empty-state message shown when no options match the current value.`},carouselOptions:{type:`object`,description:`Embla carousel options such as loop or align. Only used by type "carousel".`},chartHeight:{type:`number`,description:`Height of the chart canvas in pixels. Only used by type "chart".`},xKey:{type:`string`,description:`Data key used for the chart x-axis. Only used by type "chart".`},series:{type:`array`,description:`Chart series definitions for line, bar, and area charts.`,items:{type:`object`}},pieConfig:{type:`object`,description:`Pie or donut chart configuration.`},colors:{type:`array`,description:`Custom color palette for charts.`,items:{type:`string`}},legend:{type:`object`,description:`Chart legend configuration.`},xAxis:{type:`object`,description:`Chart x-axis configuration.`},yAxis:{type:`object`,description:`Chart y-axis configuration.`},grid:{type:`object`,description:`Chart grid configuration.`},tooltip:{type:`object`,description:`Chart tooltip configuration using JSON-safe fields only.`},chartMargin:{type:`object`,description:`Chart inner margin configuration.`},animate:{type:`boolean`,description:`Whether chart transitions are animated.`},loading:{type:`boolean`,description:`Whether the chart is in a loading state.`},error:{type:`boolean`,description:`Whether the chart is in an error state.`},loadingText:{type:`string`,description:`Default loading-state text for charts.`},emptyText:{type:`string`,description:`Default empty-state text for charts.`},errorText:{type:`string`,description:`Default error-state text for charts.`},searchValue:{type:`string`,description:`Current search query. Used by type "search-modal".`},noHistoryResultsLabel:{type:`string`,description:`SearchModal empty-state label shown before a query is typed.`},noResultsLabel:{type:`string`,description:`SearchModal empty-state label shown when a query returns no results.`},newSearchCta:{type:`string`,description:`SearchModal CTA label for starting a new search or chat.`},loaderItemsCount:{type:`number`,description:`Number of skeleton rows shown by SearchModal while loading.`},showSearch:{type:`boolean`,description:`Whether header renders its built-in search affordance.`},showTopBanner:{type:`boolean`,description:`Whether header renders its top banner area.`},showCharacterCount:{type:`boolean`,description:`Whether InputArea shows a live character counter.`},showAttachmentButton:{type:`boolean`,description:`Whether InputArea shows its attachment button.`},showSendButton:{type:`boolean`,description:`Whether InputArea shows its send button.`},showSendButtonTooltip:{type:`boolean`,description:`Whether to show a tooltip on hover of the InputArea send button.`},sendButtonLabel:{type:`string`,description:`Accessible label for the InputArea send button.`},attachmentButtonLabel:{type:`string`,description:`Tooltip and accessible label for the InputArea attachment button.`},recordingState:{type:`string`,enum:[`idle`,`recording`,`processing`],description:`Voice recording state for InputArea. "idle" shows normal input, "recording" shows cancel/confirm controls, "processing" disables confirm and shows a spinner.`},recordButtonLabel:{type:`string`,description:`Accessible label for the InputArea record button.`},minRows:{type:`number`,description:`Minimum visible textarea rows for InputArea.`},maxRows:{type:`number`,description:`Maximum visible textarea rows for InputArea before scrolling.`},initialIndex:{type:`number`,description:`Initial image index for ImagePreview.`},showThumbnails:{type:`boolean`,description:`Whether ImagePreview shows its thumbnail strip.`},showCounter:{type:`boolean`,description:`Whether ImagePreview shows the current/total counter.`},thumbnailPosition:{type:`string`,enum:[`bottom`,`left`],description:`Thumbnail strip position for ImagePreview.`},activeItemId:{type:`string`,description:`Currently active sidebar item id.`},collapsed:{type:`boolean`,description:`Whether sidebar renders in collapsed mode.`},collapsedWidth:{type:`string`,description:`Collapsed sidebar width.`},fileName:{type:`string`,description:`Name of the attached file displayed in the AttachmentFile chip. Truncates with a tooltip on hover when long.`},fileType:{type:`string`,description:`File type label shown below the file name in AttachmentFile (e.g. "PDF", "doc"). Truncates with ellipsis when long.`},fileSize:{type:`string`,description:`File size label shown below the file name in AttachmentFile (e.g. "1.2 MB").`},removeButtonLabel:{type:`string`,description:`Accessible aria-label for the AttachmentFile remove button.`,default:`Remove file`},actions:{type:`array`,items:{type:`string`},description:`Action IDs from ui.actions to bind to this component.`},validation:{type:`array`,items:{type:`string`},description:`Optional validation rule IDs associated with this component.`},attributes:{type:`object`,description:`Additional HTML/component attributes`},styling:{type:`object`,description:`CSS styling for the component. All values MUST be real CSS values (e.g. '16px', '1rem', '50%'). NEVER use design token strings like 'xs', 'sm', 'md', 'lg', 'xl', 'none'.`,properties:{margin:{type:[`string`,`number`],description:`CSS margin value (e.g. '8px 0', '1rem', '0 auto')`},padding:{type:[`string`,`number`],description:`CSS padding value (e.g. '16px', '8px 16px', '1rem')`},width:{type:[`string`,`number`],description:`CSS width value (e.g. '100%', '320px', 'auto')`},height:{type:[`string`,`number`],description:`CSS height value (e.g. '48px', '100vh', 'auto')`},maxWidth:{type:[`string`,`number`],description:`CSS max-width value`},minWidth:{type:[`string`,`number`],description:`CSS min-width value`},maxHeight:{type:[`string`,`number`],description:`CSS max-height value (e.g. '300px', '80vh')`},minHeight:{type:[`string`,`number`],description:`CSS min-height value (e.g. '120px', '2rem')`},color:{type:`string`,description:`CSS color value`},backgroundColor:{type:`string`,description:`CSS background-color value`},fontSize:{type:[`string`,`number`],description:`CSS font-size value (e.g. '14px', '1rem')`},fontWeight:{type:[`string`,`number`],description:`CSS font-weight value`},textAlign:{type:`string`,description:`CSS text-align value (e.g. 'left', 'center', 'right', 'justify')`},display:{type:`string`,description:`CSS display value`},flexDirection:{type:`string`,description:`CSS flex-direction value (e.g. 'row', 'column', 'row-reverse', 'column-reverse')`},alignItems:{type:`string`,description:`CSS align-items value (e.g. 'flex-start', 'flex-end', 'center', 'baseline', 'stretch')`},justifyContent:{type:`string`,description:`CSS justify-content value (e.g. 'flex-start', 'flex-end', 'center', 'space-between', 'space-around', 'space-evenly')`},gap:{type:[`string`,`number`],description:`CSS gap value (e.g. '8px', '1rem')`},borderRadius:{type:[`string`,`number`],description:`CSS border-radius value`},border:{type:`string`,description:`CSS border shorthand`},boxShadow:{type:`string`,description:`CSS box-shadow value (e.g. '0 1px 3px rgba(0,0,0,0.1)')`},cursor:{type:`string`,description:`CSS cursor value (e.g. 'pointer', 'default')`},flex:{type:[`string`,`number`],description:`CSS flex shorthand for the component itself inside a flex container (e.g. '1', '0 0 auto', '1 1 50%')`},flexWrap:{type:`string`,description:`CSS flex-wrap value (e.g. 'wrap', 'nowrap')`},flexGrow:{type:[`string`,`number`],description:`CSS flex-grow value`},flexShrink:{type:[`string`,`number`],description:`CSS flex-shrink value`},flexBasis:{type:[`string`,`number`],description:`CSS flex-basis value`},marginTop:{type:[`string`,`number`],description:`CSS margin-top value`},marginBottom:{type:[`string`,`number`],description:`CSS margin-bottom value`},marginLeft:{type:[`string`,`number`],description:`CSS margin-left value`},marginRight:{type:[`string`,`number`],description:`CSS margin-right value`},paddingTop:{type:[`string`,`number`],description:`CSS padding-top value`},paddingBottom:{type:[`string`,`number`],description:`CSS padding-bottom value`},paddingLeft:{type:[`string`,`number`],description:`CSS padding-left value`},paddingRight:{type:[`string`,`number`],description:`CSS padding-right value`},letterSpacing:{type:[`string`,`number`],description:`CSS letter-spacing value`},lineHeight:{type:[`string`,`number`],description:`CSS line-height value`},overflow:{type:`string`,description:`CSS overflow value (e.g. 'hidden', 'auto', 'scroll', 'visible')`},objectFit:{type:`string`,description:`CSS object-fit value (e.g. 'cover', 'contain', 'fill', 'none', 'scale-down')`},opacity:{type:[`string`,`number`],description:`CSS opacity value (0–1, e.g. 0.5 or "0.5")`},position:{type:`string`,description:`CSS position value (e.g. 'static', 'relative', 'absolute', 'fixed', 'sticky')`},zIndex:{type:[`string`,`number`],description:`CSS z-index value`},top:{type:[`string`,`number`],description:`CSS top offset`},right:{type:[`string`,`number`],description:`CSS right offset`},bottom:{type:[`string`,`number`],description:`CSS bottom offset`},left:{type:[`string`,`number`],description:`CSS left offset`}}}}}},actions:{type:`array`,description:`Available actions referenced by component actions[] arrays.`,items:{type:`object`,required:[`id`,`type`],properties:{id:{type:`string`,description:`Unique action ID.`},type:{type:`string`,description:`Custom action type string matching an A2UIActionDefinition type (e.g. "add-to-cart", "action-view-all").`},label:{type:`string`,description:`Action label for UI elements.`},trigger:{type:`string`,enum:[`click`,`change`,`input`,`blur`,`focus`,`submit`,`load`,`custom`],default:`click`},payload:{type:`object`,description:`Data payload for the action.`},endpoint:{type:`string`,description:`API endpoint for api-call or agent-call types.`},method:{type:`string`,enum:[`GET`,`POST`,`PUT`,`PATCH`,`DELETE`],default:`POST`},confirmation:{type:`object`,properties:{required:{type:`boolean`,default:!1},message:{type:`string`},confirmText:{type:`string`,default:`Confirm`},cancelText:{type:`string`,default:`Cancel`}}},onSuccess:{type:`object`,properties:{message:{type:`string`},action:{type:`string`,description:`ID of action to execute on success.`},redirect:{type:`string`,description:`URL to redirect to on success.`}}},onError:{type:`object`,properties:{message:{type:`string`},action:{type:`string`,description:`ID of action to execute on error.`}}},loading:{type:`boolean`,default:!1,description:`Show loading state during action execution.`},debounce:{type:`integer`,description:`Debounce delay in milliseconds.`},throttle:{type:`integer`,description:`Throttle delay in milliseconds.`}}}},validations:{type:`array`,description:`Form validation rules associated with components.`,items:{type:`object`,required:[`id`,`componentId`,`rules`],properties:{id:{type:`string`,description:`Unique validation identifier.`},componentId:{type:`string`,description:`ID of the component to validate.`},rules:{type:`array`,items:{type:`object`,required:[`type`],properties:{type:{type:`string`,enum:[`required`,`email`,`url`,`phone`,`min-length`,`max-length`,`min-value`,`max-value`,`pattern`,`custom`]},value:{},message:{type:`string`,description:`Error message to display.`},customValidator:{type:`string`,description:`Name of custom validation function.`}}}},trigger:{type:`string`,enum:[`change`,`blur`,`submit`],default:`blur`}}}}}},state:{type:`object`,description:`Current UI state for state management`,properties:{formData:{type:`object`},errors:{type:`object`},loading:{type:`boolean`,default:!1},disabled:{type:`boolean`,default:!1}}}}},n={type:`object`,required:[`version`,`metadata`,`ui`],properties:{version:{type:`string`},metadata:{type:`object`,required:[`agentId`,`agentName`,`timestamp`]},ui:{type:`object`,required:[`components`],properties:{components:{type:`array`,minItems:1},actions:{type:`array`}}}}};function r(t){let n=new Set(e.A2UI_COMPONENT_TYPES),r=[];for(let e of t)n.has(e)||(n.add(e),r.push(e));return r}function i(e){let n=r(e);if(n.length===0)return t;let i=t.properties.ui.properties.components.items.properties.type.enum;return{...t,properties:{...t.properties,ui:{...t.properties.ui,properties:{...t.properties.ui.properties,components:{...t.properties.ui.properties.components,items:{...t.properties.ui.properties.components.items,properties:{...t.properties.ui.properties.components.items.properties,type:{...t.properties.ui.properties.components.items.properties.type,enum:[...i,...n]}}}}}}}}}exports.A2UI_SPEC_SCHEMA=t,exports.A2UI_SPEC_SCHEMA_SIMPLE=n,exports.extendA2UISpecSchema=i;