@cimpress-ui/react 0.1.0 → 0.2.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 (507) hide show
  1. package/README.md +1 -1
  2. package/dist/commonjs/components/breadcrumbs/breadcrumbs.d.ts +22 -0
  3. package/dist/commonjs/components/breadcrumbs/breadcrumbs.d.ts.map +1 -0
  4. package/dist/commonjs/components/breadcrumbs/breadcrumbs.js +37 -0
  5. package/dist/commonjs/components/breadcrumbs/breadcrumbs.js.map +1 -0
  6. package/dist/commonjs/components/button/button.js +1 -1
  7. package/dist/commonjs/components/button/button.js.map +1 -1
  8. package/dist/commonjs/components/button/icon-button.js +1 -1
  9. package/dist/commonjs/components/button/icon-button.js.map +1 -1
  10. package/dist/commonjs/components/button/types.d.ts.map +1 -1
  11. package/dist/commonjs/components/button/types.js.map +1 -1
  12. package/dist/commonjs/components/card/card-context.d.ts +4 -0
  13. package/dist/commonjs/components/card/card-context.d.ts.map +1 -0
  14. package/dist/commonjs/components/card/card-context.js +6 -0
  15. package/dist/commonjs/components/card/card-context.js.map +1 -0
  16. package/dist/commonjs/components/card/card.d.ts +15 -0
  17. package/dist/commonjs/components/card/card.d.ts.map +1 -0
  18. package/dist/commonjs/components/card/card.js +24 -0
  19. package/dist/commonjs/components/card/card.js.map +1 -0
  20. package/dist/commonjs/components/checkbox/checkbox.d.ts +1 -1
  21. package/dist/commonjs/components/checkbox/checkbox.d.ts.map +1 -1
  22. package/dist/commonjs/components/checkbox/checkbox.js.map +1 -1
  23. package/dist/commonjs/components/combo-box/combo-box.d.ts +5 -1
  24. package/dist/commonjs/components/combo-box/combo-box.d.ts.map +1 -1
  25. package/dist/commonjs/components/combo-box/combo-box.js +6 -6
  26. package/dist/commonjs/components/combo-box/combo-box.js.map +1 -1
  27. package/dist/commonjs/components/disclosure/disclosure-group.d.ts +10 -0
  28. package/dist/commonjs/components/disclosure/disclosure-group.d.ts.map +1 -0
  29. package/dist/commonjs/components/disclosure/disclosure-group.js +18 -0
  30. package/dist/commonjs/components/disclosure/disclosure-group.js.map +1 -0
  31. package/dist/commonjs/components/disclosure/disclosure.d.ts +14 -0
  32. package/dist/commonjs/components/disclosure/disclosure.d.ts.map +1 -0
  33. package/dist/commonjs/components/disclosure/disclosure.js +20 -0
  34. package/dist/commonjs/components/disclosure/disclosure.js.map +1 -0
  35. package/dist/commonjs/components/internal/collapsible-list/collapsible-list.d.ts +0 -14
  36. package/dist/commonjs/components/internal/collapsible-list/collapsible-list.d.ts.map +1 -1
  37. package/dist/commonjs/components/internal/collapsible-list/collapsible-list.js +2 -4
  38. package/dist/commonjs/components/internal/collapsible-list/collapsible-list.js.map +1 -1
  39. package/dist/commonjs/components/internal/form-field/form-field.d.ts +1 -28
  40. package/dist/commonjs/components/internal/form-field/form-field.d.ts.map +1 -1
  41. package/dist/commonjs/components/internal/form-field/form-field.js +10 -0
  42. package/dist/commonjs/components/internal/form-field/form-field.js.map +1 -1
  43. package/dist/commonjs/components/internal/spinner/spinner.d.ts +0 -16
  44. package/dist/commonjs/components/internal/spinner/spinner.d.ts.map +1 -1
  45. package/dist/commonjs/components/modal/modal.d.ts +19 -0
  46. package/dist/commonjs/components/modal/modal.d.ts.map +1 -0
  47. package/dist/commonjs/components/modal/modal.js +25 -0
  48. package/dist/commonjs/components/modal/modal.js.map +1 -0
  49. package/dist/commonjs/components/nav-tabs/nav-tabs.d.ts +23 -0
  50. package/dist/commonjs/components/nav-tabs/nav-tabs.d.ts.map +1 -0
  51. package/dist/commonjs/components/nav-tabs/nav-tabs.js +27 -0
  52. package/dist/commonjs/components/nav-tabs/nav-tabs.js.map +1 -0
  53. package/dist/commonjs/components/number-field/number-field.d.ts +10 -0
  54. package/dist/commonjs/components/number-field/number-field.d.ts.map +1 -0
  55. package/dist/commonjs/components/number-field/number-field.js +32 -0
  56. package/dist/commonjs/components/number-field/number-field.js.map +1 -0
  57. package/dist/commonjs/components/pagination/pagination.d.ts +14 -0
  58. package/dist/commonjs/components/pagination/pagination.d.ts.map +1 -0
  59. package/dist/commonjs/components/pagination/pagination.js +69 -0
  60. package/dist/commonjs/components/pagination/pagination.js.map +1 -0
  61. package/dist/commonjs/components/radio/radio.d.ts +1 -1
  62. package/dist/commonjs/components/radio/radio.d.ts.map +1 -1
  63. package/dist/commonjs/components/radio/radio.js.map +1 -1
  64. package/dist/commonjs/components/table/contexts/focus.d.ts +13 -0
  65. package/dist/commonjs/components/table/contexts/focus.d.ts.map +1 -0
  66. package/dist/commonjs/components/table/contexts/focus.js +51 -0
  67. package/dist/commonjs/components/table/contexts/focus.js.map +1 -0
  68. package/dist/commonjs/components/table/contexts/row-state.d.ts +10 -0
  69. package/dist/commonjs/components/table/contexts/row-state.d.ts.map +1 -0
  70. package/dist/commonjs/components/table/contexts/row-state.js +22 -0
  71. package/dist/commonjs/components/table/contexts/row-state.js.map +1 -0
  72. package/dist/commonjs/components/table/hooks/use-table-cell.d.ts +7 -0
  73. package/dist/commonjs/components/table/hooks/use-table-cell.d.ts.map +1 -0
  74. package/dist/commonjs/components/table/hooks/use-table-cell.js +125 -0
  75. package/dist/commonjs/components/table/hooks/use-table-cell.js.map +1 -0
  76. package/dist/commonjs/components/table/hooks/use-table.d.ts +7 -0
  77. package/dist/commonjs/components/table/hooks/use-table.d.ts.map +1 -0
  78. package/dist/commonjs/components/table/hooks/use-table.js +142 -0
  79. package/dist/commonjs/components/table/hooks/use-table.js.map +1 -0
  80. package/dist/commonjs/components/table/table-body-cell.d.ts +26 -0
  81. package/dist/commonjs/components/table/table-body-cell.d.ts.map +1 -0
  82. package/dist/commonjs/components/table/table-body-cell.js +17 -0
  83. package/dist/commonjs/components/table/table-body-cell.js.map +1 -0
  84. package/dist/commonjs/components/table/table-body.d.ts +8 -0
  85. package/dist/commonjs/components/table/table-body.d.ts.map +1 -0
  86. package/dist/commonjs/components/table/table-body.js +11 -0
  87. package/dist/commonjs/components/table/table-body.js.map +1 -0
  88. package/dist/commonjs/components/table/table-container.d.ts +8 -0
  89. package/dist/commonjs/components/table/table-container.d.ts.map +1 -0
  90. package/dist/commonjs/components/table/table-container.js +40 -0
  91. package/dist/commonjs/components/table/table-container.js.map +1 -0
  92. package/dist/commonjs/components/table/table-header-cell.d.ts +26 -0
  93. package/dist/commonjs/components/table/table-header-cell.d.ts.map +1 -0
  94. package/dist/commonjs/components/table/table-header-cell.js +17 -0
  95. package/dist/commonjs/components/table/table-header-cell.js.map +1 -0
  96. package/dist/commonjs/components/table/table-header.d.ts +8 -0
  97. package/dist/commonjs/components/table/table-header.d.ts.map +1 -0
  98. package/dist/commonjs/components/table/table-header.js +11 -0
  99. package/dist/commonjs/components/table/table-header.js.map +1 -0
  100. package/dist/commonjs/components/table/table-row.d.ts +21 -0
  101. package/dist/commonjs/components/table/table-row.d.ts.map +1 -0
  102. package/dist/commonjs/components/table/table-row.js +14 -0
  103. package/dist/commonjs/components/table/table-row.js.map +1 -0
  104. package/dist/commonjs/components/table/table.d.ts +26 -0
  105. package/dist/commonjs/components/table/table.d.ts.map +1 -0
  106. package/dist/commonjs/components/table/table.js +27 -0
  107. package/dist/commonjs/components/table/table.js.map +1 -0
  108. package/dist/commonjs/components/table/utils/focus-table-child.d.ts +4 -0
  109. package/dist/commonjs/components/table/utils/focus-table-child.d.ts.map +1 -0
  110. package/dist/commonjs/components/table/utils/focus-table-child.js +14 -0
  111. package/dist/commonjs/components/table/utils/focus-table-child.js.map +1 -0
  112. package/dist/commonjs/components/tag/tag-group.d.ts +18 -0
  113. package/dist/commonjs/components/tag/tag-group.d.ts.map +1 -0
  114. package/dist/commonjs/components/tag/tag-group.js +27 -0
  115. package/dist/commonjs/components/tag/tag-group.js.map +1 -0
  116. package/dist/commonjs/components/tag/tag.d.ts +17 -0
  117. package/dist/commonjs/components/tag/tag.d.ts.map +1 -0
  118. package/dist/commonjs/components/tag/tag.js +20 -0
  119. package/dist/commonjs/components/tag/tag.js.map +1 -0
  120. package/dist/commonjs/components/text-inputs/text-area.d.ts.map +1 -1
  121. package/dist/commonjs/components/text-inputs/text-area.js +1 -1
  122. package/dist/commonjs/components/text-inputs/text-area.js.map +1 -1
  123. package/dist/commonjs/components/text-inputs/text-field.d.ts.map +1 -1
  124. package/dist/commonjs/components/text-inputs/text-field.js +1 -1
  125. package/dist/commonjs/components/text-inputs/text-field.js.map +1 -1
  126. package/dist/commonjs/components/tooltip/tooltip.d.ts +9 -0
  127. package/dist/commonjs/components/tooltip/tooltip.d.ts.map +1 -0
  128. package/dist/commonjs/components/tooltip/tooltip.js +15 -0
  129. package/dist/commonjs/components/tooltip/tooltip.js.map +1 -0
  130. package/dist/commonjs/components/types.d.ts +16 -2
  131. package/dist/commonjs/components/types.d.ts.map +1 -1
  132. package/dist/commonjs/components/types.js.map +1 -1
  133. package/dist/commonjs/components/typography/link.d.ts +2 -2
  134. package/dist/commonjs/components/typography/link.d.ts.map +1 -1
  135. package/dist/commonjs/components/typography/link.js +3 -2
  136. package/dist/commonjs/components/typography/link.js.map +1 -1
  137. package/dist/commonjs/components/typography/types.d.ts +2 -1
  138. package/dist/commonjs/components/typography/types.d.ts.map +1 -1
  139. package/dist/commonjs/components/typography/types.js.map +1 -1
  140. package/dist/commonjs/components/typography/utils.d.ts.map +1 -1
  141. package/dist/commonjs/components/typography/utils.js +2 -2
  142. package/dist/commonjs/components/typography/utils.js.map +1 -1
  143. package/dist/commonjs/components/visually-hidden/visually-hidden.d.ts +17 -0
  144. package/dist/commonjs/components/visually-hidden/visually-hidden.d.ts.map +1 -0
  145. package/dist/commonjs/components/visually-hidden/visually-hidden.js +20 -0
  146. package/dist/commonjs/components/visually-hidden/visually-hidden.js.map +1 -0
  147. package/dist/commonjs/icons/accounting-document.d.ts +1 -1
  148. package/dist/commonjs/icons/accounting-document.d.ts.map +1 -1
  149. package/dist/commonjs/icons/accounting-document.js +4 -2
  150. package/dist/commonjs/icons/accounting-document.js.map +1 -1
  151. package/dist/commonjs/icons/add-circle-fill.d.ts +1 -1
  152. package/dist/commonjs/icons/add-circle-fill.d.ts.map +1 -1
  153. package/dist/commonjs/icons/add-circle-fill.js +4 -2
  154. package/dist/commonjs/icons/add-circle-fill.js.map +1 -1
  155. package/dist/commonjs/icons/add-circle.d.ts +1 -1
  156. package/dist/commonjs/icons/add-circle.d.ts.map +1 -1
  157. package/dist/commonjs/icons/add-circle.js +4 -2
  158. package/dist/commonjs/icons/add-circle.js.map +1 -1
  159. package/dist/commonjs/icons/add.d.ts +1 -1
  160. package/dist/commonjs/icons/add.d.ts.map +1 -1
  161. package/dist/commonjs/icons/add.js +4 -2
  162. package/dist/commonjs/icons/add.js.map +1 -1
  163. package/dist/commonjs/icons/alert-triangle.d.ts +1 -1
  164. package/dist/commonjs/icons/alert-triangle.d.ts.map +1 -1
  165. package/dist/commonjs/icons/alert-triangle.js +4 -2
  166. package/dist/commonjs/icons/alert-triangle.js.map +1 -1
  167. package/dist/commonjs/icons/calculator-alt.d.ts +1 -1
  168. package/dist/commonjs/icons/calculator-alt.d.ts.map +1 -1
  169. package/dist/commonjs/icons/calculator-alt.js +4 -2
  170. package/dist/commonjs/icons/calculator-alt.js.map +1 -1
  171. package/dist/commonjs/icons/calculator.d.ts +1 -1
  172. package/dist/commonjs/icons/calculator.d.ts.map +1 -1
  173. package/dist/commonjs/icons/calculator.js +4 -2
  174. package/dist/commonjs/icons/calculator.js.map +1 -1
  175. package/dist/commonjs/icons/checkmark-circle-fill.d.ts +1 -1
  176. package/dist/commonjs/icons/checkmark-circle-fill.d.ts.map +1 -1
  177. package/dist/commonjs/icons/checkmark-circle-fill.js +4 -2
  178. package/dist/commonjs/icons/checkmark-circle-fill.js.map +1 -1
  179. package/dist/commonjs/icons/checkmark-circle.d.ts +1 -1
  180. package/dist/commonjs/icons/checkmark-circle.d.ts.map +1 -1
  181. package/dist/commonjs/icons/checkmark-circle.js +4 -2
  182. package/dist/commonjs/icons/checkmark-circle.js.map +1 -1
  183. package/dist/commonjs/icons/checkmark-small.d.ts +1 -1
  184. package/dist/commonjs/icons/checkmark-small.d.ts.map +1 -1
  185. package/dist/commonjs/icons/checkmark-small.js +4 -2
  186. package/dist/commonjs/icons/checkmark-small.js.map +1 -1
  187. package/dist/commonjs/icons/checkmark.d.ts +1 -1
  188. package/dist/commonjs/icons/checkmark.d.ts.map +1 -1
  189. package/dist/commonjs/icons/checkmark.js +4 -2
  190. package/dist/commonjs/icons/checkmark.js.map +1 -1
  191. package/dist/commonjs/icons/chevron-down-fill.d.ts +1 -1
  192. package/dist/commonjs/icons/chevron-down-fill.d.ts.map +1 -1
  193. package/dist/commonjs/icons/chevron-down-fill.js +4 -2
  194. package/dist/commonjs/icons/chevron-down-fill.js.map +1 -1
  195. package/dist/commonjs/icons/error-circle-fill.d.ts +1 -1
  196. package/dist/commonjs/icons/error-circle-fill.d.ts.map +1 -1
  197. package/dist/commonjs/icons/error-circle-fill.js +5 -3
  198. package/dist/commonjs/icons/error-circle-fill.js.map +1 -1
  199. package/dist/commonjs/icons/index.d.ts +6 -0
  200. package/dist/commonjs/icons/index.d.ts.map +1 -1
  201. package/dist/commonjs/icons/index.js +13 -1
  202. package/dist/commonjs/icons/index.js.map +1 -1
  203. package/dist/commonjs/icons/info-circle-fill.d.ts +1 -1
  204. package/dist/commonjs/icons/info-circle-fill.d.ts.map +1 -1
  205. package/dist/commonjs/icons/info-circle-fill.js +4 -2
  206. package/dist/commonjs/icons/info-circle-fill.js.map +1 -1
  207. package/dist/commonjs/icons/minus-small.d.ts +1 -1
  208. package/dist/commonjs/icons/minus-small.d.ts.map +1 -1
  209. package/dist/commonjs/icons/minus-small.js +4 -2
  210. package/dist/commonjs/icons/minus-small.js.map +1 -1
  211. package/dist/commonjs/icons/minus.d.ts +8 -0
  212. package/dist/commonjs/icons/minus.d.ts.map +1 -0
  213. package/dist/commonjs/icons/minus.js +24 -0
  214. package/dist/commonjs/icons/minus.js.map +1 -0
  215. package/dist/commonjs/icons/unstable-chevron-left-fill.d.ts +8 -0
  216. package/dist/commonjs/icons/unstable-chevron-left-fill.d.ts.map +1 -0
  217. package/dist/commonjs/icons/unstable-chevron-left-fill.js +24 -0
  218. package/dist/commonjs/icons/unstable-chevron-left-fill.js.map +1 -0
  219. package/dist/commonjs/icons/unstable-chevron-right-fill.d.ts +8 -0
  220. package/dist/commonjs/icons/unstable-chevron-right-fill.d.ts.map +1 -0
  221. package/dist/commonjs/icons/unstable-chevron-right-fill.js +24 -0
  222. package/dist/commonjs/icons/unstable-chevron-right-fill.js.map +1 -0
  223. package/dist/commonjs/icons/unstable-close.d.ts +8 -0
  224. package/dist/commonjs/icons/unstable-close.d.ts.map +1 -0
  225. package/dist/commonjs/icons/unstable-close.js +24 -0
  226. package/dist/commonjs/icons/unstable-close.js.map +1 -0
  227. package/dist/commonjs/icons/unstable-info-circle.d.ts +8 -0
  228. package/dist/commonjs/icons/unstable-info-circle.d.ts.map +1 -0
  229. package/dist/commonjs/icons/unstable-info-circle.js +24 -0
  230. package/dist/commonjs/icons/unstable-info-circle.js.map +1 -0
  231. package/dist/commonjs/icons/unstable-placeholder.d.ts +8 -0
  232. package/dist/commonjs/icons/unstable-placeholder.d.ts.map +1 -0
  233. package/dist/commonjs/icons/unstable-placeholder.js +24 -0
  234. package/dist/commonjs/icons/unstable-placeholder.js.map +1 -0
  235. package/dist/commonjs/icons/warning-circle-fill.d.ts +1 -1
  236. package/dist/commonjs/icons/warning-circle-fill.d.ts.map +1 -1
  237. package/dist/commonjs/icons/warning-circle-fill.js +4 -2
  238. package/dist/commonjs/icons/warning-circle-fill.js.map +1 -1
  239. package/dist/commonjs/index.d.ts +21 -1
  240. package/dist/commonjs/index.d.ts.map +1 -1
  241. package/dist/commonjs/index.js +19 -0
  242. package/dist/commonjs/index.js.map +1 -1
  243. package/dist/commonjs/utils/style/tone.d.ts +3 -0
  244. package/dist/commonjs/utils/style/tone.d.ts.map +1 -0
  245. package/dist/commonjs/utils/style/tone.js +7 -0
  246. package/dist/commonjs/utils/style/tone.js.map +1 -0
  247. package/dist/commonjs/utils/style/types.d.ts +2 -0
  248. package/dist/commonjs/utils/style/types.d.ts.map +1 -0
  249. package/dist/commonjs/utils/style/types.js +3 -0
  250. package/dist/commonjs/utils/style/types.js.map +1 -0
  251. package/dist/commonjs/with-style-props.d.ts +1 -1
  252. package/dist/commonjs/with-style-props.d.ts.map +1 -1
  253. package/dist/commonjs/with-style-props.js.map +1 -1
  254. package/dist/esm/components/breadcrumbs/breadcrumbs.d.ts +22 -0
  255. package/dist/esm/components/breadcrumbs/breadcrumbs.d.ts.map +1 -0
  256. package/dist/esm/components/breadcrumbs/breadcrumbs.js +30 -0
  257. package/dist/esm/components/breadcrumbs/breadcrumbs.js.map +1 -0
  258. package/dist/esm/components/button/button.js +1 -1
  259. package/dist/esm/components/button/button.js.map +1 -1
  260. package/dist/esm/components/button/icon-button.js +1 -1
  261. package/dist/esm/components/button/icon-button.js.map +1 -1
  262. package/dist/esm/components/button/types.d.ts.map +1 -1
  263. package/dist/esm/components/button/types.js.map +1 -1
  264. package/dist/esm/components/card/card-context.d.ts +4 -0
  265. package/dist/esm/components/card/card-context.d.ts.map +1 -0
  266. package/dist/esm/components/card/card-context.js +3 -0
  267. package/dist/esm/components/card/card-context.js.map +1 -0
  268. package/dist/esm/components/card/card.d.ts +15 -0
  269. package/dist/esm/components/card/card.d.ts.map +1 -0
  270. package/dist/esm/components/card/card.js +17 -0
  271. package/dist/esm/components/card/card.js.map +1 -0
  272. package/dist/esm/components/checkbox/checkbox.d.ts +1 -1
  273. package/dist/esm/components/checkbox/checkbox.d.ts.map +1 -1
  274. package/dist/esm/components/checkbox/checkbox.js.map +1 -1
  275. package/dist/esm/components/combo-box/combo-box.d.ts +5 -1
  276. package/dist/esm/components/combo-box/combo-box.d.ts.map +1 -1
  277. package/dist/esm/components/combo-box/combo-box.js +7 -7
  278. package/dist/esm/components/combo-box/combo-box.js.map +1 -1
  279. package/dist/esm/components/disclosure/disclosure-group.d.ts +10 -0
  280. package/dist/esm/components/disclosure/disclosure-group.d.ts.map +1 -0
  281. package/dist/esm/components/disclosure/disclosure-group.js +12 -0
  282. package/dist/esm/components/disclosure/disclosure-group.js.map +1 -0
  283. package/dist/esm/components/disclosure/disclosure.d.ts +14 -0
  284. package/dist/esm/components/disclosure/disclosure.d.ts.map +1 -0
  285. package/dist/esm/components/disclosure/disclosure.js +14 -0
  286. package/dist/esm/components/disclosure/disclosure.js.map +1 -0
  287. package/dist/esm/components/internal/collapsible-list/collapsible-list.d.ts +0 -14
  288. package/dist/esm/components/internal/collapsible-list/collapsible-list.d.ts.map +1 -1
  289. package/dist/esm/components/internal/collapsible-list/collapsible-list.js +2 -4
  290. package/dist/esm/components/internal/collapsible-list/collapsible-list.js.map +1 -1
  291. package/dist/esm/components/internal/form-field/form-field.d.ts +1 -28
  292. package/dist/esm/components/internal/form-field/form-field.d.ts.map +1 -1
  293. package/dist/esm/components/internal/form-field/form-field.js +10 -1
  294. package/dist/esm/components/internal/form-field/form-field.js.map +1 -1
  295. package/dist/esm/components/internal/spinner/spinner.d.ts +0 -16
  296. package/dist/esm/components/internal/spinner/spinner.d.ts.map +1 -1
  297. package/dist/esm/components/modal/modal.d.ts +19 -0
  298. package/dist/esm/components/modal/modal.d.ts.map +1 -0
  299. package/dist/esm/components/modal/modal.js +18 -0
  300. package/dist/esm/components/modal/modal.js.map +1 -0
  301. package/dist/esm/components/nav-tabs/nav-tabs.d.ts +23 -0
  302. package/dist/esm/components/nav-tabs/nav-tabs.d.ts.map +1 -0
  303. package/dist/esm/components/nav-tabs/nav-tabs.js +20 -0
  304. package/dist/esm/components/nav-tabs/nav-tabs.js.map +1 -0
  305. package/dist/esm/components/number-field/number-field.d.ts +10 -0
  306. package/dist/esm/components/number-field/number-field.d.ts.map +1 -0
  307. package/dist/esm/components/number-field/number-field.js +26 -0
  308. package/dist/esm/components/number-field/number-field.js.map +1 -0
  309. package/dist/esm/components/pagination/pagination.d.ts +14 -0
  310. package/dist/esm/components/pagination/pagination.d.ts.map +1 -0
  311. package/dist/esm/components/pagination/pagination.js +66 -0
  312. package/dist/esm/components/pagination/pagination.js.map +1 -0
  313. package/dist/esm/components/radio/radio.d.ts +1 -1
  314. package/dist/esm/components/radio/radio.d.ts.map +1 -1
  315. package/dist/esm/components/radio/radio.js.map +1 -1
  316. package/dist/esm/components/table/contexts/focus.d.ts +13 -0
  317. package/dist/esm/components/table/contexts/focus.d.ts.map +1 -0
  318. package/dist/esm/components/table/contexts/focus.js +47 -0
  319. package/dist/esm/components/table/contexts/focus.js.map +1 -0
  320. package/dist/esm/components/table/contexts/row-state.d.ts +10 -0
  321. package/dist/esm/components/table/contexts/row-state.d.ts.map +1 -0
  322. package/dist/esm/components/table/contexts/row-state.js +18 -0
  323. package/dist/esm/components/table/contexts/row-state.js.map +1 -0
  324. package/dist/esm/components/table/hooks/use-table-cell.d.ts +7 -0
  325. package/dist/esm/components/table/hooks/use-table-cell.d.ts.map +1 -0
  326. package/dist/esm/components/table/hooks/use-table-cell.js +122 -0
  327. package/dist/esm/components/table/hooks/use-table-cell.js.map +1 -0
  328. package/dist/esm/components/table/hooks/use-table.d.ts +7 -0
  329. package/dist/esm/components/table/hooks/use-table.d.ts.map +1 -0
  330. package/dist/esm/components/table/hooks/use-table.js +139 -0
  331. package/dist/esm/components/table/hooks/use-table.js.map +1 -0
  332. package/dist/esm/components/table/table-body-cell.d.ts +26 -0
  333. package/dist/esm/components/table/table-body-cell.d.ts.map +1 -0
  334. package/dist/esm/components/table/table-body-cell.js +14 -0
  335. package/dist/esm/components/table/table-body-cell.js.map +1 -0
  336. package/dist/esm/components/table/table-body.d.ts +8 -0
  337. package/dist/esm/components/table/table-body.d.ts.map +1 -0
  338. package/dist/esm/components/table/table-body.js +8 -0
  339. package/dist/esm/components/table/table-body.js.map +1 -0
  340. package/dist/esm/components/table/table-container.d.ts +8 -0
  341. package/dist/esm/components/table/table-container.d.ts.map +1 -0
  342. package/dist/esm/components/table/table-container.js +34 -0
  343. package/dist/esm/components/table/table-container.js.map +1 -0
  344. package/dist/esm/components/table/table-header-cell.d.ts +26 -0
  345. package/dist/esm/components/table/table-header-cell.d.ts.map +1 -0
  346. package/dist/esm/components/table/table-header-cell.js +14 -0
  347. package/dist/esm/components/table/table-header-cell.js.map +1 -0
  348. package/dist/esm/components/table/table-header.d.ts +8 -0
  349. package/dist/esm/components/table/table-header.d.ts.map +1 -0
  350. package/dist/esm/components/table/table-header.js +8 -0
  351. package/dist/esm/components/table/table-header.js.map +1 -0
  352. package/dist/esm/components/table/table-row.d.ts +21 -0
  353. package/dist/esm/components/table/table-row.d.ts.map +1 -0
  354. package/dist/esm/components/table/table-row.js +11 -0
  355. package/dist/esm/components/table/table-row.js.map +1 -0
  356. package/dist/esm/components/table/table.d.ts +26 -0
  357. package/dist/esm/components/table/table.d.ts.map +1 -0
  358. package/dist/esm/components/table/table.js +24 -0
  359. package/dist/esm/components/table/table.js.map +1 -0
  360. package/dist/esm/components/table/utils/focus-table-child.d.ts +4 -0
  361. package/dist/esm/components/table/utils/focus-table-child.d.ts.map +1 -0
  362. package/dist/esm/components/table/utils/focus-table-child.js +11 -0
  363. package/dist/esm/components/table/utils/focus-table-child.js.map +1 -0
  364. package/dist/esm/components/tag/tag-group.d.ts +18 -0
  365. package/dist/esm/components/tag/tag-group.d.ts.map +1 -0
  366. package/dist/esm/components/tag/tag-group.js +21 -0
  367. package/dist/esm/components/tag/tag-group.js.map +1 -0
  368. package/dist/esm/components/tag/tag.d.ts +17 -0
  369. package/dist/esm/components/tag/tag.d.ts.map +1 -0
  370. package/dist/esm/components/tag/tag.js +14 -0
  371. package/dist/esm/components/tag/tag.js.map +1 -0
  372. package/dist/esm/components/text-inputs/text-area.d.ts.map +1 -1
  373. package/dist/esm/components/text-inputs/text-area.js +3 -3
  374. package/dist/esm/components/text-inputs/text-area.js.map +1 -1
  375. package/dist/esm/components/text-inputs/text-field.d.ts.map +1 -1
  376. package/dist/esm/components/text-inputs/text-field.js +3 -3
  377. package/dist/esm/components/text-inputs/text-field.js.map +1 -1
  378. package/dist/esm/components/tooltip/tooltip.d.ts +9 -0
  379. package/dist/esm/components/tooltip/tooltip.d.ts.map +1 -0
  380. package/dist/esm/components/tooltip/tooltip.js +9 -0
  381. package/dist/esm/components/tooltip/tooltip.js.map +1 -0
  382. package/dist/esm/components/types.d.ts +16 -2
  383. package/dist/esm/components/types.d.ts.map +1 -1
  384. package/dist/esm/components/types.js.map +1 -1
  385. package/dist/esm/components/typography/link.d.ts +2 -2
  386. package/dist/esm/components/typography/link.d.ts.map +1 -1
  387. package/dist/esm/components/typography/link.js +3 -2
  388. package/dist/esm/components/typography/link.js.map +1 -1
  389. package/dist/esm/components/typography/types.d.ts +2 -1
  390. package/dist/esm/components/typography/types.d.ts.map +1 -1
  391. package/dist/esm/components/typography/types.js.map +1 -1
  392. package/dist/esm/components/typography/utils.d.ts.map +1 -1
  393. package/dist/esm/components/typography/utils.js +2 -2
  394. package/dist/esm/components/typography/utils.js.map +1 -1
  395. package/dist/esm/components/visually-hidden/visually-hidden.d.ts +17 -0
  396. package/dist/esm/components/visually-hidden/visually-hidden.d.ts.map +1 -0
  397. package/dist/esm/components/visually-hidden/visually-hidden.js +14 -0
  398. package/dist/esm/components/visually-hidden/visually-hidden.js.map +1 -0
  399. package/dist/esm/icons/accounting-document.d.ts +1 -1
  400. package/dist/esm/icons/accounting-document.d.ts.map +1 -1
  401. package/dist/esm/icons/accounting-document.js +4 -2
  402. package/dist/esm/icons/accounting-document.js.map +1 -1
  403. package/dist/esm/icons/add-circle-fill.d.ts +1 -1
  404. package/dist/esm/icons/add-circle-fill.d.ts.map +1 -1
  405. package/dist/esm/icons/add-circle-fill.js +4 -2
  406. package/dist/esm/icons/add-circle-fill.js.map +1 -1
  407. package/dist/esm/icons/add-circle.d.ts +1 -1
  408. package/dist/esm/icons/add-circle.d.ts.map +1 -1
  409. package/dist/esm/icons/add-circle.js +4 -2
  410. package/dist/esm/icons/add-circle.js.map +1 -1
  411. package/dist/esm/icons/add.d.ts +1 -1
  412. package/dist/esm/icons/add.d.ts.map +1 -1
  413. package/dist/esm/icons/add.js +4 -2
  414. package/dist/esm/icons/add.js.map +1 -1
  415. package/dist/esm/icons/alert-triangle.d.ts +1 -1
  416. package/dist/esm/icons/alert-triangle.d.ts.map +1 -1
  417. package/dist/esm/icons/alert-triangle.js +4 -2
  418. package/dist/esm/icons/alert-triangle.js.map +1 -1
  419. package/dist/esm/icons/calculator-alt.d.ts +1 -1
  420. package/dist/esm/icons/calculator-alt.d.ts.map +1 -1
  421. package/dist/esm/icons/calculator-alt.js +4 -2
  422. package/dist/esm/icons/calculator-alt.js.map +1 -1
  423. package/dist/esm/icons/calculator.d.ts +1 -1
  424. package/dist/esm/icons/calculator.d.ts.map +1 -1
  425. package/dist/esm/icons/calculator.js +4 -2
  426. package/dist/esm/icons/calculator.js.map +1 -1
  427. package/dist/esm/icons/checkmark-circle-fill.d.ts +1 -1
  428. package/dist/esm/icons/checkmark-circle-fill.d.ts.map +1 -1
  429. package/dist/esm/icons/checkmark-circle-fill.js +4 -2
  430. package/dist/esm/icons/checkmark-circle-fill.js.map +1 -1
  431. package/dist/esm/icons/checkmark-circle.d.ts +1 -1
  432. package/dist/esm/icons/checkmark-circle.d.ts.map +1 -1
  433. package/dist/esm/icons/checkmark-circle.js +4 -2
  434. package/dist/esm/icons/checkmark-circle.js.map +1 -1
  435. package/dist/esm/icons/checkmark-small.d.ts +1 -1
  436. package/dist/esm/icons/checkmark-small.d.ts.map +1 -1
  437. package/dist/esm/icons/checkmark-small.js +4 -2
  438. package/dist/esm/icons/checkmark-small.js.map +1 -1
  439. package/dist/esm/icons/checkmark.d.ts +1 -1
  440. package/dist/esm/icons/checkmark.d.ts.map +1 -1
  441. package/dist/esm/icons/checkmark.js +4 -2
  442. package/dist/esm/icons/checkmark.js.map +1 -1
  443. package/dist/esm/icons/chevron-down-fill.d.ts +1 -1
  444. package/dist/esm/icons/chevron-down-fill.d.ts.map +1 -1
  445. package/dist/esm/icons/chevron-down-fill.js +4 -2
  446. package/dist/esm/icons/chevron-down-fill.js.map +1 -1
  447. package/dist/esm/icons/error-circle-fill.d.ts +1 -1
  448. package/dist/esm/icons/error-circle-fill.d.ts.map +1 -1
  449. package/dist/esm/icons/error-circle-fill.js +6 -4
  450. package/dist/esm/icons/error-circle-fill.js.map +1 -1
  451. package/dist/esm/icons/index.d.ts +6 -0
  452. package/dist/esm/icons/index.d.ts.map +1 -1
  453. package/dist/esm/icons/index.js +6 -0
  454. package/dist/esm/icons/index.js.map +1 -1
  455. package/dist/esm/icons/info-circle-fill.d.ts +1 -1
  456. package/dist/esm/icons/info-circle-fill.d.ts.map +1 -1
  457. package/dist/esm/icons/info-circle-fill.js +4 -2
  458. package/dist/esm/icons/info-circle-fill.js.map +1 -1
  459. package/dist/esm/icons/minus-small.d.ts +1 -1
  460. package/dist/esm/icons/minus-small.d.ts.map +1 -1
  461. package/dist/esm/icons/minus-small.js +4 -2
  462. package/dist/esm/icons/minus-small.js.map +1 -1
  463. package/dist/esm/icons/minus.d.ts +8 -0
  464. package/dist/esm/icons/minus.d.ts.map +1 -0
  465. package/dist/esm/icons/minus.js +19 -0
  466. package/dist/esm/icons/minus.js.map +1 -0
  467. package/dist/esm/icons/unstable-chevron-left-fill.d.ts +8 -0
  468. package/dist/esm/icons/unstable-chevron-left-fill.d.ts.map +1 -0
  469. package/dist/esm/icons/unstable-chevron-left-fill.js +19 -0
  470. package/dist/esm/icons/unstable-chevron-left-fill.js.map +1 -0
  471. package/dist/esm/icons/unstable-chevron-right-fill.d.ts +8 -0
  472. package/dist/esm/icons/unstable-chevron-right-fill.d.ts.map +1 -0
  473. package/dist/esm/icons/unstable-chevron-right-fill.js +19 -0
  474. package/dist/esm/icons/unstable-chevron-right-fill.js.map +1 -0
  475. package/dist/esm/icons/unstable-close.d.ts +8 -0
  476. package/dist/esm/icons/unstable-close.d.ts.map +1 -0
  477. package/dist/esm/icons/unstable-close.js +19 -0
  478. package/dist/esm/icons/unstable-close.js.map +1 -0
  479. package/dist/esm/icons/unstable-info-circle.d.ts +8 -0
  480. package/dist/esm/icons/unstable-info-circle.d.ts.map +1 -0
  481. package/dist/esm/icons/unstable-info-circle.js +19 -0
  482. package/dist/esm/icons/unstable-info-circle.js.map +1 -0
  483. package/dist/esm/icons/unstable-placeholder.d.ts +8 -0
  484. package/dist/esm/icons/unstable-placeholder.d.ts.map +1 -0
  485. package/dist/esm/icons/unstable-placeholder.js +19 -0
  486. package/dist/esm/icons/unstable-placeholder.js.map +1 -0
  487. package/dist/esm/icons/warning-circle-fill.d.ts +1 -1
  488. package/dist/esm/icons/warning-circle-fill.d.ts.map +1 -1
  489. package/dist/esm/icons/warning-circle-fill.js +4 -2
  490. package/dist/esm/icons/warning-circle-fill.js.map +1 -1
  491. package/dist/esm/index.d.ts +21 -1
  492. package/dist/esm/index.d.ts.map +1 -1
  493. package/dist/esm/index.js +19 -0
  494. package/dist/esm/index.js.map +1 -1
  495. package/dist/esm/utils/style/tone.d.ts +3 -0
  496. package/dist/esm/utils/style/tone.d.ts.map +1 -0
  497. package/dist/esm/utils/style/tone.js +4 -0
  498. package/dist/esm/utils/style/tone.js.map +1 -0
  499. package/dist/esm/utils/style/types.d.ts +2 -0
  500. package/dist/esm/utils/style/types.d.ts.map +1 -0
  501. package/dist/esm/utils/style/types.js +2 -0
  502. package/dist/esm/utils/style/types.js.map +1 -0
  503. package/dist/esm/with-style-props.d.ts +1 -1
  504. package/dist/esm/with-style-props.d.ts.map +1 -1
  505. package/dist/esm/with-style-props.js.map +1 -1
  506. package/dist-styles/styles.css +1 -1
  507. package/package.json +5 -2
