@12-apps/ui 6.30.1 → 6.30.3

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 (661) hide show
  1. package/NATIVE.md +1 -1
  2. package/components-catalog.md +43 -5
  3. package/dist/_internal/components/data-display/Alert/Alert.js +4 -4
  4. package/dist/_internal/components/data-display/Alert/Alert.metrics.js +2 -2
  5. package/dist/_internal/components/data-display/Alert/Alert.styles.js +3 -3
  6. package/dist/_internal/components/data-display/Avatar/Avatar.js +5 -5
  7. package/dist/_internal/components/data-display/Avatar/Avatar.view.js +3 -3
  8. package/dist/_internal/components/data-display/Badge/Badge.animations.js +2 -2
  9. package/dist/_internal/components/data-display/Badge/Badge.js +6 -6
  10. package/dist/_internal/components/data-display/Badge/Badge.metrics.js +2 -2
  11. package/dist/_internal/components/data-display/Badge/Badge.styles.js +3 -3
  12. package/dist/_internal/components/data-display/Badge/Badge.variants.js +2 -2
  13. package/dist/_internal/components/data-display/Badge/BadgeContent.js +4 -4
  14. package/dist/_internal/components/data-display/Banner/Banner.js +2 -2
  15. package/dist/_internal/components/data-display/Banner/Banner.styles.js +2 -2
  16. package/dist/_internal/components/data-display/CardKit/CardKebab.js +6 -6
  17. package/dist/_internal/components/data-display/CardKit/card-actions-context.js +5 -5
  18. package/dist/_internal/components/data-display/CardKit/use-remove-confirm.js +11 -11
  19. package/dist/_internal/components/data-display/CardKit/use-row-confirm.js +7 -7
  20. package/dist/_internal/components/data-display/Carousel/Carousel.chrome.js +2 -2
  21. package/dist/_internal/components/data-display/Carousel/Carousel.js +5 -5
  22. package/dist/_internal/components/data-display/Carousel/Carousel.parts.js +2 -2
  23. package/dist/_internal/components/data-display/Carousel/Carousel.styles.js +2 -2
  24. package/dist/_internal/components/data-display/Chart/Chart.js +6 -6
  25. package/dist/_internal/components/data-display/Chart/SpecChart.js +9 -9
  26. package/dist/_internal/components/data-display/Chart/chart-context.js +4 -4
  27. package/dist/_internal/components/data-display/Chart/chart-internals.js +2 -2
  28. package/dist/_internal/components/data-display/Chart/chart-renderers.js +5 -5
  29. package/dist/_internal/components/data-display/DataViews/DataViewsBoard.js +5 -5
  30. package/dist/_internal/components/data-display/DataViews/DataViewsGrid.js +52 -52
  31. package/dist/_internal/components/data-display/DataViews/DataViewsTableBase.js +68 -68
  32. package/dist/_internal/components/data-display/DataViews/DeleteViewDialog.js +8 -8
  33. package/dist/_internal/components/data-display/DataViews/ManageViewsDialog.js +10 -10
  34. package/dist/_internal/components/data-display/DataViews/SaveViewModal.js +13 -13
  35. package/dist/_internal/components/data-display/DataViews/base-card.js +7 -7
  36. package/dist/_internal/components/data-display/DataViews/base-list-card-geometry.js +10 -10
  37. package/dist/_internal/components/data-display/DataViews/base-list-card-gutters.js +4 -4
  38. package/dist/_internal/components/data-display/DataViews/base-list-card-slots.js +9 -9
  39. package/dist/_internal/components/data-display/DataViews/base-list-card.js +14 -14
  40. package/dist/_internal/components/data-display/DataViews/card-surface.js +2 -2
  41. package/dist/_internal/components/data-display/DataViews/data-views-category-pill.js +11 -11
  42. package/dist/_internal/components/data-display/DataViews/data-views-columns-tab.js +5 -5
  43. package/dist/_internal/components/data-display/DataViews/data-views-columns.js +7 -7
  44. package/dist/_internal/components/data-display/DataViews/data-views-display-panel.js +13 -13
  45. package/dist/_internal/components/data-display/DataViews/data-views-display-tabs.js +7 -7
  46. package/dist/_internal/components/data-display/DataViews/data-views-empty.js +8 -8
  47. package/dist/_internal/components/data-display/DataViews/data-views-export.js +8 -8
  48. package/dist/_internal/components/data-display/DataViews/data-views-filter-panel.js +12 -12
  49. package/dist/_internal/components/data-display/DataViews/data-views-grid-bodies.js +14 -14
  50. package/dist/_internal/components/data-display/DataViews/data-views-grid-helpers.js +6 -6
  51. package/dist/_internal/components/data-display/DataViews/data-views-grid-parts.js +49 -49
  52. package/dist/_internal/components/data-display/DataViews/data-views-header-row.js +5 -5
  53. package/dist/_internal/components/data-display/DataViews/data-views-inline-bar.js +21 -21
  54. package/dist/_internal/components/data-display/DataViews/data-views-layout-context.js +2 -2
  55. package/dist/_internal/components/data-display/DataViews/data-views-more-fields.js +29 -6
  56. package/dist/_internal/components/data-display/DataViews/data-views-more-filters.js +33 -10
  57. package/dist/_internal/components/data-display/DataViews/data-views-overflow.js +1 -1
  58. package/dist/_internal/components/data-display/DataViews/data-views-pagination.js +3 -3
  59. package/dist/_internal/components/data-display/DataViews/data-views-scope-tabs.js +3 -3
  60. package/dist/_internal/components/data-display/DataViews/data-views-select-all-strip.js +8 -8
  61. package/dist/_internal/components/data-display/DataViews/data-views-shell-toolbar.js +18 -18
  62. package/dist/_internal/components/data-display/DataViews/data-views-table-parts.js +20 -20
  63. package/dist/_internal/components/data-display/DataViews/data-views-toolbar.js +17 -17
  64. package/dist/_internal/components/data-display/DataViews/data-views-view-nav.js +8 -8
  65. package/dist/_internal/components/data-display/DataViews/list-card-rails.js +3 -3
  66. package/dist/_internal/components/data-display/DataViews/save-view-preview.js +5 -5
  67. package/dist/_internal/components/data-display/DataViews/use-data-views-state.js +9 -9
  68. package/dist/_internal/components/data-display/DataViews/use-saved-views-controller.js +2 -2
  69. package/dist/_internal/components/data-display/DescriptionItem/DescriptionItem.js +5 -5
  70. package/dist/_internal/components/data-display/FleetMap/FleetBody.js +11 -11
  71. package/dist/_internal/components/data-display/FleetMap/FleetCanvas.js +10 -10
  72. package/dist/_internal/components/data-display/FleetMap/FleetMap.fixtures.js +2 -2
  73. package/dist/_internal/components/data-display/FleetMap/FleetMap.js +15 -15
  74. package/dist/_internal/components/data-display/HoverCard/HoverCard.js +2 -2
  75. package/dist/_internal/components/data-display/Lightbox/Lightbox.js +3 -3
  76. package/dist/_internal/components/data-display/MapPreview/MapDecorations.js +2 -2
  77. package/dist/_internal/components/data-display/MapPreview/MapLayers.js +2 -2
  78. package/dist/_internal/components/data-display/MapPreview/MapPreview.hooks.js +2 -2
  79. package/dist/_internal/components/data-display/MapPreview/MapPreview.js +9 -9
  80. package/dist/_internal/components/data-display/MapPreview/MapTiles.js +2 -2
  81. package/dist/_internal/components/data-display/MapPreview/StaticMapView.js +4 -4
  82. package/dist/_internal/components/data-display/MapPreview/useMapPreview.js +3 -3
  83. package/dist/_internal/components/data-display/Progress/Progress.js +5 -5
  84. package/dist/_internal/components/data-display/Progress/Progress.metrics.js +3 -3
  85. package/dist/_internal/components/data-display/Progress/Progress.styles.js +4 -4
  86. package/dist/_internal/components/data-display/Sheet/Sheet.body.js +2 -2
  87. package/dist/_internal/components/data-display/Sheet/Sheet.hooks.js +2 -2
  88. package/dist/_internal/components/data-display/Sheet/Sheet.js +5 -5
  89. package/dist/_internal/components/data-display/Sheet/Sheet.styles.js +2 -2
  90. package/dist/_internal/components/data-display/Table/Table.js +3 -3
  91. package/dist/_internal/components/data-display/index.js +57 -57
  92. package/dist/_internal/components/feedback/ConfirmAction/ConfirmButton.js +6 -6
  93. package/dist/_internal/components/feedback/Modal/Modal.js +2 -2
  94. package/dist/_internal/components/feedback/NotificationStatusNotice/NotificationStatusNotice.js +8 -8
  95. package/dist/_internal/components/feedback/index.js +14 -14
  96. package/dist/_internal/components/form/AddressAutocomplete/AddressAutocomplete.js +5 -5
  97. package/dist/_internal/components/form/AddressAutocomplete/AddressAutocompleteField.js +3 -3
  98. package/dist/_internal/components/form/Autocomplete/Autocomplete.js +1 -1
  99. package/dist/_internal/components/form/Button/Button.js +5 -5
  100. package/dist/_internal/components/form/Button/Button.styles.js +3 -3
  101. package/dist/_internal/components/form/Calendar/Calendar.js +4 -4
  102. package/dist/_internal/components/form/Calendar/CalendarDayCell.js +2 -2
  103. package/dist/_internal/components/form/Calendar/CalendarMonth.js +3 -3
  104. package/dist/_internal/components/form/CategorySelect/CategoryPanel.js +5 -5
  105. package/dist/_internal/components/form/CategorySelect/CategoryPanelList.js +3 -3
  106. package/dist/_internal/components/form/CategorySelect/CategoryRows.js +2 -2
  107. package/dist/_internal/components/form/CategorySelect/CategorySelect.js +9 -9
  108. package/dist/_internal/components/form/CepField/CepField.js +2 -2
  109. package/dist/_internal/components/form/Checkbox/Checkbox.js +3 -3
  110. package/dist/_internal/components/form/CodeEditor/CodeEditor.js +1 -1
  111. package/dist/_internal/components/form/Command/Command.js +2 -2
  112. package/dist/_internal/components/form/Command/Command.styles.js +2 -2
  113. package/dist/_internal/components/form/DateRangePicker/DateRangePicker.js +7 -7
  114. package/dist/_internal/components/form/Input/Input.js +1 -1
  115. package/dist/_internal/components/form/InputOTP/InputOTP.js +2 -2
  116. package/dist/_internal/components/form/Label/Label.js +2 -2
  117. package/dist/_internal/components/form/Label/Label.styles.js +2 -2
  118. package/dist/_internal/components/form/Menubar/Menubar.item.js +2 -2
  119. package/dist/_internal/components/form/Menubar/Menubar.js +2 -2
  120. package/dist/_internal/components/form/Menubar/Menubar.styles.js +2 -2
  121. package/dist/_internal/components/form/Menubar/Menubar.toolbar.js +2 -2
  122. package/dist/_internal/components/form/NumberField/NumberField.helpers.js +20 -0
  123. package/dist/_internal/components/form/NumberField/NumberField.js +21 -0
  124. package/dist/_internal/components/form/NumberField/NumberField.types.js +1 -0
  125. package/dist/_internal/components/form/NumberField/NumberField.types.js.map +1 -0
  126. package/dist/_internal/components/form/Switch/Switch.js +5 -5
  127. package/dist/_internal/components/form/Switch/Switch.parts.js +4 -4
  128. package/dist/_internal/components/form/Switch/Switch.styles.js +3 -3
  129. package/dist/_internal/components/form/UploadButton/UploadButton.js +2 -2
  130. package/dist/_internal/components/form/index.js +47 -41
  131. package/dist/_internal/components/form/total-form/Fields/CategoryField.js +10 -10
  132. package/dist/_internal/components/form/total-form/Fields/CepField.js +3 -3
  133. package/dist/_internal/components/form/total-form/Fields/TextField.js +2 -2
  134. package/dist/_internal/components/form/total-form/Fields/index.js +20 -20
  135. package/dist/_internal/components/form/total-form/SubmitButton.js +6 -6
  136. package/dist/_internal/components/index.js +194 -153
  137. package/dist/_internal/components/layout/Box/Box.js +5 -5
  138. package/dist/_internal/components/layout/ScrollArea/ScrollArea.js +1 -1
  139. package/dist/_internal/components/layout/SettingCard/SettingCard.focus.js +8 -0
  140. package/dist/_internal/components/layout/SettingCard/SettingCard.focus.js.map +1 -0
  141. package/dist/_internal/components/layout/SettingCard/SettingCard.hooks.js +19 -0
  142. package/dist/_internal/components/layout/SettingCard/SettingCard.hooks.js.map +1 -0
  143. package/dist/_internal/components/layout/SettingCard/SettingCard.js +44 -0
  144. package/dist/_internal/components/layout/SettingCard/SettingCard.js.map +1 -0
  145. package/dist/_internal/components/layout/SettingCard/SettingCard.metrics.js +12 -0
  146. package/dist/_internal/components/layout/SettingCard/SettingCard.metrics.js.map +1 -0
  147. package/dist/_internal/components/layout/SettingCard/SettingCard.parts.js +49 -0
  148. package/dist/_internal/components/layout/SettingCard/SettingCard.parts.js.map +1 -0
  149. package/dist/_internal/components/layout/SettingCard/SettingCard.rem.js +8 -0
  150. package/dist/_internal/components/layout/SettingCard/SettingCard.rem.js.map +1 -0
  151. package/dist/_internal/components/layout/SettingCard/SettingCard.styles.js +35 -0
  152. package/dist/_internal/components/layout/SettingCard/SettingCard.styles.js.map +1 -0
  153. package/dist/_internal/components/layout/SettingCard/SettingCard.types.js +1 -0
  154. package/dist/_internal/components/layout/SettingCard/SettingCard.types.js.map +1 -0
  155. package/dist/_internal/components/layout/SettingCard/SettingGrid.js +46 -0
  156. package/dist/_internal/components/layout/SettingCard/SettingGrid.js.map +1 -0
  157. package/dist/_internal/components/layout/SettingCard/SettingGroup.context.js +10 -0
  158. package/dist/_internal/components/layout/SettingCard/SettingGroup.context.js.map +1 -0
  159. package/dist/_internal/components/layout/SettingCard/SettingGroup.js +55 -0
  160. package/dist/_internal/components/layout/SettingCard/SettingGroup.js.map +1 -0
  161. package/dist/_internal/components/layout/SettingCard/SettingSwitch.js +53 -0
  162. package/dist/_internal/components/layout/SettingCard/SettingSwitch.js.map +1 -0
  163. package/dist/_internal/components/layout/SettingCard/SettingToggle.js +55 -0
  164. package/dist/_internal/components/layout/SettingCard/SettingToggle.js.map +1 -0
  165. package/dist/_internal/components/layout/SettingsLayout/SettingsLayout.js +3 -3
  166. package/dist/_internal/components/layout/Stack/Stack.js +6 -6
  167. package/dist/_internal/components/layout/index.js +74 -12
  168. package/dist/_internal/components/navigation/AppHeader/AppHeader.details.js +9 -9
  169. package/dist/_internal/components/navigation/AppHeader/AppHeader.identity.js +2 -2
  170. package/dist/_internal/components/navigation/CommandPalette/CommandPalette.js +3 -3
  171. package/dist/_internal/components/navigation/Pagination/Pagination.js +2 -2
  172. package/dist/_internal/components/navigation/Tabs/Tabs.js +2 -2
  173. package/dist/_internal/components/navigation/index.js +26 -26
  174. package/dist/_internal/components/typography/Heading/Heading.js +5 -5
  175. package/dist/_internal/components/typography/Heading/Heading.metrics.js +3 -3
  176. package/dist/_internal/components/typography/Heading/Heading.styles.js +4 -4
  177. package/dist/_internal/components/typography/Paragraph/Paragraph.js +3 -3
  178. package/dist/_internal/components/typography/Text/Text.js +4 -4
  179. package/dist/_internal/components/typography/Text/Text.metrics.js +3 -3
  180. package/dist/_internal/components/typography/index.js +11 -11
  181. package/dist/_internal/components/utility/InstallPrompt/InstallPrompt.js +3 -3
  182. package/dist/_internal/components/utility/InstallPrompt/usePwaInstall.js +2 -2
  183. package/dist/_internal/components/utility/index.js +15 -15
  184. package/dist/_internal/en-US.data-display.js +2 -2
  185. package/dist/_internal/en-US.layout.js +5 -1
  186. package/dist/_internal/icons/Icon.js +6 -6
  187. package/dist/_internal/provider/UiProvider.js +4 -4
  188. package/dist/_internal/provider/mui-bridge.js +3 -3
  189. package/dist/_internal/provider/use-ui-theme.js +4 -4
  190. package/dist/_internal/pt-BR.data-display.js +2 -2
  191. package/dist/_internal/pt-BR.layout.js +5 -1
  192. package/dist/_internal/social-login-button/social-login-button.js +11 -11
  193. package/dist/_internal/tokens/theme.js +2 -2
  194. package/dist/_internal/user-avatar/user-avatar.js +11 -11
  195. package/dist/charts.js +15 -15
  196. package/dist/{chunk-TSEWUY4V.js → chunk-23LZNANO.js} +2 -2
  197. package/dist/{chunk-K2EHH7TC.js → chunk-2CJXYSOE.js} +7 -7
  198. package/dist/{chunk-HGJHZ5PE.js → chunk-2DHVWNTO.js} +7 -7
  199. package/dist/{chunk-K2JH7QPR.js → chunk-2F2HPQNQ.js} +3 -3
  200. package/dist/chunk-2GTORM5E.js +1 -0
  201. package/dist/chunk-2GTORM5E.js.map +1 -0
  202. package/dist/{chunk-C5YBXQTK.js → chunk-2QJKWH7Q.js} +3 -3
  203. package/dist/{chunk-W3FAKT3D.js → chunk-2SWQ6HIK.js} +4 -4
  204. package/dist/{chunk-IIUB4IOH.js → chunk-2XHIF3M3.js} +4 -4
  205. package/dist/chunk-33L26P4J.js +27 -0
  206. package/dist/chunk-33L26P4J.js.map +1 -0
  207. package/dist/{chunk-3PUOLOEP.js → chunk-37L6O266.js} +2 -2
  208. package/dist/{chunk-EVXFEXBS.js → chunk-3ELEPGCP.js} +2 -2
  209. package/dist/{chunk-RVGG5YJY.js → chunk-3HJLJFLA.js} +2 -2
  210. package/dist/chunk-3U7WKBMH.js +27 -0
  211. package/dist/chunk-3U7WKBMH.js.map +1 -0
  212. package/dist/{chunk-VESIQYBF.js → chunk-3ZTC2VEO.js} +9 -9
  213. package/dist/{chunk-46UPILLK.js → chunk-4ETQRBZC.js} +4 -4
  214. package/dist/chunk-4HDP2PZD.js +9 -0
  215. package/dist/chunk-4HDP2PZD.js.map +1 -0
  216. package/dist/{chunk-PFZAUMJA.js → chunk-4JGBWPG7.js} +2 -2
  217. package/dist/{chunk-7IKWIWWV.js → chunk-53LG7IT4.js} +11 -11
  218. package/dist/{chunk-S2GDYA6R.js → chunk-5GMHJ7Y5.js} +5 -5
  219. package/dist/{chunk-IABE56TG.js → chunk-5ZOJLYD2.js} +4 -4
  220. package/dist/{chunk-XXE6NTJB.js → chunk-5ZXVYKHU.js} +10 -5
  221. package/dist/chunk-5ZXVYKHU.js.map +1 -0
  222. package/dist/{chunk-4XVH6IWN.js → chunk-66KAONOC.js} +3 -3
  223. package/dist/{chunk-4MXFPDKL.js → chunk-6CAP4STN.js} +4 -4
  224. package/dist/{chunk-C5EFVSBN.js → chunk-6HJLYSBM.js} +2 -2
  225. package/dist/{chunk-CASZGBCA.js → chunk-6P3CRSAW.js} +5 -5
  226. package/dist/chunk-6PPF5WEN.js +30 -0
  227. package/dist/chunk-6PPF5WEN.js.map +1 -0
  228. package/dist/{chunk-Y5UCOBQN.js → chunk-6SK3MTYJ.js} +4 -4
  229. package/dist/{chunk-JQL4GG5L.js → chunk-6VMTF23F.js} +5 -5
  230. package/dist/{chunk-EPRA5QLB.js → chunk-6XUZDJZY.js} +2 -2
  231. package/dist/{chunk-B6IURHSZ.js → chunk-7DNQHMDO.js} +4 -4
  232. package/dist/{chunk-SLMA4UQS.js → chunk-A3TISECJ.js} +3 -3
  233. package/dist/{chunk-FVPN4YKW.js → chunk-ABSHD35E.js} +3 -3
  234. package/dist/chunk-AEMD6JHZ.js +1 -0
  235. package/dist/chunk-AEMD6JHZ.js.map +1 -0
  236. package/dist/{chunk-PQECNGDE.js → chunk-AGYGNNOM.js} +2 -2
  237. package/dist/{chunk-SUTNQG7E.js → chunk-ALU3BH37.js} +4 -4
  238. package/dist/{chunk-MGPA6KTM.js → chunk-AMFP64L3.js} +2 -2
  239. package/dist/{chunk-VEGT5PAD.js → chunk-BAISDZ3L.js} +21 -21
  240. package/dist/chunk-BOWS4U6W.js +1 -0
  241. package/dist/chunk-BOWS4U6W.js.map +1 -0
  242. package/dist/{chunk-CZJLWCEG.js → chunk-BPYPUEM5.js} +2 -2
  243. package/dist/{chunk-3MALHTZQ.js → chunk-C4J7PVVI.js} +3 -3
  244. package/dist/{chunk-7OZBOS75.js → chunk-CK2NTT4S.js} +6 -6
  245. package/dist/{chunk-Q5NAZ7TW.js → chunk-CSGUSHAO.js} +4 -4
  246. package/dist/{chunk-YTYROOLY.js → chunk-D22EGB3T.js} +3 -3
  247. package/dist/{chunk-VNGYJXAU.js → chunk-DBV6DDQI.js} +2 -2
  248. package/dist/{chunk-6PKVHFCK.js → chunk-DCRNBKMY.js} +9 -9
  249. package/dist/{chunk-PMS3H3OO.js → chunk-DF2FFYZ7.js} +4 -4
  250. package/dist/chunk-DG2A4DQU.js +118 -0
  251. package/dist/chunk-DG2A4DQU.js.map +1 -0
  252. package/dist/{chunk-RBGOGTT2.js → chunk-DWZ7FLA7.js} +4 -4
  253. package/dist/{chunk-237NDIT2.js → chunk-E3O72LBJ.js} +2 -2
  254. package/dist/{chunk-OH3YGJT5.js → chunk-EMNGIYH6.js} +5 -5
  255. package/dist/{chunk-XFUNJYFT.js → chunk-EPNUVSNK.js} +7 -7
  256. package/dist/{chunk-35UG2QDB.js → chunk-EUEUZI4L.js} +2 -2
  257. package/dist/{chunk-KUJLZFDW.js → chunk-FCG5YR6T.js} +3 -3
  258. package/dist/{chunk-2UBFDRL7.js → chunk-FCTURAZF.js} +2 -2
  259. package/dist/{chunk-UC6A6ASM.js → chunk-FFQKUTO6.js} +2 -2
  260. package/dist/{chunk-J3ZP6EUS.js → chunk-FNIHELAR.js} +2 -2
  261. package/dist/{chunk-SQV3HPTZ.js → chunk-G76H5PEM.js} +4 -4
  262. package/dist/{chunk-FLIMEQUA.js → chunk-GBX5ACPF.js} +5 -5
  263. package/dist/{chunk-22ZJH7RY.js → chunk-GN26LHNJ.js} +2 -2
  264. package/dist/{chunk-5KFZGB5U.js → chunk-GS7ESED2.js} +2 -2
  265. package/dist/{chunk-FGUK3D54.js → chunk-GZHZ7OTY.js} +3 -3
  266. package/dist/chunk-HALFOXSZ.js +1 -0
  267. package/dist/chunk-HALFOXSZ.js.map +1 -0
  268. package/dist/{chunk-BLBOYCOV.js → chunk-HKV4MQ2W.js} +5 -5
  269. package/dist/{chunk-K4JRHQMI.js → chunk-HMJM6DKA.js} +3 -3
  270. package/dist/{chunk-ZWIDQEJ4.js → chunk-HT7DWIR4.js} +5 -5
  271. package/dist/{chunk-UVD5NFRF.js → chunk-I3PGXMVJ.js} +2 -2
  272. package/dist/{chunk-Z52HVR4J.js → chunk-I4IPGIRF.js} +2 -2
  273. package/dist/{chunk-HR7YTBR7.js → chunk-IASDP44E.js} +4 -4
  274. package/dist/chunk-IAVQXQ3V.js +82 -0
  275. package/dist/chunk-IAVQXQ3V.js.map +1 -0
  276. package/dist/chunk-IC7GHPMK.js +22 -0
  277. package/dist/chunk-IC7GHPMK.js.map +1 -0
  278. package/dist/{chunk-VKH7AENA.js → chunk-IFNJWH55.js} +2 -2
  279. package/dist/{chunk-PUBPZOQJ.js → chunk-IPE5FFFD.js} +2 -2
  280. package/dist/{chunk-HP2ODXNA.js → chunk-IPS55KWK.js} +2 -2
  281. package/dist/{chunk-BILJU2DX.js → chunk-JFOATIMF.js} +5 -5
  282. package/dist/{chunk-MCBG6R5A.js → chunk-JH77UDWB.js} +3 -3
  283. package/dist/{chunk-XYDW5RQB.js → chunk-JTJR63WI.js} +2 -2
  284. package/dist/{chunk-IVVOIDE5.js → chunk-KHVKQPQ5.js} +3 -3
  285. package/dist/chunk-KRR6KK5J.js +117 -0
  286. package/dist/chunk-KRR6KK5J.js.map +1 -0
  287. package/dist/{chunk-T5WNNEP5.js → chunk-KVCS6IEI.js} +2 -2
  288. package/dist/{chunk-HZ6L7WXE.js → chunk-LGOIBC2C.js} +7 -7
  289. package/dist/chunk-LGPQVKHC.js +47 -0
  290. package/dist/chunk-LGPQVKHC.js.map +1 -0
  291. package/dist/{chunk-BKAB4KZK.js → chunk-LKAKYP42.js} +5 -5
  292. package/dist/{chunk-ZPIMPOHV.js → chunk-M7E66OSC.js} +4 -4
  293. package/dist/{chunk-VVXA7T2M.js → chunk-MG6XC5SK.js} +2 -2
  294. package/dist/{chunk-554SVTCN.js → chunk-MKZNP32D.js} +4 -4
  295. package/dist/chunk-MPRZDEKY.js +168 -0
  296. package/dist/chunk-MPRZDEKY.js.map +1 -0
  297. package/dist/{chunk-MSS6IU5X.js → chunk-N6V6BFKD.js} +3 -3
  298. package/dist/{chunk-OLQDB346.js → chunk-NH4XD62U.js} +2 -2
  299. package/dist/{chunk-GH2DC7PS.js → chunk-NPN7JTRM.js} +4 -4
  300. package/dist/{chunk-AIBNBWQU.js → chunk-NR7LSYLM.js} +2 -2
  301. package/dist/{chunk-3XLDTVLC.js → chunk-NU2HND2Y.js} +5 -5
  302. package/dist/{chunk-T2VO32Z2.js → chunk-OG5LJPI3.js} +2 -2
  303. package/dist/{chunk-REMK55JI.js → chunk-OLZTGVBT.js} +4 -4
  304. package/dist/{chunk-URVNHKM2.js → chunk-ON7PRAAC.js} +6 -6
  305. package/dist/{chunk-EZMCWRXO.js → chunk-OTMJBGJA.js} +24 -26
  306. package/dist/chunk-OTMJBGJA.js.map +1 -0
  307. package/dist/{chunk-3TFUAKWJ.js → chunk-OVOSDXFM.js} +2 -2
  308. package/dist/{chunk-SONWG2RT.js → chunk-OW4UEIXA.js} +5 -5
  309. package/dist/{chunk-23FCBIUN.js → chunk-P7FQUGED.js} +8 -8
  310. package/dist/{chunk-V7F53GEO.js → chunk-P7IVAMAU.js} +7 -7
  311. package/dist/{chunk-JYF3HT7M.js → chunk-PD6JRCUT.js} +8 -8
  312. package/dist/chunk-PGGGKYWG.js +1 -0
  313. package/dist/chunk-PGGGKYWG.js.map +1 -0
  314. package/dist/{chunk-B474PL5O.js → chunk-PKFFJAQ6.js} +2 -2
  315. package/dist/{chunk-EUKYQXYU.js → chunk-PLDVEJPR.js} +2 -2
  316. package/dist/{chunk-HT4B2DJU.js → chunk-PZEC5CQA.js} +4 -4
  317. package/dist/chunk-Q4JWWTL4.js +36 -0
  318. package/dist/chunk-Q4JWWTL4.js.map +1 -0
  319. package/dist/chunk-Q6FUSSLK.js +140 -0
  320. package/dist/chunk-Q6FUSSLK.js.map +1 -0
  321. package/dist/{chunk-6FUOUUYO.js → chunk-Q6STVEYJ.js} +4 -4
  322. package/dist/{chunk-6IKX5IIX.js → chunk-Q75SJ35X.js} +5 -5
  323. package/dist/{chunk-WC5XYWTE.js → chunk-QGJBNVC2.js} +2 -2
  324. package/dist/chunk-QGUNUXTT.js +1 -0
  325. package/dist/chunk-QGUNUXTT.js.map +1 -0
  326. package/dist/{chunk-KFZT3PHA.js → chunk-QHJ7FTZK.js} +4 -4
  327. package/dist/{chunk-NUB4T3RQ.js → chunk-QJ6KWJJH.js} +2 -2
  328. package/dist/chunk-R6XVOUNC.js +85 -0
  329. package/dist/chunk-R6XVOUNC.js.map +1 -0
  330. package/dist/{chunk-CZPU5TW3.js → chunk-RFZU5BTG.js} +2 -2
  331. package/dist/chunk-RH4QT7YT.js +74 -0
  332. package/dist/chunk-RH4QT7YT.js.map +1 -0
  333. package/dist/{chunk-JGV66VUK.js → chunk-RLCMVSJZ.js} +2 -2
  334. package/dist/chunk-RN7UJI7S.js +1 -0
  335. package/dist/chunk-RN7UJI7S.js.map +1 -0
  336. package/dist/{chunk-JB67KPGM.js → chunk-RRO2EOJB.js} +4 -4
  337. package/dist/{chunk-JJ3VR7WX.js → chunk-RZLWW3KC.js} +2 -2
  338. package/dist/{chunk-MZQTHSLN.js → chunk-S7HRED4D.js} +2 -2
  339. package/dist/{chunk-EXJBPKGW.js → chunk-SHDIZSN5.js} +5 -5
  340. package/dist/{chunk-GJQYM3PM.js → chunk-SHQWIDD5.js} +4 -4
  341. package/dist/{chunk-L6TCIZFR.js → chunk-SUAGBFYJ.js} +3 -3
  342. package/dist/{chunk-K5V3KCFI.js → chunk-SVBR3GWG.js} +6 -6
  343. package/dist/{chunk-DAPK3ADA.js → chunk-TC3EPGGJ.js} +4 -4
  344. package/dist/{chunk-DEE6IPGI.js → chunk-TJXNVREN.js} +2 -2
  345. package/dist/{chunk-WREIYOXN.js → chunk-TLMLEC4F.js} +7 -7
  346. package/dist/{chunk-57ZSQB5V.js → chunk-TLRTLYVT.js} +2 -2
  347. package/dist/{chunk-DUWF5LUK.js → chunk-TNCCCLLO.js} +4 -4
  348. package/dist/{chunk-TQ6FPOPD.js → chunk-TPKSOHB5.js} +5 -2
  349. package/dist/{chunk-TQ6FPOPD.js.map → chunk-TPKSOHB5.js.map} +1 -1
  350. package/dist/{chunk-JPVDZXXX.js → chunk-U5RQBHRY.js} +2 -2
  351. package/dist/{chunk-TU5EIKJA.js → chunk-U5SH3VRJ.js} +4 -4
  352. package/dist/chunk-V32X24SH.js +87 -0
  353. package/dist/chunk-V32X24SH.js.map +1 -0
  354. package/dist/{chunk-J4W4TQPC.js → chunk-V5P5Q6HM.js} +6 -6
  355. package/dist/{chunk-DQOLW4B5.js → chunk-VBMV2W4K.js} +3 -3
  356. package/dist/{chunk-57W2C7HY.js → chunk-VOHT6ZX3.js} +8 -8
  357. package/dist/{chunk-QYNCPS5W.js → chunk-WBKWIFXA.js} +6 -6
  358. package/dist/{chunk-VJFH2AXT.js → chunk-WG7HIXJ7.js} +8 -8
  359. package/dist/{chunk-VMXDTCYF.js → chunk-WMALDOF5.js} +4 -4
  360. package/dist/{chunk-I3FXTIKA.js → chunk-WP6Y2NJQ.js} +3 -3
  361. package/dist/chunk-WP6Y2NJQ.js.map +1 -0
  362. package/dist/{chunk-2L2NWXWJ.js → chunk-WRXD464C.js} +2 -2
  363. package/dist/{chunk-KT6HWAEN.js → chunk-WZUNBSS7.js} +2 -2
  364. package/dist/{chunk-NWQWUYOV.js → chunk-XGB3YF32.js} +2 -2
  365. package/dist/chunk-XJQNSMGA.js +10 -0
  366. package/dist/chunk-XJQNSMGA.js.map +1 -0
  367. package/dist/{chunk-QRX5BYUQ.js → chunk-Y6KPZQPI.js} +4 -4
  368. package/dist/{chunk-ZYKDPX3W.js → chunk-YY66AKSK.js} +2 -2
  369. package/dist/{chunk-62NA6IF3.js → chunk-ZBZ76VR7.js} +3 -3
  370. package/dist/{chunk-OXQP3N6X.js → chunk-ZTZ6S5Q6.js} +4 -4
  371. package/dist/data-display/Alert.js +4 -4
  372. package/dist/data-display/Avatar.js +5 -5
  373. package/dist/data-display/Badge.js +6 -6
  374. package/dist/data-display/Banner.js +2 -2
  375. package/dist/data-display/CardKit.js +15 -15
  376. package/dist/data-display/Carousel.js +5 -5
  377. package/dist/data-display/Chart.js +15 -15
  378. package/dist/data-display/Chip.js +1 -0
  379. package/dist/data-display/DataViews.js +88 -88
  380. package/dist/data-display/DescriptionItem.js +5 -5
  381. package/dist/data-display/FleetMap.js +15 -15
  382. package/dist/data-display/HoverCard.js +2 -2
  383. package/dist/data-display/Lightbox.js +3 -3
  384. package/dist/data-display/MapPreview.js +9 -9
  385. package/dist/data-display/Progress.js +5 -5
  386. package/dist/data-display/Sheet.js +5 -5
  387. package/dist/data-display/Table.js +3 -3
  388. package/dist/en-US.js +15 -11
  389. package/dist/feedback/ConfirmAction.js +9 -9
  390. package/dist/feedback/Modal.js +2 -2
  391. package/dist/feedback/NotificationStatusNotice.js +8 -8
  392. package/dist/form/AddressAutocomplete.js +5 -5
  393. package/dist/form/Autocomplete.js +1 -1
  394. package/dist/form/Button.js +5 -5
  395. package/dist/form/Calendar.js +4 -4
  396. package/dist/form/CategorySelect.js +9 -9
  397. package/dist/form/CepField.js +2 -2
  398. package/dist/form/Checkbox.js +3 -3
  399. package/dist/form/CodeEditor.js +1 -1
  400. package/dist/form/Command.js +2 -2
  401. package/dist/form/DateRangePicker.js +7 -7
  402. package/dist/form/Input.js +1 -1
  403. package/dist/form/InputOTP.js +2 -2
  404. package/dist/form/Label.js +2 -2
  405. package/dist/form/Menubar.js +2 -2
  406. package/dist/form/NumberField.js +22 -0
  407. package/dist/form/NumberField.js.map +1 -0
  408. package/dist/form/Switch.js +5 -5
  409. package/dist/form/UploadButton.js +2 -2
  410. package/dist/form/total-form.js +24 -24
  411. package/dist/icons.js +7 -6
  412. package/dist/layout/Box.js +5 -5
  413. package/dist/layout/Collapsible.js +1 -0
  414. package/dist/layout/ContentToolbar.js +3 -3
  415. package/dist/layout/ScrollArea.js +1 -1
  416. package/dist/layout/SettingCard.js +70 -0
  417. package/dist/layout/SettingCard.js.map +1 -0
  418. package/dist/layout/SettingsLayout.js +3 -3
  419. package/dist/layout/Stack.js +6 -6
  420. package/dist/locales.js +37 -23
  421. package/dist/locales.js.map +1 -1
  422. package/dist/navigation/AppHeader.js +11 -11
  423. package/dist/navigation/CommandPalette.js +3 -3
  424. package/dist/navigation/Pagination.js +2 -2
  425. package/dist/navigation/Tabs.js +2 -2
  426. package/dist/provider.js +5 -5
  427. package/dist/pt-BR.js +12 -8
  428. package/dist/social-login-button.js +11 -11
  429. package/dist/tokens.js +2 -2
  430. package/dist/types/components/data-display/DataViews/data-views-category-pill.d.ts +6 -1
  431. package/dist/types/components/data-display/DataViews/data-views-category-pill.d.ts.map +1 -1
  432. package/dist/types/components/data-display/DataViews/data-views-more-fields.d.ts +0 -11
  433. package/dist/types/components/data-display/DataViews/data-views-more-fields.d.ts.map +1 -1
  434. package/dist/types/components/data-display/DataViews/data-views-overflow.d.ts.map +1 -1
  435. package/dist/types/components/form/Input/Input.d.ts.map +1 -1
  436. package/dist/types/components/form/Input/Input.types.d.ts +10 -0
  437. package/dist/types/components/form/Input/Input.types.d.ts.map +1 -1
  438. package/dist/types/components/form/NumberField/NumberField.d.ts +21 -0
  439. package/dist/types/components/form/NumberField/NumberField.d.ts.map +1 -0
  440. package/dist/types/components/form/NumberField/NumberField.helpers.d.ts +48 -0
  441. package/dist/types/components/form/NumberField/NumberField.helpers.d.ts.map +1 -0
  442. package/dist/types/components/form/NumberField/NumberField.types.d.ts +31 -0
  443. package/dist/types/components/form/NumberField/NumberField.types.d.ts.map +1 -0
  444. package/dist/types/components/form/NumberField/index.d.ts +3 -0
  445. package/dist/types/components/form/NumberField/index.d.ts.map +1 -0
  446. package/dist/types/components/form/index.d.ts +1 -0
  447. package/dist/types/components/form/index.d.ts.map +1 -1
  448. package/dist/types/components/layout/SettingCard/SettingCard.d.ts +14 -0
  449. package/dist/types/components/layout/SettingCard/SettingCard.d.ts.map +1 -0
  450. package/dist/types/components/layout/SettingCard/SettingCard.focus.d.ts +19 -0
  451. package/dist/types/components/layout/SettingCard/SettingCard.focus.d.ts.map +1 -0
  452. package/dist/types/components/layout/SettingCard/SettingCard.hooks.d.ts +79 -0
  453. package/dist/types/components/layout/SettingCard/SettingCard.hooks.d.ts.map +1 -0
  454. package/dist/types/components/layout/SettingCard/SettingCard.metrics.d.ts +21 -0
  455. package/dist/types/components/layout/SettingCard/SettingCard.metrics.d.ts.map +1 -0
  456. package/dist/types/components/layout/SettingCard/SettingCard.parts.d.ts +49 -0
  457. package/dist/types/components/layout/SettingCard/SettingCard.parts.d.ts.map +1 -0
  458. package/dist/types/components/layout/SettingCard/SettingCard.rem.d.ts +12 -0
  459. package/dist/types/components/layout/SettingCard/SettingCard.rem.d.ts.map +1 -0
  460. package/dist/types/components/layout/SettingCard/SettingCard.styles.d.ts +48 -0
  461. package/dist/types/components/layout/SettingCard/SettingCard.styles.d.ts.map +1 -0
  462. package/dist/types/components/layout/SettingCard/SettingCard.types.d.ts +127 -0
  463. package/dist/types/components/layout/SettingCard/SettingCard.types.d.ts.map +1 -0
  464. package/dist/types/components/layout/SettingCard/SettingGrid.d.ts +33 -0
  465. package/dist/types/components/layout/SettingCard/SettingGrid.d.ts.map +1 -0
  466. package/dist/types/components/layout/SettingCard/SettingGroup.context.d.ts +13 -0
  467. package/dist/types/components/layout/SettingCard/SettingGroup.context.d.ts.map +1 -0
  468. package/dist/types/components/layout/SettingCard/SettingGroup.d.ts +18 -0
  469. package/dist/types/components/layout/SettingCard/SettingGroup.d.ts.map +1 -0
  470. package/dist/types/components/layout/SettingCard/SettingSwitch.d.ts +28 -0
  471. package/dist/types/components/layout/SettingCard/SettingSwitch.d.ts.map +1 -0
  472. package/dist/types/components/layout/SettingCard/SettingToggle.d.ts +13 -0
  473. package/dist/types/components/layout/SettingCard/SettingToggle.d.ts.map +1 -0
  474. package/dist/types/components/layout/SettingCard/index.d.ts +6 -0
  475. package/dist/types/components/layout/SettingCard/index.d.ts.map +1 -0
  476. package/dist/types/components/layout/index.d.ts +1 -0
  477. package/dist/types/components/layout/index.d.ts.map +1 -1
  478. package/dist/types/copy/layout.d.ts +27 -0
  479. package/dist/types/copy/layout.d.ts.map +1 -1
  480. package/dist/types/en-US.layout.d.ts +3 -1
  481. package/dist/types/en-US.layout.d.ts.map +1 -1
  482. package/dist/types/locales.d.ts +3 -1
  483. package/dist/types/locales.d.ts.map +1 -1
  484. package/dist/types/pt-BR.layout.d.ts +3 -1
  485. package/dist/types/pt-BR.layout.d.ts.map +1 -1
  486. package/dist/typography/Heading.js +5 -5
  487. package/dist/typography/Paragraph.js +3 -3
  488. package/dist/typography/Text.js +4 -4
  489. package/dist/user-avatar.js +11 -11
  490. package/dist/utility/InstallPrompt.js +4 -4
  491. package/package.json +9 -1
  492. package/src/components/data-display/DataViews/data-views-category-pill.tsx +6 -1
  493. package/src/components/data-display/DataViews/data-views-more-fields.tsx +43 -37
  494. package/src/components/data-display/DataViews/data-views-overflow.ts +12 -1
  495. package/src/components/form/Input/Input.tsx +25 -12
  496. package/src/components/form/Input/Input.types.ts +10 -0
  497. package/src/components/form/NumberField/NumberField.helpers.ts +77 -0
  498. package/src/components/form/NumberField/NumberField.md +86 -0
  499. package/src/components/form/NumberField/NumberField.tsx +88 -0
  500. package/src/components/form/NumberField/NumberField.types.ts +43 -0
  501. package/src/components/form/NumberField/index.ts +2 -0
  502. package/src/components/form/NumberField/tests.md +51 -0
  503. package/src/components/form/NumberField/track.md +48 -0
  504. package/src/components/form/index.ts +1 -0
  505. package/src/components/layout/SettingCard/SettingCard.focus.ts +49 -0
  506. package/src/components/layout/SettingCard/SettingCard.hooks.ts +191 -0
  507. package/src/components/layout/SettingCard/SettingCard.md +121 -0
  508. package/src/components/layout/SettingCard/SettingCard.metrics.ts +22 -0
  509. package/src/components/layout/SettingCard/SettingCard.parts.tsx +162 -0
  510. package/src/components/layout/SettingCard/SettingCard.rem.ts +14 -0
  511. package/src/components/layout/SettingCard/SettingCard.styles.ts +142 -0
  512. package/src/components/layout/SettingCard/SettingCard.tsx +197 -0
  513. package/src/components/layout/SettingCard/SettingCard.types.ts +140 -0
  514. package/src/components/layout/SettingCard/SettingGrid.md +65 -0
  515. package/src/components/layout/SettingCard/SettingGrid.tsx +105 -0
  516. package/src/components/layout/SettingCard/SettingGroup.context.ts +11 -0
  517. package/src/components/layout/SettingCard/SettingGroup.md +81 -0
  518. package/src/components/layout/SettingCard/SettingGroup.tsx +73 -0
  519. package/src/components/layout/SettingCard/SettingSwitch.tsx +92 -0
  520. package/src/components/layout/SettingCard/SettingToggle.md +61 -0
  521. package/src/components/layout/SettingCard/SettingToggle.tsx +43 -0
  522. package/src/components/layout/SettingCard/index.ts +18 -0
  523. package/src/components/layout/SettingCard/tests.md +68 -0
  524. package/src/components/layout/SettingCard/track.md +63 -0
  525. package/src/components/layout/index.ts +1 -0
  526. package/src/copy/layout.ts +29 -0
  527. package/src/en-US.layout.ts +16 -0
  528. package/src/locales.ts +10 -0
  529. package/src/pt-BR.layout.ts +16 -0
  530. package/dist/chunk-A7RIZOAL.js +0 -13
  531. package/dist/chunk-A7RIZOAL.js.map +0 -1
  532. package/dist/chunk-BY3JEK5T.js +0 -1
  533. package/dist/chunk-EZMCWRXO.js.map +0 -1
  534. package/dist/chunk-FZJ2FTGE.js +0 -1
  535. package/dist/chunk-GRHECKHU.js +0 -13
  536. package/dist/chunk-GRHECKHU.js.map +0 -1
  537. package/dist/chunk-I3FXTIKA.js.map +0 -1
  538. package/dist/chunk-XXE6NTJB.js.map +0 -1
  539. /package/dist/{chunk-BY3JEK5T.js.map → _internal/components/form/NumberField/NumberField.helpers.js.map} +0 -0
  540. /package/dist/{chunk-FZJ2FTGE.js.map → _internal/components/form/NumberField/NumberField.js.map} +0 -0
  541. /package/dist/{chunk-TSEWUY4V.js.map → chunk-23LZNANO.js.map} +0 -0
  542. /package/dist/{chunk-K2EHH7TC.js.map → chunk-2CJXYSOE.js.map} +0 -0
  543. /package/dist/{chunk-HGJHZ5PE.js.map → chunk-2DHVWNTO.js.map} +0 -0
  544. /package/dist/{chunk-K2JH7QPR.js.map → chunk-2F2HPQNQ.js.map} +0 -0
  545. /package/dist/{chunk-C5YBXQTK.js.map → chunk-2QJKWH7Q.js.map} +0 -0
  546. /package/dist/{chunk-W3FAKT3D.js.map → chunk-2SWQ6HIK.js.map} +0 -0
  547. /package/dist/{chunk-IIUB4IOH.js.map → chunk-2XHIF3M3.js.map} +0 -0
  548. /package/dist/{chunk-3PUOLOEP.js.map → chunk-37L6O266.js.map} +0 -0
  549. /package/dist/{chunk-EVXFEXBS.js.map → chunk-3ELEPGCP.js.map} +0 -0
  550. /package/dist/{chunk-RVGG5YJY.js.map → chunk-3HJLJFLA.js.map} +0 -0
  551. /package/dist/{chunk-VESIQYBF.js.map → chunk-3ZTC2VEO.js.map} +0 -0
  552. /package/dist/{chunk-46UPILLK.js.map → chunk-4ETQRBZC.js.map} +0 -0
  553. /package/dist/{chunk-PFZAUMJA.js.map → chunk-4JGBWPG7.js.map} +0 -0
  554. /package/dist/{chunk-7IKWIWWV.js.map → chunk-53LG7IT4.js.map} +0 -0
  555. /package/dist/{chunk-S2GDYA6R.js.map → chunk-5GMHJ7Y5.js.map} +0 -0
  556. /package/dist/{chunk-IABE56TG.js.map → chunk-5ZOJLYD2.js.map} +0 -0
  557. /package/dist/{chunk-4XVH6IWN.js.map → chunk-66KAONOC.js.map} +0 -0
  558. /package/dist/{chunk-4MXFPDKL.js.map → chunk-6CAP4STN.js.map} +0 -0
  559. /package/dist/{chunk-C5EFVSBN.js.map → chunk-6HJLYSBM.js.map} +0 -0
  560. /package/dist/{chunk-CASZGBCA.js.map → chunk-6P3CRSAW.js.map} +0 -0
  561. /package/dist/{chunk-Y5UCOBQN.js.map → chunk-6SK3MTYJ.js.map} +0 -0
  562. /package/dist/{chunk-JQL4GG5L.js.map → chunk-6VMTF23F.js.map} +0 -0
  563. /package/dist/{chunk-EPRA5QLB.js.map → chunk-6XUZDJZY.js.map} +0 -0
  564. /package/dist/{chunk-B6IURHSZ.js.map → chunk-7DNQHMDO.js.map} +0 -0
  565. /package/dist/{chunk-SLMA4UQS.js.map → chunk-A3TISECJ.js.map} +0 -0
  566. /package/dist/{chunk-FVPN4YKW.js.map → chunk-ABSHD35E.js.map} +0 -0
  567. /package/dist/{chunk-PQECNGDE.js.map → chunk-AGYGNNOM.js.map} +0 -0
  568. /package/dist/{chunk-SUTNQG7E.js.map → chunk-ALU3BH37.js.map} +0 -0
  569. /package/dist/{chunk-MGPA6KTM.js.map → chunk-AMFP64L3.js.map} +0 -0
  570. /package/dist/{chunk-VEGT5PAD.js.map → chunk-BAISDZ3L.js.map} +0 -0
  571. /package/dist/{chunk-CZJLWCEG.js.map → chunk-BPYPUEM5.js.map} +0 -0
  572. /package/dist/{chunk-3MALHTZQ.js.map → chunk-C4J7PVVI.js.map} +0 -0
  573. /package/dist/{chunk-7OZBOS75.js.map → chunk-CK2NTT4S.js.map} +0 -0
  574. /package/dist/{chunk-Q5NAZ7TW.js.map → chunk-CSGUSHAO.js.map} +0 -0
  575. /package/dist/{chunk-YTYROOLY.js.map → chunk-D22EGB3T.js.map} +0 -0
  576. /package/dist/{chunk-VNGYJXAU.js.map → chunk-DBV6DDQI.js.map} +0 -0
  577. /package/dist/{chunk-6PKVHFCK.js.map → chunk-DCRNBKMY.js.map} +0 -0
  578. /package/dist/{chunk-PMS3H3OO.js.map → chunk-DF2FFYZ7.js.map} +0 -0
  579. /package/dist/{chunk-RBGOGTT2.js.map → chunk-DWZ7FLA7.js.map} +0 -0
  580. /package/dist/{chunk-237NDIT2.js.map → chunk-E3O72LBJ.js.map} +0 -0
  581. /package/dist/{chunk-OH3YGJT5.js.map → chunk-EMNGIYH6.js.map} +0 -0
  582. /package/dist/{chunk-XFUNJYFT.js.map → chunk-EPNUVSNK.js.map} +0 -0
  583. /package/dist/{chunk-35UG2QDB.js.map → chunk-EUEUZI4L.js.map} +0 -0
  584. /package/dist/{chunk-KUJLZFDW.js.map → chunk-FCG5YR6T.js.map} +0 -0
  585. /package/dist/{chunk-2UBFDRL7.js.map → chunk-FCTURAZF.js.map} +0 -0
  586. /package/dist/{chunk-UC6A6ASM.js.map → chunk-FFQKUTO6.js.map} +0 -0
  587. /package/dist/{chunk-J3ZP6EUS.js.map → chunk-FNIHELAR.js.map} +0 -0
  588. /package/dist/{chunk-SQV3HPTZ.js.map → chunk-G76H5PEM.js.map} +0 -0
  589. /package/dist/{chunk-FLIMEQUA.js.map → chunk-GBX5ACPF.js.map} +0 -0
  590. /package/dist/{chunk-22ZJH7RY.js.map → chunk-GN26LHNJ.js.map} +0 -0
  591. /package/dist/{chunk-5KFZGB5U.js.map → chunk-GS7ESED2.js.map} +0 -0
  592. /package/dist/{chunk-FGUK3D54.js.map → chunk-GZHZ7OTY.js.map} +0 -0
  593. /package/dist/{chunk-BLBOYCOV.js.map → chunk-HKV4MQ2W.js.map} +0 -0
  594. /package/dist/{chunk-K4JRHQMI.js.map → chunk-HMJM6DKA.js.map} +0 -0
  595. /package/dist/{chunk-ZWIDQEJ4.js.map → chunk-HT7DWIR4.js.map} +0 -0
  596. /package/dist/{chunk-UVD5NFRF.js.map → chunk-I3PGXMVJ.js.map} +0 -0
  597. /package/dist/{chunk-Z52HVR4J.js.map → chunk-I4IPGIRF.js.map} +0 -0
  598. /package/dist/{chunk-HR7YTBR7.js.map → chunk-IASDP44E.js.map} +0 -0
  599. /package/dist/{chunk-VKH7AENA.js.map → chunk-IFNJWH55.js.map} +0 -0
  600. /package/dist/{chunk-PUBPZOQJ.js.map → chunk-IPE5FFFD.js.map} +0 -0
  601. /package/dist/{chunk-HP2ODXNA.js.map → chunk-IPS55KWK.js.map} +0 -0
  602. /package/dist/{chunk-BILJU2DX.js.map → chunk-JFOATIMF.js.map} +0 -0
  603. /package/dist/{chunk-MCBG6R5A.js.map → chunk-JH77UDWB.js.map} +0 -0
  604. /package/dist/{chunk-XYDW5RQB.js.map → chunk-JTJR63WI.js.map} +0 -0
  605. /package/dist/{chunk-IVVOIDE5.js.map → chunk-KHVKQPQ5.js.map} +0 -0
  606. /package/dist/{chunk-T5WNNEP5.js.map → chunk-KVCS6IEI.js.map} +0 -0
  607. /package/dist/{chunk-HZ6L7WXE.js.map → chunk-LGOIBC2C.js.map} +0 -0
  608. /package/dist/{chunk-BKAB4KZK.js.map → chunk-LKAKYP42.js.map} +0 -0
  609. /package/dist/{chunk-ZPIMPOHV.js.map → chunk-M7E66OSC.js.map} +0 -0
  610. /package/dist/{chunk-VVXA7T2M.js.map → chunk-MG6XC5SK.js.map} +0 -0
  611. /package/dist/{chunk-554SVTCN.js.map → chunk-MKZNP32D.js.map} +0 -0
  612. /package/dist/{chunk-MSS6IU5X.js.map → chunk-N6V6BFKD.js.map} +0 -0
  613. /package/dist/{chunk-OLQDB346.js.map → chunk-NH4XD62U.js.map} +0 -0
  614. /package/dist/{chunk-GH2DC7PS.js.map → chunk-NPN7JTRM.js.map} +0 -0
  615. /package/dist/{chunk-AIBNBWQU.js.map → chunk-NR7LSYLM.js.map} +0 -0
  616. /package/dist/{chunk-3XLDTVLC.js.map → chunk-NU2HND2Y.js.map} +0 -0
  617. /package/dist/{chunk-T2VO32Z2.js.map → chunk-OG5LJPI3.js.map} +0 -0
  618. /package/dist/{chunk-REMK55JI.js.map → chunk-OLZTGVBT.js.map} +0 -0
  619. /package/dist/{chunk-URVNHKM2.js.map → chunk-ON7PRAAC.js.map} +0 -0
  620. /package/dist/{chunk-3TFUAKWJ.js.map → chunk-OVOSDXFM.js.map} +0 -0
  621. /package/dist/{chunk-SONWG2RT.js.map → chunk-OW4UEIXA.js.map} +0 -0
  622. /package/dist/{chunk-23FCBIUN.js.map → chunk-P7FQUGED.js.map} +0 -0
  623. /package/dist/{chunk-V7F53GEO.js.map → chunk-P7IVAMAU.js.map} +0 -0
  624. /package/dist/{chunk-JYF3HT7M.js.map → chunk-PD6JRCUT.js.map} +0 -0
  625. /package/dist/{chunk-B474PL5O.js.map → chunk-PKFFJAQ6.js.map} +0 -0
  626. /package/dist/{chunk-EUKYQXYU.js.map → chunk-PLDVEJPR.js.map} +0 -0
  627. /package/dist/{chunk-HT4B2DJU.js.map → chunk-PZEC5CQA.js.map} +0 -0
  628. /package/dist/{chunk-6FUOUUYO.js.map → chunk-Q6STVEYJ.js.map} +0 -0
  629. /package/dist/{chunk-6IKX5IIX.js.map → chunk-Q75SJ35X.js.map} +0 -0
  630. /package/dist/{chunk-WC5XYWTE.js.map → chunk-QGJBNVC2.js.map} +0 -0
  631. /package/dist/{chunk-KFZT3PHA.js.map → chunk-QHJ7FTZK.js.map} +0 -0
  632. /package/dist/{chunk-NUB4T3RQ.js.map → chunk-QJ6KWJJH.js.map} +0 -0
  633. /package/dist/{chunk-CZPU5TW3.js.map → chunk-RFZU5BTG.js.map} +0 -0
  634. /package/dist/{chunk-JGV66VUK.js.map → chunk-RLCMVSJZ.js.map} +0 -0
  635. /package/dist/{chunk-JB67KPGM.js.map → chunk-RRO2EOJB.js.map} +0 -0
  636. /package/dist/{chunk-JJ3VR7WX.js.map → chunk-RZLWW3KC.js.map} +0 -0
  637. /package/dist/{chunk-MZQTHSLN.js.map → chunk-S7HRED4D.js.map} +0 -0
  638. /package/dist/{chunk-EXJBPKGW.js.map → chunk-SHDIZSN5.js.map} +0 -0
  639. /package/dist/{chunk-GJQYM3PM.js.map → chunk-SHQWIDD5.js.map} +0 -0
  640. /package/dist/{chunk-L6TCIZFR.js.map → chunk-SUAGBFYJ.js.map} +0 -0
  641. /package/dist/{chunk-K5V3KCFI.js.map → chunk-SVBR3GWG.js.map} +0 -0
  642. /package/dist/{chunk-DAPK3ADA.js.map → chunk-TC3EPGGJ.js.map} +0 -0
  643. /package/dist/{chunk-DEE6IPGI.js.map → chunk-TJXNVREN.js.map} +0 -0
  644. /package/dist/{chunk-WREIYOXN.js.map → chunk-TLMLEC4F.js.map} +0 -0
  645. /package/dist/{chunk-57ZSQB5V.js.map → chunk-TLRTLYVT.js.map} +0 -0
  646. /package/dist/{chunk-DUWF5LUK.js.map → chunk-TNCCCLLO.js.map} +0 -0
  647. /package/dist/{chunk-JPVDZXXX.js.map → chunk-U5RQBHRY.js.map} +0 -0
  648. /package/dist/{chunk-TU5EIKJA.js.map → chunk-U5SH3VRJ.js.map} +0 -0
  649. /package/dist/{chunk-J4W4TQPC.js.map → chunk-V5P5Q6HM.js.map} +0 -0
  650. /package/dist/{chunk-DQOLW4B5.js.map → chunk-VBMV2W4K.js.map} +0 -0
  651. /package/dist/{chunk-57W2C7HY.js.map → chunk-VOHT6ZX3.js.map} +0 -0
  652. /package/dist/{chunk-QYNCPS5W.js.map → chunk-WBKWIFXA.js.map} +0 -0
  653. /package/dist/{chunk-VJFH2AXT.js.map → chunk-WG7HIXJ7.js.map} +0 -0
  654. /package/dist/{chunk-VMXDTCYF.js.map → chunk-WMALDOF5.js.map} +0 -0
  655. /package/dist/{chunk-2L2NWXWJ.js.map → chunk-WRXD464C.js.map} +0 -0
  656. /package/dist/{chunk-KT6HWAEN.js.map → chunk-WZUNBSS7.js.map} +0 -0
  657. /package/dist/{chunk-NWQWUYOV.js.map → chunk-XGB3YF32.js.map} +0 -0
  658. /package/dist/{chunk-QRX5BYUQ.js.map → chunk-Y6KPZQPI.js.map} +0 -0
  659. /package/dist/{chunk-ZYKDPX3W.js.map → chunk-YY66AKSK.js.map} +0 -0
  660. /package/dist/{chunk-62NA6IF3.js.map → chunk-ZBZ76VR7.js.map} +0 -0
  661. /package/dist/{chunk-OXQP3N6X.js.map → chunk-ZTZ6S5Q6.js.map} +0 -0
