@12-apps/ui 6.6.0 → 6.8.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (436) hide show
  1. package/dist/{chunk-QLBYAYUG.js → chunk-KR2BP7NK.js} +4 -4
  2. package/dist/chunk-KR2BP7NK.js.map +1 -0
  3. package/dist/{chunk-DFVRZ3UK.js → chunk-KXARS46L.js} +3 -3
  4. package/dist/chunk-KXARS46L.js.map +1 -0
  5. package/dist/{chunk-JP55QWVR.js → chunk-L7L6SX64.js} +5 -2
  6. package/dist/chunk-L7L6SX64.js.map +1 -0
  7. package/dist/{chunk-QZZVHY6U.js → chunk-PVLDKXKR.js} +7 -3
  8. package/dist/chunk-PVLDKXKR.js.map +1 -0
  9. package/dist/{chunk-3KWD5Y5O.js → chunk-RXE5CUUE.js} +8 -4
  10. package/dist/chunk-RXE5CUUE.js.map +1 -0
  11. package/dist/{chunk-H7UAGTVW.js → chunk-TSG5C7MP.js} +4 -3
  12. package/dist/chunk-TSG5C7MP.js.map +1 -0
  13. package/dist/{chunk-NUCLEOHF.js → chunk-UNM7KFDX.js} +44 -14
  14. package/dist/chunk-UNM7KFDX.js.map +1 -0
  15. package/dist/{chunk-CEKPLUQV.js → chunk-UY7UF7IN.js} +19 -13
  16. package/dist/chunk-UY7UF7IN.js.map +1 -0
  17. package/dist/data-display/Alert.js +1 -1
  18. package/dist/data-display/AsyncStateContainer.js +2 -1
  19. package/dist/data-display/AsyncStateContainer.js.map +1 -1
  20. package/dist/data-display/Banner.js +4 -2
  21. package/dist/data-display/Banner.js.map +1 -1
  22. package/dist/data-display/CardKit.js +3 -1
  23. package/dist/data-display/CardKit.js.map +1 -1
  24. package/dist/data-display/Carousel.js +5 -2
  25. package/dist/data-display/Carousel.js.map +1 -1
  26. package/dist/data-display/DataGrid.js +1 -1
  27. package/dist/data-display/DataViews.js +90 -66
  28. package/dist/data-display/DataViews.js.map +1 -1
  29. package/dist/data-display/HoverCard.js +4 -1
  30. package/dist/data-display/HoverCard.js.map +1 -1
  31. package/dist/data-display/Lightbox.js +147 -117
  32. package/dist/data-display/Lightbox.js.map +1 -1
  33. package/dist/data-display/MapPreview.js +14 -10
  34. package/dist/data-display/MapPreview.js.map +1 -1
  35. package/dist/data-display/Table.js +4 -2
  36. package/dist/data-display/Table.js.map +1 -1
  37. package/dist/data-display/TimingDiagram.js +3 -2
  38. package/dist/data-display/TimingDiagram.js.map +1 -1
  39. package/dist/feedback/Sonner.js +5 -4
  40. package/dist/feedback/Sonner.js.map +1 -1
  41. package/dist/feedback/StackedModal.js +1 -1
  42. package/dist/feedback/TutorialOverlay.js +19 -5
  43. package/dist/feedback/TutorialOverlay.js.map +1 -1
  44. package/dist/form/AddressAutocomplete.js +16 -8
  45. package/dist/form/AddressAutocomplete.js.map +1 -1
  46. package/dist/form/Autocomplete.js +9 -7
  47. package/dist/form/Autocomplete.js.map +1 -1
  48. package/dist/form/Calendar.js +1 -1
  49. package/dist/form/CodeEditor.js +14 -9
  50. package/dist/form/CodeEditor.js.map +1 -1
  51. package/dist/form/DateRangePicker.js +10 -3
  52. package/dist/form/DateRangePicker.js.map +1 -1
  53. package/dist/form/Menubar.js +4 -1
  54. package/dist/form/Menubar.js.map +1 -1
  55. package/dist/form/PasswordStrength.js +48 -28
  56. package/dist/form/PasswordStrength.js.map +1 -1
  57. package/dist/form/PhoneInput.js +11 -5
  58. package/dist/form/PhoneInput.js.map +1 -1
  59. package/dist/form/SearchPalette.js +4 -1
  60. package/dist/form/SearchPalette.js.map +1 -1
  61. package/dist/form/Textarea.js +21 -19
  62. package/dist/form/Textarea.js.map +1 -1
  63. package/dist/form/UploadButton.js +16 -11
  64. package/dist/form/UploadButton.js.map +1 -1
  65. package/dist/layout/ContentToolbar.js +1 -1
  66. package/dist/layout/Dashboard.js +2 -1
  67. package/dist/layout/Dashboard.js.map +1 -1
  68. package/dist/layout/ScrollArea.js +9 -3
  69. package/dist/layout/ScrollArea.js.map +1 -1
  70. package/dist/layout/TableFilter.js +1 -1
  71. package/dist/navigation/Breadcrumbs.js +9 -3
  72. package/dist/navigation/Breadcrumbs.js.map +1 -1
  73. package/dist/navigation/CommandPalette.js +20 -7
  74. package/dist/navigation/CommandPalette.js.map +1 -1
  75. package/dist/navigation/Pagination.js +1 -1
  76. package/dist/navigation/Tabs.js +7 -3
  77. package/dist/navigation/Tabs.js.map +1 -1
  78. package/dist/pt-BR.js +192 -5
  79. package/dist/pt-BR.js.map +1 -1
  80. package/dist/types/components/data-display/Alert/Alert.d.ts +9 -2
  81. package/dist/types/components/data-display/Alert/Alert.d.ts.map +1 -1
  82. package/dist/types/components/data-display/Alert/Alert.types.d.ts +25 -9
  83. package/dist/types/components/data-display/Alert/Alert.types.d.ts.map +1 -1
  84. package/dist/types/components/data-display/AsyncStateContainer/AsyncStateContainer.d.ts.map +1 -1
  85. package/dist/types/components/data-display/AsyncStateContainer/AsyncStateContainer.types.d.ts +6 -0
  86. package/dist/types/components/data-display/AsyncStateContainer/AsyncStateContainer.types.d.ts.map +1 -1
  87. package/dist/types/components/data-display/Banner/Banner.d.ts.map +1 -1
  88. package/dist/types/components/data-display/Banner/Banner.types.d.ts +2 -0
  89. package/dist/types/components/data-display/Banner/Banner.types.d.ts.map +1 -1
  90. package/dist/types/components/data-display/CardKit/card-actions-context.d.ts +3 -1
  91. package/dist/types/components/data-display/CardKit/card-actions-context.d.ts.map +1 -1
  92. package/dist/types/components/data-display/Carousel/Carousel.chrome.d.ts +3 -0
  93. package/dist/types/components/data-display/Carousel/Carousel.chrome.d.ts.map +1 -1
  94. package/dist/types/components/data-display/Carousel/Carousel.parts.d.ts.map +1 -1
  95. package/dist/types/components/data-display/Carousel/Carousel.types.d.ts +7 -0
  96. package/dist/types/components/data-display/Carousel/Carousel.types.d.ts.map +1 -1
  97. package/dist/types/components/data-display/DataGrid/DataGrid.states.d.ts +1 -0
  98. package/dist/types/components/data-display/DataGrid/DataGrid.states.d.ts.map +1 -1
  99. package/dist/types/components/data-display/DataGrid/DataGrid.types.d.ts +5 -0
  100. package/dist/types/components/data-display/DataGrid/DataGrid.types.d.ts.map +1 -1
  101. package/dist/types/components/data-display/DataViews/data-views-category-pill.d.ts.map +1 -1
  102. package/dist/types/components/data-display/DataViews/data-views-copy.d.ts +29 -1
  103. package/dist/types/components/data-display/DataViews/data-views-copy.d.ts.map +1 -1
  104. package/dist/types/components/data-display/DataViews/data-views-day-input.d.ts +12 -1
  105. package/dist/types/components/data-display/DataViews/data-views-day-input.d.ts.map +1 -1
  106. package/dist/types/components/data-display/DataViews/data-views-filter-panel.d.ts.map +1 -1
  107. package/dist/types/components/data-display/DataViews/data-views-grid-bodies.d.ts.map +1 -1
  108. package/dist/types/components/data-display/DataViews/data-views-grid-parts.d.ts.map +1 -1
  109. package/dist/types/components/data-display/DataViews/data-views-more-fields.d.ts.map +1 -1
  110. package/dist/types/components/data-display/DataViews/data-views-pagination.d.ts.map +1 -1
  111. package/dist/types/components/data-display/DataViews/data-views-range-pill.d.ts.map +1 -1
  112. package/dist/types/components/data-display/DataViews/data-views-table-parts.d.ts.map +1 -1
  113. package/dist/types/components/data-display/DataViews/data-views-toolbar.d.ts.map +1 -1
  114. package/dist/types/components/data-display/HoverCard/HoverCard.content.d.ts +1 -1
  115. package/dist/types/components/data-display/HoverCard/HoverCard.content.d.ts.map +1 -1
  116. package/dist/types/components/data-display/HoverCard/HoverCard.d.ts.map +1 -1
  117. package/dist/types/components/data-display/HoverCard/HoverCard.types.d.ts +2 -0
  118. package/dist/types/components/data-display/HoverCard/HoverCard.types.d.ts.map +1 -1
  119. package/dist/types/components/data-display/Lightbox/Lightbox.d.ts.map +1 -1
  120. package/dist/types/components/data-display/Lightbox/Lightbox.types.d.ts +9 -0
  121. package/dist/types/components/data-display/Lightbox/Lightbox.types.d.ts.map +1 -1
  122. package/dist/types/components/data-display/Lightbox/LightboxControls.d.ts.map +1 -1
  123. package/dist/types/components/data-display/Lightbox/lightbox-copy-context.d.ts +17 -0
  124. package/dist/types/components/data-display/Lightbox/lightbox-copy-context.d.ts.map +1 -0
  125. package/dist/types/components/data-display/MapPreview/MapControlBar.d.ts +7 -0
  126. package/dist/types/components/data-display/MapPreview/MapControlBar.d.ts.map +1 -1
  127. package/dist/types/components/data-display/MapPreview/MapLayers.d.ts.map +1 -1
  128. package/dist/types/components/data-display/MapPreview/MapPreview.types.d.ts +9 -0
  129. package/dist/types/components/data-display/MapPreview/MapPreview.types.d.ts.map +1 -1
  130. package/dist/types/components/data-display/MapPreview/MapSearchBar.d.ts +2 -0
  131. package/dist/types/components/data-display/MapPreview/MapSearchBar.d.ts.map +1 -1
  132. package/dist/types/components/data-display/Table/Table.d.ts.map +1 -1
  133. package/dist/types/components/data-display/Table/Table.types.d.ts +5 -0
  134. package/dist/types/components/data-display/Table/Table.types.d.ts.map +1 -1
  135. package/dist/types/components/data-display/Table/TableStates.d.ts +3 -1
  136. package/dist/types/components/data-display/Table/TableStates.d.ts.map +1 -1
  137. package/dist/types/components/data-display/TimingDiagram/TimingDiagram.d.ts.map +1 -1
  138. package/dist/types/components/data-display/TimingDiagram/TimingDiagram.types.d.ts +3 -0
  139. package/dist/types/components/data-display/TimingDiagram/TimingDiagram.types.d.ts.map +1 -1
  140. package/dist/types/components/feedback/Sonner/Sonner.d.ts +8 -0
  141. package/dist/types/components/feedback/Sonner/Sonner.d.ts.map +1 -1
  142. package/dist/types/components/feedback/Sonner/Sonner.types.d.ts +2 -0
  143. package/dist/types/components/feedback/Sonner/Sonner.types.d.ts.map +1 -1
  144. package/dist/types/components/feedback/Sonner/SonnerToast.d.ts.map +1 -1
  145. package/dist/types/components/feedback/StackedModal/StackedModal.d.ts.map +1 -1
  146. package/dist/types/components/feedback/StackedModal/StackedModal.parts.d.ts +2 -0
  147. package/dist/types/components/feedback/StackedModal/StackedModal.parts.d.ts.map +1 -1
  148. package/dist/types/components/feedback/StackedModal/StackedModal.types.d.ts +2 -0
  149. package/dist/types/components/feedback/StackedModal/StackedModal.types.d.ts.map +1 -1
  150. package/dist/types/components/feedback/TutorialOverlay/TutorialOverlay.d.ts.map +1 -1
  151. package/dist/types/components/feedback/TutorialOverlay/TutorialOverlay.types.d.ts +3 -0
  152. package/dist/types/components/feedback/TutorialOverlay/TutorialOverlay.types.d.ts.map +1 -1
  153. package/dist/types/components/feedback/TutorialOverlay/TutorialStepBody.d.ts +2 -0
  154. package/dist/types/components/feedback/TutorialOverlay/TutorialStepBody.d.ts.map +1 -1
  155. package/dist/types/components/form/AddressAutocomplete/AddressAutocomplete.types.d.ts +7 -0
  156. package/dist/types/components/form/AddressAutocomplete/AddressAutocomplete.types.d.ts.map +1 -1
  157. package/dist/types/components/form/AddressAutocomplete/AddressAutocompleteField.d.ts.map +1 -1
  158. package/dist/types/components/form/AddressAutocomplete/AddressFallbackField.d.ts +1 -0
  159. package/dist/types/components/form/AddressAutocomplete/AddressFallbackField.d.ts.map +1 -1
  160. package/dist/types/components/form/AddressAutocomplete/AddressInputField.d.ts +1 -0
  161. package/dist/types/components/form/AddressAutocomplete/AddressInputField.d.ts.map +1 -1
  162. package/dist/types/components/form/Autocomplete/Autocomplete.d.ts.map +1 -1
  163. package/dist/types/components/form/Autocomplete/Autocomplete.parts.d.ts +9 -3
  164. package/dist/types/components/form/Autocomplete/Autocomplete.parts.d.ts.map +1 -1
  165. package/dist/types/components/form/Autocomplete/Autocomplete.types.d.ts +7 -0
  166. package/dist/types/components/form/Autocomplete/Autocomplete.types.d.ts.map +1 -1
  167. package/dist/types/components/form/Calendar/Calendar.types.d.ts +6 -0
  168. package/dist/types/components/form/Calendar/Calendar.types.d.ts.map +1 -1
  169. package/dist/types/components/form/CodeEditor/CodeEditor.d.ts.map +1 -1
  170. package/dist/types/components/form/CodeEditor/CodeEditor.types.d.ts +7 -0
  171. package/dist/types/components/form/CodeEditor/CodeEditor.types.d.ts.map +1 -1
  172. package/dist/types/components/form/CodeEditor/CodeEditorToolbar.d.ts +2 -0
  173. package/dist/types/components/form/CodeEditor/CodeEditorToolbar.d.ts.map +1 -1
  174. package/dist/types/components/form/DateRangePicker/DateRangePicker.d.ts.map +1 -1
  175. package/dist/types/components/form/DateRangePicker/DateRangePicker.range.d.ts.map +1 -1
  176. package/dist/types/components/form/DateRangePicker/DateRangePicker.types.d.ts +11 -0
  177. package/dist/types/components/form/DateRangePicker/DateRangePicker.types.d.ts.map +1 -1
  178. package/dist/types/components/form/DateRangePicker/DateRangePickerFields.d.ts.map +1 -1
  179. package/dist/types/components/form/Menubar/Menubar.d.ts.map +1 -1
  180. package/dist/types/components/form/Menubar/Menubar.toolbar.d.ts +1 -0
  181. package/dist/types/components/form/Menubar/Menubar.toolbar.d.ts.map +1 -1
  182. package/dist/types/components/form/Menubar/Menubar.types.d.ts +5 -0
  183. package/dist/types/components/form/Menubar/Menubar.types.d.ts.map +1 -1
  184. package/dist/types/components/form/PasswordStrength/PasswordStrength.d.ts.map +1 -1
  185. package/dist/types/components/form/PasswordStrength/PasswordStrength.helpers.d.ts +4 -2
  186. package/dist/types/components/form/PasswordStrength/PasswordStrength.helpers.d.ts.map +1 -1
  187. package/dist/types/components/form/PasswordStrength/PasswordStrength.types.d.ts +8 -0
  188. package/dist/types/components/form/PasswordStrength/PasswordStrength.types.d.ts.map +1 -1
  189. package/dist/types/components/form/PhoneInput/PhoneInput.d.ts.map +1 -1
  190. package/dist/types/components/form/PhoneInput/PhoneInput.types.d.ts +7 -0
  191. package/dist/types/components/form/PhoneInput/PhoneInput.types.d.ts.map +1 -1
  192. package/dist/types/components/form/SearchPalette/SearchPalette.d.ts.map +1 -1
  193. package/dist/types/components/form/SearchPalette/SearchPalette.parts.d.ts +2 -0
  194. package/dist/types/components/form/SearchPalette/SearchPalette.parts.d.ts.map +1 -1
  195. package/dist/types/components/form/SearchPalette/SearchPalette.types.d.ts +6 -0
  196. package/dist/types/components/form/SearchPalette/SearchPalette.types.d.ts.map +1 -1
  197. package/dist/types/components/form/Textarea/Textarea.d.ts.map +1 -1
  198. package/dist/types/components/form/Textarea/Textarea.types.d.ts +16 -1
  199. package/dist/types/components/form/Textarea/Textarea.types.d.ts.map +1 -1
  200. package/dist/types/components/form/Textarea/TextareaRichEditor.d.ts +7 -0
  201. package/dist/types/components/form/Textarea/TextareaRichEditor.d.ts.map +1 -1
  202. package/dist/types/components/form/UploadButton/UploadButton.d.ts.map +1 -1
  203. package/dist/types/components/form/UploadButton/UploadButton.parts.d.ts +6 -3
  204. package/dist/types/components/form/UploadButton/UploadButton.parts.d.ts.map +1 -1
  205. package/dist/types/components/form/UploadButton/UploadButton.types.d.ts +7 -0
  206. package/dist/types/components/form/UploadButton/UploadButton.types.d.ts.map +1 -1
  207. package/dist/types/components/layout/ContentToolbar/ContentToolbar.d.ts +1 -1
  208. package/dist/types/components/layout/ContentToolbar/ContentToolbar.d.ts.map +1 -1
  209. package/dist/types/components/layout/ContentToolbar/ContentToolbar.types.d.ts +12 -0
  210. package/dist/types/components/layout/ContentToolbar/ContentToolbar.types.d.ts.map +1 -1
  211. package/dist/types/components/layout/ContentToolbar/MultiSelectDropdown.d.ts +1 -1
  212. package/dist/types/components/layout/ContentToolbar/MultiSelectDropdown.d.ts.map +1 -1
  213. package/dist/types/components/layout/ContentToolbar/SortByDropdown.d.ts +1 -1
  214. package/dist/types/components/layout/ContentToolbar/SortByDropdown.d.ts.map +1 -1
  215. package/dist/types/components/layout/ContentToolbar/ViewSelector.d.ts +1 -1
  216. package/dist/types/components/layout/ContentToolbar/ViewSelector.d.ts.map +1 -1
  217. package/dist/types/components/layout/Dashboard/Dashboard.d.ts +1 -1
  218. package/dist/types/components/layout/Dashboard/Dashboard.types.d.ts +4 -0
  219. package/dist/types/components/layout/Dashboard/Dashboard.types.d.ts.map +1 -1
  220. package/dist/types/components/layout/Dashboard/DashboardParts.d.ts +1 -1
  221. package/dist/types/components/layout/Dashboard/DashboardParts.d.ts.map +1 -1
  222. package/dist/types/components/layout/ScrollArea/ScrollArea.d.ts.map +1 -1
  223. package/dist/types/components/layout/ScrollArea/ScrollArea.types.d.ts +21 -3
  224. package/dist/types/components/layout/ScrollArea/ScrollArea.types.d.ts.map +1 -1
  225. package/dist/types/components/layout/ScrollArea/ScrollViewport.d.ts +2 -0
  226. package/dist/types/components/layout/ScrollArea/ScrollViewport.d.ts.map +1 -1
  227. package/dist/types/components/layout/TableFilter/TableFilter.d.ts +1 -1
  228. package/dist/types/components/layout/TableFilter/TableFilter.d.ts.map +1 -1
  229. package/dist/types/components/layout/TableFilter/TableFilter.types.d.ts +7 -0
  230. package/dist/types/components/layout/TableFilter/TableFilter.types.d.ts.map +1 -1
  231. package/dist/types/components/layout/TableFilter/TableFilterContext.d.ts +9 -0
  232. package/dist/types/components/layout/TableFilter/TableFilterContext.d.ts.map +1 -1
  233. package/dist/types/components/navigation/Breadcrumbs/BreadcrumbEntry.d.ts +2 -0
  234. package/dist/types/components/navigation/Breadcrumbs/BreadcrumbEntry.d.ts.map +1 -1
  235. package/dist/types/components/navigation/Breadcrumbs/Breadcrumbs.d.ts.map +1 -1
  236. package/dist/types/components/navigation/Breadcrumbs/Breadcrumbs.types.d.ts +3 -0
  237. package/dist/types/components/navigation/Breadcrumbs/Breadcrumbs.types.d.ts.map +1 -1
  238. package/dist/types/components/navigation/CommandPalette/CommandPalette.d.ts.map +1 -1
  239. package/dist/types/components/navigation/CommandPalette/CommandPalette.types.d.ts +3 -0
  240. package/dist/types/components/navigation/CommandPalette/CommandPalette.types.d.ts.map +1 -1
  241. package/dist/types/components/navigation/CommandPalette/CommandPaletteResults.d.ts +2 -0
  242. package/dist/types/components/navigation/CommandPalette/CommandPaletteResults.d.ts.map +1 -1
  243. package/dist/types/components/navigation/Pagination/Pagination.d.ts.map +1 -1
  244. package/dist/types/components/navigation/Pagination/Pagination.types.d.ts +2 -0
  245. package/dist/types/components/navigation/Pagination/Pagination.types.d.ts.map +1 -1
  246. package/dist/types/components/navigation/Pagination/PaginationParts.d.ts +2 -0
  247. package/dist/types/components/navigation/Pagination/PaginationParts.d.ts.map +1 -1
  248. package/dist/types/components/navigation/Tabs/Tabs.d.ts.map +1 -1
  249. package/dist/types/components/navigation/Tabs/Tabs.types.d.ts +2 -0
  250. package/dist/types/components/navigation/Tabs/Tabs.types.d.ts.map +1 -1
  251. package/dist/types/components/utility/InfiniteScroll/InfiniteScroll.d.ts.map +1 -1
  252. package/dist/types/components/utility/InfiniteScroll/InfiniteScroll.parts.d.ts +6 -2
  253. package/dist/types/components/utility/InfiniteScroll/InfiniteScroll.parts.d.ts.map +1 -1
  254. package/dist/types/components/utility/InfiniteScroll/InfiniteScroll.types.d.ts +6 -0
  255. package/dist/types/components/utility/InfiniteScroll/InfiniteScroll.types.d.ts.map +1 -1
  256. package/dist/types/components/utility/InstallPrompt/InstallPrompt.d.ts +4 -2
  257. package/dist/types/components/utility/InstallPrompt/InstallPrompt.d.ts.map +1 -1
  258. package/dist/types/components/utility/InstallPrompt/InstallPrompt.types.d.ts +8 -7
  259. package/dist/types/components/utility/InstallPrompt/InstallPrompt.types.d.ts.map +1 -1
  260. package/dist/types/copy/data-display.d.ts +56 -0
  261. package/dist/types/copy/data-display.d.ts.map +1 -0
  262. package/dist/types/copy/feedback.d.ts +38 -0
  263. package/dist/types/copy/feedback.d.ts.map +1 -0
  264. package/dist/types/copy/form.d.ts +146 -0
  265. package/dist/types/copy/form.d.ts.map +1 -0
  266. package/dist/types/copy/layout.d.ts +18 -0
  267. package/dist/types/copy/layout.d.ts.map +1 -0
  268. package/dist/types/copy/navigation.d.ts +24 -0
  269. package/dist/types/copy/navigation.d.ts.map +1 -0
  270. package/dist/types/copy/shared.d.ts +119 -0
  271. package/dist/types/copy/shared.d.ts.map +1 -0
  272. package/dist/types/copy/utility.d.ts +35 -0
  273. package/dist/types/copy/utility.d.ts.map +1 -0
  274. package/dist/types/copy.d.ts +13 -113
  275. package/dist/types/copy.d.ts.map +1 -1
  276. package/dist/types/pt-BR.d.ts +15 -18
  277. package/dist/types/pt-BR.d.ts.map +1 -1
  278. package/dist/types/pt-BR.data-display.d.ts +13 -0
  279. package/dist/types/pt-BR.data-display.d.ts.map +1 -0
  280. package/dist/types/pt-BR.feedback.d.ts +8 -0
  281. package/dist/types/pt-BR.feedback.d.ts.map +1 -0
  282. package/dist/types/pt-BR.form.d.ts +13 -0
  283. package/dist/types/pt-BR.form.d.ts.map +1 -0
  284. package/dist/types/pt-BR.layout.d.ts +7 -0
  285. package/dist/types/pt-BR.layout.d.ts.map +1 -0
  286. package/dist/types/pt-BR.navigation.d.ts +8 -0
  287. package/dist/types/pt-BR.navigation.d.ts.map +1 -0
  288. package/dist/types/pt-BR.shared.d.ts +21 -0
  289. package/dist/types/pt-BR.shared.d.ts.map +1 -0
  290. package/dist/types/pt-BR.utility.d.ts +8 -0
  291. package/dist/types/pt-BR.utility.d.ts.map +1 -0
  292. package/dist/types/user-avatar/user-avatar.d.ts +7 -1
  293. package/dist/types/user-avatar/user-avatar.d.ts.map +1 -1
  294. package/dist/user-avatar.js +2 -2
  295. package/dist/user-avatar.js.map +1 -1
  296. package/dist/utility/InfiniteScroll.js +7 -5
  297. package/dist/utility/InfiniteScroll.js.map +1 -1
  298. package/dist/utility/InstallPrompt.js +14 -13
  299. package/dist/utility/InstallPrompt.js.map +1 -1
  300. package/package.json +1 -1
  301. package/src/components/data-display/Alert/Alert.tsx +22 -5
  302. package/src/components/data-display/Alert/Alert.types.ts +20 -10
  303. package/src/components/data-display/AsyncStateContainer/AsyncStateContainer.tsx +2 -1
  304. package/src/components/data-display/AsyncStateContainer/AsyncStateContainer.types.ts +6 -0
  305. package/src/components/data-display/Banner/Banner.tsx +5 -2
  306. package/src/components/data-display/Banner/Banner.types.ts +2 -0
  307. package/src/components/data-display/CardKit/card-actions-context.tsx +4 -0
  308. package/src/components/data-display/Carousel/Carousel.chrome.tsx +5 -0
  309. package/src/components/data-display/Carousel/Carousel.parts.tsx +4 -3
  310. package/src/components/data-display/Carousel/Carousel.types.ts +7 -0
  311. package/src/components/data-display/DataGrid/DataGrid.states.tsx +3 -3
  312. package/src/components/data-display/DataGrid/DataGrid.tsx +1 -1
  313. package/src/components/data-display/DataGrid/DataGrid.types.ts +5 -0
  314. package/src/components/data-display/DataViews/data-views-category-pill.tsx +2 -0
  315. package/src/components/data-display/DataViews/data-views-copy.ts +29 -1
  316. package/src/components/data-display/DataViews/data-views-day-input.tsx +14 -3
  317. package/src/components/data-display/DataViews/data-views-filter-panel.tsx +2 -1
  318. package/src/components/data-display/DataViews/data-views-grid-bodies.tsx +3 -0
  319. package/src/components/data-display/DataViews/data-views-grid-parts.tsx +9 -10
  320. package/src/components/data-display/DataViews/data-views-more-fields.tsx +3 -1
  321. package/src/components/data-display/DataViews/data-views-pagination.tsx +3 -0
  322. package/src/components/data-display/DataViews/data-views-range-pill.tsx +3 -1
  323. package/src/components/data-display/DataViews/data-views-table-parts.tsx +1 -0
  324. package/src/components/data-display/DataViews/data-views-toolbar.tsx +2 -0
  325. package/src/components/data-display/HoverCard/HoverCard.content.tsx +10 -2
  326. package/src/components/data-display/HoverCard/HoverCard.tsx +2 -3
  327. package/src/components/data-display/HoverCard/HoverCard.types.ts +2 -0
  328. package/src/components/data-display/Lightbox/Lightbox.tsx +3 -0
  329. package/src/components/data-display/Lightbox/Lightbox.types.ts +9 -0
  330. package/src/components/data-display/Lightbox/LightboxControls.tsx +28 -15
  331. package/src/components/data-display/Lightbox/lightbox-copy-context.tsx +42 -0
  332. package/src/components/data-display/MapPreview/MapControlBar.tsx +17 -9
  333. package/src/components/data-display/MapPreview/MapLayers.tsx +2 -0
  334. package/src/components/data-display/MapPreview/MapPreview.types.ts +10 -0
  335. package/src/components/data-display/MapPreview/MapSearchBar.tsx +4 -1
  336. package/src/components/data-display/Table/Table.tsx +7 -2
  337. package/src/components/data-display/Table/Table.types.ts +5 -0
  338. package/src/components/data-display/Table/TableStates.tsx +2 -2
  339. package/src/components/data-display/TimingDiagram/TimingDiagram.tsx +3 -2
  340. package/src/components/data-display/TimingDiagram/TimingDiagram.types.ts +3 -0
  341. package/src/components/feedback/Sonner/Sonner.tsx +15 -3
  342. package/src/components/feedback/Sonner/Sonner.types.ts +2 -0
  343. package/src/components/feedback/Sonner/SonnerToast.tsx +2 -1
  344. package/src/components/feedback/StackedModal/StackedModal.parts.tsx +10 -3
  345. package/src/components/feedback/StackedModal/StackedModal.tsx +2 -1
  346. package/src/components/feedback/StackedModal/StackedModal.types.ts +2 -0
  347. package/src/components/feedback/TutorialOverlay/TutorialOverlay.tsx +13 -1
  348. package/src/components/feedback/TutorialOverlay/TutorialOverlay.types.ts +3 -0
  349. package/src/components/feedback/TutorialOverlay/TutorialStepBody.tsx +10 -4
  350. package/src/components/form/AddressAutocomplete/AddressAutocomplete.types.ts +7 -0
  351. package/src/components/form/AddressAutocomplete/AddressAutocompleteField.tsx +2 -0
  352. package/src/components/form/AddressAutocomplete/AddressFallbackField.tsx +4 -2
  353. package/src/components/form/AddressAutocomplete/AddressInputField.tsx +13 -6
  354. package/src/components/form/Autocomplete/Autocomplete.parts.tsx +9 -6
  355. package/src/components/form/Autocomplete/Autocomplete.tsx +2 -1
  356. package/src/components/form/Autocomplete/Autocomplete.types.ts +7 -0
  357. package/src/components/form/Calendar/Calendar.tsx +2 -2
  358. package/src/components/form/Calendar/Calendar.types.ts +7 -0
  359. package/src/components/form/CodeEditor/CodeEditor.tsx +6 -4
  360. package/src/components/form/CodeEditor/CodeEditor.types.ts +7 -0
  361. package/src/components/form/CodeEditor/CodeEditorToolbar.tsx +12 -5
  362. package/src/components/form/DateRangePicker/DateRangePicker.range.ts +2 -0
  363. package/src/components/form/DateRangePicker/DateRangePicker.tsx +4 -0
  364. package/src/components/form/DateRangePicker/DateRangePicker.types.ts +11 -0
  365. package/src/components/form/DateRangePicker/DateRangePickerFields.tsx +2 -0
  366. package/src/components/form/Menubar/Menubar.toolbar.tsx +3 -1
  367. package/src/components/form/Menubar/Menubar.tsx +2 -1
  368. package/src/components/form/Menubar/Menubar.types.ts +5 -0
  369. package/src/components/form/PasswordStrength/PasswordStrength.helpers.tsx +33 -17
  370. package/src/components/form/PasswordStrength/PasswordStrength.tsx +29 -13
  371. package/src/components/form/PasswordStrength/PasswordStrength.types.ts +9 -0
  372. package/src/components/form/PhoneInput/PhoneInput.tsx +15 -5
  373. package/src/components/form/PhoneInput/PhoneInput.types.ts +7 -0
  374. package/src/components/form/SearchPalette/SearchPalette.parts.tsx +4 -1
  375. package/src/components/form/SearchPalette/SearchPalette.tsx +4 -1
  376. package/src/components/form/SearchPalette/SearchPalette.types.ts +6 -0
  377. package/src/components/form/Textarea/Textarea.tsx +6 -1
  378. package/src/components/form/Textarea/Textarea.types.ts +14 -1
  379. package/src/components/form/Textarea/TextareaRichEditor.tsx +28 -18
  380. package/src/components/form/UploadButton/UploadButton.parts.tsx +16 -7
  381. package/src/components/form/UploadButton/UploadButton.tsx +4 -1
  382. package/src/components/form/UploadButton/UploadButton.types.ts +8 -0
  383. package/src/components/layout/ContentToolbar/ContentToolbar.tsx +10 -2
  384. package/src/components/layout/ContentToolbar/ContentToolbar.types.ts +12 -0
  385. package/src/components/layout/ContentToolbar/MultiSelectDropdown.tsx +15 -4
  386. package/src/components/layout/ContentToolbar/SortByDropdown.tsx +12 -3
  387. package/src/components/layout/ContentToolbar/ViewSelector.tsx +2 -1
  388. package/src/components/layout/Dashboard/Dashboard.types.ts +4 -0
  389. package/src/components/layout/Dashboard/DashboardParts.tsx +2 -1
  390. package/src/components/layout/ScrollArea/ScrollArea.tsx +16 -3
  391. package/src/components/layout/ScrollArea/ScrollArea.types.ts +19 -4
  392. package/src/components/layout/ScrollArea/ScrollViewport.tsx +4 -1
  393. package/src/components/layout/TableFilter/TableFilter.tsx +19 -11
  394. package/src/components/layout/TableFilter/TableFilter.types.ts +8 -0
  395. package/src/components/layout/TableFilter/TableFilterContext.tsx +10 -0
  396. package/src/components/navigation/Breadcrumbs/BreadcrumbEntry.tsx +11 -4
  397. package/src/components/navigation/Breadcrumbs/Breadcrumbs.tsx +2 -0
  398. package/src/components/navigation/Breadcrumbs/Breadcrumbs.types.ts +3 -0
  399. package/src/components/navigation/CommandPalette/CommandPalette.tsx +15 -5
  400. package/src/components/navigation/CommandPalette/CommandPalette.types.ts +3 -0
  401. package/src/components/navigation/CommandPalette/CommandPaletteResults.tsx +5 -2
  402. package/src/components/navigation/Pagination/Pagination.tsx +2 -0
  403. package/src/components/navigation/Pagination/Pagination.types.ts +2 -0
  404. package/src/components/navigation/Pagination/PaginationParts.tsx +4 -1
  405. package/src/components/navigation/Tabs/Tabs.tsx +8 -3
  406. package/src/components/navigation/Tabs/Tabs.types.ts +2 -0
  407. package/src/components/utility/InfiniteScroll/InfiniteScroll.parts.tsx +4 -4
  408. package/src/components/utility/InfiniteScroll/InfiniteScroll.tsx +4 -2
  409. package/src/components/utility/InfiniteScroll/InfiniteScroll.types.ts +6 -0
  410. package/src/components/utility/InstallPrompt/InstallPrompt.tsx +18 -13
  411. package/src/components/utility/InstallPrompt/InstallPrompt.types.ts +9 -7
  412. package/src/copy/data-display.ts +60 -0
  413. package/src/copy/feedback.ts +39 -0
  414. package/src/copy/form.ts +154 -0
  415. package/src/copy/layout.ts +18 -0
  416. package/src/copy/navigation.ts +25 -0
  417. package/src/copy/shared.ts +122 -0
  418. package/src/copy/utility.ts +36 -0
  419. package/src/copy.ts +13 -117
  420. package/src/pt-BR.data-display.ts +236 -0
  421. package/src/pt-BR.feedback.ts +25 -0
  422. package/src/pt-BR.form.ts +96 -0
  423. package/src/pt-BR.layout.ts +15 -0
  424. package/src/pt-BR.navigation.ts +21 -0
  425. package/src/pt-BR.shared.ts +94 -0
  426. package/src/pt-BR.ts +15 -267
  427. package/src/pt-BR.utility.ts +21 -0
  428. package/src/user-avatar/user-avatar.tsx +8 -2
  429. package/dist/chunk-3KWD5Y5O.js.map +0 -1
  430. package/dist/chunk-CEKPLUQV.js.map +0 -1
  431. package/dist/chunk-DFVRZ3UK.js.map +0 -1
  432. package/dist/chunk-H7UAGTVW.js.map +0 -1
  433. package/dist/chunk-JP55QWVR.js.map +0 -1
  434. package/dist/chunk-NUCLEOHF.js.map +0 -1
  435. package/dist/chunk-QLBYAYUG.js.map +0 -1
  436. package/dist/chunk-QZZVHY6U.js.map +0 -1