@@ -0,0 +1,14 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { mergeProps, useObjectRef } from '@react-aria/utils';
3
+ import { forwardRef } from '../../forward-ref.js';
4
+ import { useTableRowState } from './contexts/row-state.js';
5
+ import { useTableCell } from './hooks/use-table-cell.js';
6
+ function UNSTABLE_TableBodyCell({ children, UNSAFE_className, UNSAFE_style, columnKey, columnNumber, ...props }, ref) {
7
+ const cellRef = useObjectRef(ref);
8
+ const { rowKey } = useTableRowState();
9
+ const { cellProps } = useTableCell(cellRef, rowKey, columnKey);
10
+ return (_jsx("td", { ...mergeProps(props, cellProps), ref: cellRef, className: UNSAFE_className, style: UNSAFE_style, "aria-colindex": columnNumber, children: children }));
11
+ }
12
+ const _UNSTABLE_TableBodyCell = forwardRef(UNSTABLE_TableBodyCell, 'TableBodyCell');
13
+ export { _UNSTABLE_TableBodyCell as UNSTABLE_TableBodyCell };
14
+ //# sourceMappingURL=table-body-cell.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"table-body-cell.js","sourceRoot":"","sources":["../../../../src/components/table/table-body-cell.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAE7D,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAElD,OAAO,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAC3D,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AAwBzD,SAAS,sBAAsB,CAC7B,EAAE,QAAQ,EAAE,gBAAgB,EAAE,YAAY,EAAE,SAAS,EAAE,YAAY,EAAE,GAAG,KAAK,EAA+B,EAC5G,GAAuC;IAEvC,MAAM,OAAO,GAAG,YAAY,CAAC,GAAG,CAAC,CAAC;IAClC,MAAM,EAAE,MAAM,EAAE,GAAG,gBAAgB,EAAE,CAAC;IACtC,MAAM,EAAE,SAAS,EAAE,GAAG,YAAY,CAAC,OAAO,EAAE,MAAM,EAAE,SAAS,CAAC,CAAC;IAE/D,OAAO,CACL,gBACM,UAAU,CAAC,KAAK,EAAE,SAAS,CAAC,EAChC,GAAG,EAAE,OAAO,EACZ,SAAS,EAAE,gBAAgB,EAC3B,KAAK,EAAE,YAAY,mBACJ,YAAY,YAE1B,QAAQ,GACN,CACN,CAAC;AACJ,CAAC;AAED,MAAM,uBAAuB,GAAG,UAAU,CAAC,sBAAsB,EAAE,eAAe,CAAC,CAAC;AAEpF,OAAO,EAAE,uBAAuB,IAAI,sBAAsB,EAAE,CAAC","sourcesContent":["import { mergeProps, useObjectRef } from '@react-aria/utils';\nimport type { ForwardedRef, ReactNode } from 'react';\nimport { forwardRef } from '../../forward-ref.js';\nimport type { CommonProps } from '../types.js';\nimport { useTableRowState } from './contexts/row-state.js';\nimport { useTableCell } from './hooks/use-table-cell.js';\n\nexport interface UNSTABLE_TableBodyCellProps extends CommonProps {\n children: ReactNode;\n /**\n * A unique identifier for the column that this cell belongs to.\n * Cells that belong to the same column must have the same `columnKey`.\n */\n columnKey: string;\n /**\n * The position of the column that this cell belongs to within the full dataset.\n *\n * Provide this value if your table presents a subset of columns, such as when the user toggles column visibility.\n *\n * This number must be:\n * - greater than or equal to `1`\n * - greater than the `columnNumber` of any previous cells in the current row\n * - less than or equal to the `totalColumnCount` of the parent `Table`\n *\n * Use together with `totalColumnCount` on the `Table` component.\n */\n columnNumber?: number;\n}\n\nfunction UNSTABLE_TableBodyCell(\n { children, UNSAFE_className, UNSAFE_style, columnKey, columnNumber, ...props }: UNSTABLE_TableBodyCellProps,\n ref: ForwardedRef<HTMLTableCellElement>,\n) {\n const cellRef = useObjectRef(ref);\n const { rowKey } = useTableRowState();\n const { cellProps } = useTableCell(cellRef, rowKey, columnKey);\n\n return (\n <td\n {...mergeProps(props, cellProps)}\n ref={cellRef}\n className={UNSAFE_className}\n style={UNSAFE_style}\n aria-colindex={columnNumber}\n >\n {children}\n </td>\n );\n}\n\nconst _UNSTABLE_TableBodyCell = forwardRef(UNSTABLE_TableBodyCell, 'TableBodyCell');\n\nexport { _UNSTABLE_TableBodyCell as UNSTABLE_TableBodyCell };\n"]}
@@ -0,0 +1,8 @@
1
+ import type { ReactNode } from 'react';
2
+ import type { CommonProps } from '../types.js';
3
+ export interface UNSTABLE_TableBodyProps extends CommonProps {
4
+ children: ReactNode;
5
+ }
6
+ declare const _UNSTABLE_TableBody: (props: UNSTABLE_TableBodyProps & import("react").RefAttributes<HTMLTableSectionElement>) => import("react").JSX.Element | null;
7
+ export { _UNSTABLE_TableBody as UNSTABLE_TableBody };
8
+ //# sourceMappingURL=table-body.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"table-body.d.ts","sourceRoot":"","sources":["../../../../src/components/table/table-body.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAgB,SAAS,EAAE,MAAM,OAAO,CAAC;AAErD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAE/C,MAAM,WAAW,uBAAwB,SAAQ,WAAW;IAC1D,QAAQ,EAAE,SAAS,CAAC;CACrB;AAaD,QAAA,MAAM,mBAAmB,iIAA8C,CAAC;AAExE,OAAO,EAAE,mBAAmB,IAAI,kBAAkB,EAAE,CAAC"}
@@ -0,0 +1,8 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { forwardRef } from '../../forward-ref.js';
3
+ function UNSTABLE_TableBody({ children, UNSAFE_className, UNSAFE_style, ...props }, ref) {
4
+ return (_jsx("tbody", { ...props, ref: ref, className: UNSAFE_className, style: UNSAFE_style, children: children }));
5
+ }
6
+ const _UNSTABLE_TableBody = forwardRef(UNSTABLE_TableBody, 'TableBody');
7
+ export { _UNSTABLE_TableBody as UNSTABLE_TableBody };
8
+ //# sourceMappingURL=table-body.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"table-body.js","sourceRoot":"","sources":["../../../../src/components/table/table-body.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAOlD,SAAS,kBAAkB,CACzB,EAAE,QAAQ,EAAE,gBAAgB,EAAE,YAAY,EAAE,GAAG,KAAK,EAA2B,EAC/E,GAA0C;IAE1C,OAAO,CACL,mBAAW,KAAK,EAAE,GAAG,EAAE,GAAG,EAAE,SAAS,EAAE,gBAAgB,EAAE,KAAK,EAAE,YAAY,YACzE,QAAQ,GACH,CACT,CAAC;AACJ,CAAC;AAED,MAAM,mBAAmB,GAAG,UAAU,CAAC,kBAAkB,EAAE,WAAW,CAAC,CAAC;AAExE,OAAO,EAAE,mBAAmB,IAAI,kBAAkB,EAAE,CAAC","sourcesContent":["import type { ForwardedRef, ReactNode } from 'react';\nimport { forwardRef } from '../../forward-ref.js';\nimport type { CommonProps } from '../types.js';\n\nexport interface UNSTABLE_TableBodyProps extends CommonProps {\n children: ReactNode;\n}\n\nfunction UNSTABLE_TableBody(\n { children, UNSAFE_className, UNSAFE_style, ...props }: UNSTABLE_TableBodyProps,\n ref: ForwardedRef<HTMLTableSectionElement>,\n) {\n return (\n <tbody {...props} ref={ref} className={UNSAFE_className} style={UNSAFE_style}>\n {children}\n </tbody>\n );\n}\n\nconst _UNSTABLE_TableBody = forwardRef(UNSTABLE_TableBody, 'TableBody');\n\nexport { _UNSTABLE_TableBody as UNSTABLE_TableBody };\n"]}
@@ -0,0 +1,8 @@
1
+ import { type ReactNode } from 'react';
2
+ import type { CommonProps, LabellableProps } from '../types.js';
3
+ export interface UNSTABLE_TableContainerProps extends CommonProps, Omit<LabellableProps, 'label'> {
4
+ children: ReactNode;
5
+ }
6
+ declare const _UNSTABLE_TableContainer: (props: UNSTABLE_TableContainerProps & import("react").RefAttributes<HTMLDivElement> & import("../../with-style-props.js").StyleProps) => import("react").JSX.Element | null;
7
+ export { _UNSTABLE_TableContainer as UNSTABLE_TableContainer };
8
+ //# sourceMappingURL=table-container.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"table-container.d.ts","sourceRoot":"","sources":["../../../../src/components/table/table-container.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAgD,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAGrF,OAAO,KAAK,EAAE,WAAW,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAEhE,MAAM,WAAW,4BAA6B,SAAQ,WAAW,EAAE,IAAI,CAAC,eAAe,EAAE,OAAO,CAAC;IAC/F,QAAQ,EAAE,SAAS,CAAC;CACrB;AA+CD,QAAA,MAAM,wBAAwB,8KAAwE,CAAC;AAEvG,OAAO,EAAE,wBAAwB,IAAI,uBAAuB,EAAE,CAAC"}
@@ -0,0 +1,34 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { useFocusRing } from '@react-aria/focus';
3
+ import { mergeProps, useObjectRef } from '@react-aria/utils';
4
+ import clsx from 'clsx';
5
+ import { useLayoutEffect, useState } from 'react';
6
+ import { forwardRef } from '../../forward-ref.js';
7
+ import { withStyleProps } from '../../with-style-props.js';
8
+ function UNSTABLE_TableContainer({ children, UNSAFE_className, UNSAFE_style, ...props }, ref) {
9
+ const containerRef = useObjectRef(ref);
10
+ const { focusProps, isFocusVisible } = useFocusRing();
11
+ const [isScrollable, setIsScrollable] = useState(false);
12
+ useLayoutEffect(() => {
13
+ const containerElement = containerRef.current;
14
+ const isSSR = typeof window === 'undefined';
15
+ let containerResizeObserver;
16
+ if (containerElement && !isSSR) {
17
+ containerResizeObserver = new window.ResizeObserver((entries) => {
18
+ if (entries[0]) {
19
+ setIsScrollable(entries[0].target.scrollWidth > entries[0].target.clientWidth);
20
+ }
21
+ });
22
+ containerResizeObserver.observe(containerElement);
23
+ }
24
+ return () => {
25
+ if (containerElement && containerResizeObserver) {
26
+ containerResizeObserver.unobserve(containerElement);
27
+ }
28
+ };
29
+ }, [containerRef]);
30
+ return (_jsx("div", { ...mergeProps(props, focusProps), ref: containerRef, className: clsx('cim-table-container', UNSAFE_className), style: UNSAFE_style, tabIndex: isScrollable ? 0 : -1, "data-focus-visible": isFocusVisible || undefined, children: children }));
31
+ }
32
+ const _UNSTABLE_TableContainer = withStyleProps(forwardRef(UNSTABLE_TableContainer), 'TableContainer');
33
+ export { _UNSTABLE_TableContainer as UNSTABLE_TableContainer };
34
+ //# sourceMappingURL=table-container.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"table-container.js","sourceRoot":"","sources":["../../../../src/components/table/table-container.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AACjD,OAAO,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAC7D,OAAO,IAAI,MAAM,MAAM,CAAC;AACxB,OAAO,EAAE,eAAe,EAAE,QAAQ,EAAqC,MAAM,OAAO,CAAC;AACrF,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAClD,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAO3D,SAAS,uBAAuB,CAC9B,EAAE,QAAQ,EAAE,gBAAgB,EAAE,YAAY,EAAE,GAAG,KAAK,EAAgC,EACpF,GAAiC;IAEjC,MAAM,YAAY,GAAG,YAAY,CAAC,GAAG,CAAC,CAAC;IACvC,MAAM,EAAE,UAAU,EAAE,cAAc,EAAE,GAAG,YAAY,EAAE,CAAC;IACtD,MAAM,CAAC,YAAY,EAAE,eAAe,CAAC,GAAG,QAAQ,CAAC,KAAK,CAAC,CAAC;IAExD,eAAe,CAAC,GAAG,EAAE;QACnB,MAAM,gBAAgB,GAAG,YAAY,CAAC,OAAO,CAAC;QAC9C,MAAM,KAAK,GAAG,OAAO,MAAM,KAAK,WAAW,CAAC;QAE5C,IAAI,uBAAmD,CAAC;QAExD,IAAI,gBAAgB,IAAI,CAAC,KAAK,EAAE,CAAC;YAC/B,uBAAuB,GAAG,IAAI,MAAM,CAAC,cAAc,CAAC,CAAC,OAAO,EAAE,EAAE;gBAC9D,IAAI,OAAO,CAAC,CAAC,CAAC,EAAE,CAAC;oBACf,eAAe,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,WAAW,GAAG,OAAO,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,WAAW,CAAC,CAAC;gBACjF,CAAC;YACH,CAAC,CAAC,CAAC;YAEH,uBAAuB,CAAC,OAAO,CAAC,gBAAgB,CAAC,CAAC;QACpD,CAAC;QAED,OAAO,GAAG,EAAE;YACV,IAAI,gBAAgB,IAAI,uBAAuB,EAAE,CAAC;gBAChD,uBAAuB,CAAC,SAAS,CAAC,gBAAgB,CAAC,CAAC;YACtD,CAAC;QACH,CAAC,CAAC;IACJ,CAAC,EAAE,CAAC,YAAY,CAAC,CAAC,CAAC;IAEnB,OAAO,CACL,iBACM,UAAU,CAAC,KAAK,EAAE,UAAU,CAAC,EACjC,GAAG,EAAE,YAAY,EACjB,SAAS,EAAE,IAAI,CAAC,qBAAqB,EAAE,gBAAgB,CAAC,EACxD,KAAK,EAAE,YAAY,EACnB,QAAQ,EAAE,YAAY,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,wBACX,cAAc,IAAI,SAAS,YAE9C,QAAQ,GACL,CACP,CAAC;AACJ,CAAC;AAED,MAAM,wBAAwB,GAAG,cAAc,CAAC,UAAU,CAAC,uBAAuB,CAAC,EAAE,gBAAgB,CAAC,CAAC;AAEvG,OAAO,EAAE,wBAAwB,IAAI,uBAAuB,EAAE,CAAC","sourcesContent":["import { useFocusRing } from '@react-aria/focus';\nimport { mergeProps, useObjectRef } from '@react-aria/utils';\nimport clsx from 'clsx';\nimport { useLayoutEffect, useState, type ForwardedRef, type ReactNode } from 'react';\nimport { forwardRef } from '../../forward-ref.js';\nimport { withStyleProps } from '../../with-style-props.js';\nimport type { CommonProps, LabellableProps } from '../types.js';\n\nexport interface UNSTABLE_TableContainerProps extends CommonProps, Omit<LabellableProps, 'label'> {\n children: ReactNode;\n}\n\nfunction UNSTABLE_TableContainer(\n { children, UNSAFE_className, UNSAFE_style, ...props }: UNSTABLE_TableContainerProps,\n ref: ForwardedRef<HTMLDivElement>,\n) {\n const containerRef = useObjectRef(ref);\n const { focusProps, isFocusVisible } = useFocusRing();\n const [isScrollable, setIsScrollable] = useState(false);\n\n useLayoutEffect(() => {\n const containerElement = containerRef.current;\n const isSSR = typeof window === 'undefined';\n\n let containerResizeObserver: ResizeObserver | undefined;\n\n if (containerElement && !isSSR) {\n containerResizeObserver = new window.ResizeObserver((entries) => {\n if (entries[0]) {\n setIsScrollable(entries[0].target.scrollWidth > entries[0].target.clientWidth);\n }\n });\n\n containerResizeObserver.observe(containerElement);\n }\n\n return () => {\n if (containerElement && containerResizeObserver) {\n containerResizeObserver.unobserve(containerElement);\n }\n };\n }, [containerRef]);\n\n return (\n <div\n {...mergeProps(props, focusProps)}\n ref={containerRef}\n className={clsx('cim-table-container', UNSAFE_className)}\n style={UNSAFE_style}\n tabIndex={isScrollable ? 0 : -1}\n data-focus-visible={isFocusVisible || undefined}\n >\n {children}\n </div>\n );\n}\n\nconst _UNSTABLE_TableContainer = withStyleProps(forwardRef(UNSTABLE_TableContainer), 'TableContainer');\n\nexport { _UNSTABLE_TableContainer as UNSTABLE_TableContainer };\n"]}
@@ -0,0 +1,26 @@
1
+ import type { ReactNode } from 'react';
2
+ import type { CommonProps } from '../types.js';
3
+ export interface UNSTABLE_TableHeaderCellProps extends CommonProps {
4
+ children: ReactNode;
5
+ /**
6
+ * A unique identifier for the column that this cell belongs to.
7
+ * Cells that belong to the same column must have the same `columnKey`.
8
+ */
9
+ columnKey: string;
10
+ /**
11
+ * The position of the column that this cell belongs to within the full dataset.
12
+ *
13
+ * Provide this value if your table presents a subset of columns, such as when the user toggles column visibility.
14
+ *
15
+ * This number must be:
16
+ * - greater than or equal to `1`
17
+ * - greater than the `columnNumber` of any previous cells in the current row
18
+ * - less than or equal to the `totalColumnCount` of the parent `Table`
19
+ *
20
+ * Use together with `totalColumnCount` on the `Table` component.
21
+ */
22
+ columnNumber?: number;
23
+ }
24
+ declare const _UNSTABLE_TableHeaderCell: (props: UNSTABLE_TableHeaderCellProps & import("react").RefAttributes<HTMLTableCellElement>) => import("react").JSX.Element | null;
25
+ export { _UNSTABLE_TableHeaderCell as UNSTABLE_TableHeaderCell };
26
+ //# sourceMappingURL=table-header-cell.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"table-header-cell.d.ts","sourceRoot":"","sources":["../../../../src/components/table/table-header-cell.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAgB,SAAS,EAAE,MAAM,OAAO,CAAC;AAErD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAI/C,MAAM,WAAW,6BAA8B,SAAQ,WAAW;IAChE,QAAQ,EAAE,SAAS,CAAC;IACpB;;;OAGG;IACH,SAAS,EAAE,MAAM,CAAC;IAClB;;;;;;;;;;;OAWG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB;AAwBD,QAAA,MAAM,yBAAyB,oIAA0D,CAAC;AAE1F,OAAO,EAAE,yBAAyB,IAAI,wBAAwB,EAAE,CAAC"}
@@ -0,0 +1,14 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { mergeProps, useObjectRef } from '@react-aria/utils';
3
+ import { forwardRef } from '../../forward-ref.js';
4
+ import { useTableRowState } from './contexts/row-state.js';
5
+ import { useTableCell } from './hooks/use-table-cell.js';
6
+ function UNSTABLE_TableHeaderCell({ children, UNSAFE_className, UNSAFE_style, columnKey, columnNumber, ...props }, ref) {
7
+ const cellRef = useObjectRef(ref);
8
+ const { rowKey } = useTableRowState();
9
+ const { cellProps } = useTableCell(cellRef, rowKey, columnKey);
10
+ return (_jsx("th", { ...mergeProps(props, cellProps), ref: cellRef, className: UNSAFE_className, style: UNSAFE_style, scope: "col", "aria-colindex": columnNumber, children: children }));
11
+ }
12
+ const _UNSTABLE_TableHeaderCell = forwardRef(UNSTABLE_TableHeaderCell, 'TableHeaderCell');
13
+ export { _UNSTABLE_TableHeaderCell as UNSTABLE_TableHeaderCell };
14
+ //# sourceMappingURL=table-header-cell.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"table-header-cell.js","sourceRoot":"","sources":["../../../../src/components/table/table-header-cell.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAE7D,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAElD,OAAO,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAC3D,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AAwBzD,SAAS,wBAAwB,CAC/B,EAAE,QAAQ,EAAE,gBAAgB,EAAE,YAAY,EAAE,SAAS,EAAE,YAAY,EAAE,GAAG,KAAK,EAAiC,EAC9G,GAAuC;IAEvC,MAAM,OAAO,GAAG,YAAY,CAAC,GAAG,CAAC,CAAC;IAClC,MAAM,EAAE,MAAM,EAAE,GAAG,gBAAgB,EAAE,CAAC;IACtC,MAAM,EAAE,SAAS,EAAE,GAAG,YAAY,CAAC,OAAO,EAAE,MAAM,EAAE,SAAS,CAAC,CAAC;IAE/D,OAAO,CACL,gBACM,UAAU,CAAC,KAAK,EAAE,SAAS,CAAC,EAChC,GAAG,EAAE,OAAO,EACZ,SAAS,EAAE,gBAAgB,EAC3B,KAAK,EAAE,YAAY,EACnB,KAAK,EAAC,KAAK,mBACI,YAAY,YAE1B,QAAQ,GACN,CACN,CAAC;AACJ,CAAC;AAED,MAAM,yBAAyB,GAAG,UAAU,CAAC,wBAAwB,EAAE,iBAAiB,CAAC,CAAC;AAE1F,OAAO,EAAE,yBAAyB,IAAI,wBAAwB,EAAE,CAAC","sourcesContent":["import { mergeProps, useObjectRef } from '@react-aria/utils';\nimport type { ForwardedRef, ReactNode } from 'react';\nimport { forwardRef } from '../../forward-ref.js';\nimport type { CommonProps } from '../types.js';\nimport { useTableRowState } from './contexts/row-state.js';\nimport { useTableCell } from './hooks/use-table-cell.js';\n\nexport interface UNSTABLE_TableHeaderCellProps extends CommonProps {\n children: ReactNode;\n /**\n * A unique identifier for the column that this cell belongs to.\n * Cells that belong to the same column must have the same `columnKey`.\n */\n columnKey: string;\n /**\n * The position of the column that this cell belongs to within the full dataset.\n *\n * Provide this value if your table presents a subset of columns, such as when the user toggles column visibility.\n *\n * This number must be:\n * - greater than or equal to `1`\n * - greater than the `columnNumber` of any previous cells in the current row\n * - less than or equal to the `totalColumnCount` of the parent `Table`\n *\n * Use together with `totalColumnCount` on the `Table` component.\n */\n columnNumber?: number;\n}\n\nfunction UNSTABLE_TableHeaderCell(\n { children, UNSAFE_className, UNSAFE_style, columnKey, columnNumber, ...props }: UNSTABLE_TableHeaderCellProps,\n ref: ForwardedRef<HTMLTableCellElement>,\n) {\n const cellRef = useObjectRef(ref);\n const { rowKey } = useTableRowState();\n const { cellProps } = useTableCell(cellRef, rowKey, columnKey);\n\n return (\n <th\n {...mergeProps(props, cellProps)}\n ref={cellRef}\n className={UNSAFE_className}\n style={UNSAFE_style}\n scope=\"col\"\n aria-colindex={columnNumber}\n >\n {children}\n </th>\n );\n}\n\nconst _UNSTABLE_TableHeaderCell = forwardRef(UNSTABLE_TableHeaderCell, 'TableHeaderCell');\n\nexport { _UNSTABLE_TableHeaderCell as UNSTABLE_TableHeaderCell };\n"]}
@@ -0,0 +1,8 @@
1
+ import type { ReactNode } from 'react';
2
+ import type { CommonProps } from '../types.js';
3
+ export interface UNSTABLE_TableHeaderProps extends CommonProps {
4
+ children: ReactNode;
5
+ }
6
+ declare const _UNSTABLE_TableHeader: (props: UNSTABLE_TableHeaderProps & import("react").RefAttributes<HTMLTableSectionElement>) => import("react").JSX.Element | null;
7
+ export { _UNSTABLE_TableHeader as UNSTABLE_TableHeader };
8
+ //# sourceMappingURL=table-header.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"table-header.d.ts","sourceRoot":"","sources":["../../../../src/components/table/table-header.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAgB,SAAS,EAAE,MAAM,OAAO,CAAC;AAErD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAE/C,MAAM,WAAW,yBAA0B,SAAQ,WAAW;IAC5D,QAAQ,EAAE,SAAS,CAAC;CACrB;AAaD,QAAA,MAAM,qBAAqB,mIAAkD,CAAC;AAE9E,OAAO,EAAE,qBAAqB,IAAI,oBAAoB,EAAE,CAAC"}
@@ -0,0 +1,8 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { forwardRef } from '../../forward-ref.js';
3
+ function UNSTABLE_TableHeader({ children, UNSAFE_className, UNSAFE_style, ...props }, ref) {
4
+ return (_jsx("thead", { ...props, ref: ref, className: UNSAFE_className, style: UNSAFE_style, children: children }));
5
+ }
6
+ const _UNSTABLE_TableHeader = forwardRef(UNSTABLE_TableHeader, 'TableHeader');
7
+ export { _UNSTABLE_TableHeader as UNSTABLE_TableHeader };
8
+ //# sourceMappingURL=table-header.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"table-header.js","sourceRoot":"","sources":["../../../../src/components/table/table-header.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAOlD,SAAS,oBAAoB,CAC3B,EAAE,QAAQ,EAAE,gBAAgB,EAAE,YAAY,EAAE,GAAG,KAAK,EAA6B,EACjF,GAA0C;IAE1C,OAAO,CACL,mBAAW,KAAK,EAAE,GAAG,EAAE,GAAG,EAAE,SAAS,EAAE,gBAAgB,EAAE,KAAK,EAAE,YAAY,YACzE,QAAQ,GACH,CACT,CAAC;AACJ,CAAC;AAED,MAAM,qBAAqB,GAAG,UAAU,CAAC,oBAAoB,EAAE,aAAa,CAAC,CAAC;AAE9E,OAAO,EAAE,qBAAqB,IAAI,oBAAoB,EAAE,CAAC","sourcesContent":["import type { ForwardedRef, ReactNode } from 'react';\nimport { forwardRef } from '../../forward-ref.js';\nimport type { CommonProps } from '../types.js';\n\nexport interface UNSTABLE_TableHeaderProps extends CommonProps {\n children: ReactNode;\n}\n\nfunction UNSTABLE_TableHeader(\n { children, UNSAFE_className, UNSAFE_style, ...props }: UNSTABLE_TableHeaderProps,\n ref: ForwardedRef<HTMLTableSectionElement>,\n) {\n return (\n <thead {...props} ref={ref} className={UNSAFE_className} style={UNSAFE_style}>\n {children}\n </thead>\n );\n}\n\nconst _UNSTABLE_TableHeader = forwardRef(UNSTABLE_TableHeader, 'TableHeader');\n\nexport { _UNSTABLE_TableHeader as UNSTABLE_TableHeader };\n"]}
@@ -0,0 +1,21 @@
1
+ import type { ReactNode } from 'react';
2
+ import type { CommonProps } from '../types.js';
3
+ export interface UNSTABLE_TableRowProps extends CommonProps {
4
+ children: ReactNode;
5
+ /**
6
+ * The row's position within the full dataset, including headers.
7
+ *
8
+ * Provide this value if your table presents a subset of rows, such as when using pagination.
9
+ *
10
+ * This number must be:
11
+ * - greater than or equal to `1`
12
+ * - greater than the `rowNumber` of any previous rows
13
+ * - less than or equal to the `totalRowCount` of the parent `Table`
14
+ *
15
+ * Use together with `totalRowCount` on the `Table` component.
16
+ */
17
+ rowNumber?: number;
18
+ }
19
+ declare const _UNSTABLE_TableRow: (props: UNSTABLE_TableRowProps & import("react").RefAttributes<HTMLTableRowElement>) => import("react").JSX.Element | null;
20
+ export { _UNSTABLE_TableRow as UNSTABLE_TableRow };
21
+ //# sourceMappingURL=table-row.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"table-row.d.ts","sourceRoot":"","sources":["../../../../src/components/table/table-row.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAgB,SAAS,EAAE,MAAM,OAAO,CAAC;AAErD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAG/C,MAAM,WAAW,sBAAuB,SAAQ,WAAW;IACzD,QAAQ,EAAE,SAAS,CAAC;IACpB;;;;;;;;;;;OAWG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAeD,QAAA,MAAM,kBAAkB,4HAA4C,CAAC;AAErE,OAAO,EAAE,kBAAkB,IAAI,iBAAiB,EAAE,CAAC"}
@@ -0,0 +1,11 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { useId } from '@react-aria/utils';
3
+ import { forwardRef } from '../../forward-ref.js';
4
+ import { TableRowStateProvider } from './contexts/row-state.js';
5
+ function UNSTABLE_TableRow({ children, UNSAFE_className, UNSAFE_style, rowNumber, ...props }, ref) {
6
+ const rowKey = useId();
7
+ return (_jsx("tr", { ...props, ref: ref, className: UNSAFE_className, style: UNSAFE_style, "aria-rowindex": rowNumber, children: _jsx(TableRowStateProvider, { rowKey: rowKey, children: children }) }));
8
+ }
9
+ const _UNSTABLE_TableRow = forwardRef(UNSTABLE_TableRow, 'TableRow');
10
+ export { _UNSTABLE_TableRow as UNSTABLE_TableRow };
11
+ //# sourceMappingURL=table-row.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"table-row.js","sourceRoot":"","sources":["../../../../src/components/table/table-row.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAE1C,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAElD,OAAO,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AAmBhE,SAAS,iBAAiB,CACxB,EAAE,QAAQ,EAAE,gBAAgB,EAAE,YAAY,EAAE,SAAS,EAAE,GAAG,KAAK,EAA0B,EACzF,GAAsC;IAEtC,MAAM,MAAM,GAAG,KAAK,EAAE,CAAC;IAEvB,OAAO,CACL,gBAAQ,KAAK,EAAE,GAAG,EAAE,GAAG,EAAE,SAAS,EAAE,gBAAgB,EAAE,KAAK,EAAE,YAAY,mBAAiB,SAAS,YACjG,KAAC,qBAAqB,IAAC,MAAM,EAAE,MAAM,YAAG,QAAQ,GAAyB,GACtE,CACN,CAAC;AACJ,CAAC;AAED,MAAM,kBAAkB,GAAG,UAAU,CAAC,iBAAiB,EAAE,UAAU,CAAC,CAAC;AAErE,OAAO,EAAE,kBAAkB,IAAI,iBAAiB,EAAE,CAAC","sourcesContent":["import { useId } from '@react-aria/utils';\nimport type { ForwardedRef, ReactNode } from 'react';\nimport { forwardRef } from '../../forward-ref.js';\nimport type { CommonProps } from '../types.js';\nimport { TableRowStateProvider } from './contexts/row-state.js';\n\nexport interface UNSTABLE_TableRowProps extends CommonProps {\n children: ReactNode;\n /**\n * The row's position within the full dataset, including headers.\n *\n * Provide this value if your table presents a subset of rows, such as when using pagination.\n *\n * This number must be:\n * - greater than or equal to `1`\n * - greater than the `rowNumber` of any previous rows\n * - less than or equal to the `totalRowCount` of the parent `Table`\n *\n * Use together with `totalRowCount` on the `Table` component.\n */\n rowNumber?: number;\n}\n\nfunction UNSTABLE_TableRow(\n { children, UNSAFE_className, UNSAFE_style, rowNumber, ...props }: UNSTABLE_TableRowProps,\n ref: ForwardedRef<HTMLTableRowElement>,\n) {\n const rowKey = useId();\n\n return (\n <tr {...props} ref={ref} className={UNSAFE_className} style={UNSAFE_style} aria-rowindex={rowNumber}>\n <TableRowStateProvider rowKey={rowKey}>{children}</TableRowStateProvider>\n </tr>\n );\n}\n\nconst _UNSTABLE_TableRow = forwardRef(UNSTABLE_TableRow, 'TableRow');\n\nexport { _UNSTABLE_TableRow as UNSTABLE_TableRow };\n"]}
@@ -0,0 +1,26 @@
1
+ import { type ReactNode } from 'react';
2
+ import type { CommonProps, LabellableProps } from '../types.js';
3
+ export interface UNSTABLE_TableProps extends CommonProps, Omit<LabellableProps, 'label'> {
4
+ children: ReactNode;
5
+ /**
6
+ * The number of rows in the full dataset, including headers.
7
+ *
8
+ * Provide this value if your table presents a subset of rows, such as when using pagination.
9
+ * Use `-1` if the number of rows is not known.
10
+ *
11
+ * You must provide `rowNumber` on each table row if `totalRowCount` is defined.
12
+ */
13
+ totalRowCount?: number;
14
+ /**
15
+ * The number of columns in the full dataset.
16
+ *
17
+ * Provide this value if your table presents a subset of columns, such as when the user toggles column visibility.
18
+ * Use `-1` if the number of columns is not known.
19
+ *
20
+ * You must provide `columnNumber` on each table cell if `totalColumnCount` is defined.
21
+ */
22
+ totalColumnCount?: number;
23
+ }
24
+ declare const _UNSTABLE_Table: (props: UNSTABLE_TableProps & import("react").RefAttributes<HTMLTableElement>) => import("react").JSX.Element | null;
25
+ export { _UNSTABLE_Table as UNSTABLE_Table };
26
+ //# sourceMappingURL=table.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"table.d.ts","sourceRoot":"","sources":["../../../../src/components/table/table.tsx"],"names":[],"mappings":"AACA,OAAO,EAAgC,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAErE,OAAO,KAAK,EAAE,WAAW,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAIhE,MAAM,WAAW,mBAAoB,SAAQ,WAAW,EAAE,IAAI,CAAC,eAAe,EAAE,OAAO,CAAC;IACtF,QAAQ,EAAE,SAAS,CAAC;IACpB;;;;;;;OAOG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB;;;;;;;OAOG;IACH,gBAAgB,CAAC,EAAE,MAAM,CAAC;CAC3B;AA+CD,QAAA,MAAM,eAAe,sHAAsC,CAAC;AAE5D,OAAO,EAAE,eAAe,IAAI,cAAc,EAAE,CAAC"}
@@ -0,0 +1,24 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { mergeProps, useObjectRef } from '@react-aria/utils';
3
+ import { useEffect } from 'react';
4
+ import { forwardRef } from '../../forward-ref.js';
5
+ import { TableFocusProvider } from './contexts/focus.js';
6
+ import { useTable } from './hooks/use-table.js';
7
+ function UNSTABLE_Table(props, ref) {
8
+ const { 'aria-label': ariaLabel, 'aria-labelledby': ariaLabelledBy } = props;
9
+ useEffect(() => {
10
+ if (!ariaLabel && !ariaLabelledBy) {
11
+ console.warn('Table requires one of aria-label / aria-labelledby for accessibility');
12
+ }
13
+ }, [ariaLabel, ariaLabelledBy]);
14
+ return (_jsxs(TableFocusProvider, { children: [_jsx("span", { tabIndex: -1, "data-cim-table-guard": true, "aria-hidden": true }), _jsx(TableInner, { props: props, forwardedRef: ref }), _jsx("span", { tabIndex: -1, "data-cim-table-guard": true, "aria-hidden": true })] }));
15
+ }
16
+ // eslint-disable-next-line react-refresh/only-export-components
17
+ function TableInner({ props: { children, UNSAFE_className, UNSAFE_style, totalRowCount, totalColumnCount, ...props }, forwardedRef, }) {
18
+ const tableRef = useObjectRef(forwardedRef);
19
+ const { tableProps } = useTable(tableRef);
20
+ return (_jsx("table", { ...mergeProps(props, tableProps), ref: tableRef, className: UNSAFE_className, style: UNSAFE_style, "aria-rowcount": totalRowCount, "aria-colcount": totalColumnCount, children: children }));
21
+ }
22
+ const _UNSTABLE_Table = forwardRef(UNSTABLE_Table, 'Table');
23
+ export { _UNSTABLE_Table as UNSTABLE_Table };
24
+ //# sourceMappingURL=table.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"table.js","sourceRoot":"","sources":["../../../../src/components/table/table.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAC7D,OAAO,EAAE,SAAS,EAAqC,MAAM,OAAO,CAAC;AACrE,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAElD,OAAO,EAAE,kBAAkB,EAAE,MAAM,qBAAqB,CAAC;AACzD,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAwBhD,SAAS,cAAc,CAAC,KAA0B,EAAE,GAAmC;IACrF,MAAM,EAAE,YAAY,EAAE,SAAS,EAAE,iBAAiB,EAAE,cAAc,EAAE,GAAG,KAAK,CAAC;IAE7E,SAAS,CAAC,GAAG,EAAE;QACb,IAAI,CAAC,SAAS,IAAI,CAAC,cAAc,EAAE,CAAC;YAClC,OAAO,CAAC,IAAI,CAAC,sEAAsE,CAAC,CAAC;QACvF,CAAC;IACH,CAAC,EAAE,CAAC,SAAS,EAAE,cAAc,CAAC,CAAC,CAAC;IAEhC,OAAO,CACL,MAAC,kBAAkB,eACjB,eAAM,QAAQ,EAAE,CAAC,CAAC,sDAAqC,EACvD,KAAC,UAAU,IAAC,KAAK,EAAE,KAAK,EAAE,YAAY,EAAE,GAAG,GAAI,EAC/C,eAAM,QAAQ,EAAE,CAAC,CAAC,sDAAqC,IACpC,CACtB,CAAC;AACJ,CAAC;AAOD,gEAAgE;AAChE,SAAS,UAAU,CAAC,EAClB,KAAK,EAAE,EAAE,QAAQ,EAAE,gBAAgB,EAAE,YAAY,EAAE,aAAa,EAAE,gBAAgB,EAAE,GAAG,KAAK,EAAE,EAC9F,YAAY,GACI;IAChB,MAAM,QAAQ,GAAG,YAAY,CAAC,YAAY,CAAC,CAAC;IAC5C,MAAM,EAAE,UAAU,EAAE,GAAG,QAAQ,CAAC,QAAQ,CAAC,CAAC;IAE1C,OAAO,CACL,mBACM,UAAU,CAAC,KAAK,EAAE,UAAU,CAAC,EACjC,GAAG,EAAE,QAAQ,EACb,SAAS,EAAE,gBAAgB,EAC3B,KAAK,EAAE,YAAY,mBACJ,aAAa,mBACb,gBAAgB,YAE9B,QAAQ,GACH,CACT,CAAC;AACJ,CAAC;AAED,MAAM,eAAe,GAAG,UAAU,CAAC,cAAc,EAAE,OAAO,CAAC,CAAC;AAE5D,OAAO,EAAE,eAAe,IAAI,cAAc,EAAE,CAAC","sourcesContent":["import { mergeProps, useObjectRef } from '@react-aria/utils';\nimport { useEffect, type ForwardedRef, type ReactNode } from 'react';\nimport { forwardRef } from '../../forward-ref.js';\nimport type { CommonProps, LabellableProps } from '../types.js';\nimport { TableFocusProvider } from './contexts/focus.js';\nimport { useTable } from './hooks/use-table.js';\n\nexport interface UNSTABLE_TableProps extends CommonProps, Omit<LabellableProps, 'label'> {\n children: ReactNode;\n /**\n * The number of rows in the full dataset, including headers.\n *\n * Provide this value if your table presents a subset of rows, such as when using pagination.\n * Use `-1` if the number of rows is not known.\n *\n * You must provide `rowNumber` on each table row if `totalRowCount` is defined.\n */\n totalRowCount?: number;\n /**\n * The number of columns in the full dataset.\n *\n * Provide this value if your table presents a subset of columns, such as when the user toggles column visibility.\n * Use `-1` if the number of columns is not known.\n *\n * You must provide `columnNumber` on each table cell if `totalColumnCount` is defined.\n */\n totalColumnCount?: number;\n}\n\nfunction UNSTABLE_Table(props: UNSTABLE_TableProps, ref: ForwardedRef<HTMLTableElement>) {\n const { 'aria-label': ariaLabel, 'aria-labelledby': ariaLabelledBy } = props;\n\n useEffect(() => {\n if (!ariaLabel && !ariaLabelledBy) {\n console.warn('Table requires one of aria-label / aria-labelledby for accessibility');\n }\n }, [ariaLabel, ariaLabelledBy]);\n\n return (\n <TableFocusProvider>\n <span tabIndex={-1} data-cim-table-guard aria-hidden />\n <TableInner props={props} forwardedRef={ref} />\n <span tabIndex={-1} data-cim-table-guard aria-hidden />\n </TableFocusProvider>\n );\n}\n\ninterface TableInnerProps {\n props: UNSTABLE_TableProps;\n forwardedRef: ForwardedRef<HTMLTableElement>;\n}\n\n// eslint-disable-next-line react-refresh/only-export-components\nfunction TableInner({\n props: { children, UNSAFE_className, UNSAFE_style, totalRowCount, totalColumnCount, ...props },\n forwardedRef,\n}: TableInnerProps) {\n const tableRef = useObjectRef(forwardedRef);\n const { tableProps } = useTable(tableRef);\n\n return (\n <table\n {...mergeProps(props, tableProps)}\n ref={tableRef}\n className={UNSAFE_className}\n style={UNSAFE_style}\n aria-rowcount={totalRowCount}\n aria-colcount={totalColumnCount}\n >\n {children}\n </table>\n );\n}\n\nconst _UNSTABLE_Table = forwardRef(UNSTABLE_Table, 'Table');\n\nexport { _UNSTABLE_Table as UNSTABLE_Table };\n"]}
@@ -0,0 +1,4 @@
1
+ import type { FocusableElement } from '../../types.js';
2
+ /** Focuses the given element inside a table, and scrolls to it if focus is visible */
3
+ export declare function focusTableChild(element: FocusableElement): void;
4
+ //# sourceMappingURL=focus-table-child.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"focus-table-child.d.ts","sourceRoot":"","sources":["../../../../../src/components/table/utils/focus-table-child.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAEvD,sFAAsF;AACtF,wBAAgB,eAAe,CAAC,OAAO,EAAE,gBAAgB,GAAG,IAAI,CAM/D"}
@@ -0,0 +1,11 @@
1
+ import { focusSafely } from '@react-aria/focus';
2
+ import { isFocusVisible } from '@react-aria/interactions';
3
+ import { getScrollParent, scrollIntoViewport } from '@react-aria/utils';
4
+ /** Focuses the given element inside a table, and scrolls to it if focus is visible */
5
+ export function focusTableChild(element) {
6
+ focusSafely(element);
7
+ if (isFocusVisible()) {
8
+ scrollIntoViewport(element, { containingElement: getScrollParent(element) });
9
+ }
10
+ }
11
+ //# sourceMappingURL=focus-table-child.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"focus-table-child.js","sourceRoot":"","sources":["../../../../../src/components/table/utils/focus-table-child.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAChD,OAAO,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAC1D,OAAO,EAAE,eAAe,EAAE,kBAAkB,EAAE,MAAM,mBAAmB,CAAC;AAGxE,sFAAsF;AACtF,MAAM,UAAU,eAAe,CAAC,OAAyB;IACvD,WAAW,CAAC,OAAO,CAAC,CAAC;IAErB,IAAI,cAAc,EAAE,EAAE,CAAC;QACrB,kBAAkB,CAAC,OAAO,EAAE,EAAE,iBAAiB,EAAE,eAAe,CAAC,OAAO,CAAC,EAAE,CAAC,CAAC;IAC/E,CAAC;AACH,CAAC","sourcesContent":["import { focusSafely } from '@react-aria/focus';\nimport { isFocusVisible } from '@react-aria/interactions';\nimport { getScrollParent, scrollIntoViewport } from '@react-aria/utils';\nimport type { FocusableElement } from '../../types.js';\n\n/** Focuses the given element inside a table, and scrolls to it if focus is visible */\nexport function focusTableChild(element: FocusableElement): void {\n focusSafely(element);\n\n if (isFocusVisible()) {\n scrollIntoViewport(element, { containingElement: getScrollParent(element) });\n }\n}\n"]}
@@ -0,0 +1,18 @@
1
+ import { type TagGroupProps as RACTagGroupProps, type TagListProps as RACTagListProps } from 'react-aria-components';
2
+ import type { CollectionItem, CommonProps, FieldProps, Key } from '../types.js';
3
+ export interface UNSTABLE_TagGroupProps<T extends CollectionItem = CollectionItem> extends CommonProps, Omit<FieldProps<Key[]>, 'validate' | 'error'>, Pick<RACTagGroupProps, 'selectionMode' | 'defaultSelectedKeys' | 'selectedKeys' | 'disabledKeys' | 'onSelectionChange' | 'onRemove'>, Pick<RACTagListProps<T>, 'children' | 'items' | 'renderEmptyState'> {
4
+ /** Whether the tag group is required. */
5
+ isRequired?: boolean;
6
+ /** The error message to display. */
7
+ error?: string;
8
+ /** The size of the tags. */
9
+ size?: 'small' | 'medium' | 'large';
10
+ }
11
+ /**
12
+ * Displays a group of tags. Allows for selecting or removing tags.
13
+ *
14
+ * See [tag group usage guidelines](https://ui.cimpress.io/components/tag-group/).
15
+ */
16
+ declare const _UNSTABLE_TagGroup: <T extends CollectionItem>(props: UNSTABLE_TagGroupProps<T> & import("react").RefAttributes<HTMLDivElement> & import("../../with-style-props.js").StyleProps) => import("react").JSX.Element | null;
17
+ export { _UNSTABLE_TagGroup as UNSTABLE_TagGroup };
18
+ //# sourceMappingURL=tag-group.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tag-group.d.ts","sourceRoot":"","sources":["../../../../src/components/tag/tag-group.tsx"],"names":[],"mappings":"AAIA,OAAO,EAGL,KAAK,aAAa,IAAI,gBAAgB,EACtC,KAAK,YAAY,IAAI,eAAe,EACrC,MAAM,uBAAuB,CAAC;AAI/B,OAAO,KAAK,EAAE,cAAc,EAAE,WAAW,EAAE,UAAU,EAAE,GAAG,EAAE,MAAM,aAAa,CAAC;AAEhF,MAAM,WAAW,sBAAsB,CAAC,CAAC,SAAS,cAAc,GAAG,cAAc,CAC/E,SAAQ,WAAW,EAEjB,IAAI,CAAC,UAAU,CAAC,GAAG,EAAE,CAAC,EAAE,UAAU,GAAG,OAAO,CAAC,EAC7C,IAAI,CACF,gBAAgB,EAChB,eAAe,GAAG,qBAAqB,GAAG,cAAc,GAAG,cAAc,GAAG,mBAAmB,GAAG,UAAU,CAC7G,EACD,IAAI,CAAC,eAAe,CAAC,CAAC,CAAC,EAAE,UAAU,GAAG,OAAO,GAAG,kBAAkB,CAAC;IACrE,yCAAyC;IACzC,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,oCAAoC;IACpC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,4BAA4B;IAC5B,IAAI,CAAC,EAAE,OAAO,GAAG,QAAQ,GAAG,OAAO,CAAC;CACrC;AAwCD;;;;GAIG;AACH,QAAA,MAAM,kBAAkB,GA3CG,CAAC,SAAS,cAAc,0KA2CiC,CAAC;AAErF,OAAO,EAAE,kBAAkB,IAAI,iBAAiB,EAAE,CAAC"}
@@ -0,0 +1,21 @@
1
+ 'use client';
2
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
3
+ import clsx from 'clsx';
4
+ import { TagGroup as RACTagGroup, TagList as RACTagList, } from 'react-aria-components';
5
+ import { forwardRef } from '../../forward-ref.js';
6
+ import { withStyleProps } from '../../with-style-props.js';
7
+ import { FormFieldDescription, FormFieldErrorText, FormFieldLabel } from '../internal/form-field/form-field.js';
8
+ function UNSTABLE_TagGroup({ label, description, error, children, isRequired, items, renderEmptyState, size = 'medium', UNSAFE_className, UNSAFE_style, ...props }, ref) {
9
+ if (props.selectionMode != null && props.selectionMode !== 'none' && props.onRemove != null) {
10
+ console.error('`onRemove` is not supported when `selectionMode` is set to anything other than `"none"`');
11
+ }
12
+ return (_jsxs(RACTagGroup, { ...props, ref: ref, className: clsx('cim-tag-group', UNSAFE_className), style: UNSAFE_style, "data-size": size, children: [_jsx(FormFieldLabel, { isRequired: isRequired, children: label }), _jsx(RACTagList, { className: "cim-tag-group-list", items: items, renderEmptyState: renderEmptyState, children: children }), error && _jsx(FormFieldErrorText, { children: error }), _jsx(FormFieldDescription, { children: description })] }));
13
+ }
14
+ /**
15
+ * Displays a group of tags. Allows for selecting or removing tags.
16
+ *
17
+ * See [tag group usage guidelines](https://ui.cimpress.io/components/tag-group/).
18
+ */
19
+ const _UNSTABLE_TagGroup = withStyleProps(forwardRef(UNSTABLE_TagGroup), 'TagGroup');
20
+ export { _UNSTABLE_TagGroup as UNSTABLE_TagGroup };
21
+ //# sourceMappingURL=tag-group.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tag-group.js","sourceRoot":"","sources":["../../../../src/components/tag/tag-group.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AAEb,OAAO,IAAI,MAAM,MAAM,CAAC;AAExB,OAAO,EACL,QAAQ,IAAI,WAAW,EACvB,OAAO,IAAI,UAAU,GAGtB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAClD,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAC3D,OAAO,EAAE,oBAAoB,EAAE,kBAAkB,EAAE,cAAc,EAAE,MAAM,sCAAsC,CAAC;AAoBhH,SAAS,iBAAiB,CACxB,EACE,KAAK,EACL,WAAW,EACX,KAAK,EACL,QAAQ,EACR,UAAU,EACV,KAAK,EACL,gBAAgB,EAChB,IAAI,GAAG,QAAQ,EACf,gBAAgB,EAChB,YAAY,EACZ,GAAG,KAAK,EACkB,EAC5B,GAAiC;IAEjC,IAAI,KAAK,CAAC,aAAa,IAAI,IAAI,IAAI,KAAK,CAAC,aAAa,KAAK,MAAM,IAAI,KAAK,CAAC,QAAQ,IAAI,IAAI,EAAE,CAAC;QAC5F,OAAO,CAAC,KAAK,CAAC,yFAAyF,CAAC,CAAC;IAC3G,CAAC;IAED,OAAO,CACL,MAAC,WAAW,OACN,KAAK,EACT,GAAG,EAAE,GAAG,EACR,SAAS,EAAE,IAAI,CAAC,eAAe,EAAE,gBAAgB,CAAC,EAClD,KAAK,EAAE,YAAY,eACR,IAAI,aAEf,KAAC,cAAc,IAAC,UAAU,EAAE,UAAU,YAAG,KAAK,GAAkB,EAChE,KAAC,UAAU,IAAC,SAAS,EAAC,oBAAoB,EAAC,KAAK,EAAE,KAAK,EAAE,gBAAgB,EAAE,gBAAgB,YACxF,QAAQ,GACE,EACZ,KAAK,IAAI,KAAC,kBAAkB,cAAE,KAAK,GAAsB,EAC1D,KAAC,oBAAoB,cAAE,WAAW,GAAwB,IAC9C,CACf,CAAC;AACJ,CAAC;AAED;;;;GAIG;AACH,MAAM,kBAAkB,GAAG,cAAc,CAAC,UAAU,CAAC,iBAAiB,CAAC,EAAE,UAAU,CAAC,CAAC;AAErF,OAAO,EAAE,kBAAkB,IAAI,iBAAiB,EAAE,CAAC","sourcesContent":["'use client';\n\nimport clsx from 'clsx';\nimport type { ForwardedRef } from 'react';\nimport {\n TagGroup as RACTagGroup,\n TagList as RACTagList,\n type TagGroupProps as RACTagGroupProps,\n type TagListProps as RACTagListProps,\n} from 'react-aria-components';\nimport { forwardRef } from '../../forward-ref.js';\nimport { withStyleProps } from '../../with-style-props.js';\nimport { FormFieldDescription, FormFieldErrorText, FormFieldLabel } from '../internal/form-field/form-field.js';\nimport type { CollectionItem, CommonProps, FieldProps, Key } from '../types.js';\n\nexport interface UNSTABLE_TagGroupProps<T extends CollectionItem = CollectionItem>\n extends CommonProps,\n // `TagGroup` doesn't support `validate` or `error` because it's not a form field\n Omit<FieldProps<Key[]>, 'validate' | 'error'>,\n Pick<\n RACTagGroupProps,\n 'selectionMode' | 'defaultSelectedKeys' | 'selectedKeys' | 'disabledKeys' | 'onSelectionChange' | 'onRemove'\n >,\n Pick<RACTagListProps<T>, 'children' | 'items' | 'renderEmptyState'> {\n /** Whether the tag group is required. */\n isRequired?: boolean;\n /** The error message to display. */\n error?: string;\n /** The size of the tags. */\n size?: 'small' | 'medium' | 'large';\n}\n\nfunction UNSTABLE_TagGroup<T extends CollectionItem>(\n {\n label,\n description,\n error,\n children,\n isRequired,\n items,\n renderEmptyState,\n size = 'medium',\n UNSAFE_className,\n UNSAFE_style,\n ...props\n }: UNSTABLE_TagGroupProps<T>,\n ref: ForwardedRef<HTMLDivElement>,\n) {\n if (props.selectionMode != null && props.selectionMode !== 'none' && props.onRemove != null) {\n console.error('`onRemove` is not supported when `selectionMode` is set to anything other than `\"none\"`');\n }\n\n return (\n <RACTagGroup\n {...props}\n ref={ref}\n className={clsx('cim-tag-group', UNSAFE_className)}\n style={UNSAFE_style}\n data-size={size}\n >\n <FormFieldLabel isRequired={isRequired}>{label}</FormFieldLabel>\n <RACTagList className=\"cim-tag-group-list\" items={items} renderEmptyState={renderEmptyState}>\n {children}\n </RACTagList>\n {error && <FormFieldErrorText>{error}</FormFieldErrorText>}\n <FormFieldDescription>{description}</FormFieldDescription>\n </RACTagGroup>\n );\n}\n\n/**\n * Displays a group of tags. Allows for selecting or removing tags.\n *\n * See [tag group usage guidelines](https://ui.cimpress.io/components/tag-group/).\n */\nconst _UNSTABLE_TagGroup = withStyleProps(forwardRef(UNSTABLE_TagGroup), 'TagGroup');\n\nexport { _UNSTABLE_TagGroup as UNSTABLE_TagGroup };\n"]}
@@ -0,0 +1,17 @@
1
+ import type { ReactNode } from 'react';
2
+ import { type TagProps as RACTagProps } from 'react-aria-components';
3
+ import type { StringLikeChildren } from '../types.js';
4
+ import type { CommonProps } from '../types.js';
5
+ export interface UNSTABLE_TagProps extends Omit<CommonProps, 'id'>, Pick<RACTagProps, 'id' | 'isDisabled'> {
6
+ children: StringLikeChildren;
7
+ /**
8
+ * The icon to display at the start of the tag.
9
+ *
10
+ * Should not be used when size is set to `small` as icons won't be displayed at this size.
11
+ */
12
+ iconStart?: ReactNode;
13
+ }
14
+ /** Displays a tag within a tag group. */
15
+ declare const _UNSTABLE_Tag: (props: UNSTABLE_TagProps & import("react").RefAttributes<HTMLElement> & import("../../with-style-props.js").StyleProps) => import("react").JSX.Element | null;
16
+ export { _UNSTABLE_Tag as UNSTABLE_Tag };
17
+ //# sourceMappingURL=tag.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tag.d.ts","sourceRoot":"","sources":["../../../../src/components/tag/tag.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAgB,SAAS,EAAE,MAAM,OAAO,CAAC;AACrD,OAAO,EAAiB,KAAK,QAAQ,IAAI,WAAW,EAAuB,MAAM,uBAAuB,CAAC;AAIzG,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,aAAa,CAAC;AACtD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAE/C,MAAM,WAAW,iBAAkB,SAAQ,IAAI,CAAC,WAAW,EAAE,IAAI,CAAC,EAAE,IAAI,CAAC,WAAW,EAAE,IAAI,GAAG,YAAY,CAAC;IACxG,QAAQ,EAAE,kBAAkB,CAAC;IAC7B;;;;OAIG;IACH,SAAS,CAAC,EAAE,SAAS,CAAC;CACvB;AAgCD,yCAAyC;AACzC,QAAA,MAAM,aAAa,gKAAkD,CAAC;AAEtE,OAAO,EAAE,aAAa,IAAI,YAAY,EAAE,CAAC"}
@@ -0,0 +1,14 @@
1
+ import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import clsx from 'clsx';
3
+ import { Tag as RACTag, Button as RACButton } from 'react-aria-components';
4
+ import { forwardRef } from '../../forward-ref.js';
5
+ import { UNSTABLE_IconClose } from '../../icons/index.js';
6
+ import { withStyleProps } from '../../with-style-props.js';
7
+ function UNSTABLE_Tag({ children, iconStart, UNSAFE_className, UNSAFE_style, ...props }, ref) {
8
+ const textValue = typeof children === 'string' ? children : typeof children === 'number' ? String(children) : children.join('');
9
+ return (_jsx(RACTag, { ...props, ref: ref, className: clsx('cim-tag', UNSAFE_className), style: UNSAFE_style, textValue: textValue, children: ({ allowsRemoving }) => (_jsxs(_Fragment, { children: [iconStart && _jsx("div", { className: "cim-tag-icon", children: iconStart }), _jsx("span", { className: "cim-tag-text", children: children }), allowsRemoving && (_jsx(RACButton, { slot: "remove", children: _jsx(UNSTABLE_IconClose, {}) }))] })) }));
10
+ }
11
+ /** Displays a tag within a tag group. */
12
+ const _UNSTABLE_Tag = withStyleProps(forwardRef(UNSTABLE_Tag), 'Tag');
13
+ export { _UNSTABLE_Tag as UNSTABLE_Tag };
14
+ //# sourceMappingURL=tag.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tag.js","sourceRoot":"","sources":["../../../../src/components/tag/tag.tsx"],"names":[],"mappings":";AAAA,OAAO,IAAI,MAAM,MAAM,CAAC;AAExB,OAAO,EAAE,GAAG,IAAI,MAAM,EAAgC,MAAM,IAAI,SAAS,EAAE,MAAM,uBAAuB,CAAC;AACzG,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAClD,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAC1D,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAc3D,SAAS,YAAY,CACnB,EAAE,QAAQ,EAAE,SAAS,EAAE,gBAAgB,EAAE,YAAY,EAAE,GAAG,KAAK,EAAqB,EACpF,GAA8B;IAE9B,MAAM,SAAS,GACb,OAAO,QAAQ,KAAK,QAAQ,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,OAAO,QAAQ,KAAK,QAAQ,CAAC,CAAC,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;IAEhH,OAAO,CACL,KAAC,MAAM,OACD,KAAK,EACT,GAAG,EAAE,GAAG,EACR,SAAS,EAAE,IAAI,CAAC,SAAS,EAAE,gBAAgB,CAAC,EAC5C,KAAK,EAAE,YAAY,EACnB,SAAS,EAAE,SAAS,YAEnB,CAAC,EAAE,cAAc,EAAE,EAAE,EAAE,CAAC,CACvB,8BACG,SAAS,IAAI,cAAK,SAAS,EAAC,cAAc,YAAE,SAAS,GAAO,EAC7D,eAAM,SAAS,EAAC,cAAc,YAAE,QAAQ,GAAQ,EAC/C,cAAc,IAAI,CACjB,KAAC,SAAS,IAAC,IAAI,EAAC,QAAQ,YACtB,KAAC,kBAAkB,KAAG,GACZ,CACb,IACA,CACJ,GACM,CACV,CAAC;AACJ,CAAC;AAED,yCAAyC;AACzC,MAAM,aAAa,GAAG,cAAc,CAAC,UAAU,CAAC,YAAY,CAAC,EAAE,KAAK,CAAC,CAAC;AAEtE,OAAO,EAAE,aAAa,IAAI,YAAY,EAAE,CAAC","sourcesContent":["import clsx from 'clsx';\nimport type { ForwardedRef, ReactNode } from 'react';\nimport { Tag as RACTag, type TagProps as RACTagProps, Button as RACButton } from 'react-aria-components';\nimport { forwardRef } from '../../forward-ref.js';\nimport { UNSTABLE_IconClose } from '../../icons/index.js';\nimport { withStyleProps } from '../../with-style-props.js';\nimport type { StringLikeChildren } from '../types.js';\nimport type { CommonProps } from '../types.js';\n\nexport interface UNSTABLE_TagProps extends Omit<CommonProps, 'id'>, Pick<RACTagProps, 'id' | 'isDisabled'> {\n children: StringLikeChildren;\n /**\n * The icon to display at the start of the tag.\n *\n * Should not be used when size is set to `small` as icons won't be displayed at this size.\n */\n iconStart?: ReactNode;\n}\n\nfunction UNSTABLE_Tag(\n { children, iconStart, UNSAFE_className, UNSAFE_style, ...props }: UNSTABLE_TagProps,\n ref: ForwardedRef<HTMLElement>,\n) {\n const textValue =\n typeof children === 'string' ? children : typeof children === 'number' ? String(children) : children.join('');\n\n return (\n <RACTag\n {...props}\n ref={ref}\n className={clsx('cim-tag', UNSAFE_className)}\n style={UNSAFE_style}\n textValue={textValue}\n >\n {({ allowsRemoving }) => (\n <>\n {iconStart && <div className=\"cim-tag-icon\">{iconStart}</div>}\n <span className=\"cim-tag-text\">{children}</span>\n {allowsRemoving && (\n <RACButton slot=\"remove\">\n <UNSTABLE_IconClose />\n </RACButton>\n )}\n </>\n )}\n </RACTag>\n );\n}\n\n/** Displays a tag within a tag group. */\nconst _UNSTABLE_Tag = withStyleProps(forwardRef(UNSTABLE_Tag), 'Tag');\n\nexport { _UNSTABLE_Tag as UNSTABLE_Tag };\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"text-area.d.ts","sourceRoot":"","sources":["../../../../src/components/text-inputs/text-area.tsx"],"names":[],"mappings":"AAIA,OAAO,EAGL,KAAK,aAAa,IAAI,gBAAgB,EACtC,KAAK,cAAc,IAAI,iBAAiB,EACzC,MAAM,uBAAuB,CAAC;AAI/B,OAAO,KAAK,EAAE,WAAW,EAAE,yBAAyB,EAAE,MAAM,aAAa,CAAC;AAG1E,MAAM,WAAW,aACf,SAAQ,WAAW,EACjB,yBAAyB,CAAC,MAAM,CAAC,EACjC,IAAI,CACF,iBAAiB,EACf,OAAO,GACP,cAAc,GACd,UAAU,GACV,YAAY,GACZ,YAAY,GACZ,WAAW,GACX,YAAY,GACZ,MAAM,GACN,MAAM,GACN,WAAW,GACX,cAAc,GACd,WAAW,GACX,WAAW,GACX,WAAW,GACX,SAAS,GACT,QAAQ,CACX,EACD,IAAI,CAAC,gBAAgB,EAAE,gBAAgB,GAAG,aAAa,GAAG,MAAM,GAAG,YAAY,GAAG,MAAM,CAAC;CAAG;AAgDhG,oEAAoE;AACpE,QAAA,MAAM,SAAS,+JAAmD,CAAC;AAEnE,OAAO,EAAE,SAAS,IAAI,QAAQ,EAAE,CAAC"}
1
+ {"version":3,"file":"text-area.d.ts","sourceRoot":"","sources":["../../../../src/components/text-inputs/text-area.tsx"],"names":[],"mappings":"AAIA,OAAO,EAGL,KAAK,aAAa,IAAI,gBAAgB,EACtC,KAAK,cAAc,IAAI,iBAAiB,EAEzC,MAAM,uBAAuB,CAAC;AAI/B,OAAO,KAAK,EAAE,WAAW,EAAE,yBAAyB,EAAE,MAAM,aAAa,CAAC;AAG1E,MAAM,WAAW,aACf,SAAQ,WAAW,EACjB,yBAAyB,CAAC,MAAM,CAAC,EACjC,IAAI,CACF,iBAAiB,EACf,OAAO,GACP,cAAc,GACd,UAAU,GACV,YAAY,GACZ,YAAY,GACZ,WAAW,GACX,YAAY,GACZ,MAAM,GACN,MAAM,GACN,WAAW,GACX,cAAc,GACd,WAAW,GACX,WAAW,GACX,WAAW,GACX,SAAS,GACT,QAAQ,CACX,EACD,IAAI,CAAC,gBAAgB,EAAE,gBAAgB,GAAG,aAAa,GAAG,MAAM,GAAG,YAAY,GAAG,MAAM,CAAC;CAAG;AAuDhG,oEAAoE;AACpE,QAAA,MAAM,SAAS,+JAAmD,CAAC;AAEnE,OAAO,EAAE,SAAS,IAAI,QAAQ,EAAE,CAAC"}
@@ -1,8 +1,8 @@
1
1
  'use client';
