@12-apps/ui 6.79.0 → 6.80.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/_internal/components/data-display/AlertDialog/AlertDialog.js +3 -3
- package/dist/_internal/components/data-display/AlertDialog/AlertDialog.parts.js +2 -1
- package/dist/_internal/components/data-display/AsyncStateContainer/AsyncStateContainer.js +6 -4
- package/dist/_internal/components/data-display/Avatar/Avatar.js +2 -1
- package/dist/_internal/components/data-display/CardKit/use-remove-confirm.js +8 -8
- package/dist/_internal/components/data-display/CardKit/use-row-confirm.js +8 -8
- package/dist/_internal/components/data-display/Carousel/Carousel.chrome.js +3 -3
- package/dist/_internal/components/data-display/Carousel/Carousel.js +4 -4
- package/dist/_internal/components/data-display/Carousel/Carousel.parts.js +2 -2
- package/dist/_internal/components/data-display/DataViews/DataViewsGrid.js +26 -25
- package/dist/_internal/components/data-display/DataViews/DataViewsTableBase.js +38 -37
- package/dist/_internal/components/data-display/DataViews/DeleteViewDialog.js +3 -3
- package/dist/_internal/components/data-display/DataViews/ManageViewsDialog.js +9 -9
- package/dist/_internal/components/data-display/DataViews/SaveViewModal.js +3 -3
- package/dist/_internal/components/data-display/DataViews/data-views-card-body.js +2 -2
- package/dist/_internal/components/data-display/DataViews/data-views-category-pill.js +7 -6
- package/dist/_internal/components/data-display/DataViews/data-views-columns.js +2 -2
- package/dist/_internal/components/data-display/DataViews/data-views-display-panel.js +2 -2
- package/dist/_internal/components/data-display/DataViews/data-views-filter-panel.js +12 -11
- package/dist/_internal/components/data-display/DataViews/data-views-grid-bodies.js +3 -3
- package/dist/_internal/components/data-display/DataViews/data-views-grid-helpers.js +1 -1
- package/dist/_internal/components/data-display/DataViews/data-views-grid-parts.js +23 -22
- package/dist/_internal/components/data-display/DataViews/data-views-inline-bar.js +12 -11
- package/dist/_internal/components/data-display/DataViews/data-views-more-fields.js +10 -9
- package/dist/_internal/components/data-display/DataViews/data-views-more-filters.js +11 -10
- package/dist/_internal/components/data-display/DataViews/data-views-range-pill.js +3 -2
- package/dist/_internal/components/data-display/DataViews/data-views-shell-toolbar.js +11 -10
- package/dist/_internal/components/data-display/DataViews/data-views-table-parts.js +16 -15
- package/dist/_internal/components/data-display/DataViews/data-views-toolbar.js +10 -9
- package/dist/_internal/components/data-display/DataViews/data-views-view-nav.js +1 -1
- package/dist/_internal/components/data-display/DataViews/use-data-views-state.js +3 -3
- package/dist/_internal/components/data-display/EmptyState/EmptyState.js +2 -1
- package/dist/_internal/components/data-display/ErrorState/ErrorState.js +2 -1
- package/dist/_internal/components/data-display/FleetMap/FleetBody.js +8 -8
- package/dist/_internal/components/data-display/FleetMap/FleetCanvas.js +7 -7
- package/dist/_internal/components/data-display/FleetMap/FleetMap.fixtures.js +1 -1
- package/dist/_internal/components/data-display/FleetMap/FleetMap.js +11 -10
- package/dist/_internal/components/data-display/LazyImage/LazyImage.js +2 -2
- package/dist/_internal/components/data-display/LoadingState/LoadingState.js +3 -1
- package/dist/_internal/components/data-display/MapPreview/MapControlBar.js +3 -3
- package/dist/_internal/components/data-display/MapPreview/MapLayers.js +4 -4
- package/dist/_internal/components/data-display/MapPreview/MapMarkers.js +3 -3
- package/dist/_internal/components/data-display/MapPreview/MapPreview.helpers.js +2 -2
- package/dist/_internal/components/data-display/MapPreview/MapPreview.js +6 -6
- package/dist/_internal/components/data-display/SectionOnboarding/SectionOnboarding.js +4 -4
- package/dist/_internal/components/data-display/Sheet/Sheet.body.js +3 -2
- package/dist/_internal/components/data-display/Sheet/Sheet.js +4 -3
- package/dist/_internal/components/data-display/Sheet/Sheet.parts.js +2 -1
- package/dist/_internal/components/data-display/Stepper/Stepper.js +2 -2
- package/dist/_internal/components/data-display/Table/Table.js +3 -3
- package/dist/_internal/components/data-display/Table/TableParts.hooks.js +2 -2
- package/dist/_internal/components/data-display/Table/TableParts.js +2 -2
- package/dist/_internal/components/data-display/Timeline/Timeline.js +2 -2
- package/dist/_internal/components/data-display/index.js +29 -29
- package/dist/_internal/components/feedback/ConfirmAction/ConfirmAction.js +5 -5
- package/dist/_internal/components/feedback/ConfirmAction/ConfirmAction.parts.js +4 -4
- package/dist/_internal/components/feedback/ConfirmAction/ConfirmButton.js +6 -6
- package/dist/_internal/components/feedback/ConfirmAction/with-confirmation.js +5 -5
- package/dist/_internal/components/feedback/Dialog/Dialog.js +2 -2
- package/dist/_internal/components/feedback/SequenceResolver/SequenceResolver.js +3 -3
- package/dist/_internal/components/feedback/Sonner/Sonner.js +2 -2
- package/dist/_internal/components/feedback/StackedModal/StackedModal.js +3 -3
- package/dist/_internal/components/feedback/StackedModal/StackedModal.parts.js +2 -2
- package/dist/_internal/components/feedback/Toast/Toast.js +2 -2
- package/dist/_internal/components/feedback/index.js +13 -13
- package/dist/_internal/components/form/Command/Command.hooks.js +2 -1
- package/dist/_internal/components/form/Command/Command.js +4 -3
- package/dist/_internal/components/form/Command/Command.parts.js +2 -1
- package/dist/_internal/components/form/DateRangePicker/DateRangePicker.hooks.js +3 -2
- package/dist/_internal/components/form/DateRangePicker/DateRangePicker.js +5 -4
- package/dist/_internal/components/form/DateRangePicker/DateRangePicker.range.js +2 -1
- package/dist/_internal/components/form/DateRangePicker/DateRangePickerFields.js +3 -2
- package/dist/_internal/components/form/PhoneInput/PhoneInput.js +2 -1
- package/dist/_internal/components/form/RichTextEditor/RichTextEditor.dom.js +2 -2
- package/dist/_internal/components/form/RichTextEditor/RichTextEditor.format.js +3 -3
- package/dist/_internal/components/form/RichTextEditor/RichTextEditor.hooks.js +4 -4
- package/dist/_internal/components/form/RichTextEditor/RichTextEditor.js +5 -5
- package/dist/_internal/components/form/index.js +13 -13
- package/dist/_internal/components/form/total-form/FormErrorSnackbar.js +3 -3
- package/dist/_internal/components/index.js +75 -74
- package/dist/_internal/components/layout/ContentToolbar/ColumnsMenu.js +2 -1
- package/dist/_internal/components/layout/ContentToolbar/FilterTrigger.js +3 -2
- package/dist/_internal/components/layout/ContentToolbar/MultiSelectDropdown.js +2 -1
- package/dist/_internal/components/layout/ContentToolbar/ViewSelector.js +2 -2
- package/dist/_internal/components/layout/Dashboard/Dashboard.js +2 -2
- package/dist/_internal/components/layout/Drawer/Drawer.js +2 -1
- package/dist/_internal/components/layout/SettingsLayout/SettingsLayout.js +3 -2
- package/dist/_internal/components/layout/SettingsLayout/SettingsLayout.rail.js +1 -1
- package/dist/_internal/components/layout/TableFilter/TableFilter.js +2 -1
- package/dist/_internal/components/layout/index.js +9 -8
- package/dist/_internal/components/navigation/AppHeader/AppHeader.details.js +6 -6
- package/dist/_internal/components/navigation/AppHeader/AppHeader.identity.js +2 -1
- package/dist/_internal/components/navigation/Breadcrumbs/Breadcrumbs.js +2 -1
- package/dist/_internal/components/navigation/NavigationMenu/NavigationMenu.js +3 -3
- package/dist/_internal/components/navigation/NavigationMenu/NavigationStandardBody.js +2 -2
- package/dist/_internal/components/navigation/SectionNav/SectionNav.bar.js +4 -3
- package/dist/_internal/components/navigation/SectionNav/SectionNav.js +5 -4
- package/dist/_internal/components/navigation/SectionNav/SectionNav.sheet.js +3 -2
- package/dist/_internal/components/navigation/index.js +15 -14
- package/dist/_internal/components/typography/Code/Code.js +2 -2
- package/dist/_internal/components/typography/index.js +2 -2
- package/dist/_internal/components/utility/AnimatedIcon/AnimatedIcon.js +2 -1
- package/dist/_internal/components/utility/InfiniteScroll/InfiniteScroll.js +3 -2
- package/dist/_internal/components/utility/InfiniteScroll/InfiniteScroll.parts.js +2 -1
- package/dist/_internal/components/utility/WorkflowStep/WorkflowStep.helpers.js +2 -2
- package/dist/_internal/components/utility/WorkflowStep/WorkflowStep.js +5 -5
- package/dist/_internal/components/utility/WorkflowStep/WorkflowStep.parts.js +3 -3
- package/dist/_internal/components/utility/WorkflowStep/WorkflowStepRow.js +4 -4
- package/dist/_internal/components/utility/index.js +8 -8
- package/dist/_internal/en-US.data-display.js +1 -1
- package/dist/_internal/en-US.labels.js +1 -1
- package/dist/_internal/pt-BR.data-display.js +1 -1
- package/dist/_internal/pt-BR.labels.js +1 -1
- package/dist/_internal/social-login-button/social-login-button.js +2 -1
- package/dist/_internal/user-avatar/user-avatar.js +3 -2
- package/dist/{chunk-LIWONEAU.js → chunk-3B7EJIG7.js} +2 -2
- package/dist/{chunk-GHXW6O5T.js → chunk-3LQLLL2J.js} +4 -4
- package/dist/chunk-3LQLLL2J.js.map +1 -0
- package/dist/{chunk-GJMWQUAD.js → chunk-3OWFUFZL.js} +6 -3
- package/dist/chunk-3OWFUFZL.js.map +1 -0
- package/dist/{chunk-V64USPG3.js → chunk-4JV46KXS.js} +3 -3
- package/dist/{chunk-UJT6AQHL.js → chunk-4NVEUJXK.js} +2 -2
- package/dist/{chunk-PBMCRDZI.js → chunk-4PREA2R5.js} +5 -2
- package/dist/chunk-4PREA2R5.js.map +1 -0
- package/dist/{chunk-YZX4DVRS.js → chunk-52UVUVYQ.js} +6 -3
- package/dist/chunk-52UVUVYQ.js.map +1 -0
- package/dist/{chunk-PIP7XII2.js → chunk-5JDY5W7O.js} +3 -3
- package/dist/{chunk-YJ6UQDA6.js → chunk-634Z7HGN.js} +6 -3
- package/dist/chunk-634Z7HGN.js.map +1 -0
- package/dist/{chunk-556LO6KA.js → chunk-6B7VZFAO.js} +2 -2
- package/dist/{chunk-FLTXJWOC.js → chunk-6EERXU6R.js} +2 -2
- package/dist/{chunk-TPGFR24B.js → chunk-6IVR5HFI.js} +6 -6
- package/dist/{chunk-J26ZWYQI.js → chunk-6KCJNERH.js} +2 -2
- package/dist/{chunk-AXZCCX7O.js → chunk-6S7CFH6V.js} +2 -2
- package/dist/{chunk-3XLSA3YB.js → chunk-763AHWKU.js} +2 -2
- package/dist/{chunk-6MGYPTAL.js → chunk-7DODMQRK.js} +2 -2
- package/dist/{chunk-C4OETF7K.js → chunk-7H5BIZ33.js} +3 -3
- package/dist/{chunk-UGYBN6OO.js → chunk-7HYLXERK.js} +4 -4
- package/dist/{chunk-M3ZNQTS5.js → chunk-7S3NG2AO.js} +4 -4
- package/dist/{chunk-WE43PZ4P.js → chunk-7UDQJOZZ.js} +2 -2
- package/dist/{chunk-3ZWCKCZC.js → chunk-A7LBWRRW.js} +5 -2
- package/dist/chunk-A7LBWRRW.js.map +1 -0
- package/dist/{chunk-5GLOEGOM.js → chunk-ABJOW7EK.js} +2 -2
- package/dist/{chunk-GPPUKDA6.js → chunk-AFSXC5FU.js} +2 -2
- package/dist/{chunk-G2IVONJD.js → chunk-AISCD6W6.js} +2 -2
- package/dist/{chunk-ZYKDUKAH.js → chunk-B2RNNJRO.js} +7 -4
- package/dist/chunk-B2RNNJRO.js.map +1 -0
- package/dist/{chunk-HPEBSLYP.js → chunk-B67KUCWU.js} +2 -2
- package/dist/{chunk-CYKINZKO.js → chunk-BFBCTF2Y.js} +2 -2
- package/dist/{chunk-WUW6NDXC.js → chunk-BLVFHVDM.js} +7 -7
- package/dist/{chunk-GHGZI7PK.js → chunk-BMVLTTTC.js} +6 -3
- package/dist/{chunk-GHGZI7PK.js.map → chunk-BMVLTTTC.js.map} +1 -1
- package/dist/{chunk-UG4EMHMW.js → chunk-BTDY2NYV.js} +2 -2
- package/dist/{chunk-KE74C2SM.js → chunk-C2I7NQC4.js} +2 -2
- package/dist/{chunk-LR473BUT.js → chunk-C7LHIDVB.js} +3 -3
- package/dist/{chunk-V45JGJ3W.js → chunk-CFDYQSN6.js} +3 -3
- package/dist/{chunk-BJ7NWZWO.js → chunk-D4LMRSY7.js} +2 -2
- package/dist/{chunk-GPQ22MPR.js → chunk-DB7OJM6X.js} +2 -2
- package/dist/{chunk-66BRUS2M.js → chunk-DD3VFDB2.js} +2 -2
- package/dist/{chunk-J2RUDZVJ.js → chunk-DE2GWZ6X.js} +5 -2
- package/dist/chunk-DE2GWZ6X.js.map +1 -0
- package/dist/{chunk-JKNKGGOG.js → chunk-DKRMOIX2.js} +7 -1
- package/dist/chunk-DKRMOIX2.js.map +1 -0
- package/dist/{chunk-CSQWPDQV.js → chunk-DT22MDC3.js} +4 -4
- package/dist/{chunk-7HKXTRTK.js → chunk-DWCH6GH5.js} +2 -2
- package/dist/{chunk-NTO5DALI.js → chunk-DWLSYFQW.js} +5 -2
- package/dist/chunk-DWLSYFQW.js.map +1 -0
- package/dist/{chunk-F742IMLQ.js → chunk-EXKK73UN.js} +5 -2
- package/dist/chunk-EXKK73UN.js.map +1 -0
- package/dist/{chunk-4MKVGSHX.js → chunk-F5SUBK42.js} +6 -3
- package/dist/chunk-F5SUBK42.js.map +1 -0
- package/dist/{chunk-5KNDAC24.js → chunk-FCCOUOP7.js} +8 -2
- package/dist/chunk-FCCOUOP7.js.map +1 -0
- package/dist/{chunk-5MAD6ZEI.js → chunk-G3SWMBZS.js} +2 -2
- package/dist/{chunk-P3QFJJJY.js → chunk-GHTVBYFA.js} +3 -3
- package/dist/{chunk-RRSLH2FV.js → chunk-GLAAX5JJ.js} +7 -2
- package/dist/chunk-GLAAX5JJ.js.map +1 -0
- package/dist/{chunk-XLTHZI5W.js → chunk-GX2LIB4T.js} +6 -3
- package/dist/chunk-GX2LIB4T.js.map +1 -0
- package/dist/{chunk-RKVS5AA6.js → chunk-H3NXDKFH.js} +7 -4
- package/dist/chunk-H3NXDKFH.js.map +1 -0
- package/dist/{chunk-47VRDPR2.js → chunk-HFZE2PGM.js} +5 -2
- package/dist/chunk-HFZE2PGM.js.map +1 -0
- package/dist/{chunk-5MMAV7XK.js → chunk-HWKBCLKD.js} +4 -2
- package/dist/chunk-HWKBCLKD.js.map +1 -0
- package/dist/{chunk-IASPZGYB.js → chunk-HWUFOII2.js} +3 -3
- package/dist/chunk-HWUFOII2.js.map +1 -0
- package/dist/{chunk-VMU52I5D.js → chunk-J7CIRTWQ.js} +8 -3
- package/dist/chunk-J7CIRTWQ.js.map +1 -0
- package/dist/{chunk-MBY7DWGT.js → chunk-JJNY5MZL.js} +2 -2
- package/dist/{chunk-EF4DVYD2.js → chunk-JMUZ5JZA.js} +2 -2
- package/dist/{chunk-NUUX4BBR.js → chunk-JQSF3CUR.js} +7 -2
- package/dist/chunk-JQSF3CUR.js.map +1 -0
- package/dist/{chunk-KYE7I6NT.js → chunk-KSOIFQJ6.js} +4 -4
- package/dist/{chunk-JSY234NY.js → chunk-KW2KCPZF.js} +2 -2
- package/dist/{chunk-RNQA7MDM.js → chunk-LDPN55AA.js} +2 -2
- package/dist/{chunk-U6XXAVBO.js → chunk-LHRAHDJF.js} +2 -2
- package/dist/{chunk-VQ6UB4MN.js → chunk-MKRJUT5O.js} +3 -3
- package/dist/{chunk-CXTRDTNM.js → chunk-NF5TATKP.js} +4 -4
- package/dist/{chunk-NA3M7KDE.js → chunk-NGXDOWUP.js} +2 -2
- package/dist/{chunk-EVYLJ5JB.js → chunk-NSS3X7FK.js} +2 -2
- package/dist/{chunk-RECD3XOL.js → chunk-NWNHSASQ.js} +2 -2
- package/dist/{chunk-W5PRZHLU.js → chunk-O2RXSXSF.js} +74 -3
- package/dist/chunk-O2RXSXSF.js.map +1 -0
- package/dist/{chunk-VMN6KG2U.js → chunk-OCLEKMBP.js} +3 -3
- package/dist/chunk-OCLEKMBP.js.map +1 -0
- package/dist/{chunk-HBP2OU4Q.js → chunk-OOCD2QR3.js} +4 -3
- package/dist/chunk-OOCD2QR3.js.map +1 -0
- package/dist/{chunk-URAXAKUI.js → chunk-OT4HIG7S.js} +3 -3
- package/dist/{chunk-K53XSVQO.js → chunk-OTION43A.js} +8 -4
- package/dist/chunk-OTION43A.js.map +1 -0
- package/dist/{chunk-H6R2L7VI.js → chunk-PAKLYZ6G.js} +2 -2
- package/dist/{chunk-SYSR2K2M.js → chunk-PF2A2IM7.js} +2 -2
- package/dist/{chunk-SRNBD6EV.js → chunk-PGBIUO2A.js} +2 -2
- package/dist/{chunk-QDRHIK2R.js → chunk-QK3XXPBA.js} +2 -2
- package/dist/{chunk-A6V7KE45.js → chunk-QVEJGFRP.js} +3 -3
- package/dist/{chunk-73OYC22L.js → chunk-RMZQHJEP.js} +2 -2
- package/dist/{chunk-VBGC7G4F.js → chunk-RQ3IS5NQ.js} +2 -2
- package/dist/{chunk-7S25RDE4.js → chunk-SCQARHMU.js} +2 -2
- package/dist/{chunk-47IAX6PI.js → chunk-SEUJNFOD.js} +2 -2
- package/dist/{chunk-RQMYEPRR.js → chunk-SM2O6D5F.js} +2 -2
- package/dist/{chunk-AAWVAQI2.js → chunk-SXNGH56D.js} +2 -2
- package/dist/{chunk-V7INHV5V.js → chunk-SYZVXWEQ.js} +3 -3
- package/dist/{chunk-DX5PLJKN.js → chunk-TAR5LSGT.js} +2 -2
- package/dist/{chunk-VFVATUC6.js → chunk-TGZ6GPYQ.js} +3 -3
- package/dist/{chunk-25HBYY4O.js → chunk-TLVKJBPM.js} +2 -2
- package/dist/{chunk-BGTG7G54.js → chunk-TLZR6UPJ.js} +6 -3
- package/dist/chunk-TLZR6UPJ.js.map +1 -0
- package/dist/{chunk-XLCVMRSO.js → chunk-U67CX4FL.js} +12 -4
- package/dist/chunk-U67CX4FL.js.map +1 -0
- package/dist/{chunk-PU3FQG7T.js → chunk-UCQRJTCI.js} +2 -2
- package/dist/{chunk-I2CT4XIP.js → chunk-UF4JFRLE.js} +3 -3
- package/dist/{chunk-4N3I7ZHQ.js → chunk-URAX2JPM.js} +6 -3
- package/dist/chunk-URAX2JPM.js.map +1 -0
- package/dist/{chunk-MGDCGNLC.js → chunk-UYNJ3FYE.js} +3 -3
- package/dist/{chunk-6SFJIW54.js → chunk-V65YK5DC.js} +2 -2
- package/dist/{chunk-VZVAP2ZR.js → chunk-V6DMNSW6.js} +4 -4
- package/dist/chunk-V6DMNSW6.js.map +1 -0
- package/dist/{chunk-CRFOAKQL.js → chunk-VAGGIRLA.js} +6 -3
- package/dist/chunk-VAGGIRLA.js.map +1 -0
- package/dist/{chunk-L35TCXFA.js → chunk-VRKNVZZQ.js} +74 -3
- package/dist/chunk-VRKNVZZQ.js.map +1 -0
- package/dist/{chunk-RZ3QMKM7.js → chunk-W3EVATBS.js} +2 -2
- package/dist/{chunk-CAHN7AMY.js → chunk-WWIYYXY3.js} +14 -7
- package/dist/chunk-WWIYYXY3.js.map +1 -0
- package/dist/{chunk-WOXWLJYR.js → chunk-XF47LPCF.js} +5 -2
- package/dist/chunk-XF47LPCF.js.map +1 -0
- package/dist/{chunk-3YLRR4JM.js → chunk-Y3YZBB74.js} +2 -2
- package/dist/{chunk-V37QIB7B.js → chunk-YMKSPW4T.js} +2 -2
- package/dist/{chunk-YOKUDQIJ.js → chunk-YOQAK2RN.js} +7 -3
- package/dist/chunk-YOQAK2RN.js.map +1 -0
- package/dist/{chunk-KYT5G4K7.js → chunk-Z52W7FEU.js} +2 -2
- package/dist/{chunk-3YCV4EP7.js → chunk-ZDBG7QG2.js} +3 -3
- package/dist/{chunk-7HZ6TJRH.js → chunk-ZT73ACK3.js} +2 -2
- package/dist/{chunk-TJO4CBYT.js → chunk-ZX3QMCYO.js} +6 -3
- package/dist/chunk-ZX3QMCYO.js.map +1 -0
- package/dist/data-display/AlertDialog.js +3 -3
- package/dist/data-display/AsyncStateContainer.js +6 -4
- package/dist/data-display/Avatar.js +2 -1
- package/dist/data-display/CardKit.js +9 -9
- package/dist/data-display/Carousel.js +4 -4
- package/dist/data-display/DataViews.js +38 -37
- package/dist/data-display/EmptyState.js +2 -1
- package/dist/data-display/ErrorState.js +2 -1
- package/dist/data-display/FleetMap.js +11 -10
- package/dist/data-display/LazyImage.js +2 -2
- package/dist/data-display/LoadingState.js +3 -1
- package/dist/data-display/MapPreview.js +6 -6
- package/dist/data-display/SectionOnboarding.js +4 -4
- package/dist/data-display/Sheet.js +4 -3
- package/dist/data-display/Stepper.js +2 -2
- package/dist/data-display/Table.js +3 -3
- package/dist/data-display/Timeline.js +2 -2
- package/dist/en-US.js +4 -4
- package/dist/feedback/ConfirmAction.js +7 -7
- package/dist/feedback/Dialog.js +2 -2
- package/dist/feedback/SequenceResolver.js +3 -3
- package/dist/feedback/Sonner.js +2 -2
- package/dist/feedback/StackedModal.js +3 -3
- package/dist/feedback/Toast.js +2 -2
- package/dist/form/Command.js +4 -3
- package/dist/form/DateRangePicker.js +5 -4
- package/dist/form/PhoneInput.js +2 -1
- package/dist/form/RichTextEditor.js +5 -5
- package/dist/form/total-form.js +3 -3
- package/dist/layout/ContentToolbar.js +6 -5
- package/dist/layout/Dashboard.js +2 -2
- package/dist/layout/Drawer.js +2 -1
- package/dist/layout/SettingsLayout.js +3 -2
- package/dist/layout/TableFilter.js +2 -1
- package/dist/locales.js +8 -8
- package/dist/native/chunks/{chunk-4SP3BDPZ.js → chunk-67CYDCHZ.js} +2 -2
- package/dist/native/chunks/{chunk-FGAX5BRS.js → chunk-7AVFQB6A.js} +7 -4
- package/dist/native/chunks/chunk-7AVFQB6A.js.map +1 -0
- package/dist/native/chunks/{chunk-SPK34J7Y.js → chunk-DUELD4HY.js} +74 -3
- package/dist/native/chunks/chunk-DUELD4HY.js.map +1 -0
- package/dist/native/data-display/Avatar.js +4 -1
- package/dist/native/data-display/Avatar.js.map +1 -1
- package/dist/native/data-display/Badge.js +3 -3
- package/dist/native/data-display/Chip.js +3 -3
- package/dist/native/data-display/EmptyState.js +3 -3
- package/dist/native/data-display/ErrorState.js +5 -3
- package/dist/native/data-display/ErrorState.js.map +1 -1
- package/dist/native/data-display/FleetMap.js +3 -3
- package/dist/native/data-display/LoadingState.js +16 -5
- package/dist/native/data-display/LoadingState.js.map +1 -1
- package/dist/native/feedback/Dialog.js +3 -3
- package/dist/native/form/Button.js +2 -2
- package/dist/native/form/Checkbox.js +3 -3
- package/dist/native/form/Input.js +1 -1
- package/dist/native/form/Switch.js +1 -1
- package/dist/navigation/AppHeader.js +8 -7
- package/dist/navigation/Breadcrumbs.js +2 -1
- package/dist/navigation/NavigationMenu.js +3 -3
- package/dist/navigation/SectionNav.js +5 -4
- package/dist/pt-BR.js +4 -4
- package/dist/social-login-button.js +2 -1
- package/dist/types/components/data-display/AlertDialog/AlertDialog.parts.d.ts.map +1 -1
- package/dist/types/components/data-display/Avatar/Avatar.d.ts.map +1 -1
- package/dist/types/components/data-display/DataViews/DeleteViewDialog.d.ts.map +1 -1
- package/dist/types/components/data-display/DataViews/data-views-copy.d.ts +11 -0
- package/dist/types/components/data-display/DataViews/data-views-copy.d.ts.map +1 -1
- package/dist/types/components/data-display/DataViews/data-views-grid-helpers.d.ts +6 -2
- package/dist/types/components/data-display/DataViews/data-views-grid-helpers.d.ts.map +1 -1
- package/dist/types/components/data-display/DataViews/use-data-views-state.d.ts.map +1 -1
- package/dist/types/components/data-display/EmptyState/EmptyState.d.ts.map +1 -1
- package/dist/types/components/data-display/ErrorState/ErrorState.d.ts.map +1 -1
- package/dist/types/components/data-display/LoadingState/LoadingState.base.d.ts +7 -0
- package/dist/types/components/data-display/LoadingState/LoadingState.base.d.ts.map +1 -1
- package/dist/types/components/data-display/LoadingState/LoadingState.d.ts.map +1 -1
- package/dist/types/components/data-display/Sheet/Sheet.body.d.ts +1 -1
- package/dist/types/components/data-display/Sheet/Sheet.body.d.ts.map +1 -1
- package/dist/types/components/data-display/Sheet/Sheet.parts.d.ts.map +1 -1
- package/dist/types/components/data-display/Sheet/Sheet.types.d.ts +10 -0
- package/dist/types/components/data-display/Sheet/Sheet.types.d.ts.map +1 -1
- package/dist/types/components/feedback/StackedModal/StackedModal.d.ts.map +1 -1
- package/dist/types/components/form/Command/Command.hooks.d.ts.map +1 -1
- package/dist/types/components/form/Command/Command.parts.d.ts.map +1 -1
- package/dist/types/components/form/DateRangePicker/DateRangePicker.range.d.ts.map +1 -1
- package/dist/types/components/form/PhoneInput/PhoneInput.d.ts.map +1 -1
- package/dist/types/components/form/total-form/FormErrorSnackbar.d.ts.map +1 -1
- package/dist/types/components/layout/ContentToolbar/ColumnsMenu.d.ts.map +1 -1
- package/dist/types/components/layout/ContentToolbar/FilterTrigger.d.ts.map +1 -1
- package/dist/types/components/layout/ContentToolbar/MultiSelectDropdown.d.ts.map +1 -1
- package/dist/types/components/layout/Dashboard/Dashboard.d.ts +1 -1
- package/dist/types/components/layout/Dashboard/Dashboard.d.ts.map +1 -1
- package/dist/types/components/layout/Drawer/Drawer.d.ts.map +1 -1
- package/dist/types/components/layout/SettingsLayout/SettingsLayout.d.ts.map +1 -1
- package/dist/types/components/layout/SettingsLayout/SettingsLayout.rail.d.ts +3 -1
- package/dist/types/components/layout/SettingsLayout/SettingsLayout.rail.d.ts.map +1 -1
- package/dist/types/components/layout/SettingsLayout/SettingsLayout.types.d.ts +6 -0
- package/dist/types/components/layout/SettingsLayout/SettingsLayout.types.d.ts.map +1 -1
- package/dist/types/components/layout/TableFilter/TableFilter.d.ts.map +1 -1
- package/dist/types/components/navigation/AppHeader/AppHeader.identity.d.ts.map +1 -1
- package/dist/types/components/navigation/AppHeader/AppHeader.types.d.ts +5 -1
- package/dist/types/components/navigation/AppHeader/AppHeader.types.d.ts.map +1 -1
- package/dist/types/components/navigation/Breadcrumbs/Breadcrumbs.d.ts.map +1 -1
- package/dist/types/components/utility/AnimatedIcon/AnimatedIcon.d.ts.map +1 -1
- package/dist/types/components/utility/InfiniteScroll/InfiniteScroll.d.ts.map +1 -1
- package/dist/types/components/utility/InfiniteScroll/InfiniteScroll.parts.d.ts +1 -0
- package/dist/types/components/utility/InfiniteScroll/InfiniteScroll.parts.d.ts.map +1 -1
- package/dist/types/components/utility/InfiniteScroll/InfiniteScroll.types.d.ts +6 -0
- package/dist/types/components/utility/InfiniteScroll/InfiniteScroll.types.d.ts.map +1 -1
- package/dist/types/copy/labels.d.ts +113 -2
- package/dist/types/copy/labels.d.ts.map +1 -1
- package/dist/types/en-US.data-display.d.ts.map +1 -1
- package/dist/types/en-US.labels.d.ts.map +1 -1
- package/dist/types/pt-BR.data-display.d.ts.map +1 -1
- package/dist/types/pt-BR.labels.d.ts.map +1 -1
- package/dist/types/social-login-button/social-login-button.d.ts.map +1 -1
- package/dist/types-native/components/data-display/Avatar/Avatar.native.d.ts.map +1 -1
- package/dist/types-native/components/data-display/EmptyState/EmptyState.native.d.ts.map +1 -1
- package/dist/types-native/components/data-display/ErrorState/ErrorState.native.d.ts.map +1 -1
- package/dist/types-native/components/data-display/LoadingState/LoadingState.base.d.ts +7 -0
- package/dist/types-native/components/data-display/LoadingState/LoadingState.base.d.ts.map +1 -1
- package/dist/types-native/components/data-display/LoadingState/LoadingState.native.d.ts.map +1 -1
- package/dist/types-native/copy/labels.d.ts +113 -2
- package/dist/types-native/copy/labels.d.ts.map +1 -1
- package/dist/types-native/en-US.labels.d.ts.map +1 -1
- package/dist/types-native/utils/resolve-labels.d.ts +9 -0
- package/dist/types-native/utils/resolve-labels.d.ts.map +1 -0
- package/dist/typography/Code.js +2 -2
- package/dist/user-avatar.js +3 -2
- package/dist/utility/AnimatedIcon.js +2 -1
- package/dist/utility/InfiniteScroll.js +3 -2
- package/dist/utility/WorkflowStep.js +5 -5
- package/package.json +2 -2
- package/src/components/data-display/AlertDialog/AlertDialog.parts.tsx +3 -2
- package/src/components/data-display/Avatar/Avatar.native.tsx +2 -1
- package/src/components/data-display/Avatar/Avatar.tsx +2 -1
- package/src/components/data-display/DataViews/DeleteViewDialog.tsx +2 -2
- package/src/components/data-display/DataViews/data-views-copy.ts +11 -0
- package/src/components/data-display/DataViews/data-views-grid-helpers.tsx +8 -3
- package/src/components/data-display/DataViews/data-views-view-nav.tsx +2 -2
- package/src/components/data-display/DataViews/use-data-views-state.ts +3 -1
- package/src/components/data-display/EmptyState/EmptyState.native.tsx +3 -2
- package/src/components/data-display/EmptyState/EmptyState.tsx +3 -2
- package/src/components/data-display/ErrorState/ErrorState.native.tsx +2 -1
- package/src/components/data-display/ErrorState/ErrorState.tsx +2 -1
- package/src/components/data-display/LoadingState/LoadingState.base.ts +8 -0
- package/src/components/data-display/LoadingState/LoadingState.native.tsx +10 -5
- package/src/components/data-display/LoadingState/LoadingState.tsx +9 -3
- package/src/components/data-display/Sheet/Sheet.body.tsx +3 -0
- package/src/components/data-display/Sheet/Sheet.md +1 -0
- package/src/components/data-display/Sheet/Sheet.parts.tsx +4 -0
- package/src/components/data-display/Sheet/Sheet.types.ts +10 -0
- package/src/components/feedback/StackedModal/StackedModal.tsx +2 -1
- package/src/components/form/Command/Command.hooks.ts +3 -2
- package/src/components/form/Command/Command.parts.tsx +3 -2
- package/src/components/form/DateRangePicker/DateRangePicker.range.ts +2 -1
- package/src/components/form/PhoneInput/PhoneInput.tsx +3 -2
- package/src/components/form/total-form/FormErrorSnackbar.tsx +2 -1
- package/src/components/layout/ContentToolbar/ColumnsMenu.tsx +3 -2
- package/src/components/layout/ContentToolbar/FilterTrigger.tsx +4 -1
- package/src/components/layout/ContentToolbar/MultiSelectDropdown.tsx +4 -3
- package/src/components/layout/Dashboard/Dashboard.tsx +4 -1
- package/src/components/layout/Drawer/Drawer.tsx +2 -1
- package/src/components/layout/SettingsLayout/SettingsLayout.md +1 -0
- package/src/components/layout/SettingsLayout/SettingsLayout.rail.tsx +9 -2
- package/src/components/layout/SettingsLayout/SettingsLayout.tsx +16 -5
- package/src/components/layout/SettingsLayout/SettingsLayout.types.ts +6 -0
- package/src/components/layout/TableFilter/TableFilter.tsx +4 -3
- package/src/components/navigation/AppHeader/AppHeader.identity.tsx +2 -1
- package/src/components/navigation/AppHeader/AppHeader.types.ts +5 -1
- package/src/components/navigation/Breadcrumbs/Breadcrumbs.tsx +2 -1
- package/src/components/navigation/NavigationMenu/NavigationStandardBody.tsx +1 -1
- package/src/components/utility/AnimatedIcon/AnimatedIcon.tsx +2 -1
- package/src/components/utility/InfiniteScroll/InfiniteScroll.parts.tsx +6 -2
- package/src/components/utility/InfiniteScroll/InfiniteScroll.tsx +2 -1
- package/src/components/utility/InfiniteScroll/InfiniteScroll.types.ts +6 -0
- package/src/copy/labels.ts +131 -2
- package/src/en-US.data-display.ts +5 -0
- package/src/en-US.labels.ts +71 -0
- package/src/pt-BR.data-display.ts +5 -0
- package/src/pt-BR.labels.ts +71 -0
- package/src/social-login-button/social-login-button.tsx +3 -2
- package/dist/chunk-3ZWCKCZC.js.map +0 -1
- package/dist/chunk-47VRDPR2.js.map +0 -1
- package/dist/chunk-4MKVGSHX.js.map +0 -1
- package/dist/chunk-4N3I7ZHQ.js.map +0 -1
- package/dist/chunk-5KNDAC24.js.map +0 -1
- package/dist/chunk-5MMAV7XK.js.map +0 -1
- package/dist/chunk-BGTG7G54.js.map +0 -1
- package/dist/chunk-CAHN7AMY.js.map +0 -1
- package/dist/chunk-CRFOAKQL.js.map +0 -1
- package/dist/chunk-F742IMLQ.js.map +0 -1
- package/dist/chunk-GHXW6O5T.js.map +0 -1
- package/dist/chunk-GJMWQUAD.js.map +0 -1
- package/dist/chunk-HBP2OU4Q.js.map +0 -1
- package/dist/chunk-IASPZGYB.js.map +0 -1
- package/dist/chunk-J2RUDZVJ.js.map +0 -1
- package/dist/chunk-JKNKGGOG.js.map +0 -1
- package/dist/chunk-K53XSVQO.js.map +0 -1
- package/dist/chunk-L35TCXFA.js.map +0 -1
- package/dist/chunk-NTO5DALI.js.map +0 -1
- package/dist/chunk-NUUX4BBR.js.map +0 -1
- package/dist/chunk-PBMCRDZI.js.map +0 -1
- package/dist/chunk-RKVS5AA6.js.map +0 -1
- package/dist/chunk-RRSLH2FV.js.map +0 -1
- package/dist/chunk-TJO4CBYT.js.map +0 -1
- package/dist/chunk-VMN6KG2U.js.map +0 -1
- package/dist/chunk-VMU52I5D.js.map +0 -1
- package/dist/chunk-VZVAP2ZR.js.map +0 -1
- package/dist/chunk-W5PRZHLU.js.map +0 -1
- package/dist/chunk-WOXWLJYR.js.map +0 -1
- package/dist/chunk-XLCVMRSO.js.map +0 -1
- package/dist/chunk-XLTHZI5W.js.map +0 -1
- package/dist/chunk-YJ6UQDA6.js.map +0 -1
- package/dist/chunk-YOKUDQIJ.js.map +0 -1
- package/dist/chunk-YZX4DVRS.js.map +0 -1
- package/dist/chunk-ZYKDUKAH.js.map +0 -1
- package/dist/native/chunks/chunk-FGAX5BRS.js.map +0 -1
- package/dist/native/chunks/chunk-SPK34J7Y.js.map +0 -1
- /package/dist/{chunk-LIWONEAU.js.map → chunk-3B7EJIG7.js.map} +0 -0
- /package/dist/{chunk-V64USPG3.js.map → chunk-4JV46KXS.js.map} +0 -0
- /package/dist/{chunk-UJT6AQHL.js.map → chunk-4NVEUJXK.js.map} +0 -0
- /package/dist/{chunk-PIP7XII2.js.map → chunk-5JDY5W7O.js.map} +0 -0
- /package/dist/{chunk-556LO6KA.js.map → chunk-6B7VZFAO.js.map} +0 -0
- /package/dist/{chunk-FLTXJWOC.js.map → chunk-6EERXU6R.js.map} +0 -0
- /package/dist/{chunk-TPGFR24B.js.map → chunk-6IVR5HFI.js.map} +0 -0
- /package/dist/{chunk-J26ZWYQI.js.map → chunk-6KCJNERH.js.map} +0 -0
- /package/dist/{chunk-AXZCCX7O.js.map → chunk-6S7CFH6V.js.map} +0 -0
- /package/dist/{chunk-3XLSA3YB.js.map → chunk-763AHWKU.js.map} +0 -0
- /package/dist/{chunk-6MGYPTAL.js.map → chunk-7DODMQRK.js.map} +0 -0
- /package/dist/{chunk-C4OETF7K.js.map → chunk-7H5BIZ33.js.map} +0 -0
- /package/dist/{chunk-UGYBN6OO.js.map → chunk-7HYLXERK.js.map} +0 -0
- /package/dist/{chunk-M3ZNQTS5.js.map → chunk-7S3NG2AO.js.map} +0 -0
- /package/dist/{chunk-WE43PZ4P.js.map → chunk-7UDQJOZZ.js.map} +0 -0
- /package/dist/{chunk-5GLOEGOM.js.map → chunk-ABJOW7EK.js.map} +0 -0
- /package/dist/{chunk-GPPUKDA6.js.map → chunk-AFSXC5FU.js.map} +0 -0
- /package/dist/{chunk-G2IVONJD.js.map → chunk-AISCD6W6.js.map} +0 -0
- /package/dist/{chunk-HPEBSLYP.js.map → chunk-B67KUCWU.js.map} +0 -0
- /package/dist/{chunk-CYKINZKO.js.map → chunk-BFBCTF2Y.js.map} +0 -0
- /package/dist/{chunk-WUW6NDXC.js.map → chunk-BLVFHVDM.js.map} +0 -0
- /package/dist/{chunk-UG4EMHMW.js.map → chunk-BTDY2NYV.js.map} +0 -0
- /package/dist/{chunk-KE74C2SM.js.map → chunk-C2I7NQC4.js.map} +0 -0
- /package/dist/{chunk-LR473BUT.js.map → chunk-C7LHIDVB.js.map} +0 -0
- /package/dist/{chunk-V45JGJ3W.js.map → chunk-CFDYQSN6.js.map} +0 -0
- /package/dist/{chunk-BJ7NWZWO.js.map → chunk-D4LMRSY7.js.map} +0 -0
- /package/dist/{chunk-GPQ22MPR.js.map → chunk-DB7OJM6X.js.map} +0 -0
- /package/dist/{chunk-66BRUS2M.js.map → chunk-DD3VFDB2.js.map} +0 -0
- /package/dist/{chunk-CSQWPDQV.js.map → chunk-DT22MDC3.js.map} +0 -0
- /package/dist/{chunk-7HKXTRTK.js.map → chunk-DWCH6GH5.js.map} +0 -0
- /package/dist/{chunk-5MAD6ZEI.js.map → chunk-G3SWMBZS.js.map} +0 -0
- /package/dist/{chunk-P3QFJJJY.js.map → chunk-GHTVBYFA.js.map} +0 -0
- /package/dist/{chunk-MBY7DWGT.js.map → chunk-JJNY5MZL.js.map} +0 -0
- /package/dist/{chunk-EF4DVYD2.js.map → chunk-JMUZ5JZA.js.map} +0 -0
- /package/dist/{chunk-KYE7I6NT.js.map → chunk-KSOIFQJ6.js.map} +0 -0
- /package/dist/{chunk-JSY234NY.js.map → chunk-KW2KCPZF.js.map} +0 -0
- /package/dist/{chunk-RNQA7MDM.js.map → chunk-LDPN55AA.js.map} +0 -0
- /package/dist/{chunk-U6XXAVBO.js.map → chunk-LHRAHDJF.js.map} +0 -0
- /package/dist/{chunk-VQ6UB4MN.js.map → chunk-MKRJUT5O.js.map} +0 -0
- /package/dist/{chunk-CXTRDTNM.js.map → chunk-NF5TATKP.js.map} +0 -0
- /package/dist/{chunk-NA3M7KDE.js.map → chunk-NGXDOWUP.js.map} +0 -0
- /package/dist/{chunk-EVYLJ5JB.js.map → chunk-NSS3X7FK.js.map} +0 -0
- /package/dist/{chunk-RECD3XOL.js.map → chunk-NWNHSASQ.js.map} +0 -0
- /package/dist/{chunk-URAXAKUI.js.map → chunk-OT4HIG7S.js.map} +0 -0
- /package/dist/{chunk-H6R2L7VI.js.map → chunk-PAKLYZ6G.js.map} +0 -0
- /package/dist/{chunk-SYSR2K2M.js.map → chunk-PF2A2IM7.js.map} +0 -0
- /package/dist/{chunk-SRNBD6EV.js.map → chunk-PGBIUO2A.js.map} +0 -0
- /package/dist/{chunk-QDRHIK2R.js.map → chunk-QK3XXPBA.js.map} +0 -0
- /package/dist/{chunk-A6V7KE45.js.map → chunk-QVEJGFRP.js.map} +0 -0
- /package/dist/{chunk-73OYC22L.js.map → chunk-RMZQHJEP.js.map} +0 -0
- /package/dist/{chunk-VBGC7G4F.js.map → chunk-RQ3IS5NQ.js.map} +0 -0
- /package/dist/{chunk-7S25RDE4.js.map → chunk-SCQARHMU.js.map} +0 -0
- /package/dist/{chunk-47IAX6PI.js.map → chunk-SEUJNFOD.js.map} +0 -0
- /package/dist/{chunk-RQMYEPRR.js.map → chunk-SM2O6D5F.js.map} +0 -0
- /package/dist/{chunk-AAWVAQI2.js.map → chunk-SXNGH56D.js.map} +0 -0
- /package/dist/{chunk-V7INHV5V.js.map → chunk-SYZVXWEQ.js.map} +0 -0
- /package/dist/{chunk-DX5PLJKN.js.map → chunk-TAR5LSGT.js.map} +0 -0
- /package/dist/{chunk-VFVATUC6.js.map → chunk-TGZ6GPYQ.js.map} +0 -0
- /package/dist/{chunk-25HBYY4O.js.map → chunk-TLVKJBPM.js.map} +0 -0
- /package/dist/{chunk-PU3FQG7T.js.map → chunk-UCQRJTCI.js.map} +0 -0
- /package/dist/{chunk-I2CT4XIP.js.map → chunk-UF4JFRLE.js.map} +0 -0
- /package/dist/{chunk-MGDCGNLC.js.map → chunk-UYNJ3FYE.js.map} +0 -0
- /package/dist/{chunk-6SFJIW54.js.map → chunk-V65YK5DC.js.map} +0 -0
- /package/dist/{chunk-RZ3QMKM7.js.map → chunk-W3EVATBS.js.map} +0 -0
- /package/dist/{chunk-3YLRR4JM.js.map → chunk-Y3YZBB74.js.map} +0 -0
- /package/dist/{chunk-V37QIB7B.js.map → chunk-YMKSPW4T.js.map} +0 -0
- /package/dist/{chunk-KYT5G4K7.js.map → chunk-Z52W7FEU.js.map} +0 -0
- /package/dist/{chunk-3YCV4EP7.js.map → chunk-ZDBG7QG2.js.map} +0 -0
- /package/dist/{chunk-7HZ6TJRH.js.map → chunk-ZT73ACK3.js.map} +0 -0
- /package/dist/native/chunks/{chunk-4SP3BDPZ.js.map → chunk-67CYDCHZ.js.map} +0 -0
|
@@ -25,11 +25,15 @@ import {
|
|
|
25
25
|
SPINNER_PADDING_UNITS,
|
|
26
26
|
} from './LoadingState.metrics';
|
|
27
27
|
import type { LoadingStateProps, LoadingStateSize } from './LoadingState.types';
|
|
28
|
+
import type { LoadingStateLabels } from '../../../copy/labels';
|
|
29
|
+
import { EN_US_UI_LABELS } from '../../../en-US.labels';
|
|
28
30
|
import { resolveTestId } from '../../../platform/test-id';
|
|
29
31
|
import { rem } from '../../../tokens/relative';
|
|
32
|
+
import { resolveLabels } from '../../../utils/resolve-labels';
|
|
30
33
|
|
|
31
34
|
interface ViewProps {
|
|
32
35
|
message?: string;
|
|
36
|
+
labels: LoadingStateLabels;
|
|
33
37
|
size: LoadingStateSize;
|
|
34
38
|
skeletonRows: number;
|
|
35
39
|
className?: string;
|
|
@@ -55,6 +59,7 @@ const LoadingMessage: React.FC<{
|
|
|
55
59
|
|
|
56
60
|
const SkeletonView: React.FC<ViewProps> = ({
|
|
57
61
|
message,
|
|
62
|
+
labels,
|
|
58
63
|
size,
|
|
59
64
|
skeletonRows,
|
|
60
65
|
className,
|
|
@@ -66,7 +71,7 @@ const SkeletonView: React.FC<ViewProps> = ({
|
|
|
66
71
|
<Box
|
|
67
72
|
role="status"
|
|
68
73
|
aria-busy="true"
|
|
69
|
-
aria-label={message ||
|
|
74
|
+
aria-label={message || labels.skeleton}
|
|
70
75
|
className={className}
|
|
71
76
|
data-testid={testIds.base}
|
|
72
77
|
sx={{
|
|
@@ -98,14 +103,14 @@ const SkeletonView: React.FC<ViewProps> = ({
|
|
|
98
103
|
);
|
|
99
104
|
};
|
|
100
105
|
|
|
101
|
-
const SpinnerView: React.FC<ViewProps> = ({ message, size, className, testIds }) => {
|
|
106
|
+
const SpinnerView: React.FC<ViewProps> = ({ message, labels, size, className, testIds }) => {
|
|
102
107
|
const theme = useTheme();
|
|
103
108
|
|
|
104
109
|
return (
|
|
105
110
|
<Box
|
|
106
111
|
role="status"
|
|
107
112
|
aria-busy="true"
|
|
108
|
-
aria-label={message ||
|
|
113
|
+
aria-label={message || labels.spinner}
|
|
109
114
|
className={className}
|
|
110
115
|
data-testid={testIds.base}
|
|
111
116
|
sx={{
|
|
@@ -132,6 +137,7 @@ export const LoadingState: React.FC<LoadingStateProps> = React.memo((rawProps) =
|
|
|
132
137
|
const { variant, message, size, skeletonRows, className } = resolved;
|
|
133
138
|
const viewProps: ViewProps = {
|
|
134
139
|
message,
|
|
140
|
+
labels: resolveLabels(EN_US_UI_LABELS.loadingState, resolved.labels),
|
|
135
141
|
size,
|
|
136
142
|
skeletonRows,
|
|
137
143
|
className,
|
|
@@ -12,6 +12,7 @@ export interface SheetBodyProps extends Pick<
|
|
|
12
12
|
| 'title'
|
|
13
13
|
| 'description'
|
|
14
14
|
| 'showCloseButton'
|
|
15
|
+
| 'closeLabel'
|
|
15
16
|
| 'showHandle'
|
|
16
17
|
| 'header'
|
|
17
18
|
| 'footer'
|
|
@@ -67,6 +68,7 @@ export const SheetBody: React.FC<SheetBodyProps> = (props) => {
|
|
|
67
68
|
title,
|
|
68
69
|
description,
|
|
69
70
|
showCloseButton,
|
|
71
|
+
closeLabel,
|
|
70
72
|
showHandle,
|
|
71
73
|
header,
|
|
72
74
|
footer,
|
|
@@ -108,6 +110,7 @@ export const SheetBody: React.FC<SheetBodyProps> = (props) => {
|
|
|
108
110
|
title={title}
|
|
109
111
|
description={description}
|
|
110
112
|
showCloseButton={showCloseButton}
|
|
113
|
+
closeLabel={closeLabel}
|
|
111
114
|
onClose={onClose}
|
|
112
115
|
showHandle={showHandle && isVerticalSheet}
|
|
113
116
|
isDraggable={isDraggableVariant && isVerticalSheet}
|
|
@@ -72,6 +72,7 @@ A vertical sheet's **width** is one rule rather than one per preset: `min(100%,
|
|
|
72
72
|
- **closeOnOverlayClick** (boolean): Close sheet when the veil outside it is tapped (default: true). The drawer's own backdrop is an invisible catcher (`sheet-click-catcher`) that routes the tap here, so `persistent` still holds the sheet open. This holds with `showOverlay={false}` too: an outside tap still closes the sheet unless `closeOnOverlayClick={false}`. The catcher's test id is `<dataTestId>-click-catcher`.
|
|
73
73
|
- **closeOnEscape** (boolean): Close sheet on Escape key press (default: true)
|
|
74
74
|
- **showCloseButton** (boolean): Show close button in header (default: true)
|
|
75
|
+
- **closeLabel** (string): The close button's accessible name (default: `close`, as the Dialog's; pass `UI_LABELS['pt-BR'].common.close` for pt-BR)
|
|
75
76
|
|
|
76
77
|
### Event Handlers
|
|
77
78
|
|
|
@@ -9,6 +9,7 @@ import { alpha, useTheme } from '@mui/material/styles/index.js';
|
|
|
9
9
|
import type { Theme } from '@mui/material/styles/index.js';
|
|
10
10
|
import React from 'react';
|
|
11
11
|
|
|
12
|
+
import { EN_US_UI_LABELS } from '../../../en-US.labels';
|
|
12
13
|
import { scrim, sheen } from '../../../tokens/ink';
|
|
13
14
|
import { rem, rems } from '../../../tokens/relative';
|
|
14
15
|
import { withDefaults } from '../../../utils/withDefaults';
|
|
@@ -84,6 +85,7 @@ const SheetHandle: React.FC<{ isDraggable: boolean }> = ({ isDraggable }) => {
|
|
|
84
85
|
};
|
|
85
86
|
|
|
86
87
|
const HEADER_DEFAULTS: Partial<SheetHeaderProps> = {
|
|
88
|
+
closeLabel: EN_US_UI_LABELS.common.close,
|
|
87
89
|
isDraggable: false,
|
|
88
90
|
dataTestId: 'sheet-header',
|
|
89
91
|
};
|
|
@@ -93,6 +95,7 @@ export const SheetHeader: React.FC<SheetHeaderProps> = (props) => {
|
|
|
93
95
|
title,
|
|
94
96
|
description,
|
|
95
97
|
showCloseButton,
|
|
98
|
+
closeLabel,
|
|
96
99
|
onClose,
|
|
97
100
|
showHandle,
|
|
98
101
|
isDraggable,
|
|
@@ -137,6 +140,7 @@ export const SheetHeader: React.FC<SheetHeaderProps> = (props) => {
|
|
|
137
140
|
{showCloseButton && (
|
|
138
141
|
<IconButton
|
|
139
142
|
onClick={onClose}
|
|
143
|
+
aria-label={closeLabel}
|
|
140
144
|
size="small"
|
|
141
145
|
sx={{ ml: 1, mt: -0.5 }}
|
|
142
146
|
data-testid={`${dataTestId}-close-button`}
|
|
@@ -28,6 +28,11 @@ export interface SheetProps {
|
|
|
28
28
|
closeOnOverlayClick?: boolean;
|
|
29
29
|
closeOnEscape?: boolean;
|
|
30
30
|
showCloseButton?: boolean;
|
|
31
|
+
/**
|
|
32
|
+
* The close button's accessible name. Defaults to `close`, as the Dialog's
|
|
33
|
+
* does; a pt-BR host passes `UI_LABELS['pt-BR'].common.close`.
|
|
34
|
+
*/
|
|
35
|
+
closeLabel?: string;
|
|
31
36
|
showHandle?: boolean;
|
|
32
37
|
swipeable?: boolean;
|
|
33
38
|
snapPoints?: number[];
|
|
@@ -64,6 +69,11 @@ export interface SheetHeaderProps {
|
|
|
64
69
|
title?: string;
|
|
65
70
|
description?: string;
|
|
66
71
|
showCloseButton?: boolean;
|
|
72
|
+
/**
|
|
73
|
+
* The close button's accessible name. Defaults to `close`, as the Dialog's
|
|
74
|
+
* does; a pt-BR host passes `UI_LABELS['pt-BR'].common.close`.
|
|
75
|
+
*/
|
|
76
|
+
closeLabel?: string;
|
|
67
77
|
onClose?: () => void;
|
|
68
78
|
showHandle?: boolean;
|
|
69
79
|
isDraggable?: boolean;
|
|
@@ -9,6 +9,7 @@ import { modalAriaIds, ModalPanelContents, resolveModalContent } from './Stacked
|
|
|
9
9
|
import type { PanelStyleProps } from './StackedModal.styles';
|
|
10
10
|
import { dialogRootStyles, STYLE_ONLY_PROPS } from './StackedModal.styles';
|
|
11
11
|
import type { StackedModalProps } from './StackedModal.types';
|
|
12
|
+
import { EN_US_UI_LABELS } from '../../../en-US.labels';
|
|
12
13
|
|
|
13
14
|
const StyledDialog = styled(Dialog, {
|
|
14
15
|
shouldForwardProp: (prop) => !STYLE_ONLY_PROPS.includes(prop as string),
|
|
@@ -32,7 +33,7 @@ const DEFAULTS: Partial<StackedModalProps> = {
|
|
|
32
33
|
closeOnClickOutside: true,
|
|
33
34
|
closeOnEsc: true,
|
|
34
35
|
loading: false,
|
|
35
|
-
loadingText:
|
|
36
|
+
loadingText: EN_US_UI_LABELS.stackedModal.loading,
|
|
36
37
|
maxWidth: false,
|
|
37
38
|
disableBackdrop: false,
|
|
38
39
|
disableFocusTrap: false,
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import React, { useCallback, useEffect, useMemo, useRef, useState } from 'react';
|
|
2
2
|
|
|
3
3
|
import type { CommandItem, CommandProps } from './Command.types';
|
|
4
|
+
import { EN_US_UI_LABELS } from '../../../en-US.labels';
|
|
4
5
|
|
|
5
6
|
type CommandDefaultedKeys =
|
|
6
7
|
| 'open'
|
|
@@ -27,7 +28,7 @@ type ResolvedCommandProps = CommandProps &
|
|
|
27
28
|
const COMMAND_DEFAULTS: Pick<CommandProps, CommandDefaultedKeys> = {
|
|
28
29
|
open: false,
|
|
29
30
|
items: [],
|
|
30
|
-
placeholder:
|
|
31
|
+
placeholder: EN_US_UI_LABELS.command.placeholder,
|
|
31
32
|
value: '',
|
|
32
33
|
variant: 'default',
|
|
33
34
|
size: 'md',
|
|
@@ -36,7 +37,7 @@ const COMMAND_DEFAULTS: Pick<CommandProps, CommandDefaultedKeys> = {
|
|
|
36
37
|
pulse: false,
|
|
37
38
|
loading: false,
|
|
38
39
|
disabled: false,
|
|
39
|
-
emptyMessage:
|
|
40
|
+
emptyMessage: EN_US_UI_LABELS.command.empty,
|
|
40
41
|
showCategories: true,
|
|
41
42
|
showShortcuts: true,
|
|
42
43
|
showDescriptions: true,
|
|
@@ -11,9 +11,10 @@ import type {
|
|
|
11
11
|
CommandSeparatorProps,
|
|
12
12
|
} from './Command.types';
|
|
13
13
|
import { rem } from '../../../tokens/relative';
|
|
14
|
+
import { EN_US_UI_LABELS } from '../../../en-US.labels';
|
|
14
15
|
|
|
15
16
|
export const CommandEmpty: React.FC<CommandEmptyProps> = ({
|
|
16
|
-
message =
|
|
17
|
+
message = EN_US_UI_LABELS.command.empty,
|
|
17
18
|
className,
|
|
18
19
|
style,
|
|
19
20
|
dataTestId,
|
|
@@ -33,7 +34,7 @@ export const CommandEmpty: React.FC<CommandEmptyProps> = ({
|
|
|
33
34
|
);
|
|
34
35
|
|
|
35
36
|
export const CommandLoading: React.FC<CommandLoadingProps> = ({
|
|
36
|
-
message =
|
|
37
|
+
message = EN_US_UI_LABELS.command.loading,
|
|
37
38
|
className,
|
|
38
39
|
style,
|
|
39
40
|
dataTestId,
|
|
@@ -8,6 +8,7 @@
|
|
|
8
8
|
* {@link DateRangeStatus} and keeps its own confirm button shut.
|
|
9
9
|
*/
|
|
10
10
|
import { isoToMasked } from '../../data-display/DataViews/data-views-day-input';
|
|
11
|
+
import { EN_US_UI_LABELS } from '../../../en-US.labels';
|
|
11
12
|
|
|
12
13
|
import { dayCount, isAfterDay } from './DateRangePicker.dates';
|
|
13
14
|
import type {
|
|
@@ -66,7 +67,7 @@ export function defaultMessages(): DateRangePickerMessages {
|
|
|
66
67
|
reversed: 'The end date must be on or after the start date.',
|
|
67
68
|
overMax: ({ maxRangeDays }) => `Choose a range of at most ${maxRangeDays} days.`,
|
|
68
69
|
summary: ({ from, to }) => `${isoToMasked(from, dayMask)} – ${isoToMasked(to, dayMask)}`,
|
|
69
|
-
calendarLabel:
|
|
70
|
+
calendarLabel: EN_US_UI_LABELS.dateRangePicker.calendar,
|
|
70
71
|
dayMask,
|
|
71
72
|
};
|
|
72
73
|
}
|
|
@@ -16,6 +16,7 @@ import { countriesByDisplayName, countryDisplayName } from './countries';
|
|
|
16
16
|
import { usePhoneInput } from './PhoneInput.hooks';
|
|
17
17
|
import type { CountryData,PhoneInputProps } from './PhoneInput.types';
|
|
18
18
|
import type { PhoneInputCopy } from '../../../copy';
|
|
19
|
+
import { EN_US_PHONE_INPUT_COPY } from '../../../en-US.form';
|
|
19
20
|
|
|
20
21
|
import { fieldEdge } from '../../../tokens/field-edge';
|
|
21
22
|
import { fieldRadius } from '../../../tokens/field-radius';
|
|
@@ -165,8 +166,8 @@ const definedProps = (props: PhoneInputProps): Partial<PhoneInputProps> =>
|
|
|
165
166
|
// The label and placeholder a host passes as props win; then the copy pack's;
|
|
166
167
|
// then the English the field has always shown.
|
|
167
168
|
const copyDefaults = (copy: PhoneInputCopy): Pick<PhoneInputProps, 'label' | 'placeholder'> => ({
|
|
168
|
-
label: copy.label ??
|
|
169
|
-
placeholder: copy.placeholder ??
|
|
169
|
+
label: copy.label ?? EN_US_PHONE_INPUT_COPY.label,
|
|
170
|
+
placeholder: copy.placeholder ?? EN_US_PHONE_INPUT_COPY.placeholder });
|
|
170
171
|
|
|
171
172
|
const CountryAdornment: React.FC<{
|
|
172
173
|
country?: CountryData;
|
|
@@ -4,6 +4,7 @@ import React from 'react';
|
|
|
4
4
|
|
|
5
5
|
import { Toast } from '../../feedback/Toast';
|
|
6
6
|
import { useFormContext } from './FormContext';
|
|
7
|
+
import { EN_US_UI_LABELS } from '../../../en-US.labels';
|
|
7
8
|
|
|
8
9
|
/** Props for {@link FormErrorSnackbar}. */
|
|
9
10
|
export interface FormErrorSnackbarProps {
|
|
@@ -17,7 +18,7 @@ export interface FormErrorSnackbarProps {
|
|
|
17
18
|
* error toast (testid `total-form-error-snackbar`) once any field has an error.
|
|
18
19
|
*/
|
|
19
20
|
export function FormErrorSnackbar({
|
|
20
|
-
message =
|
|
21
|
+
message = EN_US_UI_LABELS.formErrorSnackbar.message,
|
|
21
22
|
}: FormErrorSnackbarProps): React.ReactElement | null {
|
|
22
23
|
const { errors } = useFormContext();
|
|
23
24
|
const hasErrors = Object.values(errors).some(Boolean);
|
|
@@ -10,6 +10,7 @@ import MenuItem from '@mui/material/MenuItem/index.js';
|
|
|
10
10
|
import React, { useState } from 'react';
|
|
11
11
|
|
|
12
12
|
import type { ColumnVisibilityOption, ColumnsMenuProps } from './ContentToolbar.types';
|
|
13
|
+
import { EN_US_UI_LABELS } from '../../../en-US.labels';
|
|
13
14
|
import { fieldRadiusPx } from '../../../tokens/field-radius';
|
|
14
15
|
import { fieldHeight } from '../../../tokens/field-height';
|
|
15
16
|
import { sxRem } from '../../../tokens/relative';
|
|
@@ -55,8 +56,8 @@ function ColumnRow({
|
|
|
55
56
|
export function ColumnsMenu({
|
|
56
57
|
columns,
|
|
57
58
|
onToggle,
|
|
58
|
-
title =
|
|
59
|
-
ariaLabel =
|
|
59
|
+
title = EN_US_UI_LABELS.columnsMenu.title,
|
|
60
|
+
ariaLabel = EN_US_UI_LABELS.columnsMenu.toggle,
|
|
60
61
|
'data-testid': testId,
|
|
61
62
|
}: ColumnsMenuProps): React.JSX.Element {
|
|
62
63
|
const [anchorEl, setAnchorEl] = useState<HTMLElement | null>(null);
|
|
@@ -7,6 +7,7 @@ import React from 'react';
|
|
|
7
7
|
|
|
8
8
|
import type { FilterTriggerProps } from './ContentToolbar.types';
|
|
9
9
|
import { EN_US_UI_LABELS } from '../../../en-US.labels';
|
|
10
|
+
import { PT_BR_UI_LABELS } from '../../../pt-BR.labels';
|
|
10
11
|
import { fieldRadiusPx } from '../../../tokens/field-radius';
|
|
11
12
|
import { fieldHeight } from '../../../tokens/field-height';
|
|
12
13
|
import { sxRem } from '../../../tokens/relative';
|
|
@@ -28,7 +29,9 @@ export function FilterTrigger({
|
|
|
28
29
|
onOpenChange,
|
|
29
30
|
hasActiveFilters = false,
|
|
30
31
|
activeCount = 0,
|
|
31
|
-
|
|
32
|
+
// Portuguese by default, as it always rendered; the pack names it so a host
|
|
33
|
+
// passes `label` from its own locale's `contentToolbar.filters`.
|
|
34
|
+
label = PT_BR_UI_LABELS.contentToolbar.filters,
|
|
32
35
|
openFiltersLabel,
|
|
33
36
|
closeFiltersLabel,
|
|
34
37
|
'data-testid': testId = 'toggle-filters-btn',
|
|
@@ -18,6 +18,7 @@ import type {
|
|
|
18
18
|
MultiSelectOption,
|
|
19
19
|
} from './ContentToolbar.types';
|
|
20
20
|
import { buildTriggerLabel, InlineTrigger, PillTrigger, StackedTrigger } from './MultiSelectTriggers';
|
|
21
|
+
import { EN_US_UI_LABELS } from '../../../en-US.labels';
|
|
21
22
|
import { fieldTextFieldStyles } from '../../../tokens/field-height';
|
|
22
23
|
import { sxRem } from '../../../tokens/relative';
|
|
23
24
|
|
|
@@ -60,14 +61,14 @@ export function MultiSelectDropdown<TValue extends string = string>({
|
|
|
60
61
|
selected,
|
|
61
62
|
onToggle,
|
|
62
63
|
onClear,
|
|
63
|
-
allLabel =
|
|
64
|
+
allLabel = EN_US_UI_LABELS.contentToolbar.all,
|
|
64
65
|
clearLabel,
|
|
65
66
|
clearText,
|
|
66
67
|
extraOptionsHeading,
|
|
67
68
|
extraOptions,
|
|
68
69
|
searchable,
|
|
69
|
-
searchPlaceholder =
|
|
70
|
-
noResultsLabel =
|
|
70
|
+
searchPlaceholder = EN_US_UI_LABELS.contentToolbar.search,
|
|
71
|
+
noResultsLabel = EN_US_UI_LABELS.contentToolbar.noResults,
|
|
71
72
|
layout = 'inline',
|
|
72
73
|
'data-testid': testId,
|
|
73
74
|
onOpenChange,
|
|
@@ -261,7 +261,10 @@ const DashboardFilters = ({ children, className }: DashboardFiltersProps): React
|
|
|
261
261
|
DashboardFilters.displayName = 'Dashboard.Filters';
|
|
262
262
|
(DashboardFilters as SlottedComponent).dashboardSlot = 'filters';
|
|
263
263
|
|
|
264
|
-
const DashboardMoreFilters = ({
|
|
264
|
+
const DashboardMoreFilters = ({
|
|
265
|
+
children,
|
|
266
|
+
label = EN_US_UI_LABELS.dashboard.moreFilters,
|
|
267
|
+
}: DashboardMoreFiltersProps): React.JSX.Element => {
|
|
265
268
|
const { moreFiltersOpen, toggleMoreFilters, testIdPrefix } = useDashboardContext();
|
|
266
269
|
return (
|
|
267
270
|
<Box>
|
|
@@ -8,6 +8,7 @@ import { alpha, useTheme } from '@mui/material/styles/index.js';
|
|
|
8
8
|
import React from 'react';
|
|
9
9
|
|
|
10
10
|
import type { DrawerContentProps,DrawerHeaderProps, DrawerProps } from './Drawer.types';
|
|
11
|
+
import { EN_US_UI_LABELS } from '../../../en-US.labels';
|
|
11
12
|
import { shadowInk } from '../../../tokens/ink';
|
|
12
13
|
import { rem, rems } from '../../../tokens/relative';
|
|
13
14
|
|
|
@@ -166,7 +167,7 @@ export const DrawerHeader: React.FC<DrawerHeaderProps> = ({
|
|
|
166
167
|
<IconButton
|
|
167
168
|
onClick={onClose}
|
|
168
169
|
edge="end"
|
|
169
|
-
aria-label={closeLabel ??
|
|
170
|
+
aria-label={closeLabel ?? EN_US_UI_LABELS.drawer.close}
|
|
170
171
|
data-testid={dataTestId ? `${dataTestId}-close` : 'drawer-close'}
|
|
171
172
|
>
|
|
172
173
|
<Close />
|
|
@@ -206,6 +206,7 @@ does not ask.
|
|
|
206
206
|
| atIndex | boolean | `false` | `drilldown`: the router is at the area's index, not in a section |
|
|
207
207
|
| indexHref | string | - | `drilldown`: where the back link goes |
|
|
208
208
|
| backLabel | string | `'Back'` | Label on the back control |
|
|
209
|
+
| navigationLabel | string | `'Settings'` | The navigation's accessible name while `title` is not plain text |
|
|
209
210
|
| sectionChips | SettingsNavItem[] | - | Sections carried by the narrow-width chip strip |
|
|
210
211
|
|
|
211
212
|
### SettingsNavGroup
|
|
@@ -23,6 +23,8 @@ import type {
|
|
|
23
23
|
|
|
24
24
|
interface RailToggleProps {
|
|
25
25
|
title?: React.ReactNode;
|
|
26
|
+
/** The navigation's accessible name, resolved by the layout from `title`. */
|
|
27
|
+
ariaLabel: string;
|
|
26
28
|
activeLabel?: string;
|
|
27
29
|
open: boolean;
|
|
28
30
|
onToggle: () => void;
|
|
@@ -37,6 +39,7 @@ interface RailToggleProps {
|
|
|
37
39
|
*/
|
|
38
40
|
function SettingsRailToggle({
|
|
39
41
|
title,
|
|
42
|
+
ariaLabel,
|
|
40
43
|
activeLabel,
|
|
41
44
|
open,
|
|
42
45
|
onToggle,
|
|
@@ -49,7 +52,7 @@ function SettingsRailToggle({
|
|
|
49
52
|
type="button"
|
|
50
53
|
onClick={onToggle}
|
|
51
54
|
aria-expanded={open}
|
|
52
|
-
aria-label={
|
|
55
|
+
aria-label={ariaLabel}
|
|
53
56
|
data-testid={`${testIdPrefix}-toggle`}
|
|
54
57
|
sx={(theme) => ({
|
|
55
58
|
...displayAcrossRail(theme, breakpoint, 'flex', 'none'),
|
|
@@ -238,6 +241,8 @@ function SettingsRailBody({
|
|
|
238
241
|
/** Props for {@link SettingsRail}: the rail body's inputs plus the mobile chrome. */
|
|
239
242
|
export type SettingsRailProps = RailBodyProps & {
|
|
240
243
|
title?: React.ReactNode;
|
|
244
|
+
/** The navigation's accessible name, resolved by the layout from `title`. */
|
|
245
|
+
ariaLabel: string;
|
|
241
246
|
activeLabel?: string;
|
|
242
247
|
onToggleNav: () => void;
|
|
243
248
|
/** Scroll inside the rail rather than with the page. See `fillHeight`. */
|
|
@@ -268,6 +273,7 @@ function railColumnSx(theme: Theme, railVariant: SettingsRailVariant): Record<st
|
|
|
268
273
|
/** The navigation column: title, the `switcher`'s disclosure, and the body. */
|
|
269
274
|
export function SettingsRail({
|
|
270
275
|
title,
|
|
276
|
+
ariaLabel,
|
|
271
277
|
activeLabel,
|
|
272
278
|
navOpen,
|
|
273
279
|
onToggleNav,
|
|
@@ -287,7 +293,7 @@ export function SettingsRail({
|
|
|
287
293
|
return (
|
|
288
294
|
<Box
|
|
289
295
|
component="nav"
|
|
290
|
-
aria-label={
|
|
296
|
+
aria-label={ariaLabel}
|
|
291
297
|
data-testid={`${testIdPrefix}-rail`}
|
|
292
298
|
data-rail-variant={railVariant}
|
|
293
299
|
sx={(theme) => ({
|
|
@@ -326,6 +332,7 @@ export function SettingsRail({
|
|
|
326
332
|
{variant === 'switcher' ? (
|
|
327
333
|
<SettingsRailToggle
|
|
328
334
|
title={title}
|
|
335
|
+
ariaLabel={ariaLabel}
|
|
329
336
|
activeLabel={activeLabel}
|
|
330
337
|
open={navOpen}
|
|
331
338
|
onToggle={onToggleNav}
|
|
@@ -4,6 +4,7 @@ import Box from '@mui/material/Box/index.js';
|
|
|
4
4
|
import type { SxProps, Theme } from '@mui/material/styles/index.js';
|
|
5
5
|
import React, { useMemo, useState } from 'react';
|
|
6
6
|
|
|
7
|
+
import { EN_US_UI_LABELS } from '../../../en-US.labels';
|
|
7
8
|
import { withDefaults } from '../../../utils/withDefaults';
|
|
8
9
|
import { activeItemLabel, filterGroups } from './SettingsLayout.filters';
|
|
9
10
|
import { SettingsRail } from './SettingsLayout.rail';
|
|
@@ -32,18 +33,20 @@ type ResolvedProps = SettingsLayoutProps &
|
|
|
32
33
|
| 'navVariant'
|
|
33
34
|
| 'atIndex'
|
|
34
35
|
| 'backLabel'
|
|
36
|
+
| 'navigationLabel'
|
|
35
37
|
>
|
|
36
38
|
>;
|
|
37
39
|
|
|
38
40
|
const DEFAULTS = {
|
|
39
|
-
searchPlaceholder:
|
|
41
|
+
searchPlaceholder: EN_US_UI_LABELS.settingsLayout.searchPlaceholder,
|
|
40
42
|
defaultQuery: '',
|
|
41
|
-
emptySearchLabel:
|
|
43
|
+
emptySearchLabel: EN_US_UI_LABELS.settingsLayout.emptySearch,
|
|
42
44
|
testIdPrefix: 'settings',
|
|
43
45
|
railBreakpoint: 'md',
|
|
44
46
|
navVariant: 'switcher',
|
|
45
47
|
atIndex: false,
|
|
46
|
-
backLabel:
|
|
48
|
+
backLabel: EN_US_UI_LABELS.settingsLayout.back,
|
|
49
|
+
navigationLabel: EN_US_UI_LABELS.settingsLayout.navigation,
|
|
47
50
|
} satisfies Partial<SettingsLayoutProps>;
|
|
48
51
|
|
|
49
52
|
/**
|
|
@@ -57,6 +60,14 @@ function railLookOf({
|
|
|
57
60
|
return { searchable, railVariant };
|
|
58
61
|
}
|
|
59
62
|
|
|
63
|
+
/**
|
|
64
|
+
* The navigation's accessible name: a plain-string `title`, else the host's
|
|
65
|
+
* `navigationLabel`, else "Settings".
|
|
66
|
+
*/
|
|
67
|
+
function navigationNameOf({ title, navigationLabel = DEFAULTS.navigationLabel }: SettingsLayoutProps): string {
|
|
68
|
+
return typeof title === 'string' ? title : navigationLabel;
|
|
69
|
+
}
|
|
70
|
+
|
|
60
71
|
/** Stacked below the rail's breakpoint, two columns at and above it. */
|
|
61
72
|
function shellSx(
|
|
62
73
|
breakpoint: SettingsLayoutProps['railBreakpoint'],
|
|
@@ -136,7 +147,6 @@ export const SettingsLayout: React.FC<SettingsLayoutProps> = (props) => {
|
|
|
136
147
|
const activeLabel = useMemo(() => activeItemLabel(groups, activeItemId), [groups, activeItemId]);
|
|
137
148
|
|
|
138
149
|
const drilldown = navVariant === 'drilldown';
|
|
139
|
-
const ariaLabel = typeof title === 'string' ? title : 'Settings';
|
|
140
150
|
|
|
141
151
|
return (
|
|
142
152
|
<Box
|
|
@@ -147,6 +157,7 @@ export const SettingsLayout: React.FC<SettingsLayoutProps> = (props) => {
|
|
|
147
157
|
>
|
|
148
158
|
<SettingsRail
|
|
149
159
|
title={title}
|
|
160
|
+
ariaLabel={navigationNameOf(props)}
|
|
150
161
|
activeLabel={activeLabel}
|
|
151
162
|
navOpen={navOpen}
|
|
152
163
|
onToggleNav={() => setNavOpen((open) => !open)}
|
|
@@ -176,7 +187,7 @@ export const SettingsLayout: React.FC<SettingsLayoutProps> = (props) => {
|
|
|
176
187
|
sectionTitle={props.sectionTitle}
|
|
177
188
|
sectionDescription={props.sectionDescription}
|
|
178
189
|
backLabel={backLabel}
|
|
179
|
-
ariaLabel={
|
|
190
|
+
ariaLabel={navigationNameOf(props)}
|
|
180
191
|
sectionChips={sectionChips}
|
|
181
192
|
activeItemId={activeItemId}
|
|
182
193
|
linkComponent={linkComponent}
|
|
@@ -200,6 +200,12 @@ export interface SettingsLayoutProps {
|
|
|
200
200
|
indexHref?: string;
|
|
201
201
|
/** Label on the back control. Defaults to `"Back"`. */
|
|
202
202
|
backLabel?: string;
|
|
203
|
+
/**
|
|
204
|
+
* The navigation's accessible name while `title` is not plain text (a node,
|
|
205
|
+
* or nothing). Defaults to `"Settings"`; a plain-string `title` names it
|
|
206
|
+
* instead, whatever this says.
|
|
207
|
+
*/
|
|
208
|
+
navigationLabel?: string;
|
|
203
209
|
/**
|
|
204
210
|
* The open section's own name.
|
|
205
211
|
*
|
|
@@ -14,6 +14,7 @@ import Typography from '@mui/material/Typography/index.js';
|
|
|
14
14
|
import React, { useRef, useState } from 'react';
|
|
15
15
|
|
|
16
16
|
import { TableFilterContext, useTableFilterContext } from './TableFilterContext';
|
|
17
|
+
import { EN_US_UI_LABELS } from '../../../en-US.labels';
|
|
17
18
|
import type {
|
|
18
19
|
TableFilterCheckboxFieldProps,
|
|
19
20
|
TableFilterKeywordProps,
|
|
@@ -96,7 +97,7 @@ TableFilterMain.displayName = 'TableFilter.Main';
|
|
|
96
97
|
const TableFilterPanel = ({
|
|
97
98
|
children,
|
|
98
99
|
onClearAll,
|
|
99
|
-
ariaLabel =
|
|
100
|
+
ariaLabel = EN_US_UI_LABELS.tableFilter.filters,
|
|
100
101
|
clearTestId,
|
|
101
102
|
}: TableFilterPanelProps): React.JSX.Element => {
|
|
102
103
|
const { open, copy } = useTableFilterContext();
|
|
@@ -158,8 +159,8 @@ TableFilterPanel.displayName = 'TableFilter.Panel';
|
|
|
158
159
|
const TableFilterKeyword = ({
|
|
159
160
|
value,
|
|
160
161
|
onChange,
|
|
161
|
-
placeholder =
|
|
162
|
-
label =
|
|
162
|
+
placeholder = EN_US_UI_LABELS.tableFilter.keywordPlaceholder,
|
|
163
|
+
label = EN_US_UI_LABELS.tableFilter.keywordLabel,
|
|
163
164
|
testId,
|
|
164
165
|
}: TableFilterKeywordProps): React.JSX.Element => {
|
|
165
166
|
const { copy } = useTableFilterContext();
|
|
@@ -9,6 +9,7 @@ import type { Theme } from '@mui/material/styles/index.js';
|
|
|
9
9
|
import React from 'react';
|
|
10
10
|
|
|
11
11
|
import { rem, sxRem } from '../../../tokens/relative';
|
|
12
|
+
import { PT_BR_UI_LABELS } from '../../../pt-BR.labels';
|
|
12
13
|
import { accentFor, type SizeValue } from '../../../tokens/scales';
|
|
13
14
|
|
|
14
15
|
import { AppHeaderBrand } from './AppHeader.brand';
|
|
@@ -215,7 +216,7 @@ const IdentityText: React.FC<
|
|
|
215
216
|
onClick={onDisclose}
|
|
216
217
|
aria-haspopup="dialog"
|
|
217
218
|
aria-expanded={disclosed}
|
|
218
|
-
aria-label={discloseLabel ??
|
|
219
|
+
aria-label={discloseLabel ?? PT_BR_UI_LABELS.appHeader.disclose(title)}
|
|
219
220
|
sx={discloseSx}
|
|
220
221
|
>
|
|
221
222
|
{name}
|
|
@@ -87,7 +87,11 @@ export interface AppHeaderIdentityProps
|
|
|
87
87
|
onDisclose?: () => void;
|
|
88
88
|
/** Whether the panel `onDisclose` opens is currently open (`aria-expanded`). */
|
|
89
89
|
disclosed?: boolean;
|
|
90
|
-
/**
|
|
90
|
+
/**
|
|
91
|
+
* Accessible name of the disclosure. @default `Detalhes de {title}`, as it
|
|
92
|
+
* always read (`UI_LABELS['pt-BR'].appHeader.disclose`); a host in another
|
|
93
|
+
* locale passes its own pack's `appHeader.disclose(title)`.
|
|
94
|
+
*/
|
|
91
95
|
discloseLabel?: string;
|
|
92
96
|
/**
|
|
93
97
|
* The identity is still being resolved — hold a skeleton the size of the real
|
|
@@ -11,6 +11,7 @@ import {
|
|
|
11
11
|
breadcrumbsBarStyles,
|
|
12
12
|
sizeIconMap } from './Breadcrumbs.styles';
|
|
13
13
|
import { BreadcrumbEntry } from './BreadcrumbEntry';
|
|
14
|
+
import { EN_US_UI_LABELS } from '../../../en-US.labels';
|
|
14
15
|
import type { BreadcrumbItem,BreadcrumbsProps } from './Breadcrumbs.types';
|
|
15
16
|
import { sxRem } from '../../../tokens/relative';
|
|
16
17
|
|
|
@@ -174,7 +175,7 @@ export const Breadcrumbs = React.forwardRef<HTMLElement, BreadcrumbsProps>(
|
|
|
174
175
|
color={color}
|
|
175
176
|
visualStyle={variant}
|
|
176
177
|
elevation={elevation}
|
|
177
|
-
aria-label={ariaLabel ||
|
|
178
|
+
aria-label={ariaLabel || EN_US_UI_LABELS.breadcrumbs.navigation}
|
|
178
179
|
role="navigation"
|
|
179
180
|
data-testid={dataTestId || 'breadcrumbs'}
|
|
180
181
|
{...props}
|
|
@@ -47,7 +47,7 @@ const CollapseControl: FC<{
|
|
|
47
47
|
}> = ({
|
|
48
48
|
collapsed,
|
|
49
49
|
label = EN_US_UI_LABELS.navigationMenu.collapse,
|
|
50
|
-
expandLabel = EN_US_UI_LABELS.navigationMenu.expand
|
|
50
|
+
expandLabel = EN_US_UI_LABELS.navigationMenu.expand,
|
|
51
51
|
onToggle,
|
|
52
52
|
}) => (
|
|
53
53
|
// Collapsed, the control is its icon alone, so the name has to be given.
|
|
@@ -4,6 +4,7 @@ import type { FC } from 'react';
|
|
|
4
4
|
import React from 'react';
|
|
5
5
|
|
|
6
6
|
import { withDefaults } from '../../../utils/withDefaults';
|
|
7
|
+
import { EN_US_UI_LABELS } from '../../../en-US.labels';
|
|
7
8
|
|
|
8
9
|
import { iconSx, sizeConfigs } from './AnimatedIcon.styles';
|
|
9
10
|
import type { IconStyleFlags } from './AnimatedIcon.styles';
|
|
@@ -61,7 +62,7 @@ export const AnimatedIcon: FC<AnimatedIconProps> = (props) => {
|
|
|
61
62
|
className={className}
|
|
62
63
|
style={style}
|
|
63
64
|
role="img"
|
|
64
|
-
aria-label={ariaLabel ||
|
|
65
|
+
aria-label={ariaLabel || EN_US_UI_LABELS.animatedIcon.name(variant)}
|
|
65
66
|
onClick={onClick}
|
|
66
67
|
tabIndex={tabIndex}
|
|
67
68
|
onFocus={onFocus}
|
|
@@ -5,6 +5,7 @@ import Typography from '@mui/material/Typography/index.js';
|
|
|
5
5
|
import { useTheme, type SxProps, type Theme } from '@mui/material/styles/index.js';
|
|
6
6
|
import React from 'react';
|
|
7
7
|
|
|
8
|
+
import { EN_US_UI_LABELS } from '../../../en-US.labels';
|
|
8
9
|
import { rem } from '../../../tokens/relative';
|
|
9
10
|
|
|
10
11
|
import type { InfiniteScrollProps } from './InfiniteScroll.types';
|
|
@@ -38,9 +39,12 @@ export const DefaultEndMessage: React.FC<{ endText: string }> = ({ endText }) =>
|
|
|
38
39
|
</Box>
|
|
39
40
|
);
|
|
40
41
|
|
|
41
|
-
export const DefaultError: React.FC<{ error: Error }> = ({
|
|
42
|
+
export const DefaultError: React.FC<{ error: Error; errorText?: string }> = ({
|
|
43
|
+
error,
|
|
44
|
+
errorText = EN_US_UI_LABELS.infiniteScroll.loadFailed,
|
|
45
|
+
}) => (
|
|
42
46
|
<Alert severity="error" sx={{ m: 2 }}>
|
|
43
|
-
{error.message ||
|
|
47
|
+
{error.message || errorText}
|
|
44
48
|
</Alert>
|
|
45
49
|
);
|
|
46
50
|
|