@arobo/react 1.0.1 → 1.1.1

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 (369) hide show
  1. package/dist/components/accordion/accordion.d.ts +30 -0
  2. package/dist/components/accordion/accordion.js +190 -0
  3. package/dist/components/accordion/index.d.ts +23 -0
  4. package/dist/components/accordion/index.js +16 -0
  5. package/dist/components/alert/alert.d.ts +15 -0
  6. package/dist/components/alert/alert.js +151 -0
  7. package/dist/components/alert/index.d.ts +19 -0
  8. package/dist/components/alert/index.js +14 -0
  9. package/dist/components/alert-dialog/alert-dialog.d.ts +65 -0
  10. package/dist/components/alert-dialog/alert-dialog.js +303 -0
  11. package/dist/components/alert-dialog/index.d.ts +31 -0
  12. package/dist/components/alert-dialog/index.js +20 -0
  13. package/dist/components/avatar/avatar.d.ts +15 -0
  14. package/dist/components/avatar/avatar.js +92 -0
  15. package/dist/components/avatar/index.d.ts +15 -0
  16. package/dist/components/avatar/index.js +12 -0
  17. package/dist/components/breadcrumbs/breadcrumbs.d.ts +14 -0
  18. package/dist/components/breadcrumbs/breadcrumbs.js +82 -0
  19. package/dist/components/breadcrumbs/index.d.ts +13 -0
  20. package/dist/components/breadcrumbs/index.js +11 -0
  21. package/dist/components/button/button.js +1 -1
  22. package/dist/components/button/index.js +1 -1
  23. package/dist/components/button-group/button-group.js +3 -3
  24. package/dist/components/button-group/index.js +1 -1
  25. package/dist/components/calendar/calendar.js +1 -1
  26. package/dist/components/calendar/index.js +1 -1
  27. package/dist/components/card/card.js +3 -3
  28. package/dist/components/card/index.js +1 -1
  29. package/dist/components/carousel/carousel.d.ts +26 -0
  30. package/dist/components/carousel/carousel.js +170 -0
  31. package/dist/components/carousel/index.d.ts +17 -0
  32. package/dist/components/carousel/index.js +10 -0
  33. package/dist/components/checkbox/checkbox.d.ts +16 -3
  34. package/dist/components/checkbox/checkbox.js +149 -35
  35. package/dist/components/checkbox/index.d.ts +3 -16
  36. package/dist/components/checkbox/index.js +4 -12
  37. package/dist/components/checkbox-group/checkbox-group.js +3 -3
  38. package/dist/components/checkbox-group/index.js +1 -1
  39. package/dist/components/chip/chip.d.ts +9 -0
  40. package/dist/components/chip/chip.js +24 -0
  41. package/dist/components/chip/index.d.ts +11 -0
  42. package/dist/components/chip/index.js +10 -0
  43. package/dist/components/close-button/close-button.d.ts +1 -1
  44. package/dist/components/close-button/close-button.js +1 -1
  45. package/dist/components/close-button/index.d.ts +1 -3
  46. package/dist/components/close-button/index.js +0 -1
  47. package/dist/components/combobox/combobox.js +3 -3
  48. package/dist/components/combobox/index.js +1 -1
  49. package/dist/components/container/container.d.ts +9 -0
  50. package/dist/components/container/container.js +23 -0
  51. package/dist/components/container/index.d.ts +13 -0
  52. package/dist/components/container/index.js +11 -0
  53. package/dist/components/date-field/date-field.js +3 -3
  54. package/dist/components/date-field/index.js +1 -1
  55. package/dist/components/date-input-group/date-input-group.js +3 -3
  56. package/dist/components/date-input-group/index.js +1 -1
  57. package/dist/components/date-picker/date-picker.js +4 -4
  58. package/dist/components/date-picker/index.d.ts +0 -2
  59. package/dist/components/date-picker/index.js +0 -1
  60. package/dist/components/date-range-picker/date-range-picker.d.ts +0 -1
  61. package/dist/components/date-range-picker/date-range-picker.js +4 -4
  62. package/dist/components/date-range-picker/index.js +1 -1
  63. package/dist/components/description/description.js +1 -1
  64. package/dist/components/description/index.d.ts +1 -3
  65. package/dist/components/description/index.js +0 -1
  66. package/dist/components/drawer/drawer.d.ts +33 -0
  67. package/dist/components/drawer/index.d.ts +1 -0
  68. package/dist/components/drawer/index.js +1 -0
  69. package/dist/components/dropdown/dropdown.d.ts +38 -0
  70. package/dist/components/dropdown/dropdown.js +155 -0
  71. package/dist/components/dropdown/index.d.ts +41 -0
  72. package/dist/components/dropdown/index.js +18 -0
  73. package/dist/components/empty/empty.d.ts +34 -0
  74. package/dist/components/empty/empty.js +151 -0
  75. package/dist/components/empty/index.d.ts +2 -0
  76. package/dist/components/empty/index.js +1 -0
  77. package/dist/components/empty-state/empty-state.d.ts +7 -0
  78. package/dist/components/empty-state/empty-state.js +19 -0
  79. package/dist/components/empty-state/index.d.ts +11 -0
  80. package/dist/components/empty-state/index.js +10 -0
  81. package/dist/components/error-message/error-message.js +1 -1
  82. package/dist/components/error-message/index.js +1 -1
  83. package/dist/components/field-error/field-error.js +1 -1
  84. package/dist/components/field-error/index.js +1 -1
  85. package/dist/components/fieldset/fieldset.d.ts +16 -0
  86. package/dist/components/fieldset/fieldset.js +87 -0
  87. package/dist/components/fieldset/index.d.ts +19 -0
  88. package/dist/components/fieldset/index.js +14 -0
  89. package/dist/components/header/header.d.ts +7 -0
  90. package/dist/components/header/header.js +20 -0
  91. package/dist/components/header/index.d.ts +8 -0
  92. package/dist/components/header/index.js +8 -0
  93. package/dist/components/heading/heading.d.ts +12 -0
  94. package/dist/components/heading/heading.js +29 -0
  95. package/dist/components/heading/index.d.ts +13 -0
  96. package/dist/components/heading/index.js +11 -0
  97. package/dist/components/icons.js +169 -1
  98. package/dist/components/index.d.ts +45 -1
  99. package/dist/components/input/index.js +1 -1
  100. package/dist/components/input/input.js +1 -1
  101. package/dist/components/input-group/index.d.ts +21 -0
  102. package/dist/components/input-group/index.js +15 -0
  103. package/dist/components/input-group/input-group.d.ts +20 -0
  104. package/dist/components/input-group/input-group.js +128 -0
  105. package/dist/components/input-otp/index.d.ts +22 -0
  106. package/dist/components/input-otp/index.js +20 -0
  107. package/dist/components/input-otp/input-otp.d.ts +26 -0
  108. package/dist/components/input-otp/input-otp.js +138 -0
  109. package/dist/components/kbd/index.d.ts +17 -0
  110. package/dist/components/kbd/index.js +13 -0
  111. package/dist/components/kbd/kbd.constants.d.ts +3 -0
  112. package/dist/components/kbd/kbd.constants.js +50 -0
  113. package/dist/components/kbd/kbd.d.ts +24 -0
  114. package/dist/components/kbd/kbd.js +75 -0
  115. package/dist/components/label/index.js +1 -1
  116. package/dist/components/label/label.js +1 -1
  117. package/dist/components/link/index.d.ts +13 -0
  118. package/dist/components/link/index.js +11 -0
  119. package/dist/components/link/link.d.ts +10 -0
  120. package/dist/components/link/link.js +58 -0
  121. package/dist/components/listbox/index.d.ts +21 -0
  122. package/dist/components/listbox/index.js +16 -0
  123. package/dist/components/listbox/listbox.d.ts +9 -0
  124. package/dist/components/listbox/listbox.js +22 -0
  125. package/dist/components/listbox/listbox.type.d.ts +34 -0
  126. package/dist/components/listbox-item/index.d.ts +13 -0
  127. package/dist/components/listbox-item/index.js +11 -0
  128. package/dist/components/listbox-item/listbox-item.d.ts +15 -0
  129. package/dist/components/listbox-item/listbox-item.js +76 -0
  130. package/dist/components/listbox-section/index.d.ts +8 -0
  131. package/dist/components/listbox-section/index.js +8 -0
  132. package/dist/components/listbox-section/listbox-section.d.ts +8 -0
  133. package/dist/components/listbox-section/listbox-section.js +21 -0
  134. package/dist/components/menu/index.d.ts +22 -0
  135. package/dist/components/menu/index.js +16 -0
  136. package/dist/components/menu/menu.d.ts +9 -0
  137. package/dist/components/menu/menu.js +19 -0
  138. package/dist/components/menu-item/index.d.ts +15 -0
  139. package/dist/components/menu-item/index.js +12 -0
  140. package/dist/components/menu-item/menu-item.d.ts +20 -0
  141. package/dist/components/menu-item/menu-item.js +122 -0
  142. package/dist/components/menu-section/index.d.ts +8 -0
  143. package/dist/components/menu-section/index.js +8 -0
  144. package/dist/components/menu-section/menu-section.d.ts +8 -0
  145. package/dist/components/menu-section/menu-section.js +21 -0
  146. package/dist/components/modal/index.d.ts +31 -0
  147. package/dist/components/modal/index.js +20 -0
  148. package/dist/components/modal/modal.d.ts +53 -0
  149. package/dist/components/modal/modal.js +283 -0
  150. package/dist/components/number-field/index.d.ts +21 -0
  151. package/dist/components/number-field/index.js +15 -0
  152. package/dist/components/number-field/number-field.d.ts +20 -0
  153. package/dist/components/number-field/number-field.js +126 -0
  154. package/dist/components/pagination/index.d.ts +19 -0
  155. package/dist/components/pagination/index.js +11 -0
  156. package/dist/components/pagination/pagination-ellipsis.d.ts +6 -0
  157. package/dist/components/pagination/pagination-ellipsis.js +11 -0
  158. package/dist/components/pagination/pagination-item.d.ts +15 -0
  159. package/dist/components/pagination/pagination-item.js +34 -0
  160. package/dist/components/pagination/pagination.d.ts +28 -0
  161. package/dist/components/pagination/pagination.js +128 -0
  162. package/dist/components/popover/index.js +1 -1
  163. package/dist/components/popover/popover.js +4 -4
  164. package/dist/components/rac/components.d.ts +1 -0
  165. package/dist/components/rac/index.d.ts +3 -0
  166. package/dist/components/rac/index.js +2 -0
  167. package/dist/components/rac/types.d.ts +2 -0
  168. package/dist/components/radio/index.d.ts +17 -0
  169. package/dist/components/radio/index.js +13 -0
  170. package/dist/components/radio/radio.d.ts +21 -0
  171. package/dist/components/radio/radio.js +96 -0
  172. package/dist/components/radio-group/index.d.ts +11 -0
  173. package/dist/components/radio-group/index.js +10 -0
  174. package/dist/components/radio-group/radio-group.d.ts +8 -0
  175. package/dist/components/radio-group/radio-group.js +26 -0
  176. package/dist/components/range-calendar/index.js +1 -1
  177. package/dist/components/range-calendar/range-calendar.js +1 -1
  178. package/dist/components/scroll-shadow/index.d.ts +19 -0
  179. package/dist/components/scroll-shadow/index.js +11 -0
  180. package/dist/components/scroll-shadow/scroll-shadow.d.ts +32 -0
  181. package/dist/components/scroll-shadow/scroll-shadow.js +75 -0
  182. package/dist/components/scroll-shadow/use-scroll-shadow.d.ts +11 -0
  183. package/dist/components/scroll-shadow/use-scroll-shadow.js +120 -0
  184. package/dist/components/select/index.d.ts +19 -0
  185. package/dist/components/select/index.js +14 -0
  186. package/dist/components/select/select.d.ts +24 -0
  187. package/dist/components/select/select.js +139 -0
  188. package/dist/components/separator/index.d.ts +11 -0
  189. package/dist/components/separator/index.js +10 -0
  190. package/dist/components/separator/separator.d.ts +8 -0
  191. package/dist/components/separator/separator.js +22 -0
  192. package/dist/components/slider/index.d.ts +21 -0
  193. package/dist/components/slider/index.js +15 -0
  194. package/dist/components/slider/slider.d.ts +23 -0
  195. package/dist/components/slider/slider.js +176 -0
  196. package/dist/components/spinner/index.d.ts +11 -0
  197. package/dist/components/spinner/index.js +10 -0
  198. package/dist/components/spinner/spinner.d.ts +7 -0
  199. package/dist/components/spinner/spinner.js +87 -0
  200. package/dist/components/surface/index.js +1 -1
  201. package/dist/components/surface/surface.js +1 -1
  202. package/dist/components/switch/index.d.ts +17 -0
  203. package/dist/components/switch/index.js +13 -0
  204. package/dist/components/switch/switch.d.ts +17 -0
  205. package/dist/components/switch/switch.js +97 -0
  206. package/dist/components/tabs/index.d.ts +21 -0
  207. package/dist/components/tabs/index.js +15 -0
  208. package/dist/components/tabs/tabs.d.ts +34 -0
  209. package/dist/components/tabs/tabs.js +140 -0
  210. package/dist/components/tag/index.d.ts +13 -0
  211. package/dist/components/tag/index.js +11 -0
  212. package/dist/components/tag/tag.d.ts +14 -0
  213. package/dist/components/tag/tag.js +84 -0
  214. package/dist/components/tag-group/index.d.ts +13 -0
  215. package/dist/components/tag-group/index.js +12 -0
  216. package/dist/components/tag-group/tag-group.d.ts +19 -0
  217. package/dist/components/tag-group/tag-group.js +58 -0
  218. package/dist/components/text-field/index.js +1 -1
  219. package/dist/components/text-field/text-field.js +3 -3
  220. package/dist/components/textarea/index.d.ts +11 -0
  221. package/dist/components/textarea/index.js +10 -0
  222. package/dist/components/textarea/textarea.d.ts +8 -0
  223. package/dist/components/textarea/textarea.js +26 -0
  224. package/dist/components/toast/constants.d.ts +3 -0
  225. package/dist/components/toast/constants.js +8 -0
  226. package/dist/components/toast/index.d.ts +73 -0
  227. package/dist/components/toast/index.js +21 -0
  228. package/dist/components/toast/toast-queue.d.ts +67 -0
  229. package/dist/components/toast/toast-queue.js +129 -0
  230. package/dist/components/toast/toast.d.ts +67 -0
  231. package/dist/components/toast/toast.js +295 -0
  232. package/dist/components/toggle-button/index.d.ts +2 -0
  233. package/dist/components/toggle-button/index.js +1 -0
  234. package/dist/components/toggle-button/toggle-button.d.ts +10 -0
  235. package/dist/components/toggle-button/toggle-button.js +26 -0
  236. package/dist/components/toggle-button-group/index.d.ts +2 -0
  237. package/dist/components/toggle-button-group/index.js +1 -0
  238. package/dist/components/toggle-button-group/toggle-button-group.d.ts +15 -0
  239. package/dist/components/toggle-button-group/toggle-button-group.js +61 -0
  240. package/dist/components/tooltip/index.d.ts +17 -0
  241. package/dist/components/tooltip/index.js +13 -0
  242. package/dist/components/tooltip/tooltip.d.ts +20 -0
  243. package/dist/components/tooltip/tooltip.js +105 -0
  244. package/dist/hooks/index.d.ts +6 -0
  245. package/dist/hooks/use-isomorphic-layout-effect.d.ts +2 -0
  246. package/dist/hooks/use-isomorphic-layout-effect.js +5 -0
  247. package/dist/hooks/use-list-data.d.ts +111 -0
  248. package/dist/hooks/use-media-query.d.ts +6 -0
  249. package/dist/hooks/use-media-query.js +49 -0
  250. package/dist/hooks/use-overlay-state.d.ts +52 -0
  251. package/dist/hooks/use-pagination.d.ts +48 -0
  252. package/dist/hooks/use-pagination.js +114 -0
  253. package/dist/hooks/use-safe-layout-effect.d.ts +2 -0
  254. package/dist/hooks/use-safe-layout-effect.js +5 -0
  255. package/dist/index.js +111 -26
  256. package/dist/node_modules/.pnpm/@internationalized_string@3.2.7/node_modules/@internationalized/string/dist/LocalizedStringDictionary.js +74 -0
  257. package/dist/node_modules/.pnpm/react-aria-components@1.14.0_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/react-aria-components/i18n/ar-AE.js +3 -0
  258. package/dist/node_modules/.pnpm/react-aria-components@1.14.0_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/react-aria-components/i18n/bg-BG.js +3 -0
  259. package/dist/node_modules/.pnpm/react-aria-components@1.14.0_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/react-aria-components/i18n/cs-CZ.js +3 -0
  260. package/dist/node_modules/.pnpm/react-aria-components@1.14.0_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/react-aria-components/i18n/da-DK.js +3 -0
  261. package/dist/node_modules/.pnpm/react-aria-components@1.14.0_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/react-aria-components/i18n/de-DE.js +3 -0
  262. package/dist/node_modules/.pnpm/react-aria-components@1.14.0_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/react-aria-components/i18n/el-GR.js +3 -0
  263. package/dist/node_modules/.pnpm/react-aria-components@1.14.0_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/react-aria-components/i18n/en-US.js +3 -0
  264. package/dist/node_modules/.pnpm/react-aria-components@1.14.0_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/react-aria-components/i18n/es-ES.js +3 -0
  265. package/dist/node_modules/.pnpm/react-aria-components@1.14.0_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/react-aria-components/i18n/et-EE.js +3 -0
  266. package/dist/node_modules/.pnpm/react-aria-components@1.14.0_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/react-aria-components/i18n/fi-FI.js +3 -0
  267. package/dist/node_modules/.pnpm/react-aria-components@1.14.0_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/react-aria-components/i18n/fr-FR.js +3 -0
  268. package/dist/node_modules/.pnpm/react-aria-components@1.14.0_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/react-aria-components/i18n/he-IL.js +3 -0
  269. package/dist/node_modules/.pnpm/react-aria-components@1.14.0_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/react-aria-components/i18n/hr-HR.js +3 -0
  270. package/dist/node_modules/.pnpm/react-aria-components@1.14.0_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/react-aria-components/i18n/hu-HU.js +3 -0
  271. package/dist/node_modules/.pnpm/react-aria-components@1.14.0_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/react-aria-components/i18n/index.js +80 -0
  272. package/dist/node_modules/.pnpm/react-aria-components@1.14.0_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/react-aria-components/i18n/it-IT.js +3 -0
  273. package/dist/node_modules/.pnpm/react-aria-components@1.14.0_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/react-aria-components/i18n/ja-JP.js +3 -0
  274. package/dist/node_modules/.pnpm/react-aria-components@1.14.0_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/react-aria-components/i18n/ko-KR.js +3 -0
  275. package/dist/node_modules/.pnpm/react-aria-components@1.14.0_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/react-aria-components/i18n/lt-LT.js +3 -0
  276. package/dist/node_modules/.pnpm/react-aria-components@1.14.0_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/react-aria-components/i18n/lv-LV.js +3 -0
  277. package/dist/node_modules/.pnpm/react-aria-components@1.14.0_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/react-aria-components/i18n/nb-NO.js +3 -0
  278. package/dist/node_modules/.pnpm/react-aria-components@1.14.0_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/react-aria-components/i18n/nl-NL.js +3 -0
  279. package/dist/node_modules/.pnpm/react-aria-components@1.14.0_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/react-aria-components/i18n/pl-PL.js +3 -0
  280. package/dist/node_modules/.pnpm/react-aria-components@1.14.0_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/react-aria-components/i18n/pt-BR.js +3 -0
  281. package/dist/node_modules/.pnpm/react-aria-components@1.14.0_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/react-aria-components/i18n/pt-PT.js +3 -0
  282. package/dist/node_modules/.pnpm/react-aria-components@1.14.0_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/react-aria-components/i18n/ro-RO.js +3 -0
  283. package/dist/node_modules/.pnpm/react-aria-components@1.14.0_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/react-aria-components/i18n/ru-RU.js +3 -0
  284. package/dist/node_modules/.pnpm/react-aria-components@1.14.0_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/react-aria-components/i18n/sk-SK.js +3 -0
  285. package/dist/node_modules/.pnpm/react-aria-components@1.14.0_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/react-aria-components/i18n/sl-SI.js +3 -0
  286. package/dist/node_modules/.pnpm/react-aria-components@1.14.0_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/react-aria-components/i18n/sr-SP.js +3 -0
  287. package/dist/node_modules/.pnpm/react-aria-components@1.14.0_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/react-aria-components/i18n/sv-SE.js +3 -0
  288. package/dist/node_modules/.pnpm/react-aria-components@1.14.0_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/react-aria-components/i18n/tr-TR.js +3 -0
  289. package/dist/node_modules/.pnpm/react-aria-components@1.14.0_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/react-aria-components/i18n/uk-UA.js +3 -0
  290. package/dist/node_modules/.pnpm/react-aria-components@1.14.0_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/react-aria-components/i18n/zh-CN.js +3 -0
  291. package/dist/node_modules/.pnpm/react-aria-components@1.14.0_react-dom@19.2.0_react@19.2.0__react@19.2.0/node_modules/react-aria-components/i18n/zh-TW.js +3 -0
  292. package/dist/packages/styles/src/components/accordion/accordion.styles.js +26 -0
  293. package/dist/packages/styles/src/components/alert/alert.styles.js +35 -0
  294. package/dist/packages/styles/src/components/alert-dialog/alert-dialog.styles.js +70 -0
  295. package/dist/packages/styles/src/components/avatar/avatar.styles.js +51 -0
  296. package/dist/packages/styles/src/components/breadcrumbs/breadcrumbs.styles.js +12 -0
  297. package/dist/packages/styles/src/components/chip/chip.styles.js +31 -0
  298. package/dist/packages/styles/src/components/container/container.styles.js +18 -0
  299. package/dist/packages/styles/src/components/dropdown/dropdown.styles.js +12 -0
  300. package/dist/packages/styles/src/components/empty/empty.styles.js +30 -0
  301. package/dist/packages/styles/src/components/empty-state/empty-state.styles.js +7 -0
  302. package/dist/packages/styles/src/components/fieldset/fieldset.styles.js +13 -0
  303. package/dist/packages/styles/src/components/header/header.styles.js +7 -0
  304. package/dist/packages/styles/src/components/heading/heading.styles.js +19 -0
  305. package/dist/packages/styles/src/components/input-group/input-group.styles.js +32 -0
  306. package/dist/packages/styles/src/components/input-otp/input-otp.styles.js +28 -0
  307. package/dist/packages/styles/src/components/kbd/kbd.styles.js +18 -0
  308. package/dist/packages/styles/src/components/link/link.styles.js +12 -0
  309. package/dist/packages/styles/src/components/listbox/listbox.styles.js +16 -0
  310. package/dist/packages/styles/src/components/listbox-item/listbox-item.styles.js +23 -0
  311. package/dist/packages/styles/src/components/listbox-section/listbox-section.styles.js +7 -0
  312. package/dist/packages/styles/src/components/menu/menu.styles.js +7 -0
  313. package/dist/packages/styles/src/components/menu-item/menu-item.styles.js +24 -0
  314. package/dist/packages/styles/src/components/menu-section/menu-section.styles.js +7 -0
  315. package/dist/packages/styles/src/components/modal/modal.styles.js +68 -0
  316. package/dist/packages/styles/src/components/number-field/number-field.styles.js +34 -0
  317. package/dist/packages/styles/src/components/pagination/pagination.styles.js +33 -0
  318. package/dist/packages/styles/src/components/radio/radio.styles.js +12 -0
  319. package/dist/packages/styles/src/components/radio-group/radio-group.styles.js +16 -0
  320. package/dist/packages/styles/src/components/scroll-shadow/scroll-shadow.styles.js +35 -0
  321. package/dist/packages/styles/src/components/select/select.styles.js +34 -0
  322. package/dist/packages/styles/src/components/separator/separator.styles.js +16 -0
  323. package/dist/packages/styles/src/components/slider/slider.styles.js +14 -0
  324. package/dist/packages/styles/src/components/spinner/spinner.styles.js +26 -0
  325. package/dist/packages/styles/src/components/switch/switch.styles.js +28 -0
  326. package/dist/packages/styles/src/components/tabs/tabs.styles.js +27 -0
  327. package/dist/packages/styles/src/components/tag/tag.styles.js +35 -0
  328. package/dist/packages/styles/src/components/tag-group/tag-group.styles.js +10 -0
  329. package/dist/packages/styles/src/components/textarea/textarea.styles.js +21 -0
  330. package/dist/packages/styles/src/components/toast/toast.styles.js +65 -0
  331. package/dist/packages/styles/src/components/toggle-button/toggle-button.styles.js +36 -0
  332. package/dist/packages/styles/src/components/toggle-button-group/toggle-button-group.styles.js +36 -0
  333. package/dist/packages/styles/src/components/tooltip/tooltip.styles.js +10 -0
  334. package/dist/utils/children.d.ts +9 -0
  335. package/dist/utils/children.js +17 -0
  336. package/dist/utils/compose.js +1 -1
  337. package/dist/utils/index.d.ts +4 -0
  338. package/dist/utils/merge-props.d.ts +26 -0
  339. package/dist/utils/merge-props.js +72 -0
  340. package/dist/utils/merge-refs.d.ts +5 -0
  341. package/dist/utils/merge-refs.js +48 -0
  342. package/package.json +13 -7
  343. package/dist/components/field-group/field-group.d.ts +0 -11
  344. package/dist/components/field-group/field-group.js +0 -18
  345. package/dist/components/field-group/index.d.ts +0 -13
  346. package/dist/components/field-group/index.js +0 -11
  347. package/dist/styles/src/components/field-group/field-group.styles.js +0 -25
  348. package/dist/styles/src/utils/state.js +0 -13
  349. /package/dist/{styles → packages/styles}/src/components/button/button.styles.js +0 -0
  350. /package/dist/{styles → packages/styles}/src/components/button-group/button-group.styles.js +0 -0
  351. /package/dist/{styles → packages/styles}/src/components/calendar/calendar.styles.js +0 -0
  352. /package/dist/{styles → packages/styles}/src/components/card/card.styles.js +0 -0
  353. /package/dist/{styles → packages/styles}/src/components/checkbox/checkbox.styles.js +0 -0
  354. /package/dist/{styles → packages/styles}/src/components/checkbox-group/checkbox-group.styles.js +0 -0
  355. /package/dist/{styles → packages/styles}/src/components/close-button/close-button.styles.js +0 -0
  356. /package/dist/{styles → packages/styles}/src/components/combobox/combobox.styles.js +0 -0
  357. /package/dist/{styles → packages/styles}/src/components/date-field/date-field.styles.js +0 -0
  358. /package/dist/{styles → packages/styles}/src/components/date-input-group/date-input-group.styles.js +0 -0
  359. /package/dist/{styles → packages/styles}/src/components/date-picker/date-picker.styles.js +0 -0
  360. /package/dist/{styles → packages/styles}/src/components/date-range-picker/date-range-picker.styles.js +0 -0
  361. /package/dist/{styles → packages/styles}/src/components/description/description.styles.js +0 -0
  362. /package/dist/{styles → packages/styles}/src/components/error-message/error-message.styles.js +0 -0
  363. /package/dist/{styles → packages/styles}/src/components/field-error/field-error.styles.js +0 -0
  364. /package/dist/{styles → packages/styles}/src/components/input/input.styles.js +0 -0
  365. /package/dist/{styles → packages/styles}/src/components/label/label.styles.js +0 -0
  366. /package/dist/{styles → packages/styles}/src/components/popover/popover.styles.js +0 -0
  367. /package/dist/{styles → packages/styles}/src/components/range-calendar/range-calendar.styles.js +0 -0
  368. /package/dist/{styles → packages/styles}/src/components/surface/surface.styles.js +0 -0
  369. /package/dist/{styles → packages/styles}/src/components/text-field/text-field.styles.js +0 -0