@@ -1,11 +1,11 @@
1
- import {
2
- useUploadButton
3
- } from "./chunk-QWVETTIY.js";
4
1
  import {
5
2
  UploadDropzone,
6
3
  UploadFeedback,
7
4
  UploadTrigger
8
5
  } from "./chunk-JSANSHGF.js";
6
+ import {
7
+ useUploadButton
8
+ } from "./chunk-QWVETTIY.js";
9
9
 
10
10
  // src/components/form/UploadButton/UploadButton.tsx
11
11
  import Box from "@mui/material/Box/index.js";
@@ -73,4 +73,4 @@ UploadButton.displayName = "UploadButton";
73
73
  export {
74
74
  UploadButton
75
75
  };
76
- //# sourceMappingURL=chunk-DAPK3ADA.js.map
76
+ //# sourceMappingURL=chunk-TC3EPGGJ.js.map
@@ -37,7 +37,7 @@ import {
37
37
  } from "./chunk-3W2IS5RH.js";
38
38
  import {
39
39
  px
40
- } from "./chunk-SONWG2RT.js";
40
+ } from "./chunk-OW4UEIXA.js";
41
41
  import {
42
42
  inkOver
43
43
  } from "./chunk-2BYKTBDL.js";
@@ -292,4 +292,4 @@ export {
292
292
  onTrackInk,
293
293
  switchSx
294
294
  };