2
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
3
3
  import clsx from 'clsx';
4
4
  import { useEffect } from 'react';
5
- import { TextArea as RACTextArea, TextField as RACTextField, } from 'react-aria-components';
5
+ import { TextArea as RACTextArea, TextField as RACTextField, Group as RACGroup, } from 'react-aria-components';
6
6
  import { forwardRef } from '../../forward-ref.js';
7
7
  import { withStyleProps } from '../../with-style-props.js';
8
8
  import { FormFieldDescription, FormFieldError, FormFieldLabel } from '../internal/form-field/form-field.js';
@@ -14,7 +14,7 @@ function TextArea({ label, description, error: errorMessage, placeholder, autoCa
14
14
  console.warn('TextArea requires one of label / aria-label / aria-labelledby for accessibility');
15
15
  }
16
16
  }, [label, ariaLabel, ariaLabelledBy]);
17
- return (_jsxs(RACTextField, { ...props, ref: ref, className: clsx('cim-text-area', UNSAFE_className), style: UNSAFE_style, children: [_jsx(FormFieldLabel, { isRequired: props.isRequired, isDisabled: props.isDisabled, children: label }), _jsx(RACTextArea, { className: clsx('cim-text-area-input', textStyle({ variant: 'medium', tone: 'base' })), placeholder: placeholder, autoCapitalize: autoCapitalize, autoCorrect: autoCorrect, rows: rows, spellCheck: spellCheck, wrap: wrap }), _jsx(FormFieldError, { children: errorMessage }), _jsx(FormFieldDescription, { children: description })] }));
17
+ return (_jsx(RACTextField, { ...props, ref: ref, className: clsx('cim-text-area', UNSAFE_className), style: UNSAFE_style, children: ({ isDisabled, isInvalid, isRequired }) => (_jsxs(_Fragment, { children: [_jsx(FormFieldLabel, { isRequired: isRequired, isDisabled: isDisabled, children: label }), _jsx(RACGroup, { className: "cim-text-area-input-group", isDisabled: isDisabled, isInvalid: isInvalid, children: _jsx(RACTextArea, { className: clsx('cim-text-area-input', textStyle({ variant: 'medium' })), placeholder: placeholder, autoCapitalize: autoCapitalize, autoCorrect: autoCorrect, rows: rows, spellCheck: spellCheck, wrap: wrap }) }), _jsx(FormFieldError, { children: errorMessage }), _jsx(FormFieldDescription, { children: description })] })) }));
18
18
  }