@@ -0,0 +1,21 @@
1
+ import { tv } from 'tailwind-variants';
2
+
3
+ const textAreaVariants = tv({
4
+ base: "textarea",
5
+ defaultVariants: {
6
+ fullWidth: false,
7
+ variant: "primary"
8
+ },
9
+ variants: {
10
+ fullWidth: {
11
+ false: "",
12
+ true: "textarea--full-width"
13
+ },
14
+ variant: {
15
+ primary: "textarea--primary",
16
+ secondary: "textarea--secondary"
17
+ }
18
+ }
19
+ });
20
+
21
+ export { textAreaVariants };
@@ -0,0 +1,65 @@
1
+ import { tv } from 'tailwind-variants';
2
+
3
+ const toastVariants = tv({
4
+ defaultVariants: {
5
+ placement: "bottom",
6
+ variant: "default"
7
+ },
8
+ slots: {
9
+ action: "toast__action",
10
+ close: "toast__close-button",
11
+ content: "toast__content",
12
+ description: "toast__description",
13
+ indicator: "toast__indicator",
14
+ region: "toast-region",
15
+ title: "toast__title",
16
+ toast: "toast"
17
+ },
18
+ variants: {
19
+ placement: {
20
+ bottom: {
21
+ region: "toast-region--bottom",
22
+ toast: "toast--bottom"
23
+ },
24
+ "bottom end": {
25
+ region: "toast-region--bottom-end",
26
+ toast: "toast--bottom-end"
27
+ },
28
+ "bottom start": {
29
+ region: "toast-region--bottom-start",
30
+ toast: "toast--bottom-start"
31
+ },
32
+ top: {
33
+ region: "toast-region--top",
34
+ toast: "toast--top"
35
+ },
36
+ "top end": {
37
+ region: "toast-region--top-end",
38
+ toast: "toast--top-end"
39
+ },
40
+ "top start": {
41
+ region: "toast-region--top-start",
42
+ toast: "toast--top-start"
43
+ }
44
+ },
45
+ variant: {
46
+ accent: {
47
+ toast: "toast--accent"
48
+ },
49
+ danger: {
50
+ toast: "toast--danger"
51
+ },
52
+ default: {
53
+ toast: "toast--default"
54
+ },
55
+ success: {
56
+ toast: "toast--success"
57
+ },
58
+ warning: {
59
+ toast: "toast--warning"
60
+ }
61
+ }
62
+ }
63
+ });
64
+
65
+ export { toastVariants };
@@ -0,0 +1,36 @@
1
+ import { tv } from 'tailwind-variants';
2
+
3
+ const toggleButtonVariants = tv({
4
+ base: "toggle-button",
5
+ defaultVariants: {
6
+ fullWidth: false,
7
+ isIconOnly: false,
8
+ size: "md",
9
+ variant: "primary"
10
+ },
11
+ variants: {
12
+ fullWidth: {
13
+ false: "",
14
+ true: "toggle-button--full-width"
15
+ },
16
+ isIconOnly: {
17
+ true: "toggle-button--icon-only"
18
+ },
19
+ size: {
20
+ lg: "toggle-button--lg",
21
+ md: "toggle-button--md",
22
+ sm: "toggle-button--sm"
23
+ },
24
+ variant: {
25
+ danger: "toggle-button--danger",
26
+ "danger-soft": "toggle-button--danger-soft",
27
+ ghost: "toggle-button--ghost",
28
+ outline: "toggle-button--outline",
29
+ primary: "toggle-button--primary",
30
+ secondary: "toggle-button--secondary",
31
+ tertiary: "toggle-button--tertiary"
32
+ }
33
+ }
34
+ });
35
+
36
+ export { toggleButtonVariants };
@@ -0,0 +1,36 @@
1
+ import { tv } from 'tailwind-variants';
2
+
3
+ const toggleButtonGroupVariants = tv({
4
+ base: "toggle-button-group",
5
+ defaultVariants: {
6
+ fullWidth: false,
7
+ isIconOnly: false,
8
+ size: "md",
9
+ variant: "primary"
10
+ },
11
+ variants: {
12
+ fullWidth: {
13
+ false: "",
14
+ true: "toggle-button-group--full-width"
15
+ },
16
+ isIconOnly: {
17
+ true: "toggle-button-group--icon-only"
18
+ },
19
+ size: {
20
+ lg: "toggle-button-group--lg",
21
+ md: "toggle-button-group--md",
22
+ sm: "toggle-button-group--sm"
23
+ },
24
+ variant: {
25
+ danger: "toggle-button-group--danger",
26
+ "danger-soft": "toggle-button-group--danger-soft",
27
+ ghost: "toggle-button-group--ghost",
28
+ outline: "toggle-button-group--outline",
29
+ primary: "toggle-button-group--primary",
30
+ secondary: "toggle-button-group--secondary",
31
+ tertiary: "toggle-button-group--tertiary"
32
+ }
33
+ }
34
+ });
35
+
36
+ export { toggleButtonGroupVariants };
@@ -0,0 +1,10 @@
1
+ import { tv } from 'tailwind-variants';
2
+
3
+ const tooltipVariants = tv({
4
+ slots: {
5
+ base: "tooltip",
6
+ trigger: "tooltip__trigger"
7
+ }
8
+ });
9
+
10
+ export { tooltipVariants };
@@ -0,0 +1,9 @@
1
+ import type { ReactNode } from "react";
2
+ /**
3
+ * Gets only the valid children of a component,
4
+ * and ignores any nullish or falsy child.
5
+ *
6
+ * @param children the children
7
+ */
8
+ export declare function getValidChildren(children: React.ReactNode): React.ReactElement[];
9
+ export declare const pickChildren: <T = ReactNode>(children: T | undefined, targetChild: React.ElementType) => [T | undefined, T[] | undefined];
@@ -0,0 +1,17 @@
1
+ import { Children, isValidElement } from 'react';
2
+
3
+ const pickChildren = (children, targetChild) => {
4
+ const target = [];
5
+ const withoutTargetChildren = Children.map(children, item => {
6
+ if (! /*#__PURE__*/isValidElement(item)) return item;
7
+ if (item.type === targetChild) {
8
+ target.push(item);
9
+ return null;
10
+ }
11
+ return item;
12
+ })?.filter(Boolean);
13
+ const targetChildren = target.length >= 0 ? target : undefined;
14
+ return [withoutTargetChildren, targetChildren];
15
+ };
16
+
17
+ export { pickChildren };
@@ -10,7 +10,7 @@ function composeTwRenderProps(className, tailwind) {
10
10
  }