295
- //# sourceMappingURL=chunk-DEE6IPGI.js.map
295
+ //# sourceMappingURL=chunk-TJXNVREN.js.map
@@ -1,3 +1,9 @@
1
+ import {
2
+ AddressSuggestionsPaper
3
+ } from "./chunk-ST4YYVUK.js";
4
+ import {
5
+ AddressOption
6
+ } from "./chunk-PDLJOQO5.js";
1
7
  import {
2
8
  AddressInputField
3
9
  } from "./chunk-VXTYVJDK.js";
@@ -6,12 +12,6 @@ import {
6
12
  addressOptionLabel,
7
13
  isSameAddressOption
8
14
  } from "./chunk-MTGEJRE4.js";
9
- import {
10
- AddressSuggestionsPaper
11
- } from "./chunk-ST4YYVUK.js";
12
- import {
13
- AddressOption
14
- } from "./chunk-PDLJOQO5.js";
15
15
 
16
16
  // src/components/form/AddressAutocomplete/AddressAutocompleteField.tsx
17
17
  import Alert from "@mui/material/Alert/index.js";
@@ -89,4 +89,4 @@ var AddressAutocompleteField = ({
89
89
  export {
90
90
  AddressAutocompleteField
91
91
  };
92
- //# sourceMappingURL=chunk-WREIYOXN.js.map
92
+ //# sourceMappingURL=chunk-TLMLEC4F.js.map
@@ -9,7 +9,7 @@ import {
9
9
  } from "./chunk-6DPAWXZ3.js";
10
10
  import {
11
11
  Button
12
- } from "./chunk-BKAB4KZK.js";
12
+ } from "./chunk-LKAKYP42.js";
13
13
 
14
14
  // src/components/data-display/DataViews/data-views-grid-helpers.tsx
15
15
  import { jsx, jsxs } from "react/jsx-runtime";
@@ -162,4 +162,4 @@ export {
162
162
  togglePillValues,
163
163
  cardGridTracks
164
164
  };
165
- //# sourceMappingURL=chunk-57ZSQB5V.js.map
165
+ //# sourceMappingURL=chunk-TLRTLYVT.js.map
@@ -3,7 +3,7 @@ import {
3
3
  } from "./chunk-KHG57NAE.js";
4
4
  import {
5
5
  createConfirmButton
6
- } from "./chunk-22ZJH7RY.js";
6
+ } from "./chunk-GN26LHNJ.js";
7
7
  import {
8
8
  Dialog,
9
9
  DialogContent
@@ -16,10 +16,10 @@ import {
16
16
  } from "./chunk-WEBEOBN5.js";
17
17
  import {
18
18
  Button
19
- } from "./chunk-BKAB4KZK.js";
19
+ } from "./chunk-LKAKYP42.js";
20
20
  import {
21
21
  Text
22
- } from "./chunk-YTYROOLY.js";
22
+ } from "./chunk-D22EGB3T.js";
23
23
 