@@ -0,0 +1,119 @@
1
+ /**
2
+ * Words shared by more than one family: the guided-section chrome, the
3
+ * confirm dialog behind a destructive action, the category picker and the CEP
4
+ * lookup.
5
+ *
6
+ * Split out of `copy.ts`, which is a barrel over this folder: one file
7
+ * listing every family is the file that grows on every port, and it stopped
8
+ * fitting the 400-line budget the rest of this package holds itself to.
9
+ */
10
+ export interface SectionOnboardingCopy {
11
+ /** The button that begins the guided section. */
12
+ start: string;
13
+ /** The reveal toggle in the configured state, and its collapsed twin. */
14
+ edit: string;
15
+ collapse: string;
16
+ }
17
+ export interface ConfirmActionCopy {
18
+ /** The dismiss button every confirmation shares. */
19
+ cancel: string;
20
+ /** Shown when the action fails and the caller supplied no reason. */
21
+ defaultError: string;
22
+ /**
23
+ * The fallback body when the caller names no entity.
24
+ *
25
+ * A caller that DOES name one gets the host's own sentence — this package
26
+ * never guesses a noun for someone else's rows.
27
+ */
28
+ irreversible: string;
29
+ /**
30
+ * The typed-confirmation prompt, naming the exact word that unlocks the
31
+ * button. A function because where that word sits in the sentence, and how
32
+ * it is quoted, is the translator's call.
33
+ */
34
+ typeToConfirm(expected: string): string;
35
+ }
36
+ export interface CategorySelectCopy {
37
+ /**
38
+ * What categories are FOR, in the host's own terms.
39
+ *
40
+ * This used to read "Categorias organizam o cardápio e os filtros da loja" —
41
+ * a restaurant's menu, hard-coded into a generic picker. A host selling
42
+ * insurance policies got told about its cardápio.
43
+ */
44
+ purpose: string;
45
+ clearSelection: string;
46
+ /**
47
+ * The quick actions above the tree. Each toggles as a PAIR, and each label
48
+ * says what pressing it will do rather than what state the list is in — so a
49
+ * translator needs both halves, not one plus a negation.
50
+ */
51
+ selectAll: string;
52
+ deselectAll: string;
53
+ expandAll: string;
54
+ collapseAll: string;
55
+ /**
56
+ * ONE row's chevron, in its two states — a glyph button inside the row
57
+ * button, so this pair is the whole of what a screen reader reads for it.
58
+ * The category's own name is appended by the caller.
59
+ */
60
+ expandCategory(name: string): string;
61
+ collapseCategory(name: string): string;
62
+ /**
63
+ * What the closed control invites, and it differs by mode: picking ONE
64
+ * category is a move, picking several is a filter. Both were pt-BR defaults
65
+ * behind an optional prop, which is the arrangement this port removes.
66
+ */
67
+ placeholderSingle: string;
68
+ placeholderMulti: string;
69
+ /** The empty state, when the host has no categories at all. */
70
+ emptyTitle: string;
71
+ createCategory: string;
72
+ /**
73
+ * The search found nothing.
74
+ *
75
+ * Two of the four interpolate the term typed, so they are functions rather
76
+ * than strings with a placeholder to substitute: where the term sits in the
77
+ * sentence is the translator's call, not ours.
78
+ */
79
+ noResults: {
80
+ title: (query: string) => string;
81
+ hint: string;
82
+ clearSearch: string;
83
+ create: (query: string) => string;
84
+ };
85
+ /**
86
+ * The panel's two footers.
87
+ *
88
+ * `selectedCount` is a function because Portuguese agrees the participle with
89
+ * the count and English does not — the shape has to let a translator decide
90
+ * the whole sentence, not fill a slot in ours.
91
+ */
92
+ /** The search box above the list, and the chips beneath it. */
93
+ search: {
94
+ /** Two placeholders: a single-select picker offers no subcategories. */
95
+ placeholderSingle: string;
96
+ placeholderMulti: string;
97
+ clear: string;
98
+ removeChip(label: string): string;
99
+ /** The tray above the list, counting what is already picked. */
100
+ pinnedLabel(count: number): string;
101
+ };
102
+ footer: {
103
+ selectedCount(count: number): string;
104
+ clear: string;
105
+ /** The primary button, which reads `close` while the draft is unchanged. */
106
+ apply: string;
107
+ close: string;
108
+ /** The single-select footer: what to do, and the way out. */
109
+ singleHint: string;
110
+ cancel: string;
111
+ };
112
+ }
113
+ export interface CepFieldCopy {
114
+ loading: string;
115
+ found: string;
116
+ /** Keyed to match `CepLookupStatus` exactly, so the lookup can index it. */
117
+ notfound: string;
118
+ }
119
+ //# sourceMappingURL=shared.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"shared.d.ts","sourceRoot":"","sources":["../../../src/copy/shared.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,MAAM,WAAW,qBAAqB;IACpC,iDAAiD;IACjD,KAAK,EAAE,MAAM,CAAC;IACd,yEAAyE;IACzE,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,WAAW,iBAAiB;IAChC,oDAAoD;IACpD,MAAM,EAAE,MAAM,CAAC;IACf,qEAAqE;IACrE,YAAY,EAAE,MAAM,CAAC;IACrB;;;;;OAKG;IACH,YAAY,EAAE,MAAM,CAAC;IACrB;;;;OAIG;IACH,aAAa,CAAC,QAAQ,EAAE,MAAM,GAAG,MAAM,CAAC;CACzC;AAED,MAAM,WAAW,kBAAkB;IACjC;;;;;;OAMG;IACH,OAAO,EAAE,MAAM,CAAC;IAChB,cAAc,EAAE,MAAM,CAAC;IACvB;;;;OAIG;IACH,SAAS,EAAE,MAAM,CAAC;IAClB,WAAW,EAAE,MAAM,CAAC;IACpB,SAAS,EAAE,MAAM,CAAC;IAClB,WAAW,EAAE,MAAM,CAAC;IACpB;;;;OAIG;IACH,cAAc,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAAC;IACrC,gBAAgB,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAAC;IACvC;;;;OAIG;IACH,iBAAiB,EAAE,MAAM,CAAC;IAC1B,gBAAgB,EAAE,MAAM,CAAC;IACzB,+DAA+D;IAC/D,UAAU,EAAE,MAAM,CAAC;IACnB,cAAc,EAAE,MAAM,CAAC;IACvB;;;;;;OAMG;IACH,SAAS,EAAE;QACT,KAAK,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,MAAM,CAAC;QACjC,IAAI,EAAE,MAAM,CAAC;QACb,WAAW,EAAE,MAAM,CAAC;QACpB,MAAM,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,MAAM,CAAC;KACnC,CAAC;IACF;;;;;;OAMG;IACH,+DAA+D;IAC/D,MAAM,EAAE;QACN,wEAAwE;QACxE,iBAAiB,EAAE,MAAM,CAAC;QAC1B,gBAAgB,EAAE,MAAM,CAAC;QACzB,KAAK,EAAE,MAAM,CAAC;QACd,UAAU,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAAC;QAClC,gEAAgE;QAChE,WAAW,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAAC;KACpC,CAAC;IACF,MAAM,EAAE;QACN,aAAa,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAAC;QACrC,KAAK,EAAE,MAAM,CAAC;QACd,4EAA4E;QAC5E,KAAK,EAAE,MAAM,CAAC;QACd,KAAK,EAAE,MAAM,CAAC;QACd,6DAA6D;QAC7D,UAAU,EAAE,MAAM,CAAC;QACnB,MAAM,EAAE,MAAM,CAAC;KAChB,CAAC;CACH;AAED,MAAM,WAAW,YAAY;IAC3B,OAAO,EAAE,MAAM,CAAC;IAChB,KAAK,EAAE,MAAM,CAAC;IACd,4EAA4E;IAC5E,QAAQ,EAAE,MAAM,CAAC;CAClB"}
@@ -0,0 +1,35 @@
1
+ /**
2
+ * The utility family's words — the install prompt and the account card.
3
+ *
4
+ * Split out of `copy.ts`, which is a barrel over this folder: one file
5
+ * listing every family is the file that grows on every port, and it stopped
6
+ * fitting the 400-line budget the rest of this package holds itself to.
7
+ */
8
+ /**
9
+ * The install prompt's own words. Two of the three surfaces here are iOS-only:
10
+ * Safari has no programmatic install, so the component explains the gesture
11
+ * instead of offering a button.
12
+ */
13
+ export interface InstallPromptCopy {
14
+ /** Headline, and the Chromium install button. */
15
+ title: string;
16
+ installLabel: string;
17
+ /** The dismiss button's accessible name — it renders as a bare cross. */
18
+ dismissLabel: string;
19
+ /**
20
+ * The iOS instruction, split around the Share glyph that sits INSIDE the
21
+ * sentence: "Tap [share] then Add to Home Screen". Two halves rather than
22
+ * one string because the glyph's position is part of the sentence and a
23
+ * language may not put it where English does. A host wanting a different
24
+ * shape entirely passes `iosInstructions` and replaces the whole node.
25
+ */
26
+ iosTapBefore: string;
27
+ iosTapAfter: string;
28
+ /** The Share glyph's accessible name, mid-sentence. */
29
+ shareLabel: string;
30
+ }
31
+ /** The account card's one action. */
32
+ export interface UserAvatarCopy {
33
+ signOut: string;
34
+ }
35
+ //# sourceMappingURL=utility.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"utility.d.ts","sourceRoot":"","sources":["../../../src/copy/utility.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH;;;;GAIG;AACH,MAAM,WAAW,iBAAiB;IAChC,iDAAiD;IACjD,KAAK,EAAE,MAAM,CAAC;IACd,YAAY,EAAE,MAAM,CAAC;IACrB,yEAAyE;IACzE,YAAY,EAAE,MAAM,CAAC;IACrB;;;;;;OAMG;IACH,YAAY,EAAE,MAAM,CAAC;IACrB,WAAW,EAAE,MAAM,CAAC;IACpB,uDAAuD;IACvD,UAAU,EAAE,MAAM,CAAC;CACpB;AAED,qCAAqC;AACrC,MAAM,WAAW,cAAc;IAC7B,OAAO,EAAE,MAAM,CAAC;CACjB"}
@@ -11,118 +11,18 @@
11
11
  * The DataViews family has its own object (`DataViewsCopy`) threaded through a