11
11
  const composeSlotClassName = (slotFn, className, variants) => {
12
12
  return typeof slotFn === "function" ? slotFn({
13
- ...({}),
13
+ ...(variants ?? {}),
14
14
  className
15
15
  }) : className;
16
16
  };
@@ -1,3 +1,7 @@
1
1
  export * from "./compose";
2
+ export * from "./assertion";
2
3
  export * from "./styles";
3
4
  export * from "./assertion";
5
+ export * from "./merge-props";
6
+ export * from "./merge-refs";
7
+ export * from "./children";
@@ -0,0 +1,26 @@
1
+ type Props = Record<string, any>;
2
+ /**
3
+ * Merges multiple props objects into a single props object.
4
+ *
5
+ * - Event handlers (e.g., onClick, onChange) are chained so that all handlers are called in order.
6
+ * - The `className` property is merged using `mergeClassNames`.
7
+ * - The `id` property is merged using `mergeIds`.
8
+ * - All other properties are overwritten by the last occurrence.
9
+ *
10
+ * @typeParam T - An array of props objects to be merged.
11
+ * @param {...T} propsList - The list of props objects to merge.
12
+ * @returns {Props} The merged props object.
13
+ *
14
+ * @example
15
+ * ```typescript
16
+ * const merged = mergeProps(
17
+ * { onClick: handleClick1, className: 'foo', id: 'a' },
18
+ * { onClick: handleClick2, className: 'bar', id: 'b' }
19
+ * );
20
+ * // merged.onClick will call both handleClick1 and handleClick2
21
+ * // merged.className will be 'foo bar'
22
+ * // merged.id will be merged by mergeIds
23
+ * ```
24
+ */
25
+ export declare const mergeProps: <T extends Props[]>(...propsList: T) => Props;
26
+ export {};
@@ -0,0 +1,72 @@
1
+ const isEventHandler = key => {
2
+ return /^on[A-Z]/.test(key);
3
+ };
4
+ const chainHandlers = (...handlers) => {
5
+ return function chainedHandler(...args) {
6
+ for (const handler of handlers) {
7
+ if (typeof handler === 'function') {
8
+ handler.apply(this, args);
9
+ }
10
+ }
11
+ };
12
+ };
13
+ const mergeClassNames = (...classNames) => {
14
+ return classNames.filter(Boolean).join(' ');
15
+ };
16
+ const mergeIds = (...ids) => {
17
+ const seen = new Set();
18
+ for (const id of ids) {
19
+ if (id && !seen.has(id)) {
20
+ seen.add(id);
21
+ }
22
+ }
23
+ return seen.size > 0 ? Array.from(seen).join(' ') : undefined;
24
+ };
25
+
26
+ /**
27
+ * Merges multiple props objects into a single props object.
28
+ *
29
+ * - Event handlers (e.g., onClick, onChange) are chained so that all handlers are called in order.
30
+ * - The `className` property is merged using `mergeClassNames`.
31
+ * - The `id` property is merged using `mergeIds`.
32
+ * - All other properties are overwritten by the last occurrence.
33
+ *
34
+ * @typeParam T - An array of props objects to be merged.
35
+ * @param {...T} propsList - The list of props objects to merge.
36
+ * @returns {Props} The merged props object.
37
+ *
38
+ * @example
39
+ * ```typescript
40
+ * const merged = mergeProps(
41
+ * { onClick: handleClick1, className: 'foo', id: 'a' },
42
+ * { onClick: handleClick2, className: 'bar', id: 'b' }
43
+ * );
44
+ * // merged.onClick will call both handleClick1 and handleClick2
45
+ * // merged.className will be 'foo bar'
46
+ * // merged.id will be merged by mergeIds
47
+ * ```
48
+ */
49
+ const mergeProps = (...propsList) => {
50
+ const result = {};
51
+ for (const props of propsList) {
52
+ for (const key in props) {
53
+ const value = props[key];
54
+ if (isEventHandler(key)) {
55
+ if (result[key]) {
56
+ result[key] = chainHandlers(result[key], value);
57
+ } else {
58
+ result[key] = value;
59
+ }
60
+ } else if (key === 'className') {
61
+ result['className'] = mergeClassNames(result['className'], value);
62
+ } else if (key === 'id') {
63
+ result['id'] = mergeIds(result['id'], value);
64
+ } else {
65
+ result[key] = value;
66
+ }
67
+ }
68
+ }
69
+ return result;
70
+ };
71
+
72
+ export { mergeProps };
@@ -0,0 +1,5 @@
1
+ import type { MutableRefObject, Ref } from 'react';
2
+ /**
3
+ * Merges multiple refs into one. Works with either callback or object refs.
4
+ */
5
+ export declare function mergeRefs<T>(...refs: Array<Ref<T> | MutableRefObject<T> | null | undefined>): Ref<T>;
@@ -0,0 +1,48 @@
1
+ /*
2
+ * Copyright 2020 Adobe. All rights reserved.
3
+ * This file is licensed to you under the Apache License, Version 2.0 (the "License");
4
+ * you may not use this file except in compliance with the License. You may obtain a copy
5
+ * of the License at http://www.apache.org/licenses/LICENSE-2.0
6
+ *
7
+ * Unless required by applicable law or agreed to in writing, software distributed under
8
+ * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
9
+ * OF ANY KIND, either express or implied. See the License for the specific language
10
+ * governing permissions and limitations under the License.
11
+ */
12
+
13
+ /**
14
+ * Merges multiple refs into one. Works with either callback or object refs.
15
+ */
16
+ function mergeRefs(...refs) {
17
+ if (refs.length === 1 && refs[0]) {
18
+ return refs[0];
19
+ }
20
+ return value => {
21
+ let hasCleanup = false;
22
+ const cleanups = refs.map(ref => {
23
+ const cleanup = setRef(ref, value);
24
+ hasCleanup ||= typeof cleanup == 'function';
25
+ return cleanup;
26
+ });
27
+ if (hasCleanup) {
28
+ return () => {
29
+ cleanups.forEach((cleanup, i) => {
30
+ if (typeof cleanup === 'function') {
31
+ cleanup();
32
+ } else {
33
+ setRef(refs[i], null);
34
+ }
35
+ });
36
+ };
37
+ }
38
+ };
39
+ }
40
+ function setRef(ref, value) {
41
+ if (typeof ref === 'function') {
42
+ return ref(value);
43
+ } else if (ref != null) {
44
+ ref.current = value;
45
+ }
46
+ }
47
+
48
+ export { mergeRefs };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@arobo/react",
3
- "version": "1.0.1",
3
+ "version": "1.1.1",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "files": [
@@ -21,12 +21,18 @@
21
21
  "./package.json": "./package.json"
22
22
  },