24
24
  // src/components/data-display/DataViews/ManageViewsDialog.tsx
25
25
  import { useMemo } from "react";
@@ -128,4 +128,4 @@ function ManageViewsDialog({
128
128
  export {
129
129
  ManageViewsDialog
130
130
  };
131
- //# sourceMappingURL=chunk-DUWF5LUK.js.map
131
+ //# sourceMappingURL=chunk-TNCCCLLO.js.map
@@ -95,11 +95,14 @@ function useFilterOverflow(all, pills, ranges, frozen = false, hasExport = true)
95
95
  if (cache.current === null || !frozen && cache.current.signature !== signature) {
96
96
  cache.current = { signature, split: computeSplit(all, pills, ranges, width, hasExport) };
97
97
  }
98
- return { ...cache.current.split, barRef };
98
+ const { split } = cache.current;
99
+ const current = new Map(all.map((field) => [field.id, field]));
100
+ const fresh = (fields) => fields.map((field) => current.get(field.id) ?? field);
101
+ return { ...split, inline: fresh(split.inline), overflow: fresh(split.overflow), barRef };
99
102
  }
100
103
 
101
104
  export {
102
105
  toOverflowFields,
103
106
  useFilterOverflow
104
107
  };
105
- //# sourceMappingURL=chunk-TQ6FPOPD.js.map
108
+ //# sourceMappingURL=chunk-TPKSOHB5.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/components/data-display/DataViews/data-views-overflow.ts"],"sourcesContent":["\"use client\";\n\nimport { useRef } from \"react\";\n\nimport { splitToFit, useMeasuredWidth } from \"../../utility/Overflow\";\nimport {\n estimateWidth,\n furnitureCost,\n GAP,\n isRangeSet,\n pillText,\n RESERVED,\n rightClusterCost,\n} from \"./data-views-overflow-costs\";\nimport type { FilterFieldConfig, RangeFieldConfig, RangeValue } from \"./data-views-types\";\n\n/**\n * PROGRESSIVE COLLAPSE — which filter controls fit on the toolbar, measured.\n *\n * Two rules, and both come from watching the all-or-nothing version fail:\n *\n * 1. Controls shed ONE AT A TIME into an overflow, never all at once. With four\n * filters and room for three, hiding all four throws away the room that was\n * there.\n * 2. An APPLIED filter is ranked first, not exempt. Applied controls take the\n * visible slots ahead of idle ones, and go into \"Mais\" like anything else\n * when even those slots run out. Exempting them outright — the earlier rule\n * — meant four applied filters on a phone claimed more width than the row\n * had, and the bar painted past its own edge: the pills were reachable only\n * by scrolling the toolbar sideways. Hiding one is safe because \"Mais\" says\n * how many applied filters are behind it; scrolling one off-screen says\n * nothing at all.\n *\n * It MEASURES rather than picking a breakpoint, which is what\n * `FILTERS-CONTRACT.md` asks for: pages declare different numbers of filters\n * with different label lengths, and the same page collapses at a different\n * width in another language. A shared breakpoint is wrong for at least one\n * table by construction.\n *\n * Collapsing is presentation only — nothing here emits a query, drops a filter\n * or changes a rendered row.\n */\n\n/** A filter control on the bar: a multi-select pill or a min/max range. */\nexport interface OverflowField<T extends Record<string, unknown>> {\n id: string;\n label: string;\n /** Which control it is — the caller renders the right one. */\n group: \"pill\" | \"range\";\n pill?: FilterFieldConfig<T>;\n range?: RangeFieldConfig<T>;\n}\n\n/** What the caller renders inline, and what goes behind \"Mais\". */\nexport interface OverflowSplit<T extends Record<string, unknown>> {\n inline: OverflowField<T>[];\n overflow: OverflowField<T>[];\n /**\n * Step 2 — Exibir/Exportar drop their text labels and become icons.\n * Cheap: both keep their icon, their tooltip and their position.\n */\n compactControls: boolean;\n /**\n * Step 5, and the LAST resort — the \"N de N\" counter is dropped.\n *\n * Only once every control has already collapsed and the row STILL does not\n * fit, which on a six-filter table is below about 400px. The counter goes\n * last because it is the only thing left that reports rather than does: an\n * operator can act without knowing the total, but not without the search.\n */\n counterHidden: boolean;\n /**\n * Step 4 — the search collapses to a magnifier that expands on click.\n * The most expensive step, so it is taken last: the search is the one\n * control on the bar that cannot be guessed from an icon's position.\n */\n searchCollapsed: boolean;\n /**\n * Step 6, below even the counter — \"Limpar\" leaves the bar.\n *\n * The one control here with a second home: the overflow panel's footer\n * carries \"Limpar todos os filtros\". So it goes before the search icon or\n * \"Mais\", neither of which has anywhere else to be.\n */\n clearAllHidden: boolean;\n /**\n * Expanding the magnifier must take the whole cluster, filters and all.\n *\n * Only on the rungs where what is left over would be too narrow to read —\n * on a large phone the box simply shrinks and the filters stay, which is why\n * this is its own answer rather than `searchCollapsed` reused.\n */\n searchTakeover: boolean;\n /** Attach to the toolbar row being measured. */\n barRef: React.RefObject<HTMLDivElement | null>;\n}\n\n/** Every declared control, pills first, in the order the bar renders them. */\nexport function toOverflowFields<T extends Record<string, unknown>>(\n fields: FilterFieldConfig<T>[],\n rangeFields: RangeFieldConfig<T>[],\n): OverflowField<T>[] {\n return [\n ...fields.map((pill) => ({ id: pill.id, label: pill.label, group: \"pill\" as const, pill })),\n ...rangeFields.map((range) => ({ id: range.id, label: range.label, group: \"range\" as const, range })),\n ];\n}\n\n\n/** Is this control carrying a value the operator set? */\nfunction isActiveField<T extends Record<string, unknown>>(\n field: OverflowField<T>,\n pills: Record<string, string[]>,\n ranges: Record<string, RangeValue>,\n): boolean {\n return field.group === \"pill\"\n ? (pills[field.id]?.length ?? 0) > 0\n : isRangeSet(ranges[field.id]);\n}\n\n/** Estimated rendered width of one control at its CURRENT value. */\nfunction fieldWidth<T extends Record<string, unknown>>(\n field: OverflowField<T>,\n pills: Record<string, string[]>,\n ranges: Record<string, RangeValue>,\n): number {\n if (field.group === \"pill\") return estimateWidth(pillText(field, pills[field.id] ?? []), 0);\n // A bounded range renders two number inputs beside its label.\n return estimateWidth(field.label, isRangeSet(ranges[field.id]) ? 100 : 0);\n}\n\n/** What one split costs on the bar, so the ladder below can price the next step. */\ntype Split<T extends Record<string, unknown>> = {\n inline: OverflowField<T>[];\n overflow: OverflowField<T>[];\n /** Width the surviving inline controls occupy, incl. the \"Mais\" button. */\n used: number;\n};\n\n/** Step 1 — shed filter controls into the overflow. Pure. */\nfunction splitFilters<T extends Record<string, unknown>>(\n all: OverflowField<T>[],\n pills: Record<string, string[]>,\n ranges: Record<string, RangeValue>,\n width: number,\n /** Search + counter + right cluster + chrome, at the rung being considered. */\n furniture: number,\n /** Is the bar already down to icons? \"Mais\" shrinks with everything else. */\n compact: boolean,\n): Split<T> {\n const active = all.filter((field) => isActiveField(field, pills, ranges));\n const idle = all.filter((field) => !isActiveField(field, pills, ranges));\n\n // \"Limpar\" rides the end of the cluster whenever anything is applied.\n const clearCost = active.length > 0 ? RESERVED.clearAll + GAP : 0;\n // APPLIED FIRST, BUT NOT EXEMPT.\n //\n // Applied controls take the visible slots ahead of idle ones — that part was\n // always right. Exempting them from the overflow entirely was not: applying\n // a value LENGTHENS a control (\"Pagamento (1)\"), so on a phone four applied\n // filters claimed more width than the row had and the bar simply painted\n // past its own edge, leaving pills reachable only by scrolling sideways.\n //\n // An applied filter hidden in \"Mais\" is not lost the way it would be if it\n // vanished silently: the trigger goes to the applied tone and says how many\n // are in there (see `MoreTrigger`), which is the same signal the pill itself\n // was carrying. A control you scroll off-screen carries no signal at all.\n //\n // The keep-what-fits loop itself is `splitToFit` (`utility/Overflow`) — the\n // one part of this that is not filter-shaped, and the part a second cluster\n // in the design system would otherwise have had to reimplement.\n const split = splitToFit(all, {\n widthOf: (field) => fieldWidth(field, pills, ranges),\n keyOf: (field) => field.id,\n gap: GAP,\n available: width - furniture - clearCost,\n // The overflow button at the width it will actually have, which on a phone\n // is the icon-and-badge one.\n overflowCost: compact ? RESERVED.overflowButtonCompact : RESERVED.overflowButton,\n priority: [...active, ...idle],\n });\n return { ...split, used: split.used + clearCost };\n}\n\n/**\n * THE DEGRADATION LADDER — cheapest loss first, and each rung taken only if\n * the one before it did not free enough:\n *\n * 1. filter controls move into the \"Mais\" overflow (`splitFilters`)\n * 2. Exibir / Exportar drop their text labels (`compactControls`)\n * 3. the search shrinks toward its minimum (CSS: it is `flex: 1`)\n * 4. the search itself collapses to an icon (`searchCollapsed`)\n *\n * Step 3 needs no flag — the search is a flex child, so it gives up width on\n * its own until it hits `RESERVED.search`. The flags mark the two steps that\n * change what is RENDERED rather than how wide it is.\n *\n * Measured against what is CURRENTLY on the bar, never a breakpoint: a\n * two-filter page and a five-filter page would otherwise collapse at the same\n * width, and only one of them would be right.\n */\nfunction computeSplit<T extends Record<string, unknown>>(\n all: OverflowField<T>[],\n pills: Record<string, string[]>,\n ranges: Record<string, RangeValue>,\n width: number,\n /** Does the host render \"Exportar\" beside \"Exibir\"? Half the cluster if not. */\n hasExport: boolean,\n): Omit<OverflowSplit<T>, \"barRef\"> {\n // Unmeasured (SSR, or jsdom without a ResizeObserver) ⇒ degrade nothing.\n if (width === 0) {\n return {\n inline: all,\n overflow: [],\n compactControls: false,\n counterHidden: false,\n searchCollapsed: false,\n clearAllHidden: false,\n searchTakeover: false,\n };\n }\n // Pass 1 prices the furniture at its widest — no rung has been taken yet.\n let split = splitFilters(all, pills, ranges, width, furnitureCost(UNCOLLAPSED, hasExport), false);\n let flags = ladderFlags(split, width, hasExport);\n // RE-SPEND WHAT THE LATER RUNGS FREED.\n //\n // Rungs 2/4/5 turn 200 + 96 + 216 of furniture into 44 + 0 + 140, and until\n // this loop existed nobody handed those ~330px back to the filters: the\n // split was decided once, against the uncollapsed row, so a phone shed every\n // control and then sat with a band of empty bar beside \"Mais 5\".\n //\n // Settles rather than oscillates, and cannot overfill: a cheaper furniture\n // can only give the filters MORE room, more filter width can only push the\n // ladder FURTHER down, and a further rung can only make the furniture\n // cheaper again — so the budget decreases monotonically and the loop exits\n // the moment it stops moving. The bound is a backstop, not the exit.\n let budget = furnitureCost(UNCOLLAPSED, hasExport);\n for (let pass = 0; pass < 3; pass += 1) {\n const freed = furnitureCost(flags, hasExport);\n if (freed >= budget) break;\n budget = freed;\n split = splitFilters(all, pills, ranges, width, budget, flags.compactControls);\n flags = ladderFlags(split, width, hasExport);\n }\n return { inline: split.inline, overflow: split.overflow, ...flags };\n}\n\n/** The widest the furniture ever is — every rung still untaken. */\nconst UNCOLLAPSED = { searchCollapsed: false, counterHidden: false, compactControls: false };\n\n/** Rungs 2 and 4-6, priced against what the filters actually took. */\nfunction ladderFlags<T extends Record<string, unknown>>(\n split: Split<T>,\n width: number,\n hasExport: boolean,\n): Omit<OverflowSplit<T>, \"barRef\" | \"inline\" | \"overflow\"> {\n const { overflow, used } = split;\n const base = width - used - RESERVED.chrome;\n\n // Would the search still make its minimum with the labels on?\n const compactControls = base - RESERVED.counter - rightClusterCost(hasExport, false) < RESERVED.search;\n const rightCost = rightClusterCost(hasExport, compactControls);\n // …and with them off?\n const searchCollapsed = base - RESERVED.counter - rightCost < RESERVED.search;\n // Everything has collapsed and the row STILL overflows. The controls cannot\n // shrink further — they are `flexShrink: 0` precisely so an over-packed row\n // sheds rather than squeezes — so without this last rung they simply paint\n // outside the toolbar, which is what a narrow phone was doing.\n const counterHidden =\n searchCollapsed && base - RESERVED.counter - rightCost < RESERVED.searchIcon;\n // Step 6 — below even that, \"Limpar\" leaves the bar. It is the ONLY control\n // here with a second home: the overflow panel's footer carries \"Limpar todos\n // os filtros\", so nothing is lost, which is exactly why it goes before the\n // search icon or \"Mais\" (neither of which has anywhere else to be). Guarded\n // on there BEING an overflow, because with no panel the footer does not\n // exist and dropping this would strand the operator.\n const clearAllHidden = counterHidden && overflow.length > 0;\n // What the keyword box would get if the operator expanded the magnifier.\n // `searchCollapsed` is a different question — it asks whether the box fits at\n // its PREFERRED 200px, and is deliberately pessimistic — so reusing it to\n // decide the takeover evicted the filters on screens where the box had plenty\n // of room to simply shrink.\n //\n // Asked with the inline filters SHED, because shedding them is exactly what\n // expanding the box does: the row re-splits and they go behind \"Mais\".\n // Measuring against the resting row instead made a filter argue for its own\n // eviction — now that a large phone keeps one, its width came out of `base`,\n // pushed the box under `usableSearch`, and tipped a row that had ample space\n // to share into a full takeover.\n const overflowButton = compactControls\n ? RESERVED.overflowButtonCompact\n : RESERVED.overflowButton;\n const shedRoom = width - RESERVED.chrome - (overflow.length > 0 ? overflowButton : 0);\n const searchBoxRoom = shedRoom - (counterHidden ? 0 : RESERVED.counter) - rightCost;\n // Below this a box is too narrow to read what you typed into it, and shrinking\n // further buys nothing; that is the only point at which taking the whole\n // cluster is worth losing the filters.\n const searchTakeover = searchCollapsed && searchBoxRoom < RESERVED.usableSearch;\n\n return { compactControls, counterHidden, searchCollapsed, clearAllHidden, searchTakeover };\n}\n\n/**\n * Split the declared filter controls into what fits and what goes behind\n * \"Mais\", measured against the live toolbar width.\n *\n * Cached on a SIGNATURE rather than by `useMemo` over the inputs: hosts declare\n * their fields inline, so `all` is a fresh array on every render while the\n * configuration is unchanged, and a reference-keyed memo would never hit.\n */\nexport function useFilterOverflow<T extends Record<string, unknown>>(\n all: OverflowField<T>[],\n pills: Record<string, string[]>,\n ranges: Record<string, RangeValue>,\n /**\n * A filter control is open — hold the current answer until it closes.\n *\n * Applying a filter changes that control's LABEL (\"Valor\" becomes \"Valor: ≥\n * R$ 1\"), which changes its measured width, which re-runs the whole split\n * while its popover is open on top of it. Measured: setting a minimum moved\n * the trigger 192px left, took the popover with it, and pushed two other\n * controls into a newly-appeared \"Mais 2\" — so reaching for the second bound\n * meant chasing the control across the row. Nobody sets a range that way.\n *\n * Frozen only for the duration: closing re-measures against the new labels,\n * so the row still ends up correct, it just does not rearrange under a hand\n * that is mid-edit.\n */\n frozen = false,\n /** Whether \"Exportar\" is on the bar — see `rightClusterCost`. */\n hasExport = true,\n): OverflowSplit<T> {\n // The measurement is `useMeasuredWidth` (`utility/Overflow`): the same\n // ResizeObserver every collapsing cluster in the design system reads, so\n // there is one loop to get right rather than one per bar. `0` until the\n // first measurement lands (and forever under SSR or jsdom), which\n // `computeSplit` reads as \"degrade nothing\".\n const { ref: barRef, width } = useMeasuredWidth<HTMLDivElement>();\n const signature = JSON.stringify({\n ids: all.map((field) => field.id),\n pills,\n ranges,\n width,\n hasExport,\n });\n const cache = useRef<{ signature: string; split: ReturnType<typeof computeSplit<T>> } | null>(null);\n if (cache.current === null || (!frozen && cache.current.signature !== signature)) {\n cache.current = { signature, split: computeSplit(all, pills, ranges, width, hasExport) };\n }\n return { ...cache.current.split, barRef };\n}\n"],"mappings":"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","names":[]}
1
+ {"version":3,"sources":["../src/components/data-display/DataViews/data-views-overflow.ts"],"sourcesContent":["\"use client\";\n\nimport { useRef } from \"react\";\n\nimport { splitToFit, useMeasuredWidth } from \"../../utility/Overflow\";\nimport {\n estimateWidth,\n furnitureCost,\n GAP,\n isRangeSet,\n pillText,\n RESERVED,\n rightClusterCost,\n} from \"./data-views-overflow-costs\";\nimport type { FilterFieldConfig, RangeFieldConfig, RangeValue } from \"./data-views-types\";\n\n/**\n * PROGRESSIVE COLLAPSE — which filter controls fit on the toolbar, measured.\n *\n * Two rules, and both come from watching the all-or-nothing version fail:\n *\n * 1. Controls shed ONE AT A TIME into an overflow, never all at once. With four\n * filters and room for three, hiding all four throws away the room that was\n * there.\n * 2. An APPLIED filter is ranked first, not exempt. Applied controls take the\n * visible slots ahead of idle ones, and go into \"Mais\" like anything else\n * when even those slots run out. Exempting them outright — the earlier rule\n * — meant four applied filters on a phone claimed more width than the row\n * had, and the bar painted past its own edge: the pills were reachable only\n * by scrolling the toolbar sideways. Hiding one is safe because \"Mais\" says\n * how many applied filters are behind it; scrolling one off-screen says\n * nothing at all.\n *\n * It MEASURES rather than picking a breakpoint, which is what\n * `FILTERS-CONTRACT.md` asks for: pages declare different numbers of filters\n * with different label lengths, and the same page collapses at a different\n * width in another language. A shared breakpoint is wrong for at least one\n * table by construction.\n *\n * Collapsing is presentation only — nothing here emits a query, drops a filter\n * or changes a rendered row.\n */\n\n/** A filter control on the bar: a multi-select pill or a min/max range. */\nexport interface OverflowField<T extends Record<string, unknown>> {\n id: string;\n label: string;\n /** Which control it is — the caller renders the right one. */\n group: \"pill\" | \"range\";\n pill?: FilterFieldConfig<T>;\n range?: RangeFieldConfig<T>;\n}\n\n/** What the caller renders inline, and what goes behind \"Mais\". */\nexport interface OverflowSplit<T extends Record<string, unknown>> {\n inline: OverflowField<T>[];\n overflow: OverflowField<T>[];\n /**\n * Step 2 — Exibir/Exportar drop their text labels and become icons.\n * Cheap: both keep their icon, their tooltip and their position.\n */\n compactControls: boolean;\n /**\n * Step 5, and the LAST resort — the \"N de N\" counter is dropped.\n *\n * Only once every control has already collapsed and the row STILL does not\n * fit, which on a six-filter table is below about 400px. The counter goes\n * last because it is the only thing left that reports rather than does: an\n * operator can act without knowing the total, but not without the search.\n */\n counterHidden: boolean;\n /**\n * Step 4 — the search collapses to a magnifier that expands on click.\n * The most expensive step, so it is taken last: the search is the one\n * control on the bar that cannot be guessed from an icon's position.\n */\n searchCollapsed: boolean;\n /**\n * Step 6, below even the counter — \"Limpar\" leaves the bar.\n *\n * The one control here with a second home: the overflow panel's footer\n * carries \"Limpar todos os filtros\". So it goes before the search icon or\n * \"Mais\", neither of which has anywhere else to be.\n */\n clearAllHidden: boolean;\n /**\n * Expanding the magnifier must take the whole cluster, filters and all.\n *\n * Only on the rungs where what is left over would be too narrow to read —\n * on a large phone the box simply shrinks and the filters stay, which is why\n * this is its own answer rather than `searchCollapsed` reused.\n */\n searchTakeover: boolean;\n /** Attach to the toolbar row being measured. */\n barRef: React.RefObject<HTMLDivElement | null>;\n}\n\n/** Every declared control, pills first, in the order the bar renders them. */\nexport function toOverflowFields<T extends Record<string, unknown>>(\n fields: FilterFieldConfig<T>[],\n rangeFields: RangeFieldConfig<T>[],\n): OverflowField<T>[] {\n return [\n ...fields.map((pill) => ({ id: pill.id, label: pill.label, group: \"pill\" as const, pill })),\n ...rangeFields.map((range) => ({ id: range.id, label: range.label, group: \"range\" as const, range })),\n ];\n}\n\n\n/** Is this control carrying a value the operator set? */\nfunction isActiveField<T extends Record<string, unknown>>(\n field: OverflowField<T>,\n pills: Record<string, string[]>,\n ranges: Record<string, RangeValue>,\n): boolean {\n return field.group === \"pill\"\n ? (pills[field.id]?.length ?? 0) > 0\n : isRangeSet(ranges[field.id]);\n}\n\n/** Estimated rendered width of one control at its CURRENT value. */\nfunction fieldWidth<T extends Record<string, unknown>>(\n field: OverflowField<T>,\n pills: Record<string, string[]>,\n ranges: Record<string, RangeValue>,\n): number {\n if (field.group === \"pill\") return estimateWidth(pillText(field, pills[field.id] ?? []), 0);\n // A bounded range renders two number inputs beside its label.\n return estimateWidth(field.label, isRangeSet(ranges[field.id]) ? 100 : 0);\n}\n\n/** What one split costs on the bar, so the ladder below can price the next step. */\ntype Split<T extends Record<string, unknown>> = {\n inline: OverflowField<T>[];\n overflow: OverflowField<T>[];\n /** Width the surviving inline controls occupy, incl. the \"Mais\" button. */\n used: number;\n};\n\n/** Step 1 — shed filter controls into the overflow. Pure. */\nfunction splitFilters<T extends Record<string, unknown>>(\n all: OverflowField<T>[],\n pills: Record<string, string[]>,\n ranges: Record<string, RangeValue>,\n width: number,\n /** Search + counter + right cluster + chrome, at the rung being considered. */\n furniture: number,\n /** Is the bar already down to icons? \"Mais\" shrinks with everything else. */\n compact: boolean,\n): Split<T> {\n const active = all.filter((field) => isActiveField(field, pills, ranges));\n const idle = all.filter((field) => !isActiveField(field, pills, ranges));\n\n // \"Limpar\" rides the end of the cluster whenever anything is applied.\n const clearCost = active.length > 0 ? RESERVED.clearAll + GAP : 0;\n // APPLIED FIRST, BUT NOT EXEMPT.\n //\n // Applied controls take the visible slots ahead of idle ones — that part was\n // always right. Exempting them from the overflow entirely was not: applying\n // a value LENGTHENS a control (\"Pagamento (1)\"), so on a phone four applied\n // filters claimed more width than the row had and the bar simply painted\n // past its own edge, leaving pills reachable only by scrolling sideways.\n //\n // An applied filter hidden in \"Mais\" is not lost the way it would be if it\n // vanished silently: the trigger goes to the applied tone and says how many\n // are in there (see `MoreTrigger`), which is the same signal the pill itself\n // was carrying. A control you scroll off-screen carries no signal at all.\n //\n // The keep-what-fits loop itself is `splitToFit` (`utility/Overflow`) — the\n // one part of this that is not filter-shaped, and the part a second cluster\n // in the design system would otherwise have had to reimplement.\n const split = splitToFit(all, {\n widthOf: (field) => fieldWidth(field, pills, ranges),\n keyOf: (field) => field.id,\n gap: GAP,\n available: width - furniture - clearCost,\n // The overflow button at the width it will actually have, which on a phone\n // is the icon-and-badge one.\n overflowCost: compact ? RESERVED.overflowButtonCompact : RESERVED.overflowButton,\n priority: [...active, ...idle],\n });\n return { ...split, used: split.used + clearCost };\n}\n\n/**\n * THE DEGRADATION LADDER — cheapest loss first, and each rung taken only if\n * the one before it did not free enough:\n *\n * 1. filter controls move into the \"Mais\" overflow (`splitFilters`)\n * 2. Exibir / Exportar drop their text labels (`compactControls`)\n * 3. the search shrinks toward its minimum (CSS: it is `flex: 1`)\n * 4. the search itself collapses to an icon (`searchCollapsed`)\n *\n * Step 3 needs no flag — the search is a flex child, so it gives up width on\n * its own until it hits `RESERVED.search`. The flags mark the two steps that\n * change what is RENDERED rather than how wide it is.\n *\n * Measured against what is CURRENTLY on the bar, never a breakpoint: a\n * two-filter page and a five-filter page would otherwise collapse at the same\n * width, and only one of them would be right.\n */\nfunction computeSplit<T extends Record<string, unknown>>(\n all: OverflowField<T>[],\n pills: Record<string, string[]>,\n ranges: Record<string, RangeValue>,\n width: number,\n /** Does the host render \"Exportar\" beside \"Exibir\"? Half the cluster if not. */\n hasExport: boolean,\n): Omit<OverflowSplit<T>, \"barRef\"> {\n // Unmeasured (SSR, or jsdom without a ResizeObserver) ⇒ degrade nothing.\n if (width === 0) {\n return {\n inline: all,\n overflow: [],\n compactControls: false,\n counterHidden: false,\n searchCollapsed: false,\n clearAllHidden: false,\n searchTakeover: false,\n };\n }\n // Pass 1 prices the furniture at its widest — no rung has been taken yet.\n let split = splitFilters(all, pills, ranges, width, furnitureCost(UNCOLLAPSED, hasExport), false);\n let flags = ladderFlags(split, width, hasExport);\n // RE-SPEND WHAT THE LATER RUNGS FREED.\n //\n // Rungs 2/4/5 turn 200 + 96 + 216 of furniture into 44 + 0 + 140, and until\n // this loop existed nobody handed those ~330px back to the filters: the\n // split was decided once, against the uncollapsed row, so a phone shed every\n // control and then sat with a band of empty bar beside \"Mais 5\".\n //\n // Settles rather than oscillates, and cannot overfill: a cheaper furniture\n // can only give the filters MORE room, more filter width can only push the\n // ladder FURTHER down, and a further rung can only make the furniture\n // cheaper again — so the budget decreases monotonically and the loop exits\n // the moment it stops moving. The bound is a backstop, not the exit.\n let budget = furnitureCost(UNCOLLAPSED, hasExport);\n for (let pass = 0; pass < 3; pass += 1) {\n const freed = furnitureCost(flags, hasExport);\n if (freed >= budget) break;\n budget = freed;\n split = splitFilters(all, pills, ranges, width, budget, flags.compactControls);\n flags = ladderFlags(split, width, hasExport);\n }\n return { inline: split.inline, overflow: split.overflow, ...flags };\n}\n\n/** The widest the furniture ever is — every rung still untaken. */\nconst UNCOLLAPSED = { searchCollapsed: false, counterHidden: false, compactControls: false };\n\n/** Rungs 2 and 4-6, priced against what the filters actually took. */\nfunction ladderFlags<T extends Record<string, unknown>>(\n split: Split<T>,\n width: number,\n hasExport: boolean,\n): Omit<OverflowSplit<T>, \"barRef\" | \"inline\" | \"overflow\"> {\n const { overflow, used } = split;\n const base = width - used - RESERVED.chrome;\n\n // Would the search still make its minimum with the labels on?\n const compactControls = base - RESERVED.counter - rightClusterCost(hasExport, false) < RESERVED.search;\n const rightCost = rightClusterCost(hasExport, compactControls);\n // …and with them off?\n const searchCollapsed = base - RESERVED.counter - rightCost < RESERVED.search;\n // Everything has collapsed and the row STILL overflows. The controls cannot\n // shrink further — they are `flexShrink: 0` precisely so an over-packed row\n // sheds rather than squeezes — so without this last rung they simply paint\n // outside the toolbar, which is what a narrow phone was doing.\n const counterHidden =\n searchCollapsed && base - RESERVED.counter - rightCost < RESERVED.searchIcon;\n // Step 6 — below even that, \"Limpar\" leaves the bar. It is the ONLY control\n // here with a second home: the overflow panel's footer carries \"Limpar todos\n // os filtros\", so nothing is lost, which is exactly why it goes before the\n // search icon or \"Mais\" (neither of which has anywhere else to be). Guarded\n // on there BEING an overflow, because with no panel the footer does not\n // exist and dropping this would strand the operator.\n const clearAllHidden = counterHidden && overflow.length > 0;\n // What the keyword box would get if the operator expanded the magnifier.\n // `searchCollapsed` is a different question — it asks whether the box fits at\n // its PREFERRED 200px, and is deliberately pessimistic — so reusing it to\n // decide the takeover evicted the filters on screens where the box had plenty\n // of room to simply shrink.\n //\n // Asked with the inline filters SHED, because shedding them is exactly what\n // expanding the box does: the row re-splits and they go behind \"Mais\".\n // Measuring against the resting row instead made a filter argue for its own\n // eviction — now that a large phone keeps one, its width came out of `base`,\n // pushed the box under `usableSearch`, and tipped a row that had ample space\n // to share into a full takeover.\n const overflowButton = compactControls\n ? RESERVED.overflowButtonCompact\n : RESERVED.overflowButton;\n const shedRoom = width - RESERVED.chrome - (overflow.length > 0 ? overflowButton : 0);\n const searchBoxRoom = shedRoom - (counterHidden ? 0 : RESERVED.counter) - rightCost;\n // Below this a box is too narrow to read what you typed into it, and shrinking\n // further buys nothing; that is the only point at which taking the whole\n // cluster is worth losing the filters.\n const searchTakeover = searchCollapsed && searchBoxRoom < RESERVED.usableSearch;\n\n return { compactControls, counterHidden, searchCollapsed, clearAllHidden, searchTakeover };\n}\n\n/**\n * Split the declared filter controls into what fits and what goes behind\n * \"Mais\", measured against the live toolbar width.\n *\n * Cached on a SIGNATURE rather than by `useMemo` over the inputs: hosts declare\n * their fields inline, so `all` is a fresh array on every render while the\n * configuration is unchanged, and a reference-keyed memo would never hit.\n */\nexport function useFilterOverflow<T extends Record<string, unknown>>(\n all: OverflowField<T>[],\n pills: Record<string, string[]>,\n ranges: Record<string, RangeValue>,\n /**\n * A filter control is open — hold the current answer until it closes.\n *\n * Applying a filter changes that control's LABEL (\"Valor\" becomes \"Valor: ≥\n * R$ 1\"), which changes its measured width, which re-runs the whole split\n * while its popover is open on top of it. Measured: setting a minimum moved\n * the trigger 192px left, took the popover with it, and pushed two other\n * controls into a newly-appeared \"Mais 2\" — so reaching for the second bound\n * meant chasing the control across the row. Nobody sets a range that way.\n *\n * Frozen only for the duration: closing re-measures against the new labels,\n * so the row still ends up correct, it just does not rearrange under a hand\n * that is mid-edit.\n */\n frozen = false,\n /** Whether \"Exportar\" is on the bar — see `rightClusterCost`. */\n hasExport = true,\n): OverflowSplit<T> {\n // The measurement is `useMeasuredWidth` (`utility/Overflow`): the same\n // ResizeObserver every collapsing cluster in the design system reads, so\n // there is one loop to get right rather than one per bar. `0` until the\n // first measurement lands (and forever under SSR or jsdom), which\n // `computeSplit` reads as \"degrade nothing\".\n const { ref: barRef, width } = useMeasuredWidth<HTMLDivElement>();\n const signature = JSON.stringify({\n ids: all.map((field) => field.id),\n pills,\n ranges,\n width,\n hasExport,\n });\n const cache = useRef<{ signature: string; split: ReturnType<typeof computeSplit<T>> } | null>(null);\n if (cache.current === null || (!frozen && cache.current.signature !== signature)) {\n cache.current = { signature, split: computeSplit(all, pills, ranges, width, hasExport) };\n }\n // The cache holds the ARRANGEMENT — which ids sit on the bar, which in \"Mais\"\n // — never the fields themselves. The signature keys on ids, so a field whose\n // options arrive after the first measurement (a category list still loading)\n // does not re-split, and handing back the cached objects served the empty\n // list for good: \"Categoria\" in \"Mais\" rendered a label with no control under\n // it (FUT-2828). Re-reading each field from `all` keeps the slots and the\n // current config.\n const { split } = cache.current;\n const current = new Map(all.map((field) => [field.id, field]));\n const fresh = (fields: OverflowField<T>[]): OverflowField<T>[] =>\n fields.map((field) => current.get(field.id) ?? field);\n return { ...split, inline: fresh(split.inline), overflow: fresh(split.overflow), barRef };\n}\n"],"mappings":"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","names":[]}
@@ -4,7 +4,7 @@ import {
4
4
  } from "./chunk-7V6ZRQYW.js";
5
5
  import {
6
6
  useUiTheme
7
- } from "./chunk-AIBNBWQU.js";
7
+ } from "./chunk-NR7LSYLM.js";
8
8
  import {
9
9
  resolveTestId
10
10
  } from "./chunk-TYJR4GOF.js";