12
12
  * context, because nineteen files are one mounted surface. These six are
13
13
  * mounted independently, so each takes what it renders.
14
+ *
15
+ * This file is a BARREL over `./copy/`, one module per component family. It was
16
+ * one file until the port made it 411 lines against this package's own 400-line
17
+ * budget — and a single list of every family is exactly the file that grows on
18
+ * every port, so the budget would have been the thing that gave way next.
19
+ * Consumers are unaffected: `@12-apps/ui/copy` still resolves here.
14
20
  */
15
- export interface SectionOnboardingCopy {
16
- /** The button that begins the guided section. */
17
- start: string;
18
- /** The reveal toggle in the configured state, and its collapsed twin. */
19
- edit: string;
20
- collapse: string;
21
- }
22
- export interface ConfirmActionCopy {
23
- /** The dismiss button every confirmation shares. */
24
- cancel: string;
25
- /** Shown when the action fails and the caller supplied no reason. */
26
- defaultError: string;
27
- /**
28
- * The fallback body when the caller names no entity.
29
- *
30
- * A caller that DOES name one gets the host's own sentence — this package
31
- * never guesses a noun for someone else's rows.
32
- */
33
- irreversible: string;
34
- /**
35
- * The typed-confirmation prompt, naming the exact word that unlocks the
36
- * button. A function because where that word sits in the sentence, and how
37
- * it is quoted, is the translator's call.
38
- */
39
- typeToConfirm(expected: string): string;
40
- }
41
- export interface CategorySelectCopy {
42
- /**
43
- * What categories are FOR, in the host's own terms.
44
- *
45
- * This used to read "Categorias organizam o cardápio e os filtros da loja" —
46
- * a restaurant's menu, hard-coded into a generic picker. A host selling
47
- * insurance policies got told about its cardápio.
48
- */
49
- purpose: string;
50
- clearSelection: string;
51
- /**
52
- * The quick actions above the tree. Each toggles as a PAIR, and each label
53
- * says what pressing it will do rather than what state the list is in — so a
54
- * translator needs both halves, not one plus a negation.
55
- */
56
- selectAll: string;
57
- deselectAll: string;
58
- expandAll: string;
59
- collapseAll: string;
60
- /**
61
- * ONE row's chevron, in its two states — a glyph button inside the row
62
- * button, so this pair is the whole of what a screen reader reads for it.
63
- * The category's own name is appended by the caller.
64
- */
65
- expandCategory(name: string): string;
66
- collapseCategory(name: string): string;
67
- /**
68
- * What the closed control invites, and it differs by mode: picking ONE
69
- * category is a move, picking several is a filter. Both were pt-BR defaults
70
- * behind an optional prop, which is the arrangement this port removes.
71
- */
72
- placeholderSingle: string;
73
- placeholderMulti: string;
74
- /** The empty state, when the host has no categories at all. */
75
- emptyTitle: string;
76
- createCategory: string;
77
- /**
78
- * The search found nothing.
79
- *
80
- * Two of the four interpolate the term typed, so they are functions rather
81
- * than strings with a placeholder to substitute: where the term sits in the
82
- * sentence is the translator's call, not ours.
83
- */
84
- noResults: {
85
- title: (query: string) => string;
86
- hint: string;
87
- clearSearch: string;
88
- create: (query: string) => string;
89
- };
90
- /**
91
- * The panel's two footers.
92
- *
93
- * `selectedCount` is a function because Portuguese agrees the participle with
94
- * the count and English does not — the shape has to let a translator decide
95
- * the whole sentence, not fill a slot in ours.
96
- */
97
- /** The search box above the list, and the chips beneath it. */
98
- search: {
99
- /** Two placeholders: a single-select picker offers no subcategories. */
100
- placeholderSingle: string;
101
- placeholderMulti: string;
102
- clear: string;
103
- removeChip(label: string): string;
104
- /** The tray above the list, counting what is already picked. */
105
- pinnedLabel(count: number): string;
106
- };
107
- footer: {
108
- selectedCount(count: number): string;
109
- clear: string;
110
- /** The primary button, which reads `close` while the draft is unchanged. */
111
- apply: string;
112
- close: string;
113
- /** The single-select footer: what to do, and the way out. */
114
- singleHint: string;
115
- cancel: string;
116
- };
117
- }
118
- export interface CepFieldCopy {
119
- loading: string;
120
- found: string;
121
- /** Keyed to match `CepLookupStatus` exactly, so the lookup can index it. */
122
- notfound: string;
123
- }
124
- export interface TableFilterCopy {
125
- /** A numeric range whose maximum is below its minimum. */
126
- invalidRange: string;
127
- }
21
+ export type * from './copy/data-display';
22
+ export type * from './copy/feedback';
23
+ export type * from './copy/form';
24
+ export type * from './copy/layout';
25
+ export type * from './copy/navigation';
26
+ export type * from './copy/shared';
27
+ export type * from './copy/utility';
128
28
  //# sourceMappingURL=copy.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"copy.d.ts","sourceRoot":"","sources":["../../src/copy.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAEH,MAAM,WAAW,qBAAqB;IACpC,iDAAiD;IACjD,KAAK,EAAE,MAAM,CAAC;IACd,yEAAyE;IACzE,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,WAAW,iBAAiB;IAChC,oDAAoD;IACpD,MAAM,EAAE,MAAM,CAAC;IACf,qEAAqE;IACrE,YAAY,EAAE,MAAM,CAAC;IACrB;;;;;OAKG;IACH,YAAY,EAAE,MAAM,CAAC;IACrB;;;;OAIG;IACH,aAAa,CAAC,QAAQ,EAAE,MAAM,GAAG,MAAM,CAAC;CACzC;AAED,MAAM,WAAW,kBAAkB;IACjC;;;;;;OAMG;IACH,OAAO,EAAE,MAAM,CAAC;IAChB,cAAc,EAAE,MAAM,CAAC;IACvB;;;;OAIG;IACH,SAAS,EAAE,MAAM,CAAC;IAClB,WAAW,EAAE,MAAM,CAAC;IACpB,SAAS,EAAE,MAAM,CAAC;IAClB,WAAW,EAAE,MAAM,CAAC;IACpB;;;;OAIG;IACH,cAAc,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAAC;IACrC,gBAAgB,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAAC;IACvC;;;;OAIG;IACH,iBAAiB,EAAE,MAAM,CAAC;IAC1B,gBAAgB,EAAE,MAAM,CAAC;IACzB,+DAA+D;IAC/D,UAAU,EAAE,MAAM,CAAC;IACnB,cAAc,EAAE,MAAM,CAAC;IACvB;;;;;;OAMG;IACH,SAAS,EAAE;QACT,KAAK,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,MAAM,CAAC;QACjC,IAAI,EAAE,MAAM,CAAC;QACb,WAAW,EAAE,MAAM,CAAC;QACpB,MAAM,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,MAAM,CAAC;KACnC,CAAC;IACF;;;;;;OAMG;IACH,+DAA+D;IAC/D,MAAM,EAAE;QACN,wEAAwE;QACxE,iBAAiB,EAAE,MAAM,CAAC;QAC1B,gBAAgB,EAAE,MAAM,CAAC;QACzB,KAAK,EAAE,MAAM,CAAC;QACd,UAAU,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAAC;QAClC,gEAAgE;QAChE,WAAW,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAAC;KACpC,CAAC;IACF,MAAM,EAAE;QACN,aAAa,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAAC;QACrC,KAAK,EAAE,MAAM,CAAC;QACd,4EAA4E;QAC5E,KAAK,EAAE,MAAM,CAAC;QACd,KAAK,EAAE,MAAM,CAAC;QACd,6DAA6D;QAC7D,UAAU,EAAE,MAAM,CAAC;QACnB,MAAM,EAAE,MAAM,CAAC;KAChB,CAAC;CACH;AAED,MAAM,WAAW,YAAY;IAC3B,OAAO,EAAE,MAAM,CAAC;IAChB,KAAK,EAAE,MAAM,CAAC;IACd,4EAA4E;IAC5E,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,WAAW,eAAe;IAC9B,0DAA0D;IAC1D,YAAY,EAAE,MAAM,CAAC;CACtB"}
