@12-apps/ui 6.41.2 → 6.43.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/Alert/Alert.js +3 -3
- package/dist/_internal/components/data-display/Alert/Alert.metrics.js +3 -3
- package/dist/_internal/components/data-display/Alert/Alert.styles.js +3 -3
- package/dist/_internal/components/data-display/Badge/Badge.js +4 -4
- package/dist/_internal/components/data-display/Badge/Badge.styles.js +4 -4
- package/dist/_internal/components/data-display/Badge/BadgeContent.js +4 -4
- package/dist/_internal/components/data-display/Banner/Banner.js +3 -3
- package/dist/_internal/components/data-display/Banner/Banner.styles.js +3 -3
- package/dist/_internal/components/data-display/CardKit/CardKebab.js +3 -3
- package/dist/_internal/components/data-display/CardKit/card-actions-context.js +3 -3
- package/dist/_internal/components/data-display/CardKit/use-remove-confirm.js +3 -3
- package/dist/_internal/components/data-display/CardKit/use-row-confirm.js +3 -3
- package/dist/_internal/components/data-display/Carousel/Carousel.chrome.js +4 -4
- package/dist/_internal/components/data-display/Carousel/Carousel.js +4 -4
- package/dist/_internal/components/data-display/Carousel/Carousel.parts.js +4 -4
- package/dist/_internal/components/data-display/Carousel/Carousel.styles.js +4 -4
- package/dist/_internal/components/data-display/Chart/Chart.js +4 -4
- package/dist/_internal/components/data-display/Chart/SpecChart.js +4 -4
- package/dist/_internal/components/data-display/Chart/chart-context.js +4 -4
- package/dist/_internal/components/data-display/Chart/chart-internals.js +4 -4
- package/dist/_internal/components/data-display/Chart/chart-renderers.js +4 -4
- package/dist/_internal/components/data-display/DataGrid/DataGrid.body.js +2 -2
- package/dist/_internal/components/data-display/DataGrid/DataGrid.cells.js +1 -1
- package/dist/_internal/components/data-display/DataGrid/DataGrid.js +13 -4
- package/dist/_internal/components/data-display/DataGrid/DataGrid.model.js +12 -1
- package/dist/_internal/components/data-display/DataViews/DataViewsBoard.js +6 -6
- package/dist/_internal/components/data-display/DataViews/DataViewsGrid.js +30 -29
- package/dist/_internal/components/data-display/DataViews/DataViewsTableBase.js +36 -35
- package/dist/_internal/components/data-display/DataViews/DeleteViewDialog.js +6 -6
- package/dist/_internal/components/data-display/DataViews/ManageViewsDialog.js +6 -6
- package/dist/_internal/components/data-display/DataViews/SaveViewModal.js +7 -7
- package/dist/_internal/components/data-display/DataViews/base-card.js +6 -6
- package/dist/_internal/components/data-display/DataViews/base-list-card-geometry.js +15 -10
- package/dist/_internal/components/data-display/DataViews/base-list-card-slots.js +14 -9
- package/dist/_internal/components/data-display/DataViews/base-list-card.js +16 -11
- package/dist/_internal/components/data-display/DataViews/data-views-bar-controls.js +1 -1
- package/dist/_internal/components/data-display/DataViews/data-views-category-pill.js +1 -1
- package/dist/_internal/components/data-display/DataViews/data-views-columns-tab.js +6 -6
- package/dist/_internal/components/data-display/DataViews/data-views-columns.js +3 -3
- package/dist/_internal/components/data-display/DataViews/data-views-day-input.js +1 -1
- package/dist/_internal/components/data-display/DataViews/data-views-display-panel.js +11 -10
- package/dist/_internal/components/data-display/DataViews/data-views-display-tabs.js +12 -7
- package/dist/_internal/components/data-display/DataViews/data-views-empty.js +6 -6
- package/dist/_internal/components/data-display/DataViews/data-views-export.js +6 -6
- package/dist/_internal/components/data-display/DataViews/data-views-filter-panel.js +1 -1
- package/dist/_internal/components/data-display/DataViews/data-views-grid-bodies.js +15 -14
- package/dist/_internal/components/data-display/DataViews/data-views-grid-helpers.js +3 -3
- package/dist/_internal/components/data-display/DataViews/data-views-grid-parts.js +29 -28
- package/dist/_internal/components/data-display/DataViews/data-views-header-row.js +6 -6
- package/dist/_internal/components/data-display/DataViews/data-views-inline-bar.js +8 -8
- package/dist/_internal/components/data-display/DataViews/data-views-layout-context.js +11 -1
- package/dist/_internal/components/data-display/DataViews/data-views-more-fields.js +6 -6
- package/dist/_internal/components/data-display/DataViews/data-views-more-filters.js +7 -7
- package/dist/_internal/components/data-display/DataViews/data-views-number-input.js +1 -1
- package/dist/_internal/components/data-display/DataViews/data-views-pagination.js +1 -1
- package/dist/_internal/components/data-display/DataViews/data-views-range-pill.js +1 -1
- package/dist/_internal/components/data-display/DataViews/data-views-scope-tabs.js +10 -2
- package/dist/_internal/components/data-display/DataViews/data-views-search.js +1 -1
- package/dist/_internal/components/data-display/DataViews/data-views-select-all-strip.js +6 -6
- package/dist/_internal/components/data-display/DataViews/data-views-shell-toolbar.js +14 -13
- package/dist/_internal/components/data-display/DataViews/data-views-table-parts.js +9 -9
- package/dist/_internal/components/data-display/DataViews/data-views-toolbar.js +13 -12
- package/dist/_internal/components/data-display/DataViews/data-views-view-nav.js +6 -6
- package/dist/_internal/components/data-display/DataViews/list-card-rails.js +10 -2
- package/dist/_internal/components/data-display/DataViews/save-view-preview.js +6 -6
- package/dist/_internal/components/data-display/DataViews/use-data-views-state.js +3 -3
- package/dist/_internal/components/data-display/DescriptionItem/DescriptionItem.js +6 -6
- package/dist/_internal/components/data-display/FleetMap/FleetBody.js +1 -1
- package/dist/_internal/components/data-display/FleetMap/FleetCanvas.js +1 -1
- package/dist/_internal/components/data-display/FleetMap/FleetMap.fixtures.js +1 -1
- package/dist/_internal/components/data-display/FleetMap/FleetMap.js +4 -4
- package/dist/_internal/components/data-display/Lightbox/Lightbox.js +7 -7
- package/dist/_internal/components/data-display/Lightbox/LightboxControls.js +2 -2
- package/dist/_internal/components/data-display/Lightbox/LightboxCurrentMedia.js +3 -2
- package/dist/_internal/components/data-display/Lightbox/LightboxMedia.js +2 -1
- package/dist/_internal/components/data-display/Lightbox/LightboxOverlay.js +3 -3
- package/dist/_internal/components/data-display/Lightbox/LightboxThumbnails.js +2 -1
- package/dist/_internal/components/data-display/MapPreview/MapLayers.js +1 -1
- package/dist/_internal/components/data-display/MapPreview/MapPreview.js +1 -1
- package/dist/_internal/components/data-display/MapPreview/MapSearchBar.js +1 -1
- package/dist/_internal/components/data-display/Progress/Progress.js +6 -6
- package/dist/_internal/components/data-display/Progress/Progress.metrics.js +4 -4
- package/dist/_internal/components/data-display/Progress/Progress.styles.js +5 -5
- package/dist/_internal/components/data-display/Sheet/Sheet.body.js +4 -4
- package/dist/_internal/components/data-display/Sheet/Sheet.js +4 -4
- package/dist/_internal/components/data-display/Sheet/Sheet.styles.js +4 -4
- package/dist/_internal/components/data-display/Table/Table.helpers.js +3 -1
- package/dist/_internal/components/data-display/Table/Table.js +11 -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/TimingDiagram/TimingDiagram.js +2 -2
- package/dist/_internal/components/data-display/TimingDiagram/TimingDiagram.views.js +1 -1
- package/dist/_internal/components/data-display/index.js +26 -26
- package/dist/_internal/components/feedback/ConfirmAction/ConfirmButton.js +3 -3
- package/dist/_internal/components/feedback/NotificationStatusNotice/NotificationStatusNotice.js +3 -3
- package/dist/_internal/components/feedback/TutorialOverlay/TutorialOverlay.js +2 -2
- package/dist/_internal/components/feedback/TutorialOverlay/TutorialStepBody.js +1 -1
- package/dist/_internal/components/feedback/index.js +5 -5
- package/dist/_internal/components/form/AddressAutocomplete/AddressAutocomplete.js +1 -1
- package/dist/_internal/components/form/AddressAutocomplete/AddressAutocompleteField.js +1 -1
- package/dist/_internal/components/form/AddressAutocomplete/AddressFallbackField.js +1 -1
- package/dist/_internal/components/form/AddressAutocomplete/AddressInputField.js +1 -1
- package/dist/_internal/components/form/AddressAutocomplete/AddressTextField.js +1 -1
- package/dist/_internal/components/form/Autocomplete/Autocomplete.js +1 -1
- package/dist/_internal/components/form/Autocomplete/Autocomplete.parts.js +1 -1
- package/dist/_internal/components/form/Button/Button.js +3 -3
- package/dist/_internal/components/form/Button/Button.styles.js +3 -3
- package/dist/_internal/components/form/CategorySelect/CategoryPanel.js +1 -1
- package/dist/_internal/components/form/CategorySelect/CategoryPanelFoot.js +1 -1
- package/dist/_internal/components/form/CategorySelect/CategoryPanelHead.js +1 -1
- package/dist/_internal/components/form/CategorySelect/CategoryPanelList.js +1 -1
- package/dist/_internal/components/form/CategorySelect/CategoryRows.js +1 -1
- package/dist/_internal/components/form/CategorySelect/CategorySelect.js +1 -1
- package/dist/_internal/components/form/CategorySelect/CategorySelect.styles.js +1 -1
- package/dist/_internal/components/form/CategorySelect/CategoryTrigger.js +1 -1
- package/dist/_internal/components/form/CepField/CepField.js +1 -1
- package/dist/_internal/components/form/Command/Command.js +4 -4
- package/dist/_internal/components/form/Command/Command.styles.js +4 -4
- package/dist/_internal/components/form/CreatableSelect/CreatableSelect.js +1 -1
- package/dist/_internal/components/form/DateRangePicker/DateRangePicker.hooks.js +1 -1
- package/dist/_internal/components/form/DateRangePicker/DateRangePicker.js +1 -1
- package/dist/_internal/components/form/DateRangePicker/DateRangePicker.range.js +1 -1
- package/dist/_internal/components/form/DateRangePicker/DateRangePickerFields.js +1 -1
- package/dist/_internal/components/form/Input/Input.js +1 -1
- package/dist/_internal/components/form/Input/Input.styles.js +1 -1
- package/dist/_internal/components/form/InputOTP/InputOTP.js +1 -1
- package/dist/_internal/components/form/InputOTP/InputOTP.styles.js +1 -1
- package/dist/_internal/components/form/Label/Label.js +4 -4
- package/dist/_internal/components/form/Label/Label.styles.js +4 -4
- package/dist/_internal/components/form/Menubar/Menubar.item.js +4 -4
- package/dist/_internal/components/form/Menubar/Menubar.js +4 -4
- package/dist/_internal/components/form/Menubar/Menubar.styles.js +4 -4
- package/dist/_internal/components/form/Menubar/Menubar.toolbar.js +4 -4
- package/dist/_internal/components/form/NumberField/NumberField.js +1 -1
- package/dist/_internal/components/form/PhoneInput/PhoneInput.js +1 -1
- package/dist/_internal/components/form/RadioGroup/RadioGroup.js +1 -1
- package/dist/_internal/components/form/RadioGroup/RadioGroup.styles.js +1 -1
- package/dist/_internal/components/form/RadioGroup/RadioGroup.variants.js +1 -1
- package/dist/_internal/components/form/Select/Select.js +1 -1
- package/dist/_internal/components/form/Switch/Switch.js +3 -3
- package/dist/_internal/components/form/Switch/Switch.parts.js +3 -3
- package/dist/_internal/components/form/Switch/Switch.styles.js +3 -3
- package/dist/_internal/components/form/Textarea/Textarea.js +2 -2
- package/dist/_internal/components/form/Textarea/TextareaRichEditor.js +1 -1
- package/dist/_internal/components/form/Toggle/Toggle.js +1 -1
- package/dist/_internal/components/form/Toggle/Toggle.styles.js +1 -1
- package/dist/_internal/components/form/ToggleGroup/ToggleGroup.js +1 -1
- package/dist/_internal/components/form/index.js +5 -5
- package/dist/_internal/components/form/total-form/Fields/CategoryField.js +1 -1
- package/dist/_internal/components/form/total-form/Fields/CepField.js +1 -1
- package/dist/_internal/components/form/total-form/Fields/SelectField.js +1 -1
- package/dist/_internal/components/form/total-form/Fields/TextField.js +1 -1
- package/dist/_internal/components/form/total-form/Fields/ToggleField.js +1 -1
- package/dist/_internal/components/form/total-form/Fields/index.js +1 -1
- package/dist/_internal/components/form/total-form/SubmitButton.js +3 -3
- package/dist/_internal/components/index.js +43 -43
- package/dist/_internal/components/layout/Box/Box.js +7 -7
- package/dist/_internal/components/layout/ContentToolbar/ColumnsMenu.js +1 -1
- package/dist/_internal/components/layout/ContentToolbar/FilterTrigger.js +1 -1
- package/dist/_internal/components/layout/ContentToolbar/MultiSelectDropdown.js +1 -1
- package/dist/_internal/components/layout/ContentToolbar/MultiSelectTriggers.js +1 -1
- package/dist/_internal/components/layout/ContentToolbar/SavedViewsMenu.js +1 -1
- package/dist/_internal/components/layout/ContentToolbar/SortByDropdown.js +1 -1
- package/dist/_internal/components/layout/ContentToolbar/ViewSelector.js +1 -1
- package/dist/_internal/components/layout/Dashboard/Dashboard.js +2 -2
- package/dist/_internal/components/layout/Dashboard/DashboardParts.js +1 -1
- package/dist/_internal/components/layout/SettingCard/SettingCard.js +9 -9
- package/dist/_internal/components/layout/SettingCard/SettingCard.parts.js +8 -8
- package/dist/_internal/components/layout/SettingCard/SettingGrid.js +9 -9
- package/dist/_internal/components/layout/SettingCard/SettingGroup.js +10 -10
- package/dist/_internal/components/layout/SettingCard/SettingSwitch.js +9 -9
- package/dist/_internal/components/layout/SettingCard/SettingToggle.js +10 -10
- package/dist/_internal/components/layout/Stack/Stack.js +8 -8
- package/dist/_internal/components/layout/TableFilter/TableFilter.js +1 -1
- package/dist/_internal/components/layout/index.js +15 -15
- package/dist/_internal/components/navigation/AppHeader/AppHeader.details.js +4 -4
- package/dist/_internal/components/navigation/AppHeader/AppHeader.identity.js +4 -4
- package/dist/_internal/components/navigation/Pagination/Pagination.js +1 -1
- package/dist/_internal/components/navigation/Pagination/PaginationParts.js +1 -1
- package/dist/_internal/components/navigation/Tabs/Tabs.js +1 -1
- package/dist/_internal/components/navigation/Tabs/Tabs.styles.js +1 -1
- package/dist/_internal/components/navigation/index.js +4 -4
- package/dist/_internal/components/typography/Heading/Heading.js +6 -6
- package/dist/_internal/components/typography/Heading/Heading.metrics.js +4 -4
- package/dist/_internal/components/typography/Heading/Heading.styles.js +5 -5
- package/dist/_internal/components/typography/Text/Text.js +5 -5
- package/dist/_internal/components/typography/Text/Text.metrics.js +4 -4
- package/dist/_internal/components/typography/index.js +8 -8
- package/dist/_internal/components/utility/WorkflowStep/WorkflowStep.helpers.js +4 -4
- package/dist/_internal/components/utility/WorkflowStep/WorkflowStep.js +4 -4
- package/dist/_internal/components/utility/WorkflowStep/WorkflowStep.parts.js +4 -4
- package/dist/_internal/components/utility/WorkflowStep/WorkflowStepRow.js +4 -4
- package/dist/_internal/components/utility/index.js +4 -4
- package/dist/_internal/en-US.data-display.js +3 -1
- package/dist/_internal/en-US.feedback.js +1 -1
- package/dist/_internal/icons/Icon.js +7 -7
- package/dist/_internal/provider/UiProvider.js +6 -6
- package/dist/_internal/provider/mui-bridge.js +5 -5
- package/dist/_internal/provider/use-ui-theme.js +6 -6
- package/dist/_internal/pt-BR.data-display.js +3 -1
- package/dist/_internal/pt-BR.feedback.js +1 -1
- package/dist/_internal/social-login-button/social-login-button.js +9 -9
- package/dist/_internal/tokens/density.js +1 -1
- package/dist/_internal/tokens/field-height.js +1 -1
- package/dist/_internal/tokens/theme.js +3 -3
- package/dist/_internal/user-avatar/user-avatar.js +6 -6
- package/dist/charts.js +4 -4
- package/dist/{chunk-K4L42FF6.js → chunk-24JOJJ2J.js} +3 -3
- package/dist/chunk-24JOJJ2J.js.map +1 -0
- package/dist/{chunk-YPIVLPXF.js → chunk-33NBMNTB.js} +2 -2
- package/dist/{chunk-JE6GQB5J.js → chunk-4Z2HIHA5.js} +4 -4
- package/dist/{chunk-FHW3ATT7.js → chunk-53HQNN3C.js} +2 -2
- package/dist/{chunk-53O2TNSR.js → chunk-5DAVXZPY.js} +3 -3
- package/dist/{chunk-DH5UJD2I.js → chunk-5FHPZOYK.js} +2 -2
- package/dist/{chunk-NSVSC6ZC.js → chunk-5PJM772Y.js} +4 -4
- package/dist/{chunk-VYM2GPR6.js → chunk-5PTCT3LF.js} +2 -2
- package/dist/{chunk-ZH2SZ6B3.js → chunk-652PYSML.js} +6 -6
- package/dist/{chunk-PEOOCQ2T.js → chunk-6IRJAIS4.js} +2 -2
- package/dist/{chunk-PAT2BQOQ.js → chunk-6IWO7CM2.js} +2 -2
- package/dist/{chunk-YFODI4KT.js → chunk-6WZUZHJM.js} +8 -8
- package/dist/{chunk-KCDNOMMT.js → chunk-6Z6PUG4C.js} +9 -3
- package/dist/chunk-6Z6PUG4C.js.map +1 -0
- package/dist/{chunk-QEI5DC6S.js → chunk-7KJOODQB.js} +1 -1
- package/dist/{chunk-6ZD3FI5P.js → chunk-AOFI3GDS.js} +4 -4
- package/dist/{chunk-H72YKEGD.js → chunk-AOKLEE64.js} +2 -2
- package/dist/{chunk-RDFPM2AQ.js → chunk-BJGUDLWZ.js} +4 -4
- package/dist/{chunk-X66E5WSX.js → chunk-C4QKXFZN.js} +3 -3
- package/dist/{chunk-OJUORFGO.js → chunk-C6JUGWAU.js} +4 -4
- package/dist/{chunk-DLWLIPCP.js → chunk-CKFZQQ6T.js} +2 -2
- package/dist/{chunk-Z2NN53E5.js → chunk-DCT2PKMQ.js} +2 -2
- package/dist/{chunk-G6ZPQHBL.js → chunk-DSHM7VN6.js} +2 -2
- package/dist/{chunk-WV62BSWA.js → chunk-F5BYZNXY.js} +2 -2
- package/dist/{chunk-RDZGXJOD.js → chunk-F5GXWK6B.js} +2 -2
- package/dist/{chunk-4Z7GEO2R.js → chunk-G7RYAWPZ.js} +2 -2
- package/dist/{chunk-UFNIS7KC.js → chunk-GGBFDHXE.js} +11 -8
- package/dist/chunk-GGBFDHXE.js.map +1 -0
- package/dist/{chunk-4S2LWZ7L.js → chunk-GO6XDMBB.js} +2 -2
- package/dist/{chunk-2XHIF3M3.js → chunk-GXQDWHPN.js} +25 -3
- package/dist/chunk-GXQDWHPN.js.map +1 -0
- package/dist/{chunk-KHOAXZW2.js → chunk-H3GYVR7S.js} +3 -3
- package/dist/{chunk-XZJM6EPC.js → chunk-HUAQQ5ZL.js} +12 -2
- package/dist/chunk-HUAQQ5ZL.js.map +1 -0
- package/dist/{chunk-C6OVO6AT.js → chunk-I6MVJWUO.js} +2 -2
- package/dist/{chunk-F7JTIHV5.js → chunk-ICDAYOJ6.js} +6 -5
- package/dist/chunk-ICDAYOJ6.js.map +1 -0
- package/dist/{chunk-ASCUWG55.js → chunk-IOCY5G43.js} +8 -3
- package/dist/chunk-IOCY5G43.js.map +1 -0
- package/dist/{chunk-4XHVGUOM.js → chunk-J2SFOLGZ.js} +2 -2
- package/dist/{chunk-7TE4TMS3.js → chunk-JSOJKHEI.js} +3 -3
- package/dist/{chunk-ZNBLGS66.js → chunk-K62RHTFB.js} +3 -3
- package/dist/{chunk-6N2EDWMG.js → chunk-KWU62UPM.js} +2 -2
- package/dist/{chunk-NHEWST3N.js → chunk-L3MRRAZM.js} +3 -2
- package/dist/chunk-L3MRRAZM.js.map +1 -0
- package/dist/{chunk-3MEIGSDK.js → chunk-LTTYUSJ2.js} +5 -2
- package/dist/chunk-LTTYUSJ2.js.map +1 -0
- package/dist/{chunk-CJ45OL7L.js → chunk-M2GVHVE4.js} +2 -2
- package/dist/{chunk-3AQD2EA6.js → chunk-M42ZOCO7.js} +10 -9
- package/dist/chunk-M42ZOCO7.js.map +1 -0
- package/dist/{chunk-MEBQKYH4.js → chunk-MBNXCCRG.js} +4 -4
- package/dist/{chunk-UT73NGRS.js → chunk-MLUUF7OZ.js} +2 -2
- package/dist/{chunk-KW3H5FUS.js → chunk-MPYIEIBA.js} +2 -2
- package/dist/{chunk-DFI2RKVQ.js → chunk-MRWYKNBY.js} +2 -2
- package/dist/{chunk-HFVYWHJT.js → chunk-NYT3UVOH.js} +8 -8
- package/dist/{chunk-YWJDUJAR.js → chunk-O6IF4BZT.js} +2 -2
- package/dist/{chunk-3UEZ6NUI.js → chunk-OCQ6GDCF.js} +2 -2
- package/dist/{chunk-JAGAFEZL.js → chunk-OD3L6GX5.js} +2 -2
- package/dist/{chunk-RPBGUWNF.js → chunk-ON4TRXCM.js} +3 -3
- package/dist/{chunk-GJFAI3J5.js → chunk-OOB3YWPX.js} +17 -10
- package/dist/chunk-OOB3YWPX.js.map +1 -0
- package/dist/{chunk-TZASFX6G.js → chunk-P53KRCKW.js} +4 -4
- package/dist/{chunk-NOLSQK4J.js → chunk-PGV2FLE3.js} +2 -2
- package/dist/{chunk-C2TERIB4.js → chunk-QSNLIWEB.js} +2 -2
- package/dist/{chunk-2DWBJJK6.js → chunk-RBGUS7WO.js} +2 -2
- package/dist/{chunk-XZY7O7JJ.js → chunk-RHKT2XW2.js} +2 -2
- package/dist/{chunk-4SHMSLFA.js → chunk-RRG75JJS.js} +2 -2
- package/dist/{chunk-6MD5QXXJ.js → chunk-RWRPF24F.js} +4 -4
- package/dist/{chunk-VPAOVEI2.js → chunk-SJGYMI6Y.js} +3 -3
- package/dist/chunk-SV4FYSDL.js +92 -0
- package/dist/chunk-SV4FYSDL.js.map +1 -0
- package/dist/{chunk-EQXIW5MQ.js → chunk-TCMH3FXD.js} +2 -2
- package/dist/{chunk-STTULW2K.js → chunk-TE3XYCX7.js} +2 -2
- package/dist/{chunk-TJ3334AJ.js → chunk-TMW7RBW7.js} +3 -3
- package/dist/{chunk-DGMDQHMI.js → chunk-U6DOF5CR.js} +14 -2
- package/dist/chunk-U6DOF5CR.js.map +1 -0
- package/dist/{chunk-ASHXIAJO.js → chunk-UGH2DDST.js} +5 -2
- package/dist/chunk-UGH2DDST.js.map +1 -0
- package/dist/{chunk-LODMNSLR.js → chunk-UP7SSTCZ.js} +8 -7
- package/dist/chunk-UP7SSTCZ.js.map +1 -0
- package/dist/{chunk-WFAJTO2B.js → chunk-UVFZQCC7.js} +5 -9
- package/dist/chunk-UVFZQCC7.js.map +1 -0
- package/dist/{chunk-U5SH3VRJ.js → chunk-V5ZLUJV7.js} +25 -3
- package/dist/chunk-V5ZLUJV7.js.map +1 -0
- package/dist/{chunk-VCBV5JM7.js → chunk-VNOXUWK7.js} +2 -2
- package/dist/{chunk-IVJKILIX.js → chunk-VZ4VAQX3.js} +2 -2
- package/dist/{chunk-IWGW2E35.js → chunk-WF4XK5AS.js} +2 -2
- package/dist/{chunk-6REPQ352.js → chunk-WL7IG7TT.js} +2 -2
- package/dist/{chunk-5QAJ3Y5F.js → chunk-XQWUVQ2F.js} +2 -2
- package/dist/{chunk-U67ZQ6VM.js → chunk-YIWVHEPW.js} +2 -2
- package/dist/{chunk-DH77PLFF.js → chunk-YTVXT5TD.js} +2 -2
- package/dist/{chunk-MKLIMY3D.js → chunk-YZHX2HTC.js} +2 -2
- package/dist/{chunk-ZEYUSS3W.js → chunk-Z6LTEJ7F.js} +10 -7
- package/dist/chunk-Z6LTEJ7F.js.map +1 -0
- package/dist/{chunk-H5ZTIELC.js → chunk-ZFXTRPQO.js} +5 -4
- package/dist/chunk-ZFXTRPQO.js.map +1 -0
- package/dist/data-display/Alert.js +3 -3
- package/dist/data-display/Badge.js +4 -4
- package/dist/data-display/Banner.js +3 -3
- package/dist/data-display/CardKit.js +3 -3
- package/dist/data-display/Carousel.js +4 -4
- package/dist/data-display/Chart.js +4 -4
- package/dist/data-display/DataGrid.js +13 -4
- package/dist/data-display/DataViews.js +41 -40
- package/dist/data-display/DescriptionItem.js +6 -6
- package/dist/data-display/FleetMap.js +4 -4
- package/dist/data-display/Lightbox.js +7 -7
- package/dist/data-display/MapPreview.js +1 -1
- package/dist/data-display/Progress.js +6 -6
- package/dist/data-display/Sheet.js +4 -4
- package/dist/data-display/Table.js +11 -3
- package/dist/data-display/TimingDiagram.js +2 -2
- package/dist/en-US.js +4 -2
- package/dist/feedback/ConfirmAction.js +3 -3
- package/dist/feedback/NotificationStatusNotice.js +3 -3
- package/dist/feedback/TutorialOverlay.js +2 -2
- package/dist/form/AddressAutocomplete.js +1 -1
- package/dist/form/Autocomplete.js +1 -1
- package/dist/form/Button.js +3 -3
- package/dist/form/CategorySelect.js +1 -1
- package/dist/form/CepField.js +1 -1
- package/dist/form/Command.js +4 -4
- package/dist/form/CreatableSelect.js +1 -1
- package/dist/form/DateRangePicker.js +1 -1
- package/dist/form/Input.js +1 -1
- package/dist/form/InputOTP.js +1 -1
- package/dist/form/Label.js +4 -4
- package/dist/form/Menubar.js +4 -4
- package/dist/form/NumberField.js +1 -1
- package/dist/form/PhoneInput.js +1 -1
- package/dist/form/RadioGroup.js +1 -1
- package/dist/form/Select.js +1 -1
- package/dist/form/Switch.js +3 -3
- package/dist/form/Textarea.js +2 -2
- package/dist/form/Toggle.js +1 -1
- package/dist/form/ToggleGroup.js +1 -1
- package/dist/form/total-form.js +3 -3
- package/dist/icons.js +7 -7
- package/dist/layout/Box.js +7 -7
- package/dist/layout/ContentToolbar.js +1 -1
- package/dist/layout/Dashboard.js +2 -2
- package/dist/layout/SettingCard.js +13 -13
- package/dist/layout/Stack.js +8 -8
- package/dist/layout/TableFilter.js +1 -1
- package/dist/locales.js +8 -4
- package/dist/locales.js.map +1 -1
- package/dist/navigation/AppHeader.js +4 -4
- package/dist/navigation/Pagination.js +1 -1
- package/dist/navigation/Tabs.js +1 -1
- package/dist/provider.js +7 -7
- package/dist/pt-BR.js +4 -2
- package/dist/social-login-button.js +9 -9
- package/dist/tokens.js +15 -15
- package/dist/types/components/data-display/DataGrid/DataGrid.body.d.ts.map +1 -1
- package/dist/types/components/data-display/DataGrid/DataGrid.cells.d.ts +3 -1
- package/dist/types/components/data-display/DataGrid/DataGrid.cells.d.ts.map +1 -1
- package/dist/types/components/data-display/DataGrid/DataGrid.d.ts +1 -1
- package/dist/types/components/data-display/DataGrid/DataGrid.d.ts.map +1 -1
- package/dist/types/components/data-display/DataGrid/DataGrid.model.d.ts +19 -1
- package/dist/types/components/data-display/DataGrid/DataGrid.model.d.ts.map +1 -1
- package/dist/types/components/data-display/DataGrid/DataGrid.types.d.ts +12 -2
- package/dist/types/components/data-display/DataGrid/DataGrid.types.d.ts.map +1 -1
- package/dist/types/components/data-display/DataViews/data-views-copy.d.ts +8 -2
- 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-bodies.d.ts.map +1 -1
- package/dist/types/components/data-display/DataViews/data-views-layout-context.d.ts +12 -0
- package/dist/types/components/data-display/DataViews/data-views-layout-context.d.ts.map +1 -1
- package/dist/types/components/data-display/Lightbox/Lightbox.d.ts.map +1 -1
- package/dist/types/components/data-display/Lightbox/LightboxMedia.d.ts.map +1 -1
- package/dist/types/components/data-display/Lightbox/LightboxThumbnails.d.ts.map +1 -1
- package/dist/types/components/data-display/Table/Table.d.ts.map +1 -1
- package/dist/types/components/data-display/Table/Table.helpers.d.ts +10 -1
- package/dist/types/components/data-display/Table/Table.helpers.d.ts.map +1 -1
- package/dist/types/components/data-display/TimingDiagram/TimingDiagram.d.ts.map +1 -1
- package/dist/types/components/data-display/TimingDiagram/TimingDiagram.views.d.ts +2 -0
- package/dist/types/components/data-display/TimingDiagram/TimingDiagram.views.d.ts.map +1 -1
- package/dist/types/components/layout/Dashboard/Dashboard.d.ts +1 -1
- package/dist/types/components/layout/Dashboard/Dashboard.types.d.ts +22 -12
- package/dist/types/components/layout/Dashboard/Dashboard.types.d.ts.map +1 -1
- package/dist/types/components/layout/Dashboard/DashboardParts.d.ts +1 -1
- package/dist/types/components/layout/Dashboard/DashboardParts.d.ts.map +1 -1
- package/dist/types/copy/data-display.d.ts +40 -1
- package/dist/types/copy/data-display.d.ts.map +1 -1
- package/dist/types/copy/feedback.d.ts +7 -1
- package/dist/types/copy/feedback.d.ts.map +1 -1
- package/dist/types/en-US.data-display.d.ts +2 -1
- package/dist/types/en-US.data-display.d.ts.map +1 -1
- package/dist/types/en-US.feedback.d.ts.map +1 -1
- package/dist/types/locales.d.ts +2 -1
- package/dist/types/locales.d.ts.map +1 -1
- package/dist/types/pt-BR.data-display.d.ts +2 -1
- package/dist/types/pt-BR.data-display.d.ts.map +1 -1
- package/dist/types/pt-BR.feedback.d.ts.map +1 -1
- package/dist/typography/Heading.js +6 -6
- package/dist/typography/Text.js +5 -5
- package/dist/user-avatar.js +6 -6
- package/dist/utility/WorkflowStep.js +4 -4
- package/package.json +1 -1
- package/src/components/data-display/DataGrid/DataGrid.body.tsx +2 -1
- package/src/components/data-display/DataGrid/DataGrid.cells.tsx +7 -4
- package/src/components/data-display/DataGrid/DataGrid.model.ts +30 -1
- package/src/components/data-display/DataGrid/DataGrid.tsx +11 -5
- package/src/components/data-display/DataGrid/DataGrid.types.ts +13 -2
- package/src/components/data-display/DataViews/data-views-copy.ts +8 -2
- package/src/components/data-display/DataViews/data-views-grid-bodies.tsx +1 -0
- package/src/components/data-display/DataViews/data-views-layout-context.tsx +24 -1
- package/src/components/data-display/Lightbox/Lightbox.tsx +8 -2
- package/src/components/data-display/Lightbox/LightboxMedia.tsx +5 -2
- package/src/components/data-display/Lightbox/LightboxThumbnails.tsx +7 -3
- package/src/components/data-display/Table/Table.helpers.ts +20 -2
- package/src/components/data-display/Table/Table.tsx +5 -2
- package/src/components/data-display/TimingDiagram/TimingDiagram.tsx +10 -7
- package/src/components/data-display/TimingDiagram/TimingDiagram.views.tsx +6 -2
- package/src/components/feedback/TutorialOverlay/TutorialStepBody.tsx +2 -2
- package/src/components/layout/Dashboard/Dashboard.types.ts +22 -12
- package/src/components/layout/Dashboard/DashboardParts.tsx +10 -7
- package/src/copy/data-display.ts +41 -1
- package/src/copy/feedback.ts +7 -1
- package/src/en-US.data-display.ts +23 -0
- package/src/en-US.feedback.ts +3 -0
- package/src/locales.ts +2 -0
- package/src/pt-BR.data-display.ts +23 -0
- package/src/pt-BR.feedback.ts +3 -0
- package/dist/chunk-2XHIF3M3.js.map +0 -1
- package/dist/chunk-3AQD2EA6.js.map +0 -1
- package/dist/chunk-3MEIGSDK.js.map +0 -1
- package/dist/chunk-ASCUWG55.js.map +0 -1
- package/dist/chunk-ASHXIAJO.js.map +0 -1
- package/dist/chunk-BAFDSAWY.js +0 -86
- package/dist/chunk-BAFDSAWY.js.map +0 -1
- package/dist/chunk-DGMDQHMI.js.map +0 -1
- package/dist/chunk-F7JTIHV5.js.map +0 -1
- package/dist/chunk-GJFAI3J5.js.map +0 -1
- package/dist/chunk-H5ZTIELC.js.map +0 -1
- package/dist/chunk-K4L42FF6.js.map +0 -1
- package/dist/chunk-KCDNOMMT.js.map +0 -1
- package/dist/chunk-LODMNSLR.js.map +0 -1
- package/dist/chunk-NHEWST3N.js.map +0 -1
- package/dist/chunk-U5SH3VRJ.js.map +0 -1
- package/dist/chunk-UFNIS7KC.js.map +0 -1
- package/dist/chunk-WFAJTO2B.js.map +0 -1
- package/dist/chunk-XZJM6EPC.js.map +0 -1
- package/dist/chunk-ZEYUSS3W.js.map +0 -1
- /package/dist/{chunk-YPIVLPXF.js.map → chunk-33NBMNTB.js.map} +0 -0
- /package/dist/{chunk-JE6GQB5J.js.map → chunk-4Z2HIHA5.js.map} +0 -0
- /package/dist/{chunk-FHW3ATT7.js.map → chunk-53HQNN3C.js.map} +0 -0
- /package/dist/{chunk-53O2TNSR.js.map → chunk-5DAVXZPY.js.map} +0 -0
- /package/dist/{chunk-DH5UJD2I.js.map → chunk-5FHPZOYK.js.map} +0 -0
- /package/dist/{chunk-NSVSC6ZC.js.map → chunk-5PJM772Y.js.map} +0 -0
- /package/dist/{chunk-VYM2GPR6.js.map → chunk-5PTCT3LF.js.map} +0 -0
- /package/dist/{chunk-ZH2SZ6B3.js.map → chunk-652PYSML.js.map} +0 -0
- /package/dist/{chunk-PEOOCQ2T.js.map → chunk-6IRJAIS4.js.map} +0 -0
- /package/dist/{chunk-PAT2BQOQ.js.map → chunk-6IWO7CM2.js.map} +0 -0
- /package/dist/{chunk-YFODI4KT.js.map → chunk-6WZUZHJM.js.map} +0 -0
- /package/dist/{chunk-QEI5DC6S.js.map → chunk-7KJOODQB.js.map} +0 -0
- /package/dist/{chunk-6ZD3FI5P.js.map → chunk-AOFI3GDS.js.map} +0 -0
- /package/dist/{chunk-H72YKEGD.js.map → chunk-AOKLEE64.js.map} +0 -0
- /package/dist/{chunk-RDFPM2AQ.js.map → chunk-BJGUDLWZ.js.map} +0 -0
- /package/dist/{chunk-X66E5WSX.js.map → chunk-C4QKXFZN.js.map} +0 -0
- /package/dist/{chunk-OJUORFGO.js.map → chunk-C6JUGWAU.js.map} +0 -0
- /package/dist/{chunk-DLWLIPCP.js.map → chunk-CKFZQQ6T.js.map} +0 -0
- /package/dist/{chunk-Z2NN53E5.js.map → chunk-DCT2PKMQ.js.map} +0 -0
- /package/dist/{chunk-G6ZPQHBL.js.map → chunk-DSHM7VN6.js.map} +0 -0
- /package/dist/{chunk-WV62BSWA.js.map → chunk-F5BYZNXY.js.map} +0 -0
- /package/dist/{chunk-RDZGXJOD.js.map → chunk-F5GXWK6B.js.map} +0 -0
- /package/dist/{chunk-4Z7GEO2R.js.map → chunk-G7RYAWPZ.js.map} +0 -0
- /package/dist/{chunk-4S2LWZ7L.js.map → chunk-GO6XDMBB.js.map} +0 -0
- /package/dist/{chunk-KHOAXZW2.js.map → chunk-H3GYVR7S.js.map} +0 -0
- /package/dist/{chunk-C6OVO6AT.js.map → chunk-I6MVJWUO.js.map} +0 -0
- /package/dist/{chunk-4XHVGUOM.js.map → chunk-J2SFOLGZ.js.map} +0 -0
- /package/dist/{chunk-7TE4TMS3.js.map → chunk-JSOJKHEI.js.map} +0 -0
- /package/dist/{chunk-ZNBLGS66.js.map → chunk-K62RHTFB.js.map} +0 -0
- /package/dist/{chunk-6N2EDWMG.js.map → chunk-KWU62UPM.js.map} +0 -0
- /package/dist/{chunk-CJ45OL7L.js.map → chunk-M2GVHVE4.js.map} +0 -0
- /package/dist/{chunk-MEBQKYH4.js.map → chunk-MBNXCCRG.js.map} +0 -0
- /package/dist/{chunk-UT73NGRS.js.map → chunk-MLUUF7OZ.js.map} +0 -0
- /package/dist/{chunk-KW3H5FUS.js.map → chunk-MPYIEIBA.js.map} +0 -0
- /package/dist/{chunk-DFI2RKVQ.js.map → chunk-MRWYKNBY.js.map} +0 -0
- /package/dist/{chunk-HFVYWHJT.js.map → chunk-NYT3UVOH.js.map} +0 -0
- /package/dist/{chunk-YWJDUJAR.js.map → chunk-O6IF4BZT.js.map} +0 -0
- /package/dist/{chunk-3UEZ6NUI.js.map → chunk-OCQ6GDCF.js.map} +0 -0
- /package/dist/{chunk-JAGAFEZL.js.map → chunk-OD3L6GX5.js.map} +0 -0
- /package/dist/{chunk-RPBGUWNF.js.map → chunk-ON4TRXCM.js.map} +0 -0
- /package/dist/{chunk-TZASFX6G.js.map → chunk-P53KRCKW.js.map} +0 -0
- /package/dist/{chunk-NOLSQK4J.js.map → chunk-PGV2FLE3.js.map} +0 -0
- /package/dist/{chunk-C2TERIB4.js.map → chunk-QSNLIWEB.js.map} +0 -0
- /package/dist/{chunk-2DWBJJK6.js.map → chunk-RBGUS7WO.js.map} +0 -0
- /package/dist/{chunk-XZY7O7JJ.js.map → chunk-RHKT2XW2.js.map} +0 -0
- /package/dist/{chunk-4SHMSLFA.js.map → chunk-RRG75JJS.js.map} +0 -0
- /package/dist/{chunk-6MD5QXXJ.js.map → chunk-RWRPF24F.js.map} +0 -0
- /package/dist/{chunk-VPAOVEI2.js.map → chunk-SJGYMI6Y.js.map} +0 -0
- /package/dist/{chunk-EQXIW5MQ.js.map → chunk-TCMH3FXD.js.map} +0 -0
- /package/dist/{chunk-STTULW2K.js.map → chunk-TE3XYCX7.js.map} +0 -0
- /package/dist/{chunk-TJ3334AJ.js.map → chunk-TMW7RBW7.js.map} +0 -0
- /package/dist/{chunk-VCBV5JM7.js.map → chunk-VNOXUWK7.js.map} +0 -0
- /package/dist/{chunk-IVJKILIX.js.map → chunk-VZ4VAQX3.js.map} +0 -0
- /package/dist/{chunk-IWGW2E35.js.map → chunk-WF4XK5AS.js.map} +0 -0
- /package/dist/{chunk-6REPQ352.js.map → chunk-WL7IG7TT.js.map} +0 -0
- /package/dist/{chunk-5QAJ3Y5F.js.map → chunk-XQWUVQ2F.js.map} +0 -0
- /package/dist/{chunk-U67ZQ6VM.js.map → chunk-YIWVHEPW.js.map} +0 -0
- /package/dist/{chunk-DH77PLFF.js.map → chunk-YTVXT5TD.js.map} +0 -0
- /package/dist/{chunk-MKLIMY3D.js.map → chunk-YZHX2HTC.js.map} +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pt-BR.data-display.d.ts","sourceRoot":"","sources":["../../src/pt-BR.data-display.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,qDAAqD,CAAC;AACzF,OAAO,KAAK,EACV,YAAY,EACZ,aAAa,EACb,YAAY,EACZ,cAAc,EACd,iBAAiB,EAClB,MAAM,QAAQ,CAAC;AAQhB,eAAO,MAAM,mBAAmB,EAAE,
|
|
1
|
+
{"version":3,"file":"pt-BR.data-display.d.ts","sourceRoot":"","sources":["../../src/pt-BR.data-display.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,qDAAqD,CAAC;AACzF,OAAO,KAAK,EACV,YAAY,EACZ,YAAY,EACZ,aAAa,EACb,YAAY,EACZ,cAAc,EACd,iBAAiB,EAClB,MAAM,QAAQ,CAAC;AAQhB,eAAO,MAAM,mBAAmB,EAAE,YAcjC,CAAC;AAEF,eAAO,MAAM,oBAAoB,EAAE,YAOlC,CAAC;AAEF,eAAO,MAAM,sBAAsB,EAAE,cAOpC,CAAC;AAEF,eAAO,MAAM,mBAAmB,EAAE,YAGjC,CAAC;AAEF,eAAO,MAAM,yBAAyB,EAAE,iBAUvC,CAAC;AAEF,eAAO,MAAM,qBAAqB,EAAE,aAMnC,CAAC;AAEF,eAAO,MAAM,qBAAqB,EAAE,aAmLnC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pt-BR.feedback.d.ts","sourceRoot":"","sources":["../../src/pt-BR.feedback.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,OAAO,KAAK,EACV,UAAU,EACV,uBAAuB,EACvB,YAAY,EACb,MAAM,QAAQ,CAAC;AAEhB,eAAO,MAAM,mBAAmB,EAAE,
|
|
1
|
+
{"version":3,"file":"pt-BR.feedback.d.ts","sourceRoot":"","sources":["../../src/pt-BR.feedback.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,OAAO,KAAK,EACV,UAAU,EACV,uBAAuB,EACvB,YAAY,EACb,MAAM,QAAQ,CAAC;AAEhB,eAAO,MAAM,mBAAmB,EAAE,YAQjC,CAAC;AAEF,eAAO,MAAM,iBAAiB,EAAE,UAQ/B,CAAC;AAgBF,eAAO,MAAM,+BAA+B,EAAE,uBAoD7C,CAAC"}
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import "../chunk-6GP2DOOO.js";
|
|
2
2
|
import {
|
|
3
3
|
Heading
|
|
4
|
-
} from "../chunk-
|
|
5
|
-
import "../chunk-
|
|
6
|
-
import "../chunk-
|
|
4
|
+
} from "../chunk-C4QKXFZN.js";
|
|
5
|
+
import "../chunk-WF4XK5AS.js";
|
|
6
|
+
import "../chunk-M2GVHVE4.js";
|
|
7
7
|
import "../chunk-TYJR4GOF.js";
|
|
8
8
|
import "../chunk-PT6TCWIW.js";
|
|
9
|
-
import "../chunk-
|
|
10
|
-
import "../chunk-VBP46YP4.js";
|
|
9
|
+
import "../chunk-6WZUZHJM.js";
|
|
11
10
|
import "../chunk-2BYKTBDL.js";
|
|
12
11
|
import "../chunk-AG66JBNH.js";
|
|
13
12
|
import "../chunk-FZXKH2ZT.js";
|
|
14
|
-
import "../chunk-
|
|
13
|
+
import "../chunk-VBP46YP4.js";
|
|
15
14
|
import "../chunk-O6MJWHU5.js";
|
|
15
|
+
import "../chunk-26X4CZVR.js";
|
|
16
16
|
import "../chunk-FQ6UW7IY.js";
|
|
17
17
|
import "../chunk-6JAIFIPW.js";
|
|
18
18
|
import "../chunk-N3GAFIXG.js";
|
package/dist/typography/Text.js
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import "../chunk-VUHLNYAE.js";
|
|
2
2
|
import {
|
|
3
3
|
Text
|
|
4
|
-
} from "../chunk-
|
|
5
|
-
import "../chunk-
|
|
4
|
+
} from "../chunk-YZHX2HTC.js";
|
|
5
|
+
import "../chunk-6IWO7CM2.js";
|
|
6
6
|
import "../chunk-TYJR4GOF.js";
|
|
7
|
-
import "../chunk-
|
|
8
|
-
import "../chunk-VBP46YP4.js";
|
|
7
|
+
import "../chunk-6WZUZHJM.js";
|
|
9
8
|
import "../chunk-2BYKTBDL.js";
|
|
10
9
|
import "../chunk-AG66JBNH.js";
|
|
11
10
|
import "../chunk-FZXKH2ZT.js";
|
|
12
|
-
import "../chunk-
|
|
11
|
+
import "../chunk-VBP46YP4.js";
|
|
13
12
|
import "../chunk-O6MJWHU5.js";
|
|
13
|
+
import "../chunk-26X4CZVR.js";
|
|
14
14
|
import "../chunk-6JAIFIPW.js";
|
|
15
15
|
import "../chunk-YKCAJ2TN.js";
|
|
16
16
|
import "../chunk-PZ5AY32C.js";
|
package/dist/user-avatar.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
UserAvatar,
|
|
3
3
|
UserMenu
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-O6IF4BZT.js";
|
|
5
5
|
import "./chunk-UDQSIRAP.js";
|
|
6
6
|
import "./chunk-NYFGFELX.js";
|
|
7
7
|
import "./chunk-3ZVUNSFF.js";
|
|
@@ -19,20 +19,20 @@ import "./chunk-K6LNHHSH.js";
|
|
|
19
19
|
import "./chunk-ZKWVCSAB.js";
|
|
20
20
|
import "./chunk-LN46DSMF.js";
|
|
21
21
|
import "./chunk-TAMIZE4Q.js";
|
|
22
|
-
import "./chunk-
|
|
23
|
-
import "./chunk-
|
|
22
|
+
import "./chunk-YZHX2HTC.js";
|
|
23
|
+
import "./chunk-6IWO7CM2.js";
|
|
24
24
|
import "./chunk-TYJR4GOF.js";
|
|
25
25
|
import "./chunk-M47ZOUGF.js";
|
|
26
26
|
import "./chunk-7FDU3FIN.js";
|
|
27
27
|
import "./chunk-EPEJMTCQ.js";
|
|
28
28
|
import "./chunk-GDN2LUTZ.js";
|
|
29
|
-
import "./chunk-
|
|
30
|
-
import "./chunk-VBP46YP4.js";
|
|
29
|
+
import "./chunk-6WZUZHJM.js";
|
|
31
30
|
import "./chunk-2BYKTBDL.js";
|
|
32
31
|
import "./chunk-AG66JBNH.js";
|
|
33
32
|
import "./chunk-FZXKH2ZT.js";
|
|
34
|
-
import "./chunk-
|
|
33
|
+
import "./chunk-VBP46YP4.js";
|
|
35
34
|
import "./chunk-O6MJWHU5.js";
|
|
35
|
+
import "./chunk-26X4CZVR.js";
|
|
36
36
|
import "./chunk-FQ6UW7IY.js";
|
|
37
37
|
import "./chunk-6JAIFIPW.js";
|
|
38
38
|
import "./chunk-N3GAFIXG.js";
|
|
@@ -6,20 +6,20 @@ import "../chunk-7OO3BELX.js";
|
|
|
6
6
|
import "../chunk-KJID4PRD.js";
|
|
7
7
|
import "../chunk-RXNIOPOA.js";
|
|
8
8
|
import "../chunk-ZSTSISM6.js";
|
|
9
|
-
import "../chunk-DJKVSUXH.js";
|
|
10
9
|
import "../chunk-7ZPUN7TV.js";
|
|
10
|
+
import "../chunk-DJKVSUXH.js";
|
|
11
11
|
import "../chunk-PT6TCWIW.js";
|
|
12
12
|
import "../chunk-M47ZOUGF.js";
|
|
13
13
|
import "../chunk-7FDU3FIN.js";
|
|
14
14
|
import "../chunk-EPEJMTCQ.js";
|
|
15
15
|
import "../chunk-GDN2LUTZ.js";
|
|
16
|
-
import "../chunk-
|
|
17
|
-
import "../chunk-VBP46YP4.js";
|
|
16
|
+
import "../chunk-6WZUZHJM.js";
|
|
18
17
|
import "../chunk-2BYKTBDL.js";
|
|
19
18
|
import "../chunk-AG66JBNH.js";
|
|
20
19
|
import "../chunk-FZXKH2ZT.js";
|
|
21
|
-
import "../chunk-
|
|
20
|
+
import "../chunk-VBP46YP4.js";
|
|
22
21
|
import "../chunk-O6MJWHU5.js";
|
|
22
|
+
import "../chunk-26X4CZVR.js";
|
|
23
23
|
import "../chunk-FQ6UW7IY.js";
|
|
24
24
|
import "../chunk-6JAIFIPW.js";
|
|
25
25
|
import "../chunk-N3GAFIXG.js";
|
package/package.json
CHANGED
|
@@ -55,7 +55,7 @@ function HeaderControls<T extends Record<string, unknown>>({
|
|
|
55
55
|
: [],
|
|
56
56
|
)
|
|
57
57
|
}
|
|
58
|
-
inputProps={{ 'aria-label':
|
|
58
|
+
inputProps={{ 'aria-label': props.copy.selectAllRows }}
|
|
59
59
|
/>
|
|
60
60
|
)}
|
|
61
61
|
</TableCell>
|
|
@@ -98,6 +98,7 @@ export function GridHeader<T extends Record<string, unknown>>(
|
|
|
98
98
|
stickyHeader={stickyHeader}
|
|
99
99
|
headerHeight={headerHeight}
|
|
100
100
|
onSort={model.onSort}
|
|
101
|
+
copy={props.copy}
|
|
101
102
|
/>
|
|
102
103
|
))}
|
|
103
104
|
</TableRow>
|
|
@@ -24,6 +24,7 @@ import { rem } from '../../../tokens/relative';
|
|
|
24
24
|
import { cellValue } from './DataGrid.rows';
|
|
25
25
|
import type { DataGridModel } from './DataGrid.model';
|
|
26
26
|
import type { DataGridProps, GridColumn, GridSort } from './DataGrid.types';
|
|
27
|
+
import type { DataGridCopy } from '../../../copy';
|
|
27
28
|
|
|
28
29
|
/** The glyph for a column's current sort state — unsorted included. */
|
|
29
30
|
function SortIcon({ dir }: { dir: GridSort['dir'] | undefined }): React.JSX.Element {
|
|
@@ -68,6 +69,7 @@ export interface HeaderCellProps<T extends Record<string, unknown>> {
|
|
|
68
69
|
/** The header row's height, as CSS. */
|
|
69
70
|
headerHeight: string;
|
|
70
71
|
onSort: (columnId: string) => void;
|
|
72
|
+
copy: DataGridCopy;
|
|
71
73
|
}
|
|
72
74
|
|
|
73
75
|
export function HeaderCell<T extends Record<string, unknown>>({
|
|
@@ -77,6 +79,7 @@ export function HeaderCell<T extends Record<string, unknown>>({
|
|
|
77
79
|
stickyHeader,
|
|
78
80
|
headerHeight,
|
|
79
81
|
onSort,
|
|
82
|
+
copy,
|
|
80
83
|
}: HeaderCellProps<T>): React.JSX.Element {
|
|
81
84
|
const theme = useTheme();
|
|
82
85
|
const content = column.headerCell ? column.headerCell(column) : column.header;
|
|
@@ -109,7 +112,7 @@ export function HeaderCell<T extends Record<string, unknown>>({
|
|
|
109
112
|
'&:hover': { backgroundColor: 'transparent', opacity: 0.8 },
|
|
110
113
|
}}
|
|
111
114
|
endIcon={<SortIcon dir={sort?.dir} />}
|
|
112
|
-
aria-label={column.ariaLabel ??
|
|
115
|
+
aria-label={column.ariaLabel ?? copy.sortBy(String(column.header))}
|
|
113
116
|
>
|
|
114
117
|
{content}
|
|
115
118
|
</Button>
|
|
@@ -206,7 +209,7 @@ function RowControls<T extends Record<string, unknown>>({
|
|
|
206
209
|
<Checkbox
|
|
207
210
|
checked={isSelected}
|
|
208
211
|
onChange={(event) => model.onToggleRow(rowId, event.target.checked)}
|
|
209
|
-
inputProps={{ 'aria-label':
|
|
212
|
+
inputProps={{ 'aria-label': props.copy.selectRow(index + 1) }}
|
|
210
213
|
/>
|
|
211
214
|
</TableCell>
|
|
212
215
|
)}
|
|
@@ -224,8 +227,8 @@ function RowControls<T extends Record<string, unknown>>({
|
|
|
224
227
|
aria-expanded={isExpanded}
|
|
225
228
|
aria-label={
|
|
226
229
|
isExpanded
|
|
227
|
-
? (expansion.collapseLabel ??
|
|
228
|
-
: (expansion.expandLabel ??
|
|
230
|
+
? (expansion.collapseLabel ?? props.copy.collapseRow)
|
|
231
|
+
: (expansion.expandLabel ?? props.copy.expandRow)
|
|
229
232
|
}
|
|
230
233
|
data-slot="expand-toggle"
|
|
231
234
|
>
|
|
@@ -15,11 +15,13 @@ import { useCallback, useEffect, useMemo, useRef, useState } from 'react';
|
|
|
15
15
|
import type React from 'react';
|
|
16
16
|
|
|
17
17
|
import { rem, remPx } from '../../../tokens/relative';
|
|
18
|
+
import { useDensity, type DensityLevel } from '../../../tokens/density';
|
|
18
19
|
|
|
19
20
|
import { processRows } from './DataGrid.rows';
|
|
20
21
|
import type {
|
|
21
22
|
DataGridProps,
|
|
22
23
|
GridColumn,
|
|
24
|
+
GridDensity,
|
|
23
25
|
GridFilter,
|
|
24
26
|
GridSort,
|
|
25
27
|
SortDirection,
|
|
@@ -50,6 +52,13 @@ export interface VisibleRange {
|
|
|
50
52
|
/** Everything the render needs, and nothing it has to derive. */
|
|
51
53
|
export interface DataGridModel<T extends Record<string, unknown>> {
|
|
52
54
|
containerRef: React.RefObject<HTMLDivElement | null>;
|
|
55
|
+
/**
|
|
56
|
+
* The density this render actually used: `props.density`, else the
|
|
57
|
+
* theme-driven default (FUT-2769, {@link mapThemeToGridDensity}). The same
|
|
58
|
+
* value `rowHeight` was scaled by — read it here rather than re-deriving it,
|
|
59
|
+
* so the reported default and the geometry can never disagree.
|
|
60
|
+
*/
|
|
61
|
+
density: GridDensity;
|
|
53
62
|
/** A row's height as CSS: the design height, density applied, through `rem`. */
|
|
54
63
|
rowHeight: string;
|
|
55
64
|
/**
|
|
@@ -82,6 +91,21 @@ function densityHeight(base: number, density: DataGridProps['density']): number
|
|
|
82
91
|
return base;
|
|
83
92
|
}
|
|
84
93
|
|
|
94
|
+
/**
|
|
95
|
+
* The theme's density level, aliased to `GridDensity` (FUT-2769 — umbrella
|
|
96
|
+
* Decision 7, non-breaking): `GridDensity`'s three names are not the theme's
|
|
97
|
+
* three names, so this is an alias table rather than a verbatim read.
|
|
98
|
+
* `'normal'` (the theme's own default, and what a theme with no density at
|
|
99
|
+
* all resolves to) maps to `'comfortable'` — today's literal default,
|
|
100
|
+
* unchanged — so the mapping is a no-op exactly when nothing about density
|
|
101
|
+
* has been said.
|
|
102
|
+
*/
|
|
103
|
+
export function mapThemeToGridDensity(level: DensityLevel): GridDensity {
|
|
104
|
+
if (level === 'compact') return 'compact';
|
|
105
|
+
if (level === 'comfortable') return 'spacious';
|
|
106
|
+
return 'comfortable';
|
|
107
|
+
}
|
|
108
|
+
|
|
85
109
|
/** The rows this render should show, with every client-mode step resolved. */
|
|
86
110
|
function useProcessedRows<T extends Record<string, unknown>>(
|
|
87
111
|
props: DataGridProps<T>,
|
|
@@ -292,11 +316,15 @@ export function useDataGridModel<T extends Record<string, unknown>>(
|
|
|
292
316
|
): DataGridModel<T> {
|
|
293
317
|
const { columns } = props;
|
|
294
318
|
const theme = useTheme();
|
|
319
|
+
const themeDensity = useDensity();
|
|
295
320
|
const containerRef = useRef<HTMLDivElement>(null);
|
|
296
321
|
const [editingCell, setEditingCell] = useState<EditingCell | null>(null);
|
|
297
322
|
const { sortBy, filters, setInternalSortBy } = useSortAndFilter(props);
|
|
323
|
+
// An explicit `density` prop wins; otherwise the theme's own level, aliased
|
|
324
|
+
// to this grid's three names (FUT-2769).
|
|
325
|
+
const density = props.density ?? mapThemeToGridDensity(themeDensity.level ?? 'normal');
|
|
298
326
|
// 52 design px unless the caller says; the density scales it, then the type scale does.
|
|
299
|
-
const designRowHeight = densityHeight(props.rowHeight ?? 52,
|
|
327
|
+
const designRowHeight = densityHeight(props.rowHeight ?? 52, density);
|
|
300
328
|
const rowPitch = remPx(theme, designRowHeight);
|
|
301
329
|
const columnMap = useMemo(
|
|
302
330
|
() => new Map(columns.map((column) => [column.id, column])),
|
|
@@ -311,6 +339,7 @@ export function useDataGridModel<T extends Record<string, unknown>>(
|
|
|
311
339
|
|
|
312
340
|
return {
|
|
313
341
|
containerRef,
|
|
342
|
+
density,
|
|
314
343
|
rowHeight: rem(theme, designRowHeight),
|
|
315
344
|
rowPitch,
|
|
316
345
|
visibleColumns,
|
|
@@ -19,7 +19,7 @@ import type React from 'react';
|
|
|
19
19
|
import { GridBody, GridHeader } from './DataGrid.body';
|
|
20
20
|
import { useDataGridModel } from './DataGrid.model';
|
|
21
21
|
import { DataGridEmpty, DataGridError, DataGridLoading } from './DataGrid.states';
|
|
22
|
-
import type { DataGridProps } from './DataGrid.types';
|
|
22
|
+
import type { DataGridProps, GridDensity } from './DataGrid.types';
|
|
23
23
|
|
|
24
24
|
/**
|
|
25
25
|
* The chrome every render needs, with the defaults resolved ONCE.
|
|
@@ -28,7 +28,10 @@ import type { DataGridProps } from './DataGrid.types';
|
|
|
28
28
|
* a dozen branches: the gate counted them, correctly, as complexity the render
|
|
29
29
|
* did not need to carry.
|
|
30
30
|
*/
|
|
31
|
-
function resolveChrome<T extends Record<string, unknown>>(
|
|
31
|
+
function resolveChrome<T extends Record<string, unknown>>(
|
|
32
|
+
props: DataGridProps<T>,
|
|
33
|
+
density: GridDensity,
|
|
34
|
+
): {
|
|
32
35
|
dataAttrs: Record<string, unknown>;
|
|
33
36
|
placeholder: {
|
|
34
37
|
dataTestId?: string;
|
|
@@ -43,7 +46,9 @@ function resolveChrome<T extends Record<string, unknown>>(props: DataGridProps<T
|
|
|
43
46
|
return {
|
|
44
47
|
dataAttrs: {
|
|
45
48
|
'data-ui': 'datagrid',
|
|
46
|
-
|
|
49
|
+
// The SAME resolved density the row-height geometry used (FUT-2769) —
|
|
50
|
+
// not re-derived here, so this attribute can never disagree with it.
|
|
51
|
+
'data-density': density,
|
|
47
52
|
'data-size-mode': props.sizeMode ?? 'auto',
|
|
48
53
|
'data-virtual-rows': props.virtualizeRows ?? true,
|
|
49
54
|
'data-virtual-cols': props.virtualizeColumns ?? false,
|
|
@@ -51,7 +56,7 @@ function resolveChrome<T extends Record<string, unknown>>(props: DataGridProps<T
|
|
|
51
56
|
},
|
|
52
57
|
placeholder: {
|
|
53
58
|
dataTestId,
|
|
54
|
-
ariaLabel: props.ariaLabel ??
|
|
59
|
+
ariaLabel: props.ariaLabel ?? props.copy.gridLabel,
|
|
55
60
|
className,
|
|
56
61
|
style,
|
|
57
62
|
// Only the DOM-safe leftovers reach the element: every grid-specific prop
|
|
@@ -65,7 +70,7 @@ export const DataGrid = <T extends Record<string, unknown> = Record<string, unkn
|
|
|
65
70
|
props: DataGridProps<T>,
|
|
66
71
|
): React.JSX.Element => {
|
|
67
72
|
const model = useDataGridModel(props);
|
|
68
|
-
const { dataAttrs, placeholder } = resolveChrome(props);
|
|
73
|
+
const { dataAttrs, placeholder } = resolveChrome(props, model.density);
|
|
69
74
|
|
|
70
75
|
if (props.loading) return <DataGridLoading {...placeholder} />;
|
|
71
76
|
if (props.error) return <DataGridError {...placeholder} error={props.error} />;
|
|
@@ -117,6 +122,7 @@ export const DataGrid = <T extends Record<string, unknown> = Record<string, unkn
|
|
|
117
122
|
* none reaches the DOM — the check that would have caught `emptyText` missing.
|
|
118
123
|
*/
|
|
119
124
|
export const GRID_ONLY_PROPS = [
|
|
125
|
+
'copy',
|
|
120
126
|
'rows',
|
|
121
127
|
'columns',
|
|
122
128
|
'getRowId',
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import type React from 'react';
|
|
2
2
|
|
|
3
|
+
import type { DataGridCopy } from '../../../copy';
|
|
4
|
+
|
|
3
5
|
export type GridSizeMode = 'auto' | 'fixed' | 'fill';
|
|
4
6
|
export type GridDensity = 'compact' | 'comfortable' | 'spacious';
|
|
5
7
|
export type SortDirection = 'asc' | 'desc' | null;
|
|
@@ -83,9 +85,9 @@ export interface GridRowExpansion<T = Record<string, unknown>> {
|
|
|
83
85
|
* toggle — a chevron that opens onto nothing is a promise the row cannot keep.
|
|
84
86
|
*/
|
|
85
87
|
isRowExpandable?: (row: T) => boolean;
|
|
86
|
-
/** The chevron's accessible name while the row is collapsed.
|
|
88
|
+
/** The chevron's accessible name while the row is collapsed. Defaults to `copy.expandRow`. */
|
|
87
89
|
expandLabel?: string;
|
|
88
|
-
/** The chevron's accessible name while the row is expanded.
|
|
90
|
+
/** The chevron's accessible name while the row is expanded. Defaults to `copy.collapseRow`. */
|
|
89
91
|
collapseLabel?: string;
|
|
90
92
|
}
|
|
91
93
|
|
|
@@ -138,6 +140,15 @@ export interface DataGridProps<T = Record<string, unknown>> extends React.HTMLAt
|
|
|
138
140
|
* "No data available", on the package every host renders.
|
|
139
141
|
*/
|
|
140
142
|
emptyText: string;
|
|
143
|
+
/**
|
|
144
|
+
* Every fallback word the grid's own chrome renders — a sortable header's
|
|
145
|
+
* name, a row's selection checkbox, the select-all checkbox, the expand
|
|
146
|
+
* chevron's two states, and the grid's own accessible name. REQUIRED — the
|
|
147
|
+
* fallbacks were English literals with no way to localise them. A caller's
|
|
148
|
+
* `column.ariaLabel`, `expansion.expandLabel`/`collapseLabel` and the grid's
|
|
149
|
+
* own `ariaLabel` still win over it wherever both are given.
|
|
150
|
+
*/
|
|
151
|
+
copy: DataGridCopy;
|
|
141
152
|
/** Dataset (client mode uses this array; server mode renders current page) */
|
|
142
153
|
rows: T[];
|
|
143
154
|
/** Stable row id accessor */
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { CategorySelectCopy, ConfirmActionCopy, TableFilterCopy } from "../../../copy";
|
|
1
|
+
import type { CategorySelectCopy, ConfirmActionCopy, DataGridCopy, TableFilterCopy } from "../../../copy";
|
|
2
2
|
import type { SavedViewsLabels } from "../../layout/ContentToolbar/ContentToolbar.types";
|
|
3
3
|
/**
|
|
4
4
|
* Every word the DataViews family renders, as REQUIRED host config (FUT-760).
|
|
@@ -143,7 +143,13 @@ export interface DataViewsExportCopy {
|
|
|
143
143
|
triggerLabel: string;
|
|
144
144
|
}
|
|
145
145
|
|
|
146
|
-
|
|
146
|
+
/**
|
|
147
|
+
* The table layout's own `<DataGrid>`, which this surface mounts but does not
|
|
148
|
+
* own — so it carries the grid's full `DataGridCopy` (its sortable headers,
|
|
149
|
+
* its row/select-all checkboxes, its expand chevron, its own accessible name)
|
|
150
|
+
* alongside the words DataViews renders around it.
|
|
151
|
+
*/
|
|
152
|
+
export interface DataViewsGridCopy extends DataGridCopy {
|
|
147
153
|
/** The per-row kebab's accessible name. */
|
|
148
154
|
rowActions: string;
|
|
149
155
|
bulkActions(selectedCount: number): string;
|
|
@@ -7,6 +7,7 @@ import GridViewOutlinedIcon from "@mui/icons-material/GridViewOutlined";
|
|
|
7
7
|
import { Slider } from "../../form/Slider";
|
|
8
8
|
import { Box } from "../../../mui/Box";
|
|
9
9
|
import { sxRem } from "../../../tokens/relative";
|
|
10
|
+
import { useDensity, type DensityLevel } from "../../../tokens/density";
|
|
10
11
|
|
|
11
12
|
import { useDataViewsCopy } from "./data-views-copy-context";
|
|
12
13
|
import { DATA_VIEWS_LAYOUTS, type DataViewsLayout } from "./data-views-types";
|
|
@@ -166,6 +167,22 @@ function isDensity(value: unknown): value is DataViewsDensity {
|
|
|
166
167
|
return DENSITIES.includes(value as DataViewsDensity);
|
|
167
168
|
}
|
|
168
169
|
|
|
170
|
+
/**
|
|
171
|
+
* The theme's density level, aliased to `DataViewsDensity` (FUT-2769 —
|
|
172
|
+
* umbrella Decision 7, non-breaking): `DataViewsDensity`'s three names are not
|
|
173
|
+
* the theme's three names, so this is an alias table rather than a verbatim
|
|
174
|
+
* read. `'normal'` (the theme's own default, and what a theme with no density
|
|
175
|
+
* at all resolves to) maps to `'cozy'` — today's literal default, unchanged —
|
|
176
|
+
* so the mapping is a no-op exactly when nothing about density has been said.
|
|
177
|
+
* The STORED per-viewer preference still wins over this default, unchanged
|
|
178
|
+
* from today (below).
|
|
179
|
+
*/
|
|
180
|
+
export function mapThemeToDataViewsDensity(level: DensityLevel): DataViewsDensity {
|
|
181
|
+
if (level === 'compact') return 'compact';
|
|
182
|
+
if (level === 'comfortable') return 'comfortable';
|
|
183
|
+
return 'cozy';
|
|
184
|
+
}
|
|
185
|
+
|
|
169
186
|
/** The remembered density, or undefined (no window, no value, junk). */
|
|
170
187
|
function readStoredDensity(): DataViewsDensity | undefined {
|
|
171
188
|
try {
|
|
@@ -258,6 +275,10 @@ export function DataViewsLayoutProvider({
|
|
|
258
275
|
children,
|
|
259
276
|
}: LayoutProviderProps): React.JSX.Element {
|
|
260
277
|
const availability = { canUseCards, canUseList, canUseBoard };
|
|
278
|
+
// Read once, outside the lazy initializer below: a hook cannot be called
|
|
279
|
+
// from inside one (FUT-2769 — the theme is only a fallback when nothing is
|
|
280
|
+
// stored, same precedence as before this ticket).
|
|
281
|
+
const themeDensity = useDensity();
|
|
261
282
|
const [layout, setLayoutState] = useState<DataViewsLayout>(() =>
|
|
262
283
|
pinLayout(
|
|
263
284
|
viewLayout ?? (ignoreStoredLayout ? undefined : readStoredLayout()) ?? defaultLayout,
|
|
@@ -265,7 +286,9 @@ export function DataViewsLayoutProvider({
|
|
|
265
286
|
),
|
|
266
287
|
);
|
|
267
288
|
const [density, setDensityState] = useState<DataViewsDensity>(
|
|
268
|
-
() =>
|
|
289
|
+
() =>
|
|
290
|
+
(ignoreStoredLayout ? undefined : readStoredDensity()) ??
|
|
291
|
+
mapThemeToDataViewsDensity(themeDensity.level ?? "normal"),
|
|
269
292
|
);
|
|
270
293
|
const [zoom, setZoom] = useState(DEFAULT_ZOOM);
|
|
271
294
|
// A newly applied view carrying a layout switches to it (its reference-change
|
|
@@ -22,7 +22,13 @@ const DIALOG_STATIC_PROPS = {
|
|
|
22
22
|
TransitionComponent: Fade,
|
|
23
23
|
TransitionProps: { timeout: 300 },
|
|
24
24
|
PaperProps: { sx: { background: (theme: Theme) => scrim(theme, 0.9), backdropFilter: (theme: Theme) => `blur(${rem(theme, 2)})` } },
|
|
25
|
-
|
|
25
|
+
// `aria-labelledby` is the one accessible name for the modal itself: MUI
|
|
26
|
+
// forwards it (with `aria-modal` and its own `role="dialog"`) onto the
|
|
27
|
+
// Paper, the element that is actually the WAI-ARIA dialog. A plain
|
|
28
|
+
// `aria-label` alongside it would land on the OUTER root instead — a
|
|
29
|
+
// second, non-modal `role="dialog"` this component sets of its own accord
|
|
30
|
+
// — duplicating (and, as a static English literal, contradicting) the name
|
|
31
|
+
// the Paper already carries.
|
|
26
32
|
'aria-labelledby': 'lightbox-title',
|
|
27
33
|
role: 'dialog',
|
|
28
34
|
'aria-modal': 'true',
|
|
@@ -51,7 +57,7 @@ export const Lightbox = React.forwardRef<LightboxRef, LightboxProps>((componentP
|
|
|
51
57
|
>
|
|
52
58
|
{/* Visually hidden title for screen readers */}
|
|
53
59
|
<Typography id="lightbox-title" variant="h6" sx={{ position: 'absolute', left: sxRem(-10000) }}>
|
|
54
|
-
|
|
60
|
+
{props.copy.dialogLabel} - {currentItem?.alt || props.copy.itemPosition(currentIndex + 1, items.length)}
|
|
55
61
|
</Typography>
|
|
56
62
|
|
|
57
63
|
<LightboxOverlay
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import type { FC } from 'react';
|
|
2
2
|
import React from 'react';
|
|
3
3
|
|
|
4
|
+
import { useLightboxCopy } from './lightbox-copy-context';
|
|
4
5
|
import type { LightboxItem } from './Lightbox.types';
|
|
5
6
|
|
|
6
7
|
export interface LightboxMediaProps {
|
|
@@ -37,6 +38,8 @@ export const LightboxMedia: FC<LightboxMediaProps> = ({
|
|
|
37
38
|
onWheel,
|
|
38
39
|
onDoubleClick,
|
|
39
40
|
}) => {
|
|
41
|
+
const copy = useLightboxCopy();
|
|
42
|
+
|
|
40
43
|
if (item.type === 'video') {
|
|
41
44
|
return (
|
|
42
45
|
<video
|
|
@@ -45,7 +48,7 @@ export const LightboxMedia: FC<LightboxMediaProps> = ({
|
|
|
45
48
|
style={{ maxWidth: '90vw', maxHeight: '80vh', objectFit: 'contain' }}
|
|
46
49
|
onLoadStart={onLoadStart}
|
|
47
50
|
onLoadedData={onLoaded}
|
|
48
|
-
aria-label={item.alt ||
|
|
51
|
+
aria-label={item.alt || copy.videoFallback(index + 1, total)}
|
|
49
52
|
data-testid={testId('video')}
|
|
50
53
|
/>
|
|
51
54
|
);
|
|
@@ -54,7 +57,7 @@ export const LightboxMedia: FC<LightboxMediaProps> = ({
|
|
|
54
57
|
return (
|
|
55
58
|
<img
|
|
56
59
|
src={item.src}
|
|
57
|
-
alt={item.alt ||
|
|
60
|
+
alt={item.alt || copy.imageFallback(index + 1, total)}
|
|
58
61
|
style={{
|
|
59
62
|
// At 1x the image is bounded by the viewport; once zoomed it is allowed
|
|
60
63
|
// to overflow so there is something to pan around.
|
|
@@ -5,6 +5,7 @@ import type { FC } from 'react';
|
|
|
5
5
|
import React from 'react';
|
|
6
6
|
|
|
7
7
|
import { thumbnailStripSx } from './Lightbox.constants';
|
|
8
|
+
import { useLightboxCopy } from './lightbox-copy-context';
|
|
8
9
|
import type { LightboxItem } from './Lightbox.types';
|
|
9
10
|
import { onMedia, sheen } from '../../../tokens/ink';
|
|
10
11
|
import { rem, sxRem } from '../../../tokens/relative';
|
|
@@ -41,7 +42,9 @@ export const LightboxThumbnails: FC<LightboxThumbnailsProps> = ({
|
|
|
41
42
|
currentIndex,
|
|
42
43
|
testId,
|
|
43
44
|
onSelect,
|
|
44
|
-
}) =>
|
|
45
|
+
}) => {
|
|
46
|
+
const copy = useLightboxCopy();
|
|
47
|
+
return (
|
|
45
48
|
<Box
|
|
46
49
|
sx={{
|
|
47
50
|
...thumbnailStripSx,
|
|
@@ -78,11 +81,12 @@ export const LightboxThumbnails: FC<LightboxThumbnailsProps> = ({
|
|
|
78
81
|
) : (
|
|
79
82
|
<img
|
|
80
83
|
src={item.src}
|
|
81
|
-
alt={item.alt ||
|
|
84
|
+
alt={item.alt || copy.thumbnailFallback(index + 1)}
|
|
82
85
|
style={{ width: '100%', height: '100%', objectFit: 'cover' }}
|
|
83
86
|
/>
|
|
84
87
|
)}
|
|
85
88
|
</Box>
|
|
86
89
|
))}
|
|
87
90
|
</Box>
|
|
88
|
-
);
|
|
91
|
+
);
|
|
92
|
+
};
|
|
@@ -3,8 +3,9 @@ import type { Theme } from '@mui/material/styles/index.js';
|
|
|
3
3
|
import type React from 'react';
|
|
4
4
|
|
|
5
5
|
import { rem } from '../../../tokens/relative';
|
|
6
|
+
import type { DensityLevel } from '../../../tokens/density';
|
|
6
7
|
|
|
7
|
-
import type { TableProps } from './Table.types';
|
|
8
|
+
import type { TableDensity, TableProps } from './Table.types';
|
|
8
9
|
|
|
9
10
|
/**
|
|
10
11
|
* A virtualised row's height in design px: the caller's `rowHeight`, else 52.
|
|
@@ -13,6 +14,18 @@ import type { TableProps } from './Table.types';
|
|
|
13
14
|
*/
|
|
14
15
|
export const tableRowHeight = (rowHeight: number | undefined): number => rowHeight ?? 52;
|
|
15
16
|
|
|
17
|
+
/**
|
|
18
|
+
* `density`'s default (FUT-2769): the caller's own prop, else the theme's
|
|
19
|
+
* level — `'normal'` for a theme with no density at all (`useDensity()`'s own
|
|
20
|
+
* fallback) or an unnamed numeric one. `TableDensity` is a verbatim match for
|
|
21
|
+
* the theme's `DensityLevel`, so no alias table is needed, unlike `DataGrid`'s
|
|
22
|
+
* `mapThemeToGridDensity` or `DataViews`' `mapThemeToDataViewsDensity`.
|
|
23
|
+
*/
|
|
24
|
+
export const resolveTableDensity = (
|
|
25
|
+
explicit: TableDensity | undefined,
|
|
26
|
+
themeLevel: DensityLevel | undefined,
|
|
27
|
+
): TableDensity => explicit ?? themeLevel ?? 'normal';
|
|
28
|
+
|
|
16
29
|
/** The scroll box's height: a number is design px, 400 unless the caller says otherwise. */
|
|
17
30
|
const scrollHeight = (theme: Theme, containerHeight: number | string | undefined): string => {
|
|
18
31
|
const box = containerHeight || 400;
|
|
@@ -71,6 +84,12 @@ export const virtualHeight = (p: TableProps): number | undefined =>
|
|
|
71
84
|
? p.containerHeight
|
|
72
85
|
: undefined;
|
|
73
86
|
|
|
87
|
+
// `density` is NOT here (FUT-2769): `TableDensity` is a verbatim match for
|
|
88
|
+
// the theme's `DensityLevel`, so `Table.tsx` resolves it itself —
|
|
89
|
+
// `props.density ?? (useDensity().level ?? 'normal')` — reading the theme
|
|
90
|
+
// requires a hook, which this module-level constant cannot call. At
|
|
91
|
+
// `theme.density` unset, or its level `'normal'`, that reproduces this
|
|
92
|
+
// object's OTHER defaults' shape exactly: today's literal `'normal'`.
|
|
74
93
|
export const TABLE_DEFAULTS: Partial<TableProps> = {
|
|
75
94
|
variant: 'default',
|
|
76
95
|
stripeColor: 'neutral',
|
|
@@ -78,7 +97,6 @@ export const TABLE_DEFAULTS: Partial<TableProps> = {
|
|
|
78
97
|
pulse: false,
|
|
79
98
|
hoverable: false,
|
|
80
99
|
loading: false,
|
|
81
|
-
density: 'normal',
|
|
82
100
|
stickyHeader: false,
|
|
83
101
|
selectable: false,
|
|
84
102
|
selectedRows: [],
|
|
@@ -24,6 +24,7 @@ import {
|
|
|
24
24
|
containerStyle,
|
|
25
25
|
definedProps,
|
|
26
26
|
headerRefFor,
|
|
27
|
+
resolveTableDensity,
|
|
27
28
|
scrollerRadiusStyle,
|
|
28
29
|
tableDomProps,
|
|
29
30
|
tableRowHeight,
|
|
@@ -32,9 +33,9 @@ import {
|
|
|
32
33
|
import { useTableSelection, useVirtualScrolling } from './Table.hooks';
|
|
33
34
|
import { EnhancedTableBody, EnhancedTableHeader } from './TableParts';
|
|
34
35
|
import { EmptyRow, NoDataPlaceholder } from './TableStates';
|
|
35
|
-
import {
|
|
36
|
-
tableStyles } from './Table.styles';
|
|
36
|
+
import { tableStyles } from './Table.styles';
|
|
37
37
|
import { rem } from '../../../tokens/relative';
|
|
38
|
+
import { useDensity } from '../../../tokens/density';
|
|
38
39
|
|
|
39
40
|
// Helper function to get stripe color from theme
|
|
40
41
|
const StyledTable = styled(MuiTable, {
|
|
@@ -329,7 +330,9 @@ const TableEmptyState: React.FC<{
|
|
|
329
330
|
|
|
330
331
|
export const Table = React.forwardRef<globalThis.HTMLTableElement, TableProps>(
|
|
331
332
|
(tableProps, ref) => {
|
|
333
|
+
const themeDensity = useDensity(); // FUT-2769 — density's default; see resolveTableDensity
|
|
332
334
|
const resolved = { ...TABLE_DEFAULTS, ...definedProps(tableProps) } as TableProps;
|
|
335
|
+
resolved.density = resolveTableDensity(resolved.density, themeDensity.level);
|
|
333
336
|
const {
|
|
334
337
|
columns,
|
|
335
338
|
data,
|