@@ -55,4 +55,4 @@ export {
55
55
  layoutToSx,
56
56
  Box
57
57
  };
58
- //# sourceMappingURL=chunk-JPVDZXXX.js.map
58
+ //# sourceMappingURL=chunk-U5RQBHRY.js.map
@@ -1,11 +1,11 @@
1
- import {
2
- PT_BR_TABLE_FILTER_COPY
3
- } from "./chunk-A7RIZOAL.js";
4
1
  import {
5
2
  PT_BR_CATEGORY_SELECT_COPY,
6
3
  PT_BR_CONFIRM_ACTION_COPY,
7
4
  PT_BR_SAVED_VIEWS_LABELS
8
5
  } from "./chunk-WUE5EK42.js";
6
+ import {
7
+ PT_BR_TABLE_FILTER_COPY
8
+ } from "./chunk-33L26P4J.js";
9
9
 
10
10
  // src/pt-BR.data-display.ts
11
11
  var PT_BR_LIGHTBOX_COPY = {
@@ -225,4 +225,4 @@ export {
225
225
  PT_BR_DATA_STATE_COPY,
226
226
  PT_BR_DATA_VIEWS_COPY
227
227
  };
228
- //# sourceMappingURL=chunk-TU5EIKJA.js.map
228
+ //# sourceMappingURL=chunk-U5SH3VRJ.js.map
@@ -0,0 +1,87 @@
1
+ import {
2
+ useAsyncSwitch
3
+ } from "./chunk-DG2A4DQU.js";
4
+ import {
5
+ SettingSwitchBlock,
6
+ useSettingSwitchIds
7
+ } from "./chunk-RH4QT7YT.js";
8
+ import {
9
+ SettingGroupContext
10
+ } from "./chunk-XJQNSMGA.js";
11
+ import {
12
+ partTestId
13
+ } from "./chunk-Q6FUSSLK.js";
14
+ import {
15
+ dependentsStyles,
16
+ hintStyles,
17
+ surfaceStyles,
18
+ withCallerSx
19
+ } from "./chunk-KRR6KK5J.js";
20
+ import {
21
+ Icon
22
+ } from "./chunk-HT7DWIR4.js";
23
+
24
+ // src/components/layout/SettingCard/SettingGroup.tsx
25
+ import Box from "@mui/material/Box/index.js";
26
+ import { useTheme } from "@mui/material/styles/index.js";
27
+ import { forwardRef, useId, useMemo } from "react";
28
+ import { jsx, jsxs } from "react/jsx-runtime";
29
+ var SettingGroup = forwardRef(function SettingGroup2(props, ref) {
30
+ const {
31
+ checked,
32
+ onChange,
33
+ copy,
34
+ formatError,
35
+ inactiveHint,
36
+ children,
37
+ disabled = false,
38
+ dataTestId,
39
+ className,
40
+ sx
41
+ } = props;
42
+ const theme = useTheme();
43
+ const ids = useSettingSwitchIds();
44
+ const hintId = `${useId()}-hint`;
45
+ const state = useAsyncSwitch({ checked, onChange, formatError, fallback: copy.saveFailed });
46
+ const active = checked && state.shown && !disabled;
47
+ const context = useMemo(() => ({ inactive: !active }), [active]);
48
+ return /* @__PURE__ */ jsxs(
49
+ Box,
50
+ {
51
+ component: "section",
52
+ ref,
53
+ "aria-labelledby": ids.titleId,
54
+ "aria-busy": state.saving || void 0,
55
+ "data-active": active,
56
+ "data-testid": dataTestId,
57
+ className,
58
+ sx: withCallerSx((t) => surfaceStyles(t, false), sx),
59
+ children: [
60
+ /* @__PURE__ */ jsx(SettingSwitchBlock, { ...props, disabled, ids, state }),
61
+ !active && /* @__PURE__ */ jsxs(Box, { component: "p", id: hintId, sx: hintStyles(theme), "data-testid": partTestId(dataTestId, "hint"), children: [
62
+ /* @__PURE__ */ jsx(Icon, { name: "InfoOutlined", size: "xs" }),
63
+ /* @__PURE__ */ jsx("span", { children: inactiveHint })
64
+ ] }),
65
+ /* @__PURE__ */ jsx(
66
+ Box,
67
+ {
68
+ role: "group",
69
+ "aria-labelledby": ids.titleId,
70
+ "aria-describedby": active ? void 0 : hintId,
71
+ "aria-disabled": active ? void 0 : true,
72
+ inert: !active,
73
+ sx: dependentsStyles(theme, active),
74
+ "data-testid": partTestId(dataTestId, "dependents"),
75
+ children: /* @__PURE__ */ jsx(SettingGroupContext.Provider, { value: context, children })
76
+ }
77
+ )
78
+ ]
79
+ }
80
+ );
81
+ });
82
+ SettingGroup.displayName = "SettingGroup";
83
+
84
+ export {
85
+ SettingGroup
86
+ };
87
+ //# sourceMappingURL=chunk-V32X24SH.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/components/layout/SettingCard/SettingGroup.tsx"],"sourcesContent":["import Box from '@mui/material/Box/index.js';\nimport { useTheme } from '@mui/material/styles/index.js';\nimport { forwardRef, useId, useMemo } from 'react';\n\nimport { Icon } from '../../../icons';\n\nimport { useAsyncSwitch } from './SettingCard.hooks';\nimport { partTestId } from './SettingCard.parts';\nimport { dependentsStyles, hintStyles, surfaceStyles, withCallerSx } from './SettingCard.styles';\nimport type { SettingGroupProps } from './SettingCard.types';\nimport { SettingGroupContext } from './SettingGroup.context';\nimport { SettingSwitchBlock, useSettingSwitchIds } from './SettingSwitch';\n\n/**\n * ONE subject: a main switch, and the settings that only mean something while\n * it is on, indented beneath it.\n *\n * With the main switch off the dependent rows stay where they are — dimmed,\n * `inert`, and explained by `inactiveHint` — rather than disappearing. A\n * reader deciding whether to turn a feature on is helped by seeing what it\n * would let them configure, and a layout that jumps when a switch flips moves\n * the thing they were about to press.\n *\n * The rows are active only while the main switch is on AND saved: turning it\n * on lights them once the save lands; turning it off dims them at once.\n *\n * Several subjects are several cards, never one group — see `SettingGroup.md`.\n */\nexport const SettingGroup = forwardRef<HTMLElement, SettingGroupProps>(function SettingGroup(props, ref) {\n const {\n checked, onChange, copy, formatError, inactiveHint, children, disabled = false, dataTestId, className, sx,\n } = props;\n const theme = useTheme();\n const ids = useSettingSwitchIds();\n const hintId = `${useId()}-hint`;\n const state = useAsyncSwitch({ checked, onChange, formatError, fallback: copy.saveFailed });\n const active = checked && state.shown && !disabled;\n const context = useMemo(() => ({ inactive: !active }), [active]);\n\n return (\n <Box\n component=\"section\"\n ref={ref}\n aria-labelledby={ids.titleId}\n aria-busy={state.saving || undefined}\n data-active={active}\n data-testid={dataTestId}\n className={className}\n sx={withCallerSx((t) => surfaceStyles(t, false), sx)}\n >\n <SettingSwitchBlock {...props} disabled={disabled} ids={ids} state={state} />\n {!active && (\n <Box component=\"p\" id={hintId} sx={hintStyles(theme)} data-testid={partTestId(dataTestId, 'hint')}>\n <Icon name=\"InfoOutlined\" size=\"xs\" />\n <span>{inactiveHint}</span>\n </Box>\n )}\n <Box\n role=\"group\"\n aria-labelledby={ids.titleId}\n aria-describedby={active ? undefined : hintId}\n aria-disabled={active ? undefined : true}\n inert={!active}\n sx={dependentsStyles(theme, active)}\n data-testid={partTestId(dataTestId, 'dependents')}\n >\n <SettingGroupContext.Provider value={context}>{children}</SettingGroupContext.Provider>\n </Box>\n </Box>\n );\n});\n\nSettingGroup.displayName = 'SettingGroup';\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,SAAS;AAChB,SAAS,gBAAgB;AACzB,SAAS,YAAY,OAAO,eAAe;AAgDrC,cAEE,YAFF;AAtBC,IAAM,eAAe,WAA2C,SAASA,cAAa,OAAO,KAAK;AACvG,QAAM;AAAA,IACJ;AAAA,IAAS;AAAA,IAAU;AAAA,IAAM;AAAA,IAAa;AAAA,IAAc;AAAA,IAAU,WAAW;AAAA,IAAO;AAAA,IAAY;AAAA,IAAW;AAAA,EACzG,IAAI;AACJ,QAAM,QAAQ,SAAS;AACvB,QAAM,MAAM,oBAAoB;AAChC,QAAM,SAAS,GAAG,MAAM,CAAC;AACzB,QAAM,QAAQ,eAAe,EAAE,SAAS,UAAU,aAAa,UAAU,KAAK,WAAW,CAAC;AAC1F,QAAM,SAAS,WAAW,MAAM,SAAS,CAAC;AAC1C,QAAM,UAAU,QAAQ,OAAO,EAAE,UAAU,CAAC,OAAO,IAAI,CAAC,MAAM,CAAC;AAE/D,SACE;AAAA,IAAC;AAAA;AAAA,MACC,WAAU;AAAA,MACV;AAAA,MACA,mBAAiB,IAAI;AAAA,MACrB,aAAW,MAAM,UAAU;AAAA,MAC3B,eAAa;AAAA,MACb,eAAa;AAAA,MACb;AAAA,MACA,IAAI,aAAa,CAAC,MAAM,cAAc,GAAG,KAAK,GAAG,EAAE;AAAA,MAEnD;AAAA,4BAAC,sBAAoB,GAAG,OAAO,UAAoB,KAAU,OAAc;AAAA,QAC1E,CAAC,UACA,qBAAC,OAAI,WAAU,KAAI,IAAI,QAAQ,IAAI,WAAW,KAAK,GAAG,eAAa,WAAW,YAAY,MAAM,GAC9F;AAAA,8BAAC,QAAK,MAAK,gBAAe,MAAK,MAAK;AAAA,UACpC,oBAAC,UAAM,wBAAa;AAAA,WACtB;AAAA,QAEF;AAAA,UAAC;AAAA;AAAA,YACC,MAAK;AAAA,YACL,mBAAiB,IAAI;AAAA,YACrB,oBAAkB,SAAS,SAAY;AAAA,YACvC,iBAAe,SAAS,SAAY;AAAA,YACpC,OAAO,CAAC;AAAA,YACR,IAAI,iBAAiB,OAAO,MAAM;AAAA,YAClC,eAAa,WAAW,YAAY,YAAY;AAAA,YAEhD,8BAAC,oBAAoB,UAApB,EAA6B,OAAO,SAAU,UAAS;AAAA;AAAA,QAC1D;AAAA;AAAA;AAAA,EACF;AAEJ,CAAC;AAED,aAAa,cAAc;","names":["SettingGroup"]}
@@ -4,17 +4,17 @@ import {
4
4
  } from "./chunk-FRW4SYZD.js";
5
5
  import {
6
6
  MapLayers
7
- } from "./chunk-EXJBPKGW.js";
7
+ } from "./chunk-SHDIZSN5.js";
8
+ import {
9
+ StaticMapView
10
+ } from "./chunk-WBKWIFXA.js";
8
11
  import {
9
12
  glassStyles,
10
13
  resolveMapPreviewProps
11
14
  } from "./chunk-ACZH2NUW.js";