1
+ {"version":3,"file":"copy.d.ts","sourceRoot":"","sources":["../../src/copy.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,mBAAmB,qBAAqB,CAAC;AACzC,mBAAmB,iBAAiB,CAAC;AACrC,mBAAmB,aAAa,CAAC;AACjC,mBAAmB,eAAe,CAAC;AACnC,mBAAmB,mBAAmB,CAAC;AACvC,mBAAmB,eAAe,CAAC;AACnC,mBAAmB,gBAAgB,CAAC"}
@@ -1,6 +1,3 @@
1
- import type { DataViewsCopy } from "./components/data-display/DataViews/data-views-copy";
2
- import type { SavedViewsLabels } from "./components/layout/ContentToolbar/ContentToolbar.types";
3
- import type { CategorySelectCopy, CepFieldCopy, ConfirmActionCopy, SectionOnboardingCopy, TableFilterCopy } from "./copy";
4
1
  /**
5
2
  * The pt-BR packs — NAMED constants a host passes by hand, never defaults.
6
3
  *
@@ -8,21 +5,21 @@ import type { CategorySelectCopy, CepFieldCopy, ConfirmActionCopy, SectionOnboar
8
5
  * Portuguese may ship, it may not be silent. Every sentence is VERBATIM what
9
6
  * the components used to render, so a host adopting these sees no change on
10
7
  * screen — what changes is that the words are chosen in a diff.
11
- */
12
- export declare const PT_BR_SECTION_ONBOARDING_COPY: SectionOnboardingCopy;
13
- export declare const PT_BR_CONFIRM_ACTION_COPY: ConfirmActionCopy;
14
- export declare const PT_BR_CATEGORY_SELECT_COPY: CategorySelectCopy;
15
- export declare const PT_BR_CEP_FIELD_COPY: CepFieldCopy;
16
- /**
17
- * The saved-views dropdown's labels.
18
8
  *
19
- * Typed as the package's OWN `SavedViewsLabels` rather than a parallel shape:
20
- * that interface already named every string, including the seven with no
21
- * diacritics the copy gate could not see (`Aplicar`, `Fixar na barra lateral`,
22
- * `Editar`…). The prop was `Partial<SavedViewsLabels>` with a pt-BR default —
23
- * configurable in the type, inherited in practice.
9
+ * A BARREL over `./pt-BR.<family>.ts`, one module per component family. It was
10
+ * one file until the port made it 471 lines against this package's own
11
+ * 400-line budget — and the single list of every pack is exactly the file that
12
+ * grows on every port. Each part keeps `pt-BR` in its own FILENAME rather than
13
+ * sitting in a `pt-BR/` folder, because the gate's exemption is a filename
14
+ * rule (`NAMED_PACK` in `scripts/lib/shipped-source.mjs`): a folder would have
15
+ * put seven files full of Portuguese back in scope. Consumers are unaffected —
16
+ * `@12-apps/ui/pt-BR` still resolves here.
24
17
  */
25
- export declare const PT_BR_SAVED_VIEWS_LABELS: SavedViewsLabels;
26
- export declare const PT_BR_TABLE_FILTER_COPY: TableFilterCopy;
27
- export declare const PT_BR_DATA_VIEWS_COPY: DataViewsCopy;
18
+ export * from './pt-BR.data-display';
19
+ export * from './pt-BR.feedback';
20
+ export * from './pt-BR.form';
21
+ export * from './pt-BR.layout';
22
+ export * from './pt-BR.navigation';
23
+ export * from './pt-BR.shared';
24
+ export * from './pt-BR.utility';
28
25
  //# sourceMappingURL=pt-BR.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"pt-BR.d.ts","sourceRoot":"","sources":["../../src/pt-BR.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,qDAAqD,CAAC;AACzF,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,yDAAyD,CAAC;AAChG,OAAO,KAAK,EACV,kBAAkB,EAClB,YAAY,EACZ,iBAAiB,EACjB,qBAAqB,EACrB,eAAe,EAChB,MAAM,QAAQ,CAAC;AAEhB;;;;;;;GAOG;AACH,eAAO,MAAM,6BAA6B,EAAE,qBAI3C,CAAC;AAEF,eAAO,MAAM,yBAAyB,EAAE,iBAKvC,CAAC;AAEF,eAAO,MAAM,0BAA0B,EAAE,kBAkCxC,CAAC;AAEF,eAAO,MAAM,oBAAoB,EAAE,YAIlC,CAAC;AAEF;;;;;;;;GAQG;AACH,eAAO,MAAM,wBAAwB,EAAE,gBAiBtC,CAAC;AAEF,eAAO,MAAM,uBAAuB,EAAE,eAErC,CAAC;AAEF,eAAO,MAAM,qBAAqB,EAAE,aA0KnC,CAAC"}
1
+ {"version":3,"file":"pt-BR.d.ts","sourceRoot":"","sources":["../../src/pt-BR.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,cAAc,sBAAsB,CAAC;AACrC,cAAc,kBAAkB,CAAC;AACjC,cAAc,cAAc,CAAC;AAC7B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,oBAAoB,CAAC;AACnC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,iBAAiB,CAAC"}
@@ -0,0 +1,13 @@
1
+ /**
2
+ * The pt-BR pack for the data-display family. Split out of `pt-BR.ts`, which is a
3
+ * barrel over this folder — see that file for why.
4
+ */
5
+ import type { DataViewsCopy } from "./components/data-display/DataViews/data-views-copy";
6
+ import type { CarouselCopy, DataStateCopy, LightboxCopy, MapPreviewCopy, TimingDiagramCopy } from './copy';
7
+ export declare const PT_BR_LIGHTBOX_COPY: LightboxCopy;
8
+ export declare const PT_BR_MAP_PREVIEW_COPY: MapPreviewCopy;
9
+ export declare const PT_BR_CAROUSEL_COPY: CarouselCopy;
10
+ export declare const PT_BR_TIMING_DIAGRAM_COPY: TimingDiagramCopy;
11
+ export declare const PT_BR_DATA_STATE_COPY: DataStateCopy;
12
+ export declare const PT_BR_DATA_VIEWS_COPY: DataViewsCopy;
13
+ //# sourceMappingURL=pt-BR.data-display.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pt-BR.data-display.d.ts","sourceRoot":"","sources":["../../src/pt-BR.data-display.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,qDAAqD,CAAC;AACzF,OAAO,KAAK,EACV,YAAY,EACZ,aAAa,EACb,YAAY,EACZ,cAAc,EACd,iBAAiB,EAClB,MAAM,QAAQ,CAAC;AAQhB,eAAO,MAAM,mBAAmB,EAAE,YASjC,CAAC;AAEF,eAAO,MAAM,sBAAsB,EAAE,cAOpC,CAAC;AAEF,eAAO,MAAM,mBAAmB,EAAE,YAGjC,CAAC;AAEF,eAAO,MAAM,yBAAyB,EAAE,iBAGvC,CAAC;AAEF,eAAO,MAAM,qBAAqB,EAAE,aAMnC,CAAC;AAEF,eAAO,MAAM,qBAAqB,EAAE,aAkLnC,CAAC"}
@@ -0,0 +1,8 @@
1
+ /**
2
+ * The pt-BR pack for the feedback family. Split out of `pt-BR.ts`, which is a
3
+ * barrel over this folder — see that file for why.
4
+ */
5
+ import type { ChromeCopy, TutorialCopy } from './copy';
6
+ export declare const PT_BR_TUTORIAL_COPY: TutorialCopy;
7
+ export declare const PT_BR_CHROME_COPY: ChromeCopy;
8
+ //# sourceMappingURL=pt-BR.feedback.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pt-BR.feedback.d.ts","sourceRoot":"","sources":["../../src/pt-BR.feedback.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,OAAO,KAAK,EACV,UAAU,EACV,YAAY,EACb,MAAM,QAAQ,CAAC;AAEhB,eAAO,MAAM,mBAAmB,EAAE,YAKjC,CAAC;AAEF,eAAO,MAAM,iBAAiB,EAAE,UAQ/B,CAAC"}
@@ -0,0 +1,13 @@
1
+ /**
2
+ * The pt-BR pack for the form family. Split out of `pt-BR.ts`, which is a
3
+ * barrel over this folder — see that file for why.
4
+ */
5
+ import type { AddressAutocompleteCopy, AutocompleteCopy, CodeEditorCopy, PasswordStrengthCopy, PhoneInputCopy, RichEditorToolbarCopy, UploadButtonCopy } from './copy';
6
+ export declare const PT_BR_ADDRESS_AUTOCOMPLETE_COPY: AddressAutocompleteCopy;
7
+ export declare const PT_BR_AUTOCOMPLETE_COPY: AutocompleteCopy;
8
+ export declare const PT_BR_CODE_EDITOR_COPY: CodeEditorCopy;
9
+ export declare const PT_BR_PASSWORD_STRENGTH_COPY: PasswordStrengthCopy;
10
+ export declare const PT_BR_RICH_EDITOR_TOOLBAR_COPY: RichEditorToolbarCopy;
11
+ export declare const PT_BR_PHONE_INPUT_COPY: PhoneInputCopy;
12
+ export declare const PT_BR_UPLOAD_BUTTON_COPY: UploadButtonCopy;
13
+ //# sourceMappingURL=pt-BR.form.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pt-BR.form.d.ts","sourceRoot":"","sources":["../../src/pt-BR.form.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,OAAO,KAAK,EACV,uBAAuB,EACvB,gBAAgB,EAChB,cAAc,EACd,oBAAoB,EACpB,cAAc,EACd,qBAAqB,EACrB,gBAAgB,EACjB,MAAM,QAAQ,CAAC;AAEhB,eAAO,MAAM,+BAA+B,EAAE,uBAK7C,CAAC;AAEF,eAAO,MAAM,uBAAuB,EAAE,gBAIrC,CAAC;AAEF,eAAO,MAAM,sBAAsB,EAAE,cAUpC,CAAC;AAEF,eAAO,MAAM,4BAA4B,EAAE,oBAyB1C,CAAC;AAEF,eAAO,MAAM,8BAA8B,EAAE,qBAY5C,CAAC;AAEF,eAAO,MAAM,sBAAsB,EAAE,cAIpC,CAAC;AAEF,eAAO,MAAM,wBAAwB,EAAE,gBAStC,CAAC"}
@@ -0,0 +1,7 @@
1
+ /**
2
+ * The pt-BR pack for the layout family. Split out of `pt-BR.ts`, which is a
3
+ * barrel over this folder — see that file for why.
4
+ */
5
+ import type { TableFilterCopy } from './copy';
6
+ export declare const PT_BR_TABLE_FILTER_COPY: TableFilterCopy;
7
+ //# sourceMappingURL=pt-BR.layout.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pt-BR.layout.d.ts","sourceRoot":"","sources":["../../src/pt-BR.layout.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,OAAO,KAAK,EACV,eAAe,EAChB,MAAM,QAAQ,CAAC;AAEhB,eAAO,MAAM,uBAAuB,EAAE,eAMrC,CAAC"}
@@ -0,0 +1,8 @@
1
+ /**
2
+ * The pt-BR pack for the navigation family. Split out of `pt-BR.ts`, which is a
3
+ * barrel over this folder — see that file for why.
4
+ */
5
+ import type { BreadcrumbCopy, CommandPaletteCopy } from './copy';
6
+ export declare const PT_BR_COMMAND_PALETTE_COPY: CommandPaletteCopy;
7
+ export declare const PT_BR_BREADCRUMB_COPY: BreadcrumbCopy;
8
+ //# sourceMappingURL=pt-BR.navigation.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pt-BR.navigation.d.ts","sourceRoot":"","sources":["../../src/pt-BR.navigation.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,OAAO,KAAK,EACV,cAAc,EACd,kBAAkB,EACnB,MAAM,QAAQ,CAAC;AAEhB,eAAO,MAAM,0BAA0B,EAAE,kBAMxC,CAAC;AAEF,eAAO,MAAM,qBAAqB,EAAE,cAGnC,CAAC"}
@@ -0,0 +1,21 @@
1
+ /**
2
+ * The pt-BR pack for the shared family. Split out of `pt-BR.ts`, which is a
3
+ * barrel over this folder — see that file for why.
4
+ */
5
+ import type { SavedViewsLabels } from "./components/layout/ContentToolbar/ContentToolbar.types";
6
+ import type { CategorySelectCopy, CepFieldCopy, ConfirmActionCopy, SectionOnboardingCopy } from './copy';
7
+ export declare const PT_BR_SECTION_ONBOARDING_COPY: SectionOnboardingCopy;
8
+ export declare const PT_BR_CONFIRM_ACTION_COPY: ConfirmActionCopy;
9
+ export declare const PT_BR_CATEGORY_SELECT_COPY: CategorySelectCopy;
10
+ export declare const PT_BR_CEP_FIELD_COPY: CepFieldCopy;
11
+ /**
12
+ * The saved-views dropdown's labels.
13
+ *
14
+ * Typed as the package's OWN `SavedViewsLabels` rather than a parallel shape:
15
+ * that interface already named every string, including the seven with no
16
+ * diacritics the copy gate could not see (`Aplicar`, `Fixar na barra lateral`,
17
+ * `Editar`…). The prop was `Partial<SavedViewsLabels>` with a pt-BR default —
18
+ * configurable in the type, inherited in practice.
19
+ */
20
+ export declare const PT_BR_SAVED_VIEWS_LABELS: SavedViewsLabels;
21
+ //# sourceMappingURL=pt-BR.shared.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pt-BR.shared.d.ts","sourceRoot":"","sources":["../../src/pt-BR.shared.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,yDAAyD,CAAC;AAChG,OAAO,KAAK,EACV,kBAAkB,EAClB,YAAY,EACZ,iBAAiB,EACjB,qBAAqB,EACtB,MAAM,QAAQ,CAAC;AAEhB,eAAO,MAAM,6BAA6B,EAAE,qBAI3C,CAAC;AAEF,eAAO,MAAM,yBAAyB,EAAE,iBAKvC,CAAC;AAEF,eAAO,MAAM,0BAA0B,EAAE,kBAkCxC,CAAC;AAEF,eAAO,MAAM,oBAAoB,EAAE,YAIlC,CAAC;AAEF;;;;;;;;GAQG;AACH,eAAO,MAAM,wBAAwB,EAAE,gBAiBtC,CAAC"}
@@ -0,0 +1,8 @@
1
+ /**
2
+ * The pt-BR pack for the utility family. Split out of `pt-BR.ts`, which is a
3
+ * barrel over this folder — see that file for why.
4
+ */
5
+ import type { InstallPromptCopy, UserAvatarCopy } from './copy';
6
+ export declare const PT_BR_INSTALL_PROMPT_COPY: InstallPromptCopy;
7
+ export declare const PT_BR_USER_AVATAR_COPY: UserAvatarCopy;
8
+ //# sourceMappingURL=pt-BR.utility.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pt-BR.utility.d.ts","sourceRoot":"","sources":["../../src/pt-BR.utility.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,OAAO,KAAK,EACV,iBAAiB,EACjB,cAAc,EACf,MAAM,QAAQ,CAAC;AAEhB,eAAO,MAAM,yBAAyB,EAAE,iBAOvC,CAAC;AAEF,eAAO,MAAM,sBAAsB,EAAE,cAEpC,CAAC"}
@@ -1,4 +1,5 @@
1
1
  import * as React from 'react';
2
+ import type { UserAvatarCopy } from '../copy';
2
3
  export interface UserAvatarProps {
3
4
  src?: string | null;
4
5
  name?: string | null;
@@ -17,9 +18,14 @@ export interface UserMenuProps {
17
18
  image?: string | null;
18
19
  };
19
20
  onSignOut: () => void;
21
+ /**
22
+ * The card's one action. REQUIRED: this package ships no default copy, and
23
+ * the button is the only thing on this card a host does not already supply.
24
+ */
25
+ copy: UserAvatarCopy;
20
26
  }
21
27
  /**
22
28
  * User menu with avatar, info, and sign out button
23
29
  */
24
- export declare function UserMenu({ user, onSignOut }: UserMenuProps): React.ReactElement;
30
+ export declare function UserMenu({ user, onSignOut, copy }: UserMenuProps): React.ReactElement;
25
31
  //# sourceMappingURL=user-avatar.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"user-avatar.d.ts","sourceRoot":"","sources":["../../../src/user-avatar/user-avatar.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAoB/B,MAAM,WAAW,eAAe;IAC9B,GAAG,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACpB,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,IAAI,CAAC,EAAE,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;IACxC,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,WAAW,CAAC,EAAE,OAAO,CAAC;CACvB;AAED;;GAEG;AACH,wBAAgB,UAAU,CAAC,EACzB,GAAG,EACH,IAAI,EACJ,IAAW,EACX,OAAO,EACP,WAAmB,GACpB,EAAE,eAAe,GAAG,KAAK,CAAC,YAAY,CActC;AAED,MAAM,WAAW,aAAa;IAC5B,IAAI,EAAE;QACJ,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;QACrB,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;QACtB,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;KACvB,CAAC;IACF,SAAS,EAAE,MAAM,IAAI,CAAC;CACvB;AAED;;GAEG;AACH,wBAAgB,QAAQ,CAAC,EAAE,IAAI,EAAE,SAAS,EAAE,EAAE,aAAa,GAAG,KAAK,CAAC,YAAY,CAkC/E"}
1
+ {"version":3,"file":"user-avatar.d.ts","sourceRoot":"","sources":["../../../src/user-avatar/user-avatar.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAM/B,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAe9C,MAAM,WAAW,eAAe;IAC9B,GAAG,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACpB,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,IAAI,CAAC,EAAE,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;IACxC,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,WAAW,CAAC,EAAE,OAAO,CAAC;CACvB;AAED;;GAEG;AACH,wBAAgB,UAAU,CAAC,EACzB,GAAG,EACH,IAAI,EACJ,IAAW,EACX,OAAO,EACP,WAAmB,GACpB,EAAE,eAAe,GAAG,KAAK,CAAC,YAAY,CActC;AAED,MAAM,WAAW,aAAa;IAC5B,IAAI,EAAE;QACJ,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;QACrB,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;QACtB,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;KACvB,CAAC;IACF,SAAS,EAAE,MAAM,IAAI,CAAC;IACtB;;;OAGG;IACH,IAAI,EAAE,cAAc,CAAC;CACtB;AAED;;GAEG;AACH,wBAAgB,QAAQ,CAAC,EAAE,IAAI,EAAE,SAAS,EAAE,IAAI,EAAE,EAAE,aAAa,GAAG,KAAK,CAAC,YAAY,CAkCrF"}
@@ -45,7 +45,7 @@ function UserAvatar({
45
45
  }
46
46
  );
47
47
  }
48
- function UserMenu({ user, onSignOut }) {
48
+ function UserMenu({ user, onSignOut, copy }) {
49
49
  return /* @__PURE__ */ jsx(Card, { variant: "elevated", borderRadius: "md", children: /* @__PURE__ */ jsx(Box, { sx: { p: 2 }, children: /* @__PURE__ */ jsxs(Stack, { direction: "row", spacing: 2, alignItems: "center", children: [
50
50
  /* @__PURE__ */ jsx(
51
51
  UserAvatar,
@@ -66,7 +66,7 @@ function UserMenu({ user, onSignOut }) {
66
66
  color: "danger",
67
67
  size: "sm",
68
68
  onClick: onSignOut,
69
- children: "Sign out"
69
+ children: copy.signOut
70
70
  }
71
71
  )
72
72
  ] }) }) });
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/user-avatar/user-avatar.tsx"],"sourcesContent":["\"use client\";\n\nimport * as React from 'react';\nimport { Box, Stack } from '@mui/material';\nimport { Avatar } from '../components/data-display/Avatar';\nimport { Button } from '../components/form/Button';\nimport { Text } from '../components/typography/Text';\nimport { Card } from '../components/layout/Card';\n\n/**\n * Generate initials from a name\n */\nfunction getInitials(name: string): string {\n const parts = name.trim().split(/\\s+/);\n if (parts.length === 1) {\n return parts[0]?.substring(0, 2).toUpperCase() ?? \"\";\n }\n return (\n (parts[0]?.charAt(0) ?? \"\") + (parts[parts.length - 1]?.charAt(0) ?? \"\")\n ).toUpperCase();\n}\n\nexport interface UserAvatarProps {\n src?: string | null;\n name?: string | null;\n size?: 'xs' | 'sm' | 'md' | 'lg' | 'xl';\n onClick?: () => void;\n interactive?: boolean;\n}\n\n/**\n * User avatar using UI package Avatar component\n */\nexport function UserAvatar({\n src,\n name,\n size = 'md',\n onClick,\n interactive = false,\n}: UserAvatarProps): React.ReactElement {\n const fallbackText = name ? getInitials(name) : \"?\";\n\n return (\n <Avatar\n src={src ?? undefined}\n alt={name ?? \"User avatar\"}\n fallback={fallbackText}\n size={size}\n variant=\"circle\"\n interactive={interactive || !!onClick}\n onClick={onClick}\n />\n );\n}\n\nexport interface UserMenuProps {\n user: {\n name?: string | null;\n email?: string | null;\n image?: string | null;\n };\n onSignOut: () => void;\n}\n\n/**\n * User menu with avatar, info, and sign out button\n */\nexport function UserMenu({ user, onSignOut }: UserMenuProps): React.ReactElement {\n return (\n <Card variant=\"elevated\" borderRadius=\"md\">\n <Box sx={{ p: 2 }}>\n <Stack direction=\"row\" spacing={2} alignItems=\"center\">\n <UserAvatar\n src={user.image}\n name={user.name}\n size=\"md\"\n />\n\n <Stack spacing={0.5} sx={{ flex: 1, minWidth: 0 }}>\n <Text weight=\"semibold\" size=\"sm\">\n {user.name ?? \"User\"}\n </Text>\n {user.email && (\n <Text color=\"secondary\" size=\"xs\">\n {user.email}\n </Text>\n )}\n </Stack>\n\n <Button\n variant=\"outline\"\n color=\"danger\"\n size=\"sm\"\n onClick={onSignOut}\n >\n Sign out\n </Button>\n </Stack>\n </Box>\n </Card>\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;;;AAGA,SAAS,KAAK,aAAa;AAwCvB,cAmCM,YAnCN;AA/BJ,SAAS,YAAY,MAAsB;AACzC,QAAM,QAAQ,KAAK,KAAK,EAAE,MAAM,KAAK;AACrC,MAAI,MAAM,WAAW,GAAG;AACtB,WAAO,MAAM,CAAC,GAAG,UAAU,GAAG,CAAC,EAAE,YAAY,KAAK;AAAA,EACpD;AACA,WACG,MAAM,CAAC,GAAG,OAAO,CAAC,KAAK,OAAO,MAAM,MAAM,SAAS,CAAC,GAAG,OAAO,CAAC,KAAK,KACrE,YAAY;AAChB;AAaO,SAAS,WAAW;AAAA,EACzB;AAAA,EACA;AAAA,EACA,OAAO;AAAA,EACP;AAAA,EACA,cAAc;AAChB,GAAwC;AACtC,QAAM,eAAe,OAAO,YAAY,IAAI,IAAI;AAEhD,SACE;AAAA,IAAC;AAAA;AAAA,MACC,KAAK,OAAO;AAAA,MACZ,KAAK,QAAQ;AAAA,MACb,UAAU;AAAA,MACV;AAAA,MACA,SAAQ;AAAA,MACR,aAAa,eAAe,CAAC,CAAC;AAAA,MAC9B;AAAA;AAAA,EACF;AAEJ;AAcO,SAAS,SAAS,EAAE,MAAM,UAAU,GAAsC;AAC/E,SACE,oBAAC,QAAK,SAAQ,YAAW,cAAa,MACpC,8BAAC,OAAI,IAAI,EAAE,GAAG,EAAE,GACd,+BAAC,SAAM,WAAU,OAAM,SAAS,GAAG,YAAW,UAC5C;AAAA;AAAA,MAAC;AAAA;AAAA,QACC,KAAK,KAAK;AAAA,QACV,MAAM,KAAK;AAAA,QACX,MAAK;AAAA;AAAA,IACP;AAAA,IAEA,qBAAC,SAAM,SAAS,KAAK,IAAI,EAAE,MAAM,GAAG,UAAU,EAAE,GAC9C;AAAA,0BAAC,QAAK,QAAO,YAAW,MAAK,MAC1B,eAAK,QAAQ,QAChB;AAAA,MACC,KAAK,SACJ,oBAAC,QAAK,OAAM,aAAY,MAAK,MAC1B,eAAK,OACR;AAAA,OAEJ;AAAA,IAEA;AAAA,MAAC;AAAA;AAAA,QACC,SAAQ;AAAA,QACR,OAAM;AAAA,QACN,MAAK;AAAA,QACL,SAAS;AAAA,QACV;AAAA;AAAA,IAED;AAAA,KACF,GACF,GACF;AAEJ;","names":[]}
1
+ {"version":3,"sources":["../src/user-avatar/user-avatar.tsx"],"sourcesContent":["\"use client\";\n\nimport * as React from 'react';\nimport { Box, Stack } from '@mui/material';\nimport { Avatar } from '../components/data-display/Avatar';\nimport { Button } from '../components/form/Button';\nimport { Text } from '../components/typography/Text';\nimport { Card } from '../components/layout/Card';\nimport type { UserAvatarCopy } from '../copy';\n\n/**\n * Generate initials from a name\n */\nfunction getInitials(name: string): string {\n const parts = name.trim().split(/\\s+/);\n if (parts.length === 1) {\n return parts[0]?.substring(0, 2).toUpperCase() ?? \"\";\n }\n return (\n (parts[0]?.charAt(0) ?? \"\") + (parts[parts.length - 1]?.charAt(0) ?? \"\")\n ).toUpperCase();\n}\n\nexport interface UserAvatarProps {\n src?: string | null;\n name?: string | null;\n size?: 'xs' | 'sm' | 'md' | 'lg' | 'xl';\n onClick?: () => void;\n interactive?: boolean;\n}\n\n/**\n * User avatar using UI package Avatar component\n */\nexport function UserAvatar({\n src,\n name,\n size = 'md',\n onClick,\n interactive = false,\n}: UserAvatarProps): React.ReactElement {\n const fallbackText = name ? getInitials(name) : \"?\";\n\n return (\n <Avatar\n src={src ?? undefined}\n alt={name ?? \"User avatar\"}\n fallback={fallbackText}\n size={size}\n variant=\"circle\"\n interactive={interactive || !!onClick}\n onClick={onClick}\n />\n );\n}\n\nexport interface UserMenuProps {\n user: {\n name?: string | null;\n email?: string | null;\n image?: string | null;\n };\n onSignOut: () => void;\n /**\n * The card's one action. REQUIRED: this package ships no default copy, and\n * the button is the only thing on this card a host does not already supply.\n */\n copy: UserAvatarCopy;\n}\n\n/**\n * User menu with avatar, info, and sign out button\n */\nexport function UserMenu({ user, onSignOut, copy }: UserMenuProps): React.ReactElement {\n return (\n <Card variant=\"elevated\" borderRadius=\"md\">\n <Box sx={{ p: 2 }}>\n <Stack direction=\"row\" spacing={2} alignItems=\"center\">\n <UserAvatar\n src={user.image}\n name={user.name}\n size=\"md\"\n />\n\n <Stack spacing={0.5} sx={{ flex: 1, minWidth: 0 }}>\n <Text weight=\"semibold\" size=\"sm\">\n {user.name ?? \"User\"}\n </Text>\n {user.email && (\n <Text color=\"secondary\" size=\"xs\">\n {user.email}\n </Text>\n )}\n </Stack>\n\n <Button\n variant=\"outline\"\n color=\"danger\"\n size=\"sm\"\n onClick={onSignOut}\n >\n {copy.signOut}\n </Button>\n </Stack>\n </Box>\n </Card>\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;;;AAGA,SAAS,KAAK,aAAa;AAyCvB,cAwCM,YAxCN;AA/BJ,SAAS,YAAY,MAAsB;AACzC,QAAM,QAAQ,KAAK,KAAK,EAAE,MAAM,KAAK;AACrC,MAAI,MAAM,WAAW,GAAG;AACtB,WAAO,MAAM,CAAC,GAAG,UAAU,GAAG,CAAC,EAAE,YAAY,KAAK;AAAA,EACpD;AACA,WACG,MAAM,CAAC,GAAG,OAAO,CAAC,KAAK,OAAO,MAAM,MAAM,SAAS,CAAC,GAAG,OAAO,CAAC,KAAK,KACrE,YAAY;AAChB;AAaO,SAAS,WAAW;AAAA,EACzB;AAAA,EACA;AAAA,EACA,OAAO;AAAA,EACP;AAAA,EACA,cAAc;AAChB,GAAwC;AACtC,QAAM,eAAe,OAAO,YAAY,IAAI,IAAI;AAEhD,SACE;AAAA,IAAC;AAAA;AAAA,MACC,KAAK,OAAO;AAAA,MACZ,KAAK,QAAQ;AAAA,MACb,UAAU;AAAA,MACV;AAAA,MACA,SAAQ;AAAA,MACR,aAAa,eAAe,CAAC,CAAC;AAAA,MAC9B;AAAA;AAAA,EACF;AAEJ;AAmBO,SAAS,SAAS,EAAE,MAAM,WAAW,KAAK,GAAsC;AACrF,SACE,oBAAC,QAAK,SAAQ,YAAW,cAAa,MACpC,8BAAC,OAAI,IAAI,EAAE,GAAG,EAAE,GACd,+BAAC,SAAM,WAAU,OAAM,SAAS,GAAG,YAAW,UAC5C;AAAA;AAAA,MAAC;AAAA;AAAA,QACC,KAAK,KAAK;AAAA,QACV,MAAM,KAAK;AAAA,QACX,MAAK;AAAA;AAAA,IACP;AAAA,IAEA,qBAAC,SAAM,SAAS,KAAK,IAAI,EAAE,MAAM,GAAG,UAAU,EAAE,GAC9C;AAAA,0BAAC,QAAK,QAAO,YAAW,MAAK,MAC1B,eAAK,QAAQ,QAChB;AAAA,MACC,KAAK,SACJ,oBAAC,QAAK,OAAM,aAAY,MAAK,MAC1B,eAAK,OACR;AAAA,OAEJ;AAAA,IAEA;AAAA,MAAC;AAAA;AAAA,QACC,SAAQ;AAAA,QACR,OAAM;AAAA,QACN,MAAK;AAAA,QACL,SAAS;AAAA,QAER,eAAK;AAAA;AAAA,IACR;AAAA,KACF,GACF,GACF;AAEJ;","names":[]}
@@ -85,11 +85,11 @@ var CENTERED = {
85
85
  alignItems: "center",
86
86
  p: 2
87
87
  };
88
- var DefaultLoader = () => /* @__PURE__ */ jsxs(Box, { sx: CENTERED, children: [
88
+ var DefaultLoader = ({ loadingText }) => /* @__PURE__ */ jsxs(Box, { sx: CENTERED, children: [
89
89
  /* @__PURE__ */ jsx(CircularProgress, { size: 24 }),
90
- /* @__PURE__ */ jsx(Typography, { variant: "body2", sx: { ml: 1 }, children: "Loading..." })
90
+ /* @__PURE__ */ jsx(Typography, { variant: "body2", sx: { ml: 1 }, children: loadingText })
91
91
  ] });
92
- var DefaultEndMessage = () => /* @__PURE__ */ jsx(Box, { sx: CENTERED, children: /* @__PURE__ */ jsx(Typography, { variant: "body2", color: "text.secondary", children: "No more items to load" }) });
92
+ var DefaultEndMessage = ({ endText }) => /* @__PURE__ */ jsx(Box, { sx: CENTERED, children: /* @__PURE__ */ jsx(Typography, { variant: "body2", color: "text.secondary", children: endText }) });
93
93
  var DefaultError = ({ error }) => /* @__PURE__ */ jsx(Alert, { severity: "error", sx: { m: 2 }, children: error.message || "An error occurred while loading more items" });
94
94
  var containerStyles = (variant, width) => {
95
95
  const horizontal = variant === "horizontal";
@@ -114,6 +114,8 @@ var InfiniteScroll = ({
114
114
  threshold = 150,
115
115
  loadMore,
116
116
  loader,
117
+ loadingText,
118
+ endText,
117
119
  endMessage,
118
120
  error,
119
121
  errorComponent,
@@ -137,9 +139,9 @@ var InfiniteScroll = ({
137
139
  testTriggerRef
138
140
  });
139
141
  const renderSentinel = () => {
140
- if (!hasMore) return endMessage || /* @__PURE__ */ jsx2(DefaultEndMessage, {});
142
+ if (!hasMore) return endMessage || /* @__PURE__ */ jsx2(DefaultEndMessage, { endText });
141
143
  if (error) return errorComponent || /* @__PURE__ */ jsx2(DefaultError, { error });
142
- if (loading) return loader || /* @__PURE__ */ jsx2(DefaultLoader, {});
144
+ if (loading) return loader || /* @__PURE__ */ jsx2(DefaultLoader, { loadingText });
143
145
  return /* @__PURE__ */ jsx2(
144
146
  "div",
145
147
  {