@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
@@ -15,6 +15,55 @@ const IconChevronDown = props => /*#__PURE__*/jsx("svg", {
15
15
  fillRule: "evenodd"
16
16
  })
17
17
  });
18
+ const IconChevronRight = props => /*#__PURE__*/jsx("svg", {
19
+ "aria-hidden": "true",
20
+ "aria-label": "Chevron right icon",
21
+ fill: "none",
22
+ role: "presentation",
23
+ viewBox: "0 0 16 16",
24
+ xmlns: "http://www.w3.org/2000/svg",
25
+ ...props,
26
+ children: /*#__PURE__*/jsx("path", {
27
+ clipRule: "evenodd",
28
+ d: "M5.47 2.97a.75.75 0 0 1 1.06 0l4.5 4.5a.75.75 0 0 1 0 1.06l-4.5 4.5a.75.75 0 1 1-1.06-1.06L9.44 8 5.47 4.03a.75.75 0 0 1 0-1.06Z",
29
+ fill: "currentColor",
30
+ fillRule: "evenodd"
31
+ })
32
+ });
33
+ const ExternalLinkIcon = ({
34
+ height = 9,
35
+ width = 9,
36
+ ...props
37
+ }) => /*#__PURE__*/jsx("svg", {
38
+ "aria-hidden": "true",
39
+ "aria-label": "External link icon",
40
+ fill: "none",
41
+ height: height,
42
+ role: "presentation",
43
+ viewBox: "0 0 7 7",
44
+ width: width,
45
+ xmlns: "http://www.w3.org/2000/svg",
46
+ ...props,
47
+ children: /*#__PURE__*/jsx("path", {
48
+ d: "M1.20592 6.84333L0.379822 6.01723L4.52594 1.8672H1.37819L1.38601 0.731812H6.48742V5.83714H5.34421L5.35203 2.6933L1.20592 6.84333Z",
49
+ fill: "currentColor"
50
+ })
51
+ });
52
+ const CircleDashedIcon = props => /*#__PURE__*/jsx("svg", {
53
+ "aria-hidden": "true",
54
+ "aria-label": "Circle dashed icon",
55
+ fill: "none",
56
+ height: 16,
57
+ role: "presentation",
58
+ viewBox: "0 0 16 16",
59
+ width: 16,
60
+ xmlns: "http://www.w3.org/2000/svg",
61
+ ...props,
62
+ children: /*#__PURE__*/jsx("path", {
63
+ d: "M6.906 1.085a7.047 7.047 0 0 1 2.188 0 .75.75 0 0 1-.232 1.482 5.546 5.546 0 0 0-1.724 0 .75.75 0 0 1-.232-1.482ZM4.933 2.502a.75.75 0 0 1-.166 1.048c-.466.34-.878.75-1.217 1.217a.75.75 0 0 1-1.213-.882 7.036 7.036 0 0 1 1.548-1.548.75.75 0 0 1 1.048.165Zm6.135 0a.75.75 0 0 1 1.047-.165 7.037 7.037 0 0 1 1.548 1.548.75.75 0 0 1-1.213.882 5.533 5.533 0 0 0-1.217-1.217.75.75 0 0 1-.165-1.048ZM1.943 6.28a.75.75 0 0 1 .624.857 5.546 5.546 0 0 0 0 1.724.75.75 0 0 1-1.482.232 7.047 7.047 0 0 1 0-2.188.75.75 0 0 1 .858-.625Zm12.114 0a.75.75 0 0 1 .858.625 7.048 7.048 0 0 1 0 2.188.75.75 0 1 1-1.482-.232 5.54 5.54 0 0 0 0-1.724.75.75 0 0 1 .624-.857ZM2.502 11.068a.75.75 0 0 1 1.048.165c.34.466.75.878 1.217 1.217a.75.75 0 0 1-.882 1.213 7.037 7.037 0 0 1-1.548-1.548.75.75 0 0 1 .165-1.047Zm10.996 0a.75.75 0 0 1 .165 1.047 7.037 7.037 0 0 1-1.548 1.548.75.75 0 0 1-.883-1.213 5.53 5.53 0 0 0 1.218-1.217.75.75 0 0 1 1.048-.165Zm-7.217 2.99a.75.75 0 0 1 .857-.625 5.54 5.54 0 0 0 1.724 0 .75.75 0 0 1 .232 1.482 7.048 7.048 0 0 1-2.188 0 .75.75 0 0 1-.625-.857Z",
64
+ fill: "currentColor"
65
+ })
66
+ });
18
67
  const CloseIcon = props => /*#__PURE__*/jsx("svg", {
19
68
  "aria-hidden": "true",
20
69
  "aria-label": "Close icon",
@@ -32,5 +81,124 @@ const CloseIcon = props => /*#__PURE__*/jsx("svg", {
32
81
  fillRule: "evenodd"
33
82
  })
34
83
  });