12
15
  import {
13
16
  useMapPreview
14
- } from "./chunk-PQECNGDE.js";
15
- import {
16
- StaticMapView
17
- } from "./chunk-QYNCPS5W.js";
17
+ } from "./chunk-AGYGNNOM.js";
18
18
 
19
19
  // src/components/data-display/MapPreview/MapPreview.tsx
20
20
  import Box from "@mui/material/Box/index.js";
@@ -105,4 +105,4 @@ export {
105
105
  MapPreview,
106
106
  MapPreview_default
107
107
  };
108
- //# sourceMappingURL=chunk-J4W4TQPC.js.map
108
+ //# sourceMappingURL=chunk-V5P5Q6HM.js.map
@@ -8,7 +8,7 @@ import {
8
8
  } from "./chunk-SNR537TI.js";
9
9
  import {
10
10
  useDataViewsLayout
11
- } from "./chunk-ZPIMPOHV.js";
11
+ } from "./chunk-M7E66OSC.js";
12
12
  import {
13
13
  useDataViewsCopy
14
14
  } from "./chunk-KHG57NAE.js";
@@ -17,7 +17,7 @@ import {
17
17
  } from "./chunk-6DPAWXZ3.js";
18
18
  import {
19
19
  Text
20
- } from "./chunk-YTYROOLY.js";
20
+ } from "./chunk-D22EGB3T.js";
21
21
 