19
19
  // TODO: add link to usage guidelines
20
20
  /** Allows users to enter multiple lines of text with a keyboard. */
@@ -1 +1 @@
1
- {"version":3,"file":"text-area.js","sourceRoot":"","sources":["../../../../src/components/text-inputs/text-area.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AAEb,OAAO,IAAI,MAAM,MAAM,CAAC;AACxB,OAAO,EAAE,SAAS,EAAqB,MAAM,OAAO,CAAC;AACrD,OAAO,EACL,QAAQ,IAAI,WAAW,EACvB,SAAS,IAAI,YAAY,GAG1B,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAClD,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAC3D,OAAO,EAAE,oBAAoB,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,sCAAsC,CAAC;AAE5G,OAAO,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AA0BnD,SAAS,QAAQ,CACf,EACE,KAAK,EACL,WAAW,EACX,KAAK,EAAE,YAAY,EACnB,WAAW,EACX,cAAc,EACd,WAAW,EACX,IAAI,EACJ,UAAU,EACV,IAAI,EACJ,gBAAgB,EAChB,YAAY,EACZ,GAAG,KAAK,EACM,EAChB,GAAiC;IAEjC,MAAM,EAAE,YAAY,EAAE,SAAS,EAAE,iBAAiB,EAAE,cAAc,EAAE,GAAG,KAAK,CAAC;IAE7E,SAAS,CAAC,GAAG,EAAE;QACb,IAAI,CAAC,KAAK,IAAI,CAAC,SAAS,IAAI,CAAC,cAAc,EAAE,CAAC;YAC5C,OAAO,CAAC,IAAI,CAAC,iFAAiF,CAAC,CAAC;QAClG,CAAC;IACH,CAAC,EAAE,CAAC,KAAK,EAAE,SAAS,EAAE,cAAc,CAAC,CAAC,CAAC;IAEvC,OAAO,CACL,MAAC,YAAY,OAAK,KAAK,EAAE,GAAG,EAAE,GAAG,EAAE,SAAS,EAAE,IAAI,CAAC,eAAe,EAAE,gBAAgB,CAAC,EAAE,KAAK,EAAE,YAAY,aACxG,KAAC,cAAc,IAAC,UAAU,EAAE,KAAK,CAAC,UAAU,EAAE,UAAU,EAAE,KAAK,CAAC,UAAU,YACvE,KAAK,GACS,EACjB,KAAC,WAAW,IACV,SAAS,EAAE,IAAI,CAAC,qBAAqB,EAAE,SAAS,CAAC,EAAE,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC,CAAC,EACtF,WAAW,EAAE,WAAW,EACxB,cAAc,EAAE,cAAc,EAC9B,WAAW,EAAE,WAAW,EACxB,IAAI,EAAE,IAAI,EACV,UAAU,EAAE,UAAU,EACtB,IAAI,EAAE,IAAI,GACV,EACF,KAAC,cAAc,cAAE,YAAY,GAAkB,EAC/C,KAAC,oBAAoB,cAAE,WAAW,GAAwB,IAC7C,CAChB,CAAC;AACJ,CAAC;AAED,qCAAqC;AACrC,oEAAoE;AACpE,MAAM,SAAS,GAAG,cAAc,CAAC,UAAU,CAAC,QAAQ,CAAC,EAAE,UAAU,CAAC,CAAC;AAEnE,OAAO,EAAE,SAAS,IAAI,QAAQ,EAAE,CAAC","sourcesContent":["'use client';\n\nimport clsx from 'clsx';\nimport { useEffect, type ForwardedRef } from 'react';\nimport {\n TextArea as RACTextArea,\n TextField as RACTextField,\n type TextAreaProps as RACTextAreaProps,\n type TextFieldProps as RACTextFieldProps,\n} from 'react-aria-components';\nimport { forwardRef } from '../../forward-ref.js';\nimport { withStyleProps } from '../../with-style-props.js';\nimport { FormFieldDescription, FormFieldError, FormFieldLabel } from '../internal/form-field/form-field.js';\nimport type { CommonProps, FieldWithPlaceholderProps } from '../types.js';\nimport { textStyle } from '../typography/utils.js';\n\nexport interface TextAreaProps\n extends CommonProps,\n FieldWithPlaceholderProps<string>,\n Pick<\n RACTextFieldProps,\n | 'value'\n | 'defaultValue'\n | 'onChange'\n | 'isDisabled'\n | 'isRequired'\n | 'isInvalid'\n | 'isReadOnly'\n | 'name'\n | 'type'\n | 'autoFocus'\n | 'autoComplete'\n | 'inputMode'\n | 'minLength'\n | 'maxLength'\n | 'onFocus'\n | 'onBlur'\n >,\n Pick<RACTextAreaProps, 'autoCapitalize' | 'autoCorrect' | 'rows' | 'spellCheck' | 'wrap'> {}\n\nfunction TextArea(\n {\n label,\n description,\n error: errorMessage,\n placeholder,\n autoCapitalize,\n autoCorrect,\n rows,\n spellCheck,\n wrap,\n UNSAFE_className,\n UNSAFE_style,\n ...props\n }: TextAreaProps,\n ref: ForwardedRef<HTMLDivElement>,\n) {\n const { 'aria-label': ariaLabel, 'aria-labelledby': ariaLabelledBy } = props;\n\n useEffect(() => {\n if (!label && !ariaLabel && !ariaLabelledBy) {\n console.warn('TextArea requires one of label / aria-label / aria-labelledby for accessibility');\n }\n }, [label, ariaLabel, ariaLabelledBy]);\n\n return (\n <RACTextField {...props} ref={ref} className={clsx('cim-text-area', UNSAFE_className)} style={UNSAFE_style}>\n <FormFieldLabel isRequired={props.isRequired} isDisabled={props.isDisabled}>\n {label}\n </FormFieldLabel>\n <RACTextArea\n className={clsx('cim-text-area-input', textStyle({ variant: 'medium', tone: 'base' }))}\n placeholder={placeholder}\n autoCapitalize={autoCapitalize}\n autoCorrect={autoCorrect}\n rows={rows}\n spellCheck={spellCheck}\n wrap={wrap}\n />\n <FormFieldError>{errorMessage}</FormFieldError>\n <FormFieldDescription>{description}</FormFieldDescription>\n </RACTextField>\n );\n}\n\n// TODO: add link to usage guidelines\n/** Allows users to enter multiple lines of text with a keyboard. */\nconst _TextArea = withStyleProps(forwardRef(TextArea), 'TextArea');\n\nexport { _TextArea as TextArea };\n"]}
1
+ {"version":3,"file":"text-area.js","sourceRoot":"","sources":["../../../../src/components/text-inputs/text-area.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AAEb,OAAO,IAAI,MAAM,MAAM,CAAC;AACxB,OAAO,EAAE,SAAS,EAAqB,MAAM,OAAO,CAAC;AACrD,OAAO,EACL,QAAQ,IAAI,WAAW,EACvB,SAAS,IAAI,YAAY,EAGzB,KAAK,IAAI,QAAQ,GAClB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAClD,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAC3D,OAAO,EAAE,oBAAoB,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,sCAAsC,CAAC;AAE5G,OAAO,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AA0BnD,SAAS,QAAQ,CACf,EACE,KAAK,EACL,WAAW,EACX,KAAK,EAAE,YAAY,EACnB,WAAW,EACX,cAAc,EACd,WAAW,EACX,IAAI,EACJ,UAAU,EACV,IAAI,EACJ,gBAAgB,EAChB,YAAY,EACZ,GAAG,KAAK,EACM,EAChB,GAAiC;IAEjC,MAAM,EAAE,YAAY,EAAE,SAAS,EAAE,iBAAiB,EAAE,cAAc,EAAE,GAAG,KAAK,CAAC;IAE7E,SAAS,CAAC,GAAG,EAAE;QACb,IAAI,CAAC,KAAK,IAAI,CAAC,SAAS,IAAI,CAAC,cAAc,EAAE,CAAC;YAC5C,OAAO,CAAC,IAAI,CAAC,iFAAiF,CAAC,CAAC;QAClG,CAAC;IACH,CAAC,EAAE,CAAC,KAAK,EAAE,SAAS,EAAE,cAAc,CAAC,CAAC,CAAC;IAEvC,OAAO,CACL,KAAC,YAAY,OAAK,KAAK,EAAE,GAAG,EAAE,GAAG,EAAE,SAAS,EAAE,IAAI,CAAC,eAAe,EAAE,gBAAgB,CAAC,EAAE,KAAK,EAAE,YAAY,YAEvG,CAAC,EAAE,UAAU,EAAE,SAAS,EAAE,UAAU,EAAE,EAAE,EAAE,CAAC,CAC1C,8BACE,KAAC,cAAc,IAAC,UAAU,EAAE,UAAU,EAAE,UAAU,EAAE,UAAU,YAC3D,KAAK,GACS,EACjB,KAAC,QAAQ,IAAC,SAAS,EAAC,2BAA2B,EAAC,UAAU,EAAE,UAAU,EAAE,SAAS,EAAE,SAAS,YAC1F,KAAC,WAAW,IACV,SAAS,EAAE,IAAI,CAAC,qBAAqB,EAAE,SAAS,CAAC,EAAE,OAAO,EAAE,QAAQ,EAAE,CAAC,CAAC,EACxE,WAAW,EAAE,WAAW,EACxB,cAAc,EAAE,cAAc,EAC9B,WAAW,EAAE,WAAW,EACxB,IAAI,EAAE,IAAI,EACV,UAAU,EAAE,UAAU,EACtB,IAAI,EAAE,IAAI,GACV,GACO,EACX,KAAC,cAAc,cAAE,YAAY,GAAkB,EAC/C,KAAC,oBAAoB,cAAE,WAAW,GAAwB,IACzD,CACJ,GACY,CAChB,CAAC;AACJ,CAAC;AAED,qCAAqC;AACrC,oEAAoE;AACpE,MAAM,SAAS,GAAG,cAAc,CAAC,UAAU,CAAC,QAAQ,CAAC,EAAE,UAAU,CAAC,CAAC;AAEnE,OAAO,EAAE,SAAS,IAAI,QAAQ,EAAE,CAAC","sourcesContent":["'use client';\n\nimport clsx from 'clsx';\nimport { useEffect, type ForwardedRef } from 'react';\nimport {\n TextArea as RACTextArea,\n TextField as RACTextField,\n type TextAreaProps as RACTextAreaProps,\n type TextFieldProps as RACTextFieldProps,\n Group as RACGroup,\n} from 'react-aria-components';\nimport { forwardRef } from '../../forward-ref.js';\nimport { withStyleProps } from '../../with-style-props.js';\nimport { FormFieldDescription, FormFieldError, FormFieldLabel } from '../internal/form-field/form-field.js';\nimport type { CommonProps, FieldWithPlaceholderProps } from '../types.js';\nimport { textStyle } from '../typography/utils.js';\n\nexport interface TextAreaProps\n extends CommonProps,\n FieldWithPlaceholderProps<string>,\n Pick<\n RACTextFieldProps,\n | 'value'\n | 'defaultValue'\n | 'onChange'\n | 'isDisabled'\n | 'isRequired'\n | 'isInvalid'\n | 'isReadOnly'\n | 'name'\n | 'type'\n | 'autoFocus'\n | 'autoComplete'\n | 'inputMode'\n | 'minLength'\n | 'maxLength'\n | 'onFocus'\n | 'onBlur'\n >,\n Pick<RACTextAreaProps, 'autoCapitalize' | 'autoCorrect' | 'rows' | 'spellCheck' | 'wrap'> {}\n\nfunction TextArea(\n {\n label,\n description,\n error: errorMessage,\n placeholder,\n autoCapitalize,\n autoCorrect,\n rows,\n spellCheck,\n wrap,\n UNSAFE_className,\n UNSAFE_style,\n ...props\n }: TextAreaProps,\n ref: ForwardedRef<HTMLDivElement>,\n) {\n const { 'aria-label': ariaLabel, 'aria-labelledby': ariaLabelledBy } = props;\n\n useEffect(() => {\n if (!label && !ariaLabel && !ariaLabelledBy) {\n console.warn('TextArea requires one of label / aria-label / aria-labelledby for accessibility');\n }\n }, [label, ariaLabel, ariaLabelledBy]);\n\n return (\n <RACTextField {...props} ref={ref} className={clsx('cim-text-area', UNSAFE_className)} style={UNSAFE_style}>\n {/* RAC doesn't pass `isDisabled` or `isInvalid` to `Group` through context as it does with `NumberField`, so we need to pass them manually */}\n {({ isDisabled, isInvalid, isRequired }) => (\n <>\n <FormFieldLabel isRequired={isRequired} isDisabled={isDisabled}>\n {label}\n </FormFieldLabel>\n <RACGroup className=\"cim-text-area-input-group\" isDisabled={isDisabled} isInvalid={isInvalid}>\n <RACTextArea\n className={clsx('cim-text-area-input', textStyle({ variant: 'medium' }))}\n placeholder={placeholder}\n autoCapitalize={autoCapitalize}\n autoCorrect={autoCorrect}\n rows={rows}\n spellCheck={spellCheck}\n wrap={wrap}\n />\n </RACGroup>\n <FormFieldError>{errorMessage}</FormFieldError>\n <FormFieldDescription>{description}</FormFieldDescription>\n </>\n )}\n </RACTextField>\n );\n}\n\n// TODO: add link to usage guidelines\n/** Allows users to enter multiple lines of text with a keyboard. */\nconst _TextArea = withStyleProps(forwardRef(TextArea), 'TextArea');\n\nexport { _TextArea as TextArea };\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"text-field.d.ts","sourceRoot":"","sources":["../../../../src/components/text-inputs/text-field.tsx"],"names":[],"mappings":"AAIA,OAAO,EAGL,KAAK,cAAc,IAAI,iBAAiB,EACzC,MAAM,uBAAuB,CAAC;AAI/B,OAAO,KAAK,EAAE,WAAW,EAAE,yBAAyB,EAAE,MAAM,aAAa,CAAC;AAG1E,MAAM,WAAW,cACf,SAAQ,WAAW,EACjB,yBAAyB,CAAC,MAAM,CAAC,EACjC,IAAI,CACF,iBAAiB,EACf,OAAO,GACP,cAAc,GACd,UAAU,GACV,YAAY,GACZ,YAAY,GACZ,WAAW,GACX,YAAY,GACZ,MAAM,GACN,MAAM,GACN,WAAW,GACX,cAAc,GACd,WAAW,GACX,WAAW,GACX,WAAW,GACX,SAAS,GACT,SAAS,GACT,QAAQ,CACX;CAAG;AA6BR;;;;GAIG;AACH,QAAA,MAAM,UAAU,gKAAqD,CAAC;AAEtE,OAAO,EAAE,UAAU,IAAI,SAAS,EAAE,CAAC"}
1
+ {"version":3,"file":"text-field.d.ts","sourceRoot":"","sources":["../../../../src/components/text-inputs/text-field.tsx"],"names":[],"mappings":"AAIA,OAAO,EAGL,KAAK,cAAc,IAAI,iBAAiB,EAEzC,MAAM,uBAAuB,CAAC;AAI/B,OAAO,KAAK,EAAE,WAAW,EAAE,yBAAyB,EAAE,MAAM,aAAa,CAAC;AAG1E,MAAM,WAAW,cACf,SAAQ,WAAW,EACjB,yBAAyB,CAAC,MAAM,CAAC,EACjC,IAAI,CACF,iBAAiB,EACf,OAAO,GACP,cAAc,GACd,UAAU,GACV,YAAY,GACZ,YAAY,GACZ,WAAW,GACX,YAAY,GACZ,MAAM,GACN,MAAM,GACN,WAAW,GACX,cAAc,GACd,WAAW,GACX,WAAW,GACX,WAAW,GACX,SAAS,GACT,SAAS,GACT,QAAQ,CACX;CAAG;AAoCR;;;;GAIG;AACH,QAAA,MAAM,UAAU,gKAAqD,CAAC;AAEtE,OAAO,EAAE,UAAU,IAAI,SAAS,EAAE,CAAC"}
@@ -1,8 +1,8 @@
1
1
  'use client';
2
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
3
3
  import clsx from 'clsx';
4
4
  import { useEffect } from 'react';
5
- import { Input as RACInput, TextField as RACTextField, } from 'react-aria-components';
5
+ import { Input as RACInput, TextField as RACTextField, Group as RACGroup, } from 'react-aria-components';
6
6
  import { forwardRef } from '../../forward-ref.js';
7
7
  import { withStyleProps } from '../../with-style-props.js';
8
8
  import { FormFieldDescription, FormFieldError, FormFieldLabel } from '../internal/form-field/form-field.js';
@@ -14,7 +14,7 @@ function TextField({ label, description, error: errorMessage, placeholder, UNSAF
14
14
  console.warn('TextField requires one of label / aria-label / aria-labelledby for accessibility');
15
15
  }
16
16
  }, [label, ariaLabel, ariaLabelledBy]);
17
- return (_jsxs(RACTextField, { ...props, ref: ref, className: clsx('cim-text-field', UNSAFE_className), style: UNSAFE_style, children: [_jsx(FormFieldLabel, { isRequired: props.isRequired, isDisabled: props.isDisabled, children: label }), _jsx(RACInput, { className: clsx('cim-text-field-input', textStyle({ variant: 'medium', tone: 'base' })), placeholder: placeholder }), _jsx(FormFieldError, { children: errorMessage }), _jsx(FormFieldDescription, { children: description })] }));
17
+ return (_jsx(RACTextField, { ...props, ref: ref, className: clsx('cim-text-field', UNSAFE_className), style: UNSAFE_style, children: ({ isDisabled, isInvalid, isRequired }) => (_jsxs(_Fragment, { children: [_jsx(FormFieldLabel, { isRequired: isRequired, isDisabled: isDisabled, children: label }), _jsx(RACGroup, { className: "cim-text-field-input-group", isDisabled: isDisabled, isInvalid: isInvalid, children: _jsx(RACInput, { className: clsx('cim-text-field-input', textStyle({ variant: 'medium' })), placeholder: placeholder }) }), _jsx(FormFieldError, { children: errorMessage }), _jsx(FormFieldDescription, { children: description })] })) }));
18
18
  }
19
19
  /**
20
20
  * Allows users to enter a single line of text with a keyboard.
@@ -1 +1 @@
1
- {"version":3,"file":"text-field.js","sourceRoot":"","sources":["../../../../src/components/text-inputs/text-field.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AAEb,OAAO,IAAI,MAAM,MAAM,CAAC;AACxB,OAAO,EAAE,SAAS,EAAqB,MAAM,OAAO,CAAC;AACrD,OAAO,EACL,KAAK,IAAI,QAAQ,EACjB,SAAS,IAAI,YAAY,GAE1B,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAClD,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAC3D,OAAO,EAAE,oBAAoB,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,sCAAsC,CAAC;AAE5G,OAAO,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AA0BnD,SAAS,SAAS,CAChB,EAAE,KAAK,EAAE,WAAW,EAAE,KAAK,EAAE,YAAY,EAAE,WAAW,EAAE,gBAAgB,EAAE,YAAY,EAAE,GAAG,KAAK,EAAkB,EAClH,GAAiC;IAEjC,MAAM,EAAE,YAAY,EAAE,SAAS,EAAE,iBAAiB,EAAE,cAAc,EAAE,GAAG,KAAK,CAAC;IAE7E,SAAS,CAAC,GAAG,EAAE;QACb,IAAI,CAAC,KAAK,IAAI,CAAC,SAAS,IAAI,CAAC,cAAc,EAAE,CAAC;YAC5C,OAAO,CAAC,IAAI,CAAC,kFAAkF,CAAC,CAAC;QACnG,CAAC;IACH,CAAC,EAAE,CAAC,KAAK,EAAE,SAAS,EAAE,cAAc,CAAC,CAAC,CAAC;IAEvC,OAAO,CACL,MAAC,YAAY,OAAK,KAAK,EAAE,GAAG,EAAE,GAAG,EAAE,SAAS,EAAE,IAAI,CAAC,gBAAgB,EAAE,gBAAgB,CAAC,EAAE,KAAK,EAAE,YAAY,aACzG,KAAC,cAAc,IAAC,UAAU,EAAE,KAAK,CAAC,UAAU,EAAE,UAAU,EAAE,KAAK,CAAC,UAAU,YACvE,KAAK,GACS,EACjB,KAAC,QAAQ,IACP,SAAS,EAAE,IAAI,CAAC,sBAAsB,EAAE,SAAS,CAAC,EAAE,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC,CAAC,EACvF,WAAW,EAAE,WAAW,GACxB,EACF,KAAC,cAAc,cAAE,YAAY,GAAkB,EAC/C,KAAC,oBAAoB,cAAE,WAAW,GAAwB,IAC7C,CAChB,CAAC;AACJ,CAAC;AAED;;;;GAIG;AACH,MAAM,UAAU,GAAG,cAAc,CAAC,UAAU,CAAC,SAAS,CAAC,EAAE,WAAW,CAAC,CAAC;AAEtE,OAAO,EAAE,UAAU,IAAI,SAAS,EAAE,CAAC","sourcesContent":["'use client';\n\nimport clsx from 'clsx';\nimport { useEffect, type ForwardedRef } from 'react';\nimport {\n Input as RACInput,\n TextField as RACTextField,\n type TextFieldProps as RACTextFieldProps,\n} from 'react-aria-components';\nimport { forwardRef } from '../../forward-ref.js';\nimport { withStyleProps } from '../../with-style-props.js';\nimport { FormFieldDescription, FormFieldError, FormFieldLabel } from '../internal/form-field/form-field.js';\nimport type { CommonProps, FieldWithPlaceholderProps } from '../types.js';\nimport { textStyle } from '../typography/utils.js';\n\nexport interface TextFieldProps\n extends CommonProps,\n FieldWithPlaceholderProps<string>,\n Pick<\n RACTextFieldProps,\n | 'value'\n | 'defaultValue'\n | 'onChange'\n | 'isDisabled'\n | 'isRequired'\n | 'isInvalid'\n | 'isReadOnly'\n | 'name'\n | 'type'\n | 'autoFocus'\n | 'autoComplete'\n | 'inputMode'\n | 'minLength'\n | 'maxLength'\n | 'pattern'\n | 'onFocus'\n | 'onBlur'\n > {}\n\nfunction TextField(\n { label, description, error: errorMessage, placeholder, UNSAFE_className, UNSAFE_style, ...props }: TextFieldProps,\n ref: ForwardedRef<HTMLDivElement>,\n) {\n const { 'aria-label': ariaLabel, 'aria-labelledby': ariaLabelledBy } = props;\n\n useEffect(() => {\n if (!label && !ariaLabel && !ariaLabelledBy) {\n console.warn('TextField requires one of label / aria-label / aria-labelledby for accessibility');\n }\n }, [label, ariaLabel, ariaLabelledBy]);\n\n return (\n <RACTextField {...props} ref={ref} className={clsx('cim-text-field', UNSAFE_className)} style={UNSAFE_style}>\n <FormFieldLabel isRequired={props.isRequired} isDisabled={props.isDisabled}>\n {label}\n </FormFieldLabel>\n <RACInput\n className={clsx('cim-text-field-input', textStyle({ variant: 'medium', tone: 'base' }))}\n placeholder={placeholder}\n />\n <FormFieldError>{errorMessage}</FormFieldError>\n <FormFieldDescription>{description}</FormFieldDescription>\n </RACTextField>\n );\n}\n\n/**\n * Allows users to enter a single line of text with a keyboard.\n *\n * See [text field usage guidelines](https://ui.cimpress.io/components/text-field/).\n */\nconst _TextField = withStyleProps(forwardRef(TextField), 'TextField');\n\nexport { _TextField as TextField };\n"]}
1
+ {"version":3,"file":"text-field.js","sourceRoot":"","sources":["../../../../src/components/text-inputs/text-field.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AAEb,OAAO,IAAI,MAAM,MAAM,CAAC;AACxB,OAAO,EAAE,SAAS,EAAqB,MAAM,OAAO,CAAC;AACrD,OAAO,EACL,KAAK,IAAI,QAAQ,EACjB,SAAS,IAAI,YAAY,EAEzB,KAAK,IAAI,QAAQ,GAClB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAClD,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAC3D,OAAO,EAAE,oBAAoB,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,sCAAsC,CAAC;AAE5G,OAAO,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AA0BnD,SAAS,SAAS,CAChB,EAAE,KAAK,EAAE,WAAW,EAAE,KAAK,EAAE,YAAY,EAAE,WAAW,EAAE,gBAAgB,EAAE,YAAY,EAAE,GAAG,KAAK,EAAkB,EAClH,GAAiC;IAEjC,MAAM,EAAE,YAAY,EAAE,SAAS,EAAE,iBAAiB,EAAE,cAAc,EAAE,GAAG,KAAK,CAAC;IAE7E,SAAS,CAAC,GAAG,EAAE;QACb,IAAI,CAAC,KAAK,IAAI,CAAC,SAAS,IAAI,CAAC,cAAc,EAAE,CAAC;YAC5C,OAAO,CAAC,IAAI,CAAC,kFAAkF,CAAC,CAAC;QACnG,CAAC;IACH,CAAC,EAAE,CAAC,KAAK,EAAE,SAAS,EAAE,cAAc,CAAC,CAAC,CAAC;IAEvC,OAAO,CACL,KAAC,YAAY,OAAK,KAAK,EAAE,GAAG,EAAE,GAAG,EAAE,SAAS,EAAE,IAAI,CAAC,gBAAgB,EAAE,gBAAgB,CAAC,EAAE,KAAK,EAAE,YAAY,YAExG,CAAC,EAAE,UAAU,EAAE,SAAS,EAAE,UAAU,EAAE,EAAE,EAAE,CAAC,CAC1C,8BACE,KAAC,cAAc,IAAC,UAAU,EAAE,UAAU,EAAE,UAAU,EAAE,UAAU,YAC3D,KAAK,GACS,EACjB,KAAC,QAAQ,IAAC,SAAS,EAAC,4BAA4B,EAAC,UAAU,EAAE,UAAU,EAAE,SAAS,EAAE,SAAS,YAC3F,KAAC,QAAQ,IACP,SAAS,EAAE,IAAI,CAAC,sBAAsB,EAAE,SAAS,CAAC,EAAE,OAAO,EAAE,QAAQ,EAAE,CAAC,CAAC,EACzE,WAAW,EAAE,WAAW,GACxB,GACO,EACX,KAAC,cAAc,cAAE,YAAY,GAAkB,EAC/C,KAAC,oBAAoB,cAAE,WAAW,GAAwB,IACzD,CACJ,GACY,CAChB,CAAC;AACJ,CAAC;AAED;;;;GAIG;AACH,MAAM,UAAU,GAAG,cAAc,CAAC,UAAU,CAAC,SAAS,CAAC,EAAE,WAAW,CAAC,CAAC;AAEtE,OAAO,EAAE,UAAU,IAAI,SAAS,EAAE,CAAC","sourcesContent":["'use client';\n\nimport clsx from 'clsx';\nimport { useEffect, type ForwardedRef } from 'react';\nimport {\n Input as RACInput,\n TextField as RACTextField,\n type TextFieldProps as RACTextFieldProps,\n Group as RACGroup,\n} from 'react-aria-components';\nimport { forwardRef } from '../../forward-ref.js';\nimport { withStyleProps } from '../../with-style-props.js';\nimport { FormFieldDescription, FormFieldError, FormFieldLabel } from '../internal/form-field/form-field.js';\nimport type { CommonProps, FieldWithPlaceholderProps } from '../types.js';\nimport { textStyle } from '../typography/utils.js';\n\nexport interface TextFieldProps\n extends CommonProps,\n FieldWithPlaceholderProps<string>,\n Pick<\n RACTextFieldProps,\n | 'value'\n | 'defaultValue'\n | 'onChange'\n | 'isDisabled'\n | 'isRequired'\n | 'isInvalid'\n | 'isReadOnly'\n | 'name'\n | 'type'\n | 'autoFocus'\n | 'autoComplete'\n | 'inputMode'\n | 'minLength'\n | 'maxLength'\n | 'pattern'\n | 'onFocus'\n | 'onBlur'\n > {}\n\nfunction TextField(\n { label, description, error: errorMessage, placeholder, UNSAFE_className, UNSAFE_style, ...props }: TextFieldProps,\n ref: ForwardedRef<HTMLDivElement>,\n) {\n const { 'aria-label': ariaLabel, 'aria-labelledby': ariaLabelledBy } = props;\n\n useEffect(() => {\n if (!label && !ariaLabel && !ariaLabelledBy) {\n console.warn('TextField requires one of label / aria-label / aria-labelledby for accessibility');\n }\n }, [label, ariaLabel, ariaLabelledBy]);\n\n return (\n <RACTextField {...props} ref={ref} className={clsx('cim-text-field', UNSAFE_className)} style={UNSAFE_style}>\n {/* RAC doesn't pass `isDisabled` or `isInvalid` to `Group` through context as it does with `NumberField`, so we need to pass them manually */}\n {({ isDisabled, isInvalid, isRequired }) => (\n <>\n <FormFieldLabel isRequired={isRequired} isDisabled={isDisabled}>\n {label}\n </FormFieldLabel>\n <RACGroup className=\"cim-text-field-input-group\" isDisabled={isDisabled} isInvalid={isInvalid}>\n <RACInput\n className={clsx('cim-text-field-input', textStyle({ variant: 'medium' }))}\n placeholder={placeholder}\n />\n </RACGroup>\n <FormFieldError>{errorMessage}</FormFieldError>\n <FormFieldDescription>{description}</FormFieldDescription>\n </>\n )}\n </RACTextField>\n );\n}\n\n/**\n * Allows users to enter a single line of text with a keyboard.\n *\n * See [text field usage guidelines](https://ui.cimpress.io/components/text-field/).\n */\nconst _TextField = withStyleProps(forwardRef(TextField), 'TextField');\n\nexport { _TextField as TextField };\n"]}
@@ -0,0 +1,9 @@
1
+ import type { ReactNode } from 'react';
2
+ import { type TooltipProps as RACTooltipProps } from 'react-aria-components';
3
+ import type { CommonProps } from '../types.js';
4
+ export interface UNSTABLE_TooltipProps extends Omit<CommonProps, 'id'>, Pick<RACTooltipProps, 'placement' | 'isOpen' | 'triggerRef'> {
5
+ children: ReactNode;
6
+ label: string;
7
+ }
8
+ export declare function UNSTABLE_Tooltip({ children, label, isOpen, UNSAFE_className, UNSAFE_style, ...props }: UNSTABLE_TooltipProps): import("react/jsx-runtime").JSX.Element;
9
+ //# sourceMappingURL=tooltip.d.ts.map