84
+ const InfoIcon = props => /*#__PURE__*/jsx("svg", {
85
+ "aria-hidden": "true",
86
+ "aria-label": "Info icon",
87
+ fill: "none",
88
+ height: 16,
89
+ role: "presentation",
90
+ viewBox: "0 0 16 16",
91
+ width: 16,
92
+ xmlns: "http://www.w3.org/2000/svg",
93
+ ...props,
94
+ children: /*#__PURE__*/jsx("path", {
95
+ clipRule: "evenodd",
96
+ d: "M8 13.5a5.5 5.5 0 1 0 0-11a5.5 5.5 0 0 0 0 11M8 15A7 7 0 1 0 8 1a7 7 0 0 0 0 14m1-9.5a1 1 0 1 1-2 0a1 1 0 0 1 2 0m-.25 3a.75.75 0 0 0-1.5 0V11a.75.75 0 0 0 1.5 0z",
97
+ fill: "currentColor",
98
+ fillRule: "evenodd"
99
+ })
100
+ });
101
+ const WarningIcon = props => /*#__PURE__*/jsx("svg", {
102
+ "aria-hidden": "true",
103
+ "aria-label": "Warning icon",
104
+ fill: "none",
105
+ height: 16,
106
+ role: "presentation",
107
+ viewBox: "0 0 16 16",
108
+ width: 16,
109
+ xmlns: "http://www.w3.org/2000/svg",
110
+ ...props,
111
+ children: /*#__PURE__*/jsx("path", {
112
+ clipRule: "evenodd",
113
+ d: "M7.134 2.994L2.217 11.5a1 1 0 0 0 .866 1.5h9.834a1 1 0 0 0 .866-1.5L8.866 2.993a1 1 0 0 0-1.732 0m3.03-.75c-.962-1.665-3.366-1.665-4.329 0L.918 10.749c-.963 1.666.24 3.751 2.165 3.751h9.834c1.925 0 3.128-2.085 2.164-3.751zM8 5a.75.75 0 0 1 .75.75v2a.75.75 0 0 1-1.5 0v-2A.75.75 0 0 1 8 5m1 5.75a1 1 0 1 1-2 0a1 1 0 0 1 2 0",
114
+ fill: "currentColor",
115
+ fillRule: "evenodd"
116
+ })
117
+ });
118
+ const DangerIcon = props => /*#__PURE__*/jsx("svg", {
119
+ "aria-hidden": "true",
120
+ "aria-label": "Danger icon",
121
+ fill: "none",
122
+ height: 16,
123
+ role: "presentation",
124
+ viewBox: "0 0 16 16",
125
+ width: 16,
126
+ xmlns: "http://www.w3.org/2000/svg",
127
+ ...props,
128
+ children: /*#__PURE__*/jsx("path", {
129
+ clipRule: "evenodd",
130
+ d: "M8 13.5a5.5 5.5 0 1 0 0-11a5.5 5.5 0 0 0 0 11M8 15A7 7 0 1 0 8 1a7 7 0 0 0 0 14m1-4.5a1 1 0 1 1-2 0a1 1 0 0 1 2 0M8.75 5a.75.75 0 0 0-1.5 0v2.5a.75.75 0 0 0 1.5 0z",
131
+ fill: "currentColor",
132
+ fillRule: "evenodd"
133
+ })
134
+ });
135
+ const SuccessIcon = props => /*#__PURE__*/jsx("svg", {
136
+ "aria-hidden": "true",
137
+ "aria-label": "Success icon",
138
+ fill: "none",
139
+ height: 16,
140
+ role: "presentation",
141
+ viewBox: "0 0 16 16",
142
+ width: 16,
143
+ xmlns: "http://www.w3.org/2000/svg",
144
+ ...props,
145
+ children: /*#__PURE__*/jsx("path", {
146
+ clipRule: "evenodd",
147
+ d: "M13.5 8a5.5 5.5 0 1 1-11 0a5.5 5.5 0 0 1 11 0M15 8A7 7 0 1 1 1 8a7 7 0 0 1 14 0m-3.9-1.55a.75.75 0 1 0-1.2-.9L7.419 8.858L6.03 7.47a.75.75 0 0 0-1.06 1.06l2 2a.75.75 0 0 0 1.13-.08z",
148
+ fill: "currentColor",
149
+ fillRule: "evenodd"
150
+ })
151
+ });
152
+ const IconMinus = props => /*#__PURE__*/jsx("svg", {
153
+ "aria-hidden": "true",
154
+ "aria-label": "Minus icon",
155
+ fill: "none",
156
+ height: 16,
157
+ role: "presentation",
158
+ viewBox: "0 0 16 16",
159
+ width: 16,
160
+ xmlns: "http://www.w3.org/2000/svg",
161
+ ...props,
162
+ children: /*#__PURE__*/jsx("path", {
163
+ clipRule: "evenodd",
164
+ d: "M1.75 8a.75.75 0 0 1 .75-.75h11a.75.75 0 0 1 0 1.5h-11A.75.75 0 0 1 1.75 8",
165
+ fill: "currentColor",
166
+ fillRule: "evenodd"
167
+ })
168
+ });
169
+ const IconPlus = props => /*#__PURE__*/jsx("svg", {
170
+ "aria-hidden": "true",
171
+ "aria-label": "Plus icon",
172
+ fill: "none",
173
+ height: 16,
174
+ role: "presentation",
175
+ viewBox: "0 0 16 16",
176
+ width: 16,
177
+ xmlns: "http://www.w3.org/2000/svg",
178
+ ...props,
179
+ children: /*#__PURE__*/jsx("path", {
180
+ clipRule: "evenodd",
181
+ d: "M8 1.75a.75.75 0 0 1 .75.75v4.75h4.75a.75.75 0 0 1 0 1.5H8.75v4.75a.75.75 0 0 1-1.5 0V8.75H2.5a.75.75 0 0 1 0-1.5h4.75V2.5A.75.75 0 0 1 8 1.75",
182
+ fill: "currentColor",
183
+ fillRule: "evenodd"
184
+ })
185
+ });
186
+ const IconSearch = props => /*#__PURE__*/jsx("svg", {
187
+ "aria-hidden": "true",
188
+ "aria-label": "Search icon",
189
+ fill: "none",
190
+ height: 16,
191
+ role: "presentation",
192
+ viewBox: "0 0 16 16",
193
+ width: 16,
194
+ xmlns: "http://www.w3.org/2000/svg",
195
+ ...props,
196
+ children: /*#__PURE__*/jsx("path", {
197
+ clipRule: "evenodd",
198
+ d: "M11.5 7a4.5 4.5 0 1 1-9 0a4.5 4.5 0 0 1 9 0m-.82 4.74a6 6 0 1 1 1.06-1.06l2.79 2.79a.75.75 0 1 1-1.06 1.06z",
199
+ fill: "currentColor",
200
+ fillRule: "evenodd"
201
+ })
202
+ });
35
203
 