23
23
  "dependencies": {
24
- "@internationalized/date": "^3.10.1",
25
- "@radix-ui/react-slot": "^1.2.4",
26
- "lucide-react": "^0.563.0",
27
- "react-aria-components": "^1.14.0",
28
- "tailwind-merge": "^3.4.0",
29
- "tailwind-variants": "^3.2.2"
24
+ "@iconify/react": "6.0.2",
25
+ "@internationalized/date": "3.10.1",
26
+ "@radix-ui/react-avatar": "1.1.11",
27
+ "@radix-ui/react-slot": "1.2.4",
28
+ "@react-types/shared": "3.32.1",
29
+ "embla-carousel-react": "8.6.0",
30
+ "input-otp": "1.4.2",
31
+ "lucide-react": "0.563.0",
32
+ "react-aria-components": "1.14.0",
33
+ "tailwind-merge": "3.4.0",
34
+ "tailwind-variants": "^3.2.2",
35
+ "vaul": "1.1.2"
30
36
  },
31
37
  "peerDependencies": {
32
38
  "react": ">=19.0.0",
@@ -1,11 +0,0 @@
1
- import React from "react";
2
- import type { ComponentPropsWithRef } from "react";
3
- import { type FieldGroupVariants } from "@arobo/styles";
4
- import { Group } from "react-aria-components";
5
- interface FieldGroupRootProps extends FieldGroupVariants, ComponentPropsWithRef<typeof Group> {
6
- children?: React.ReactNode;
7
- className?: string;
8
- }
9
- declare const FieldGroupRoot: React.ForwardRefExoticComponent<Omit<FieldGroupRootProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
10
- export { FieldGroupRoot };
11
- export type { FieldGroupRootProps };
@@ -1,18 +0,0 @@
1
- import { forwardRef } from 'react';
2
- import { Group, composeRenderProps } from 'react-aria-components';
3
- import { jsx } from 'react/jsx-runtime';
4
- import { fieldGroupVariants } from '../../styles/src/components/field-group/field-group.styles.js';
5
-
6
- const FieldGroupRoot = /*#__PURE__*/forwardRef((props, ref) => {
7
- return /*#__PURE__*/jsx(Group, {
8
- ...props,
9
- ref: ref,
10
- className: composeRenderProps(props.className, (className, renderProps) => fieldGroupVariants({
11
- ...renderProps,
12
- className
13
- }))
14
- });
15
- });
16
- FieldGroupRoot.displayName = "HeroUI.FieldGroup";
17
-
18
- export { FieldGroupRoot };
@@ -1,13 +0,0 @@
1
- import type { ComponentProps } from "react";
2
- import { FieldGroupRoot } from "./field-group";
3
- export declare const FieldGroup: import("react").ForwardRefExoticComponent<Omit<import("./field-group").FieldGroupRootProps, "ref"> & import("react").RefAttributes<HTMLDivElement>> & {
4
- Root: import("react").ForwardRefExoticComponent<Omit<import("./field-group").FieldGroupRootProps, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
5
- };
6
- export type FieldGroup = {
7
- Props: ComponentProps<typeof FieldGroupRoot>;
8
- RootProps: ComponentProps<typeof FieldGroupRoot>;
9
- };
10
- export { FieldGroupRoot } from "./field-group";
11
- export type { FieldGroupRootProps, FieldGroupRootProps as FieldGroupProps, } from "./field-group";
12
- export { fieldGroupVariants } from "@arobo/styles";
13
- export type { FieldGroupVariants } from "@arobo/styles";
@@ -1,11 +0,0 @@
1
- import { FieldGroupRoot } from './field-group.js';
2
- export { fieldGroupVariants } from '../../styles/src/components/field-group/field-group.styles.js';
3
-
4
- /* -------------------------------------------------------------------------------------------------
5
- * Compound Component
6
- * -----------------------------------------------------------------------------------------------*/
7
- const FieldGroup = Object.assign(FieldGroupRoot, {
8
- Root: FieldGroupRoot
9
- });
10
-
11
- export { FieldGroup, FieldGroupRoot };
@@ -1,25 +0,0 @@
1
- import { tv } from 'tailwind-variants';
2
- import { focusRing } from '../../utils/state.js';
3
-
4
- const fieldBorderStyles = tv({
5
- base: "transition",
6
- variants: {
7
- isFocusWithin: {
8
- false: "border-neutral-300 hover:border-neutral-400 dark:border-neutral-600 dark:hover:border-neutral-500 forced-colors:border-[ButtonBorder]",
9
- true: "border-neutral-600 dark:border-neutral-300 forced-colors:border-[Highlight]"
10
- },
11
- isInvalid: {
12
- true: "border-red-600 dark:border-red-600 forced-colors:border-[Mark]"
13
- },
14
- isDisabled: {
15
- true: "border-neutral-200 dark:border-neutral-700 forced-colors:border-[GrayText]"
16
- }
17
- }
18
- });
19
- const fieldGroupVariants = tv({
20
- extend: focusRing,
21
- base: "field-group",
22
- variants: fieldBorderStyles.variants
23
- });
24
-
25
- export { fieldBorderStyles, fieldGroupVariants };
@@ -1,13 +0,0 @@
1
- import { tv } from 'tailwind-variants';
2
-
3
- const focusRing = tv({
4
- base: "focus-ring",
5
- variants: {
6
- isFocusVisible: {
7
- false: "",
8
- true: "outline-2"
9
- }
10
- }
11
- });
12
-
13
- export { focusRing };