22
22
  // src/components/data-display/DataViews/data-views-display-tabs.tsx
23
23
  import ArrowDownwardRoundedIcon from "@mui/icons-material/ArrowDownwardRounded";
@@ -243,4 +243,4 @@ export {
243
243
  SortTab,
244
244
  DisplayTab
245
245
  };
246
- //# sourceMappingURL=chunk-DQOLW4B5.js.map
246
+ //# sourceMappingURL=chunk-VBMV2W4K.js.map
@@ -1,9 +1,15 @@
1
1
  import {
2
2
  CategoryPanel
3
- } from "./chunk-VESIQYBF.js";
3
+ } from "./chunk-3ZTC2VEO.js";
4
+ import {
5
+ CategoryTrigger
6
+ } from "./chunk-GVDJQMFI.js";
4
7
  import {
5
8
  CategoryPanelSurface
6
9
  } from "./chunk-LMXWI3DD.js";
10
+ import {
11
+ METRICS
12
+ } from "./chunk-ZS44PY7T.js";
7
13
  import {
8
14
  useCategorySelect
9
15
  } from "./chunk-RZVUY2MO.js";
@@ -17,12 +23,6 @@ import {
17
23
  categoryPath,
18
24
  summarizeSelection
19
25
  } from "./chunk-PN4HVM43.js";