36
- export { CloseIcon, IconChevronDown };
204
+ export { CircleDashedIcon, CloseIcon, DangerIcon, ExternalLinkIcon, IconChevronDown, IconChevronRight, IconMinus, IconPlus, IconSearch, InfoIcon, SuccessIcon, WarningIcon };
@@ -1,3 +1,8 @@
1
+ export * from "./container";
2
+ export * from "./fieldset";
3
+ export * from "./heading";
4
+ export * from "./icons";
5
+ export * from "./rac";
1
6
  export * from "./button";
2
7
  export * from "./button-group";
3
8
  export * from "./calendar";
@@ -12,9 +17,48 @@ export * from "./date-range-picker";
12
17
  export * from "./description";
13
18
  export * from "./error-message";
14
19
  export * from "./field-error";
15
- export * from "./field-group";
16
20
  export * from "./input";
21
+ export * from "./accordion";
22
+ export * from "./input-group";
23
+ export * from "./input-otp";
24
+ export * from "./number-field";
25
+ export * from "./surface";
26
+ export * from "./close-button";
27
+ export * from "./spinner";
28
+ export * from "./alert";
29
+ export * from "./alert-dialog";
30
+ export * from "./chip";
31
+ export * from "./breadcrumbs";
32
+ export * from "./dropdown";
33
+ export * from "./empty";
34
+ export * from "./menu-section";
35
+ export * from "./menu-item";
36
+ export * from "./menu";
37
+ export * from "./kbd";
38
+ export * from "./header";
17
39
  export * from "./label";
40
+ export * from "./pagination";
41
+ export * from "./avatar";
42
+ export * from "./radio";
43
+ export * from "./radio-group";
44
+ export * from "./modal";
45
+ export * from "./listbox-item";
46
+ export * from "./listbox-section";
47
+ export * from "./listbox";
48
+ export * from "./slider";
49
+ export * from "./tabs";
50
+ export * from "./textarea";
51
+ export * from "./toggle-button";
52
+ export * from "./select";
53
+ export * from "./tooltip";
54
+ export * from "./empty-state";
55
+ export * from "./tag";
56
+ export * from "./tag-group";
57
+ export * from "./toast";
58
+ export * from "./separator";
59
+ export * from "./carousel";
60
+ export * from "./scroll-shadow";
61
+ export * from "./drawer";
18
62
  export * from "./popover";
19
63
  export * from "./range-calendar";
20
64
  export * from "./surface";
@@ -1,5 +1,5 @@
1
1
  import { InputRoot } from './input.js';
2
- export { inputVariants } from '../../styles/src/components/input/input.styles.js';
2
+ export { inputVariants } from '../../packages/styles/src/components/input/input.styles.js';
3
3
 
4
4
  /* -------------------------------------------------------------------------------------------------
5
5
  * Compound Component
@@ -2,7 +2,7 @@ import { useContext } from 'react';
2
2
  import { Input } from 'react-aria-components';
3
3
  import { jsx } from 'react/jsx-runtime';
4
4
  import { TextFieldContext } from '../text-field/text-field.js';
5
- import { inputVariants } from '../../styles/src/components/input/input.styles.js';
5
+ import { inputVariants } from '../../packages/styles/src/components/input/input.styles.js';
6
6
  import { composeTwRenderProps } from '../../utils/compose.js';
7
7
 
8
8
  const InputRoot = ({
@@ -0,0 +1,21 @@
1
+ import type { ComponentProps } from "react";
2
+ import { InputGroupInput, InputGroupPrefix, InputGroupRoot, InputGroupSuffix, InputGroupTextArea } from "./input-group";
3
+ export declare const InputGroup: (({ children, className, fullWidth, onClick, variant, ...props }: import("./input-group").InputGroupRootProps) => import("react/jsx-runtime").JSX.Element) & {
4
+ Root: ({ children, className, fullWidth, onClick, variant, ...props }: import("./input-group").InputGroupRootProps) => import("react/jsx-runtime").JSX.Element;
5
+ Input: ({ className, ...props }: import("./input-group").InputGroupInputProps) => import("react/jsx-runtime").JSX.Element;
6
+ TextArea: ({ className, ...props }: import("./input-group").InputGroupTextAreaProps) => import("react/jsx-runtime").JSX.Element;
7
+ Prefix: ({ children, className, ...props }: import("./input-group").InputGroupPrefixProps) => import("react/jsx-runtime").JSX.Element;
8
+ Suffix: ({ children, className, ...props }: import("./input-group").InputGroupSuffixProps) => import("react/jsx-runtime").JSX.Element;
9
+ };
10
+ export type InputGroup = {
11
+ Props: ComponentProps<typeof InputGroupRoot>;
12
+ RootProps: ComponentProps<typeof InputGroupRoot>;
13
+ InputProps: ComponentProps<typeof InputGroupInput>;
14
+ TextAreaProps: ComponentProps<typeof InputGroupTextArea>;
15
+ PrefixProps: ComponentProps<typeof InputGroupPrefix>;
16
+ SuffixProps: ComponentProps<typeof InputGroupSuffix>;
17
+ };
18
+ export { InputGroupInput, InputGroupPrefix, InputGroupRoot, InputGroupSuffix, InputGroupTextArea, };
19
+ export type { InputGroupRootProps, InputGroupRootProps as InputGroupProps, InputGroupInputProps, InputGroupTextAreaProps, InputGroupPrefixProps, InputGroupSuffixProps, } from "./input-group";
20
+ export { inputGroupVariants } from "@arobo/styles";
21
+ export type { InputGroupVariants } from "@arobo/styles";
@@ -0,0 +1,15 @@
1
+ import { InputGroupRoot, InputGroupSuffix, InputGroupPrefix, InputGroupTextArea, InputGroupInput } from './input-group.js';
2
+ export { inputGroupVariants } from '../../packages/styles/src/components/input-group/input-group.styles.js';
3
+
4
+ /* -------------------------------------------------------------------------------------------------
5
+ * Compound Component
6
+ * -----------------------------------------------------------------------------------------------*/
7
+ const InputGroup = Object.assign(InputGroupRoot, {
8
+ Root: InputGroupRoot,
9
+ Input: InputGroupInput,
10
+ TextArea: InputGroupTextArea,
11
+ Prefix: InputGroupPrefix,
12
+ Suffix: InputGroupSuffix
13
+ });
14
+
15
+ export { InputGroup, InputGroupInput, InputGroupPrefix, InputGroupRoot, InputGroupSuffix, InputGroupTextArea };
@@ -0,0 +1,20 @@
1
+ import type { InputGroupVariants } from "@arobo/styles";
2
+ import type { ComponentPropsWithRef } from "react";
3
+ import { Group as GroupPrimitive, Input as InputPrimitive, TextArea as TextAreaPrimitive } from "react-aria-components";
4
+ interface InputGroupRootProps extends ComponentPropsWithRef<typeof GroupPrimitive>, InputGroupVariants {
5
+ }
6
+ declare const InputGroupRoot: ({ children, className, fullWidth, onClick, variant, ...props }: InputGroupRootProps) => import("react/jsx-runtime").JSX.Element;
7
+ interface InputGroupInputProps extends ComponentPropsWithRef<typeof InputPrimitive> {
8
+ }
9
+ declare const InputGroupInput: ({ className, ...props }: InputGroupInputProps) => import("react/jsx-runtime").JSX.Element;
10
+ interface InputGroupPrefixProps extends ComponentPropsWithRef<"div"> {
11
+ }
12
+ declare const InputGroupPrefix: ({ children, className, ...props }: InputGroupPrefixProps) => import("react/jsx-runtime").JSX.Element;
13
+ interface InputGroupTextAreaProps extends ComponentPropsWithRef<typeof TextAreaPrimitive> {
14
+ }
15
+ declare const InputGroupTextArea: ({ className, ...props }: InputGroupTextAreaProps) => import("react/jsx-runtime").JSX.Element;
16
+ interface InputGroupSuffixProps extends ComponentPropsWithRef<"div"> {
17
+ }
18
+ declare const InputGroupSuffix: ({ children, className, ...props }: InputGroupSuffixProps) => import("react/jsx-runtime").JSX.Element;
19
+ export { InputGroupRoot, InputGroupInput, InputGroupTextArea, InputGroupPrefix, InputGroupSuffix, };
20
+ export type { InputGroupRootProps, InputGroupInputProps, InputGroupTextAreaProps, InputGroupPrefixProps, InputGroupSuffixProps, };
@@ -0,0 +1,128 @@
1
+ import React__default, { useContext, createContext } from 'react';
2
+ import { Group, TextArea, Input } from 'react-aria-components';
3
+ import { composeTwRenderProps, composeSlotClassName } from '../../utils/compose.js';
4
+ import { jsx } from 'react/jsx-runtime';
5
+ import { TextFieldContext } from '../text-field/text-field.js';
6
+ import { inputGroupVariants } from '../../packages/styles/src/components/input-group/input-group.styles.js';
7
+
8
+ const InputGroupContext = /*#__PURE__*/createContext({});
9
+
10
+ /* -------------------------------------------------------------------------------------------------
11
+ * InputGroup Root
12
+ * -----------------------------------------------------------------------------------------------*/
13
+
14
+ const InputGroupRoot = ({
15
+ children,
16
+ className,
17
+ fullWidth,
18
+ onClick,
19
+ variant,
20
+ ...props
21
+ }) => {
22
+ const textFieldContext = useContext(TextFieldContext);
23
+ const resolvedVariant = variant ?? textFieldContext?.variant;
24
+ const groupRef = React__default.useRef(null);
25
+ const slots = React__default.useMemo(() => inputGroupVariants({
26
+ fullWidth,
27
+ variant: resolvedVariant
28
+ }), [fullWidth, resolvedVariant]);
29
+ const handleClick = e => {
30
+ const target = e.target;
31
+ const input = groupRef.current?.querySelector("input");
32
+ if (input && target !== input && !input.contains(target)) {
33
+ input.focus();
34
+ }
35
+ onClick?.(e);
36
+ };
37
+ return /*#__PURE__*/jsx(InputGroupContext, {
38
+ value: {
39
+ slots
40
+ },
41
+ children: /*#__PURE__*/jsx(Group, {
42
+ ...props,
43
+ ref: groupRef,
44
+ className: composeTwRenderProps(className, slots?.base()),
45
+ "data-slot": "input-group",
46
+ onClick: handleClick,
47
+ children: renderProps => typeof children === "function" ? children(renderProps) : children
48
+ })
49
+ });
50
+ };
51
+
52
+ /* -------------------------------------------------------------------------------------------------
53
+ * InputGroup Input
54
+ * -----------------------------------------------------------------------------------------------*/
55
+
56
+ const InputGroupInput = ({
57
+ className,
58
+ ...props
59
+ }) => {
60
+ const {
61
+ slots
62
+ } = useContext(InputGroupContext);
63
+ return /*#__PURE__*/jsx(Input, {
64
+ className: composeTwRenderProps(className, slots?.input()),
65
+ "data-slot": "input-group-input",
66
+ ...props
67
+ });
68
+ };
69
+
70
+ /* -------------------------------------------------------------------------------------------------
71
+ * InputGroup Prefix
72
+ * -----------------------------------------------------------------------------------------------*/
73
+
74
+ const InputGroupPrefix = ({
75
+ children,
76
+ className,
77
+ ...props
78
+ }) => {
79
+ const {
80
+ slots
81
+ } = useContext(InputGroupContext);
82
+ return /*#__PURE__*/jsx("div", {
83
+ className: composeSlotClassName(slots?.prefix, className),
84
+ "data-slot": "input-group-prefix",
85
+ ...props,
86
+ children: children
87
+ });
88
+ };
89
+
90
+ /* -------------------------------------------------------------------------------------------------
91
+ * InputGroup TextArea
92
+ * -----------------------------------------------------------------------------------------------*/
93
+
94
+ const InputGroupTextArea = ({
95
+ className,
96
+ ...props
97
+ }) => {
98
+ const {
99
+ slots
100
+ } = useContext(InputGroupContext);
101
+ return /*#__PURE__*/jsx(TextArea, {
102
+ className: composeTwRenderProps(className, slots?.input()),
103
+ "data-slot": "input-group-textarea",
104
+ ...props
105
+ });
106
+ };
107
+
108
+ /* -------------------------------------------------------------------------------------------------
109
+ * InputGroup Suffix
110
+ * -----------------------------------------------------------------------------------------------*/
111
+
112
+ const InputGroupSuffix = ({
113
+ children,
114
+ className,
115
+ ...props
116
+ }) => {
117
+ const {
118
+ slots
119
+ } = useContext(InputGroupContext);
120
+ return /*#__PURE__*/jsx("div", {
121
+ className: composeSlotClassName(slots?.suffix, className),
122
+ "data-slot": "input-group-suffix",
123
+ ...props,
124
+ children: children
125
+ });
126
+ };
127
+
128
+ export { InputGroupInput, InputGroupPrefix, InputGroupRoot, InputGroupSuffix, InputGroupTextArea };
@@ -0,0 +1,22 @@
1
+ import type { ComponentProps } from "react";
2
+ import { InputOTPGroup, InputOTPRoot, InputOTPSeparator, InputOTPSlot } from "./input-otp";
3
+ export declare const InputOTP: (({ className, inputClassName, isDisabled, isInvalid, validationDetails, validationErrors, variant, ...props }: import("./input-otp").InputOTPRootProps) => import("react/jsx-runtime").JSX.Element) & {
4
+ Root: ({ className, inputClassName, isDisabled, isInvalid, validationDetails, validationErrors, variant, ...props }: import("./input-otp").InputOTPRootProps) => import("react/jsx-runtime").JSX.Element;
5
+ Group: ({ className, ...props }: import("./input-otp").InputOTPGroupProps) => import("react/jsx-runtime").JSX.Element;
6
+ Slot: ({ className, index, ...props }: import("./input-otp").InputOTPSlotProps) => import("react/jsx-runtime").JSX.Element;
7
+ Separator: ({ className, ...props }: import("./input-otp").InputOTPSeparatorProps) => import("react/jsx-runtime").JSX.Element;
8
+ };
9
+ export type InputOTP = {
10
+ Props: ComponentProps<typeof InputOTPRoot>;
11
+ RootProps: ComponentProps<typeof InputOTPRoot>;
12
+ GroupProps: ComponentProps<typeof InputOTPGroup>;
13
+ SlotProps: ComponentProps<typeof InputOTPSlot>;
14
+ SeparatorProps: ComponentProps<typeof InputOTPSeparator>;
15
+ };
16
+ export { InputOTPRoot, InputOTPGroup, InputOTPSlot, InputOTPSeparator };
17
+ export type { InputOTPRootProps, InputOTPRootProps as InputOTPProps, InputOTPGroupProps, InputOTPSlotProps, InputOTPSeparatorProps, } from "./input-otp";
18
+ export { inputOTPVariants } from "@arobo/styles";
19
+ export type { InputOTPVariants } from "@arobo/styles";
20
+ export declare const REGEXP_ONLY_DIGITS = "^\\d+$";
21
+ export declare const REGEXP_ONLY_CHARS = "^[a-zA-Z]+$";
22
+ export declare const REGEXP_ONLY_DIGITS_AND_CHARS = "^[a-zA-Z0-9]+$";
@@ -0,0 +1,20 @@
1
+ import { InputOTPRoot, InputOTPSeparator, InputOTPSlot, InputOTPGroup } from './input-otp.js';
2
+ export { inputOTPVariants } from '../../packages/styles/src/components/input-otp/input-otp.styles.js';
3
+
4
+ /* -------------------------------------------------------------------------------------------------
5
+ * Compound Component
6
+ * -----------------------------------------------------------------------------------------------*/
7
+ const InputOTP = Object.assign(InputOTPRoot, {
8
+ Root: InputOTPRoot,
9
+ Group: InputOTPGroup,
10
+ Slot: InputOTPSlot,
11
+ Separator: InputOTPSeparator
12
+ });
13
+ // ===================================
14
+ // Regular Expressions
15
+ // ===================================
16
+ const REGEXP_ONLY_DIGITS = "^\\d+$";
17
+ const REGEXP_ONLY_CHARS = "^[a-zA-Z]+$";
18
+ const REGEXP_ONLY_DIGITS_AND_CHARS = "^[a-zA-Z0-9]+$";
19
+
20
+ export { InputOTP, InputOTPGroup, InputOTPRoot, InputOTPSeparator, InputOTPSlot, REGEXP_ONLY_CHARS, REGEXP_ONLY_DIGITS, REGEXP_ONLY_DIGITS_AND_CHARS };
@@ -0,0 +1,26 @@
1
+ import type { InputOTPVariants } from "@arobo/styles";
2
+ import type { ComponentPropsWithRef } from "react";
3
+ import { OTPInput } from "input-otp";
4
+ import React from "react";
5
+ interface InputOTPRootProps extends Omit<ComponentPropsWithRef<typeof OTPInput>, "disabled" | "containerClassName" | "render">, InputOTPVariants {
6
+ isDisabled?: boolean;
7
+ isInvalid?: boolean;
8
+ validationErrors?: string[];
9
+ validationDetails?: ValidityState;
10
+ inputClassName?: string;
11
+ children: React.ReactNode;
12
+ }
13
+ declare const InputOTPRoot: ({ className, inputClassName, isDisabled, isInvalid, validationDetails, validationErrors, variant, ...props }: InputOTPRootProps) => import("react/jsx-runtime").JSX.Element;
14
+ interface InputOTPGroupProps extends ComponentPropsWithRef<"div"> {
15
+ }
16
+ declare const InputOTPGroup: ({ className, ...props }: InputOTPGroupProps) => import("react/jsx-runtime").JSX.Element;
17
+ interface InputOTPSlotProps extends ComponentPropsWithRef<"div"> {
18
+ index: number;
19
+ }
20
+ declare const InputOTPSlot: ({ className, index, ...props }: InputOTPSlotProps) => import("react/jsx-runtime").JSX.Element;
21
+ interface InputOTPSeparatorProps extends ComponentPropsWithRef<"div"> {
22
+ className?: string;
23
+ }
24
+ declare const InputOTPSeparator: ({ className, ...props }: InputOTPSeparatorProps) => import("react/jsx-runtime").JSX.Element;
25
+ export { InputOTPRoot, InputOTPGroup, InputOTPSlot, InputOTPSeparator };
26
+ export type { InputOTPRootProps, InputOTPGroupProps, InputOTPSlotProps, InputOTPSeparatorProps, };
@@ -0,0 +1,138 @@
1
+ import { OTPInput, OTPInputContext } from 'input-otp';
2
+ import React__default, { createContext, useContext } from 'react';
3
+ import { FieldErrorContext } from 'react-aria-components';
4
+ import { dataAttr } from '../../utils/assertion.js';
5
+ import { composeSlotClassName } from '../../utils/compose.js';
6
+ import { jsx, jsxs } from 'react/jsx-runtime';
7
+ import { inputOTPVariants } from '../../packages/styles/src/components/input-otp/input-otp.styles.js';
8
+
9
+ const InputOTPContext = /*#__PURE__*/createContext({
10
+ isDisabled: false,
11
+ isInvalid: false
12
+ });
13
+
14
+ /* -------------------------------------------------------------------------------------------------
15
+ * Input OTP Root
16
+ * -----------------------------------------------------------------------------------------------*/
17
+
18
+ const InputOTPRoot = ({
19
+ className,
20
+ inputClassName,
21
+ isDisabled = false,
22
+ isInvalid = false,
23
+ validationDetails,
24
+ validationErrors = [],
25
+ variant,
26
+ ...props
27
+ }) => {
28
+ const slots = React__default.useMemo(() => inputOTPVariants({
29
+ variant
30
+ }), [variant]);
31
+ const validation = React__default.useMemo(() => ({
32
+ isInvalid,
33
+ validationErrors,
34
+ validationDetails
35
+ }), [isInvalid, validationErrors, validationDetails]);
36
+ return /*#__PURE__*/jsx(InputOTPContext, {
37
+ value: {
38
+ slots,
39
+ isDisabled,
40
+ isInvalid
41
+ },
42
+ children: /*#__PURE__*/jsx(FieldErrorContext, {
43
+ value: validation,
44
+ children: /*#__PURE__*/jsx(OTPInput
45
+ // OTP Input package uses the `className` prop for the actual `input` element which is not visible to the user so no need to pass it to the base container
46
+ , {
47
+ className: slots.input({
48
+ className: inputClassName
49
+ }),
50
+ containerClassName: slots.base({
51
+ className
52
+ }),
53
+ "data-disabled": dataAttr(isDisabled),
54
+ "data-invalid": dataAttr(isInvalid),
55
+ "data-slot": "input-otp",
56
+ disabled: isDisabled,
57
+ ...props
58
+ })
59
+ })
60
+ });
61
+ };
62
+
63
+ /* -------------------------------------------------------------------------------------------------
64
+ * Input OTP Group
65
+ * -----------------------------------------------------------------------------------------------*/
66
+
67
+ const InputOTPGroup = ({
68
+ className,
69
+ ...props
70
+ }) => {
71
+ const {
72
+ slots
73
+ } = useContext(InputOTPContext);
74
+ return /*#__PURE__*/jsx("div", {
75
+ className: composeSlotClassName(slots?.group, className),
76
+ "data-slot": "input-otp-group",
77
+ ...props
78
+ });
79
+ };
80
+
81
+ /* -------------------------------------------------------------------------------------------------
82
+ * Input OTP Slot
83
+ * -----------------------------------------------------------------------------------------------*/
84
+
85
+ const InputOTPSlot = ({
86
+ className,
87
+ index,
88
+ ...props
89
+ }) => {
90
+ const {
91
+ isDisabled,
92
+ isInvalid,
93
+ slots
94
+ } = useContext(InputOTPContext);
95
+ const inputOTPContext = useContext(OTPInputContext);
96
+ const {
97
+ char,
98
+ hasFakeCaret,
99
+ isActive
100
+ } = inputOTPContext?.slots[index] ?? {};
101
+ return /*#__PURE__*/jsxs("div", {
102
+ ...props,
103
+ className: composeSlotClassName(slots?.slot, className),
104
+ "data-active": dataAttr(isActive),
105
+ "data-disabled": dataAttr(isDisabled),
106
+ "data-filled": dataAttr(!!char),
107
+ "data-invalid": dataAttr(isInvalid),
108
+ "data-slot": "input-otp-slot",
109
+ children: [char ? /*#__PURE__*/jsx("div", {
110
+ className: slots?.slotValue(),
111
+ "data-slot": "input-otp-slot-value",
112
+ children: char
113
+ }) : null, hasFakeCaret && isActive ? /*#__PURE__*/jsx("div", {
114
+ className: slots?.caret(),
115
+ "data-slot": "input-otp-caret"
116
+ }) : null]
117
+ });
118
+ };
119
+
120
+ /* -------------------------------------------------------------------------------------------------
121
+ * Input OTP Separator
122
+ * -----------------------------------------------------------------------------------------------*/
123
+
124
+ const InputOTPSeparator = ({
125
+ className,
126
+ ...props
127
+ }) => {
128
+ const {
129
+ slots
130
+ } = useContext(InputOTPContext);
131
+ return /*#__PURE__*/jsx("div", {
132
+ className: composeSlotClassName(slots?.separator, className),
133
+ "data-slot": "input-otp-separator",
134
+ ...props
135
+ });
136
+ };
137
+
138
+ export { InputOTPGroup, InputOTPRoot, InputOTPSeparator, InputOTPSlot };