20
- import {
21
- CategoryTrigger
22
- } from "./chunk-GVDJQMFI.js";
23
- import {
24
- METRICS
25
- } from "./chunk-ZS44PY7T.js";
26
26
  import {
27
27
  FormControl,
28
28
  FormLabel,
@@ -155,4 +155,4 @@ function CategorySelect(props) {
155
155
  export {
156
156
  CategorySelect
157
157
  };
158
- //# sourceMappingURL=chunk-57W2C7HY.js.map
158
+ //# sourceMappingURL=chunk-VOHT6ZX3.js.map
@@ -4,16 +4,16 @@ import {
4
4
  MapDecorativePins,
5
5
  MapRoads,
6
6
  MapScaleBar
7
- } from "./chunk-W3FAKT3D.js";
7
+ } from "./chunk-2SWQ6HIK.js";
8
8
  import {
9
9
  MapTiles
10
- } from "./chunk-JB67KPGM.js";
11
- import {
12
- surfaceBackground
13
- } from "./chunk-DRADVLHZ.js";
10
+ } from "./chunk-RRO2EOJB.js";
14
11
  import {
15
12
  getTileCoordinates
16
13
  } from "./chunk-TUBCN4DJ.js";
14
+ import {
15
+ surfaceBackground
16
+ } from "./chunk-DRADVLHZ.js";
17
17
 
18
18
  // src/components/data-display/MapPreview/StaticMapView.tsx
19
19
  import Box from "@mui/material/Box/index.js";
@@ -59,4 +59,4 @@ var StaticMapView = ({
59
59
  export {
60
60
  StaticMapView
61
61
  };
62
- //# sourceMappingURL=chunk-QYNCPS5W.js.map
62
+ //# sourceMappingURL=chunk-WBKWIFXA.js.map
@@ -1,21 +1,21 @@
1
+ import {
2
+ DateRangeFields
3
+ } from "./chunk-MEWYA74E.js";
1
4
  import {
2
5
  DEFAULT_QUICK_RANGES
3
6
  } from "./chunk-QKLSHNOH.js";
4
7
  import {
5
8
  useDateRangePicker
6
9
  } from "./chunk-OD4Z5G6G.js";
7
- import {
8
- DateRangeQuickList
9
- } from "./chunk-ZRHSIFWA.js";
10
- import {
11
- DateRangeFields
12
- } from "./chunk-MEWYA74E.js";
13
10
  import {
14
11
  toLocalDay
15
12
  } from "./chunk-FRAVVI4A.js";
13
+ import {
14
+ DateRangeQuickList
15
+ } from "./chunk-ZRHSIFWA.js";
16
16
  import {
17
17
  Calendar
18
- } from "./chunk-CZJLWCEG.js";
18
+ } from "./chunk-BPYPUEM5.js";
19
19
 
20
20
  // src/components/form/DateRangePicker/DateRangePicker.tsx
21
21
  import Box from "@mui/material/Box/index.js";
@@ -180,4 +180,4 @@ export {
180
180
  DateRangePicker,
181
181
  DateRangePicker_default
182
182
  };
183
- //# sourceMappingURL=chunk-VJFH2AXT.js.map
183
+ //# sourceMappingURL=chunk-WG7HIXJ7.js.map
@@ -1,3 +1,6 @@
1
+ import {
2
+ SettingsRail
3
+ } from "./chunk-7JO3ES5P.js";
1
4
  import {
2
5
  activeItemLabel,
3
6
  filterGroups
@@ -5,9 +8,6 @@ import {
5
8
  import {
6
9
  SettingsPanel
7
10
  } from "./chunk-IE7ISTLQ.js";
8
- import {
9
- SettingsRail
10
- } from "./chunk-7JO3ES5P.js";
11
11
  import {
12
12
  atLeastRail
13
13
  } from "./chunk-LIG7TKIB.js";
@@ -135,4 +135,4 @@ SettingsLayout.displayName = "SettingsLayout";
135
135
  export {
136
136
  SettingsLayout
137
137
  };
138
- //# sourceMappingURL=chunk-VMXDTCYF.js.map
138
+ //# sourceMappingURL=chunk-WMALDOF5.js.map
@@ -6,7 +6,7 @@ import {
6
6
  } from "./chunk-4T6W43TO.js";
7
7
  import {
8
8
  CategorySelect
9
- } from "./chunk-57W2C7HY.js";
9
+ } from "./chunk-VOHT6ZX3.js";
10
10
 
11
11
  // src/components/data-display/DataViews/data-views-category-pill.tsx
12
12
  import { jsx } from "react/jsx-runtime";
@@ -33,10 +33,10 @@ function PillControl({
33
33
  onClearField,
34
34
  onOpenChange,
35
35
  testIdPrefix,
36
+ testId = `${testIdPrefix}-filter-${fieldId}`,
36
37
  layout = "pill"
37
38
  }) {
38
39
  const copy = useDataViewsCopy();
39
- const testId = `${testIdPrefix}-filter-${fieldId}`;
40
40
  if (pill.control === "category") {
41
41
  return /* @__PURE__ */ jsx(
42
42
  CategorySelect,
@@ -79,4 +79,4 @@ export {
79
79
  emitPillDiff,
80
80
  PillControl
81
81
  };
82
- //# sourceMappingURL=chunk-I3FXTIKA.js.map
82
+ //# sourceMappingURL=chunk-WP6Y2NJQ.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/components/data-display/DataViews/data-views-category-pill.tsx"],"sourcesContent":["\"use client\";\n\nimport { useDataViewsCopy } from \"./data-views-copy-context\";\nimport { CategorySelect } from \"../../form/CategorySelect\";\nimport { MultiSelectDropdown } from \"../../layout/ContentToolbar\";\n\nimport type { FilterFieldConfig, FilterOption } from \"./data-views-types\";\n\n/**\n * Diff a whole-array selection back into per-value toggles.\n *\n * The filter state's only channel is `onTogglePill(field, value, checked)`, but\n * a tree hands back the entire selection at once. Diffing here keeps that one\n * channel the single way a pill ever changes, rather than giving the\n * hierarchical control a private path into the state.\n */\nexport function emitPillDiff(\n fieldId: string,\n before: readonly string[],\n after: readonly string[],\n onTogglePill: (fieldId: string, value: string, checked: boolean) => void,\n): void {\n const had = new Set(before);\n const wants = new Set(after);\n after.forEach((value) => {\n if (!had.has(value)) onTogglePill(fieldId, value, true);\n });\n before.forEach((value) => {\n if (!wants.has(value)) onTogglePill(fieldId, value, false);\n });\n}\n\n/** A filter option as the category tree wants it. */\nconst toCategoryOption = (option: FilterOption) => ({\n id: option.value,\n name: option.label,\n parentId: option.parentId ?? null,\n});\n\ninterface PillControlProps<T extends Record<string, unknown>> {\n fieldId: string;\n pill: FilterFieldConfig<T>;\n selected: string[];\n onTogglePill: (fieldId: string, value: string, checked: boolean) => void;\n onClearField: (fieldId: string) => void;\n onOpenChange?: (open: boolean) => void;\n testIdPrefix: string;\n /**\n * Overrides the `<prefix>-filter-<id>` test id — the \"Mais\" panel keys its\n * fields `<prefix>-more-<id>` so a spec can tell which surface it drove.\n */\n testId?: string;\n /** `stacked` in the filter panel, `pill` on the inline bar. */\n layout?: \"stacked\" | \"pill\";\n}\n\n/**\n * One filter pill: the hierarchical category tree, or the flat multi-select.\n *\n * A category set nests, and flattening it into one list is what made \"Massas\"\n * (mercearia) indistinguishable from \"Massas\" (pratos principais). `control:\n * \"category\"` opts a field into the tree, which shows each hit under its parent.\n *\n * {@link FilterFieldConfig.allowParentSelection} decides whether a parent row is\n * itself tickable. It is forwarded rather than fixed here because it is a\n * per-SCREEN question: a filter over a catalogue where products sit on leaves\n * wants \"the whole category\" as one click, while one whose parents are pure\n * grouping would only offer a tick that means nothing.\n */\nexport function PillControl<T extends Record<string, unknown>>({\n fieldId,\n pill,\n selected,\n onTogglePill,\n onClearField,\n onOpenChange,\n testIdPrefix,\n testId = `${testIdPrefix}-filter-${fieldId}`,\n layout = \"pill\",\n}: PillControlProps<T>): React.JSX.Element {\n const copy = useDataViewsCopy();\n if (pill.control === \"category\") {\n return (\n <CategorySelect\n copy={copy.categorySelect}\n placeholder={pill.label}\n label={layout === \"stacked\" ? pill.label : undefined}\n fullWidth={layout === \"stacked\"}\n options={pill.options.map(toCategoryOption)}\n allowParentSelection={pill.allowParentSelection ?? false}\n value={selected}\n onChange={(next) => emitPillDiff(fieldId, selected, next, onTogglePill)}\n dataTestId={testId}\n />\n );\n }\n return (\n <MultiSelectDropdown\n extraOptionsHeading={copy.filters.optionsHeading}\n clearText={copy.filters.clear}\n clearLabel={copy.filters.clearRange(pill.label)}\n label={pill.label}\n options={pill.options}\n selected={new Set(selected)}\n onToggle={(value, checked) => onTogglePill(fieldId, value, checked)}\n onClear={() => onClearField(fieldId)}\n allLabel={copy.filters.allOption}\n searchable={pill.searchEnabled ? true : undefined}\n searchPlaceholder={copy.filters.optionSearchPlaceholder}\n noResultsLabel={copy.filters.optionsEmpty}\n layout={layout}\n onOpenChange={onOpenChange}\n data-testid={testId}\n />\n );\n}\n"],"mappings":";;;;;;;;;;;AAmFM;AAnEC,SAAS,aACd,SACA,QACA,OACA,cACM;AACN,QAAM,MAAM,IAAI,IAAI,MAAM;AAC1B,QAAM,QAAQ,IAAI,IAAI,KAAK;AAC3B,QAAM,QAAQ,CAAC,UAAU;AACvB,QAAI,CAAC,IAAI,IAAI,KAAK,EAAG,cAAa,SAAS,OAAO,IAAI;AAAA,EACxD,CAAC;AACD,SAAO,QAAQ,CAAC,UAAU;AACxB,QAAI,CAAC,MAAM,IAAI,KAAK,EAAG,cAAa,SAAS,OAAO,KAAK;AAAA,EAC3D,CAAC;AACH;AAGA,IAAM,mBAAmB,CAAC,YAA0B;AAAA,EAClD,IAAI,OAAO;AAAA,EACX,MAAM,OAAO;AAAA,EACb,UAAU,OAAO,YAAY;AAC/B;AAgCO,SAAS,YAA+C;AAAA,EAC7D;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA,SAAS,GAAG,YAAY,WAAW,OAAO;AAAA,EAC1C,SAAS;AACX,GAA2C;AACzC,QAAM,OAAO,iBAAiB;AAC9B,MAAI,KAAK,YAAY,YAAY;AAC/B,WACE;AAAA,MAAC;AAAA;AAAA,QACC,MAAM,KAAK;AAAA,QACX,aAAa,KAAK;AAAA,QAClB,OAAO,WAAW,YAAY,KAAK,QAAQ;AAAA,QAC3C,WAAW,WAAW;AAAA,QACtB,SAAS,KAAK,QAAQ,IAAI,gBAAgB;AAAA,QAC1C,sBAAsB,KAAK,wBAAwB;AAAA,QACnD,OAAO;AAAA,QACP,UAAU,CAAC,SAAS,aAAa,SAAS,UAAU,MAAM,YAAY;AAAA,QACtE,YAAY;AAAA;AAAA,IACd;AAAA,EAEJ;AACA,SACE;AAAA,IAAC;AAAA;AAAA,MACC,qBAAqB,KAAK,QAAQ;AAAA,MAClC,WAAW,KAAK,QAAQ;AAAA,MACxB,YAAY,KAAK,QAAQ,WAAW,KAAK,KAAK;AAAA,MAC9C,OAAO,KAAK;AAAA,MACZ,SAAS,KAAK;AAAA,MACd,UAAU,IAAI,IAAI,QAAQ;AAAA,MAC1B,UAAU,CAAC,OAAO,YAAY,aAAa,SAAS,OAAO,OAAO;AAAA,MAClE,SAAS,MAAM,aAAa,OAAO;AAAA,MACnC,UAAU,KAAK,QAAQ;AAAA,MACvB,YAAY,KAAK,gBAAgB,OAAO;AAAA,MACxC,mBAAmB,KAAK,QAAQ;AAAA,MAChC,gBAAgB,KAAK,QAAQ;AAAA,MAC7B;AAAA,MACA;AAAA,MACA,eAAa;AAAA;AAAA,EACf;AAEJ;","names":[]}
@@ -9,7 +9,7 @@ import {
9
9
  } from "./chunk-WEBEOBN5.js";
10
10
  import {
11
11
  Text
12
- } from "./chunk-YTYROOLY.js";
12
+ } from "./chunk-D22EGB3T.js";
13
13
 
14
14
  // src/components/data-display/DataViews/save-view-preview.tsx
15
15
  import { jsx, jsxs } from "react/jsx-runtime";
@@ -51,4 +51,4 @@ function PreviewBox({ preview, testIdPrefix }) {
51
51
  export {
52
52
  PreviewBox
53
53
  };
54
- //# sourceMappingURL=chunk-2L2NWXWJ.js.map
54
+ //# sourceMappingURL=chunk-WRXD464C.js.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  buildChartContext
3
- } from "./chunk-BLBOYCOV.js";
3
+ } from "./chunk-HKV4MQ2W.js";
4
4
  import {
5
5
  ChartLegendContent,
6
6
  ChartTooltipContent
@@ -312,4 +312,4 @@ function renderChartByType(props, theme) {
312
312
  export {
313
313
  renderChartByType
314
314
  };
315
- //# sourceMappingURL=chunk-KT6HWAEN.js.map
315
+ //# sourceMappingURL=chunk-WZUNBSS7.js.map
@@ -15,7 +15,7 @@ import {
15
15
  } from "./chunk-TYJR4GOF.js";
16
16
  import {
17
17
  px
18
- } from "./chunk-SONWG2RT.js";
18
+ } from "./chunk-OW4UEIXA.js";
19
19
 
20
20
  // src/components/typography/Paragraph/Paragraph.tsx
21
21
  import Typography from "@mui/material/Typography/index.js";
@@ -106,4 +106,4 @@ Paragraph.displayName = "Paragraph";
106
106
  export {
107
107
  Paragraph
108
108
  };
109
- //# sourceMappingURL=chunk-NWQWUYOV.js.map
109
+ //# sourceMappingURL=chunk-XGB3YF32.js.map
@@ -0,0 +1,10 @@
1
+ // src/components/layout/SettingCard/SettingGroup.context.ts
2
+ import { createContext, useContext } from "react";
3
+ var SettingGroupContext = createContext({ inactive: false });
4
+ var useSettingGroup = () => useContext(SettingGroupContext);
5
+
6
+ export {
7
+ SettingGroupContext,
8
+ useSettingGroup
9
+ };
10
+ //# sourceMappingURL=chunk-XJQNSMGA.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/components/layout/SettingCard/SettingGroup.context.ts"],"sourcesContent":["import { createContext, useContext } from 'react';\n\n/**\n * What a `SettingGroup` tells the rows inside it: whether its main switch is\n * off. `inert` on the rows' container already makes every descendant\n * unreachable; this is for the family's own rows (`SettingToggle`) to ALSO\n * draw and announce themselves as disabled, which `inert` does not do.\n */\nexport const SettingGroupContext = createContext<{ inactive: boolean }>({ inactive: false });\n\nexport const useSettingGroup = (): { inactive: boolean } => useContext(SettingGroupContext);\n"],"mappings":";AAAA,SAAS,eAAe,kBAAkB;AAQnC,IAAM,sBAAsB,cAAqC,EAAE,UAAU,MAAM,CAAC;AAEpF,IAAM,kBAAkB,MAA6B,WAAW,mBAAmB;","names":[]}