@12-apps/ui 6.14.0 → 6.15.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/components-catalog.md +8 -1
- package/dist/_internal/components/data-display/AsyncStateContainer/AsyncStateContainer.js +4 -4
- package/dist/_internal/components/data-display/Badge/Badge.js +2 -2
- package/dist/_internal/components/data-display/CardKit/use-remove-confirm.js +5 -5
- package/dist/_internal/components/data-display/CardKit/use-row-confirm.js +5 -5
- package/dist/_internal/components/data-display/Carousel/Carousel.js +2 -2
- package/dist/_internal/components/data-display/Chart/Chart.js +4 -4
- package/dist/_internal/components/data-display/Chart/SpecChart.js +7 -7
- package/dist/_internal/components/data-display/Chart/chart-context.js +2 -2
- package/dist/_internal/components/data-display/Chart/chart-renderers.js +3 -3
- package/dist/_internal/components/data-display/Chart/chart-spec.js +2 -2
- package/dist/_internal/components/data-display/DataGrid/DataGrid.js +2 -2
- package/dist/_internal/components/data-display/DataViews/DataViewsGrid.js +46 -46
- package/dist/_internal/components/data-display/DataViews/DataViewsTableBase.js +62 -62
- package/dist/_internal/components/data-display/DataViews/ManageViewsDialog.js +5 -5
- package/dist/_internal/components/data-display/DataViews/base-list-card-geometry.js +4 -4
- package/dist/_internal/components/data-display/DataViews/base-list-card-slots.js +3 -3
- package/dist/_internal/components/data-display/DataViews/base-list-card.js +6 -6
- package/dist/_internal/components/data-display/DataViews/data-views-category-pill.js +12 -12
- package/dist/_internal/components/data-display/DataViews/data-views-display-panel.js +3 -3
- package/dist/_internal/components/data-display/DataViews/data-views-filter-panel.js +18 -18
- package/dist/_internal/components/data-display/DataViews/data-views-grid-bodies.js +6 -6
- package/dist/_internal/components/data-display/DataViews/data-views-grid-parts.js +41 -41
- package/dist/_internal/components/data-display/DataViews/data-views-inline-bar.js +18 -18
- package/dist/_internal/components/data-display/DataViews/data-views-more-fields.js +5 -5
- package/dist/_internal/components/data-display/DataViews/data-views-more-filters.js +6 -6
- package/dist/_internal/components/data-display/DataViews/data-views-range-pill.js +2 -2
- package/dist/_internal/components/data-display/DataViews/data-views-scope-tabs.js +2 -2
- package/dist/_internal/components/data-display/DataViews/data-views-shell-toolbar.js +9 -9
- package/dist/_internal/components/data-display/DataViews/data-views-table-parts.js +8 -8
- package/dist/_internal/components/data-display/DataViews/data-views-toolbar.js +8 -8
- package/dist/_internal/components/data-display/DataViews/list-card-rails.js +2 -2
- package/dist/_internal/components/data-display/DataViews/use-data-views-state.js +4 -4
- package/dist/_internal/components/data-display/DataViews/use-saved-views-controller.js +2 -2
- package/dist/_internal/components/data-display/HoverCard/HoverCard.js +2 -2
- package/dist/_internal/components/data-display/LazyImage/LazyImage.js +3 -3
- package/dist/_internal/components/data-display/Lightbox/Lightbox.js +6 -6
- package/dist/_internal/components/data-display/LoadingState/LoadingState.js +3 -3
- package/dist/_internal/components/data-display/MapPreview/MapDecorations.js +2 -2
- package/dist/_internal/components/data-display/MapPreview/MapLayers.js +3 -3
- package/dist/_internal/components/data-display/MapPreview/MapPreview.hooks.js +2 -2
- package/dist/_internal/components/data-display/MapPreview/MapPreview.js +11 -11
- package/dist/_internal/components/data-display/MapPreview/MapTiles.js +2 -2
- package/dist/_internal/components/data-display/MapPreview/StaticMapView.js +4 -4
- package/dist/_internal/components/data-display/MapPreview/useMapPreview.js +3 -3
- package/dist/_internal/components/data-display/StatCard/StatCard.js +3 -3
- package/dist/_internal/components/data-display/Table/Table.js +2 -2
- package/dist/_internal/components/data-display/index.js +43 -43
- package/dist/_internal/components/feedback/ConfirmAction/ConfirmAction.js +2 -2
- package/dist/_internal/components/feedback/ConfirmAction/ConfirmButton.js +3 -3
- package/dist/_internal/components/feedback/ConfirmAction/with-confirmation.js +2 -2
- package/dist/_internal/components/feedback/StackedModal/StackedModal.js +6 -6
- package/dist/_internal/components/feedback/TutorialOverlay/TutorialOverlay.js +2 -2
- package/dist/_internal/components/feedback/index.js +15 -15
- package/dist/_internal/components/form/AddressAutocomplete/AddressAutocomplete.hooks.js +4 -4
- package/dist/_internal/components/form/AddressAutocomplete/AddressAutocomplete.js +7 -7
- package/dist/_internal/components/form/AddressAutocomplete/AddressAutocompleteField.js +2 -2
- package/dist/_internal/components/form/Autocomplete/Autocomplete.js +2 -2
- package/dist/_internal/components/form/CategorySelect/CategoryPanel.js +4 -4
- package/dist/_internal/components/form/CategorySelect/CategoryPanelList.js +3 -3
- package/dist/_internal/components/form/CategorySelect/CategoryRows.js +2 -2
- package/dist/_internal/components/form/CategorySelect/CategorySelect.js +9 -9
- package/dist/_internal/components/form/CodeEditor/CodeEditor.js +3 -3
- package/dist/_internal/components/form/DateRangePicker/DateRangePicker.js +3 -3
- package/dist/_internal/components/form/HeaderActions/HeaderActions.js +11 -0
- package/dist/_internal/components/form/HeaderActions/HeaderActions.js.map +1 -0
- package/dist/_internal/components/form/HeaderActions/HeaderActions.types.js +1 -0
- package/dist/_internal/components/form/HeaderActions/HeaderActions.types.js.map +1 -0
- package/dist/_internal/components/form/Label/Label.js +2 -2
- package/dist/_internal/components/form/PhoneInput/PhoneInput.hooks.js +2 -2
- package/dist/_internal/components/form/PhoneInput/PhoneInput.js +3 -3
- package/dist/_internal/components/form/index.js +38 -38
- package/dist/_internal/components/form/total-form/Fields/CategoryField.js +10 -10
- package/dist/_internal/components/form/total-form/Fields/index.js +13 -13
- package/dist/_internal/components/index.js +133 -131
- package/dist/_internal/components/layout/Dashboard/Dashboard.js +4 -2
- package/dist/_internal/components/layout/Dashboard/DashboardParts.js +5 -1
- package/dist/_internal/components/layout/ScrollArea/ScrollArea.js +3 -3
- package/dist/_internal/components/layout/Skeleton/Skeleton.js +2 -2
- package/dist/_internal/components/layout/index.js +21 -19
- package/dist/_internal/components/navigation/CommandPalette/CommandPalette.js +2 -2
- package/dist/_internal/components/navigation/NavigationMenu/NavigationMegaSection.js +3 -3
- package/dist/_internal/components/navigation/NavigationMenu/NavigationMenu.js +5 -5
- package/dist/_internal/components/navigation/NavigationMenu/NavigationMenuItem.js +2 -2
- package/dist/_internal/components/navigation/NavigationMenu/NavigationStandardBody.js +3 -3
- package/dist/_internal/components/navigation/index.js +11 -11
- package/dist/_internal/components/typography/index.js +3 -3
- package/dist/_internal/components/utility/InstallPrompt/InstallPrompt.js +2 -2
- package/dist/_internal/components/utility/index.js +7 -7
- package/dist/_internal/en-US.data-display.js +2 -2
- package/dist/charts.js +10 -10
- package/dist/{chunk-WQSL6MCA.js → chunk-23FCBIUN.js} +4 -4
- package/dist/{chunk-QIKTIKO6.js → chunk-24LW52EU.js} +2 -2
- package/dist/{chunk-HR7YTBR7.js → chunk-3AOOI2NR.js} +4 -4
- package/dist/{chunk-EIGELK2H.js → chunk-3P4THDBM.js} +4 -4
- package/dist/{chunk-SJIBPRPB.js → chunk-3T2I6BYA.js} +4 -4
- package/dist/{chunk-5ZZPQ3MT.js → chunk-434EDUHY.js} +5 -5
- package/dist/{chunk-4ETQRBZC.js → chunk-46UPILLK.js} +4 -4
- package/dist/{chunk-CKZFYGBY.js → chunk-47DCYF4G.js} +6 -6
- package/dist/{chunk-B2324WXJ.js → chunk-4KNJQFDJ.js} +4 -4
- package/dist/{chunk-V44U7H4M.js → chunk-5KZESOK6.js} +8 -8
- package/dist/{chunk-JE6RZ5L6.js → chunk-5ZOJLYD2.js} +4 -4
- package/dist/{chunk-AVGTTWTE.js → chunk-65DLYC4S.js} +4 -4
- package/dist/{chunk-BPCYXLWY.js → chunk-6HNEEJES.js} +4 -4
- package/dist/{chunk-PHA3NFZM.js → chunk-6YFMGNSA.js} +4 -4
- package/dist/{chunk-R7MX5KPJ.js → chunk-6YLAVHV4.js} +4 -4
- package/dist/{chunk-56SMIHWE.js → chunk-747HBFGH.js} +4 -4
- package/dist/{chunk-A43SJQYE.js → chunk-74LYLKO2.js} +4 -2
- package/dist/chunk-74LYLKO2.js.map +1 -0
- package/dist/{chunk-RXSGHPCR.js → chunk-7FOOLP5H.js} +4 -4
- package/dist/{chunk-EICVL6GS.js → chunk-7HPPUO2A.js} +2 -2
- package/dist/{chunk-VJFH2AXT.js → chunk-ARI5ZU75.js} +7 -7
- package/dist/{chunk-7QVYJQN4.js → chunk-B5LNUTGZ.js} +2 -2
- package/dist/{chunk-75KRWRJA.js → chunk-BQYIJOKS.js} +6 -6
- package/dist/{chunk-72NOM3O2.js → chunk-C34GFGA5.js} +2 -2
- package/dist/{chunk-O6V7KKW7.js → chunk-CRHQN42I.js} +3 -3
- package/dist/{chunk-LQR2IVSL.js → chunk-DWUMMMLR.js} +4 -4
- package/dist/{chunk-SHDIZSN5.js → chunk-EGRFMPGD.js} +6 -6
- package/dist/{chunk-XFUNJYFT.js → chunk-EPNUVSNK.js} +7 -7
- package/dist/{chunk-FLSSV4TH.js → chunk-EWGVRRUF.js} +23 -2
- package/dist/chunk-EWGVRRUF.js.map +1 -0
- package/dist/{chunk-L6KEVPXN.js → chunk-FH4VARZ7.js} +7 -7
- package/dist/{chunk-UENDC45F.js → chunk-GDUIT5I6.js} +2 -2
- package/dist/{chunk-R6SBP5M5.js → chunk-GOWBYHYW.js} +4 -4
- package/dist/{chunk-HDNK7BAX.js → chunk-GT7C6TSM.js} +3 -3
- package/dist/{chunk-RPWEXIAW.js → chunk-HEG7JIBM.js} +5 -5
- package/dist/{chunk-J4DDXHLB.js → chunk-HGBZZDP6.js} +4 -4
- package/dist/{chunk-O6MZPB64.js → chunk-HIZCBYEP.js} +7 -7
- package/dist/{chunk-AZUFGKMQ.js → chunk-HJOABXKN.js} +4 -4
- package/dist/{chunk-ZOUWHGV3.js → chunk-HOJL2GKW.js} +7 -7
- package/dist/{chunk-AZSFIQIA.js → chunk-I2S2GHEG.js} +12 -12
- package/dist/{chunk-RRO2EOJB.js → chunk-JB67KPGM.js} +4 -4
- package/dist/{chunk-MNJVOU7T.js → chunk-K2T2CQSZ.js} +4 -4
- package/dist/{chunk-GNAAHDCN.js → chunk-LDMXHDZ5.js} +2 -2
- package/dist/{chunk-IIUB4IOH.js → chunk-LKF5KQ2Q.js} +4 -4
- package/dist/{chunk-A2WJMZX5.js → chunk-LNQ6QMKG.js} +2 -2
- package/dist/{chunk-ECIGNYSI.js → chunk-LR2ECQSZ.js} +2 -2
- package/dist/{chunk-SFAP5EH5.js → chunk-LUMF63BM.js} +4 -4
- package/dist/{chunk-CZPU5TW3.js → chunk-LYSSO6WC.js} +4 -4
- package/dist/{chunk-XSKVBGCZ.js → chunk-MHJ52VJE.js} +5 -5
- package/dist/{chunk-ZNGUDGKW.js → chunk-MJOXIENM.js} +4 -4
- package/dist/chunk-N4JEQJBL.js +93 -0
- package/dist/chunk-N4JEQJBL.js.map +1 -0
- package/dist/{chunk-62WEMJV3.js → chunk-NI2ISQZI.js} +3 -3
- package/dist/{chunk-LNIVT62P.js → chunk-NJS4WCHA.js} +15 -15
- package/dist/{chunk-LPNF4YJ7.js → chunk-NKCKIGRL.js} +6 -6
- package/dist/{chunk-IRDGC7FK.js → chunk-NVOQLMYF.js} +4 -4
- package/dist/{chunk-AGYGNNOM.js → chunk-PQECNGDE.js} +2 -2
- package/dist/{chunk-LPYB4Y7C.js → chunk-PRAGFBHW.js} +4 -4
- package/dist/{chunk-7DNQHMDO.js → chunk-PXH24VIP.js} +4 -4
- package/dist/{chunk-AP3PVR3T.js → chunk-Q6KXTTC4.js} +2 -2
- package/dist/{chunk-CDJPDZCA.js → chunk-QISJKBCM.js} +2 -2
- package/dist/{chunk-WBKWIFXA.js → chunk-QYNCPS5W.js} +6 -6
- package/dist/{chunk-DFLTUI7W.js → chunk-QZBUGUOY.js} +4 -4
- package/dist/{chunk-BLT5ZBVL.js → chunk-RRX6ZTNX.js} +2 -2
- package/dist/{chunk-M6365FGG.js → chunk-RXYSP56G.js} +6 -6
- package/dist/{chunk-BVGR7OYA.js → chunk-SE4Z3P6D.js} +4 -4
- package/dist/chunk-SIZOJNB2.js +1 -0
- package/dist/chunk-SIZOJNB2.js.map +1 -0
- package/dist/{chunk-BGYLL467.js → chunk-TXHJX2NG.js} +4 -4
- package/dist/{chunk-KEDI6IRA.js → chunk-UN5D73A4.js} +2 -2
- package/dist/{chunk-PKJKA4CU.js → chunk-UPR7F3ML.js} +2 -2
- package/dist/{chunk-XPS7FWZS.js → chunk-VLNM4BTH.js} +2 -2
- package/dist/{chunk-2SWQ6HIK.js → chunk-W3FAKT3D.js} +4 -4
- package/dist/{chunk-UHXNEXOC.js → chunk-WWNXJMBX.js} +2 -2
- package/dist/{chunk-V5P5Q6HM.js → chunk-X24P3ZYW.js} +10 -10
- package/dist/{chunk-PMS3H3OO.js → chunk-XSJWN3WH.js} +10 -10
- package/dist/{chunk-OGGHD64H.js → chunk-Y5UCOBQN.js} +4 -4
- package/dist/{chunk-O6J4CKS5.js → chunk-YROTCW42.js} +2 -2
- package/dist/{chunk-2A3OMYCB.js → chunk-YRUCIKPO.js} +4 -4
- package/dist/{chunk-PDGAFQ6Z.js → chunk-YVX7GGS4.js} +3 -3
- package/dist/{chunk-G5ZVD5IJ.js → chunk-ZDWU52DJ.js} +2 -2
- package/dist/{chunk-2UCJJACD.js → chunk-ZLNKBKUB.js} +11 -11
- package/dist/{chunk-U5RIDMMV.js → chunk-ZPIFVTJA.js} +6 -6
- package/dist/data-display/AsyncStateContainer.js +4 -4
- package/dist/data-display/Badge.js +2 -2
- package/dist/data-display/CardKit.js +15 -15
- package/dist/data-display/Carousel.js +2 -2
- package/dist/data-display/Chart.js +10 -10
- package/dist/data-display/DataGrid.js +2 -2
- package/dist/data-display/DataViews.js +79 -79
- package/dist/data-display/HoverCard.js +2 -2
- package/dist/data-display/LazyImage.js +3 -3
- package/dist/data-display/Lightbox.js +6 -6
- package/dist/data-display/LoadingState.js +3 -3
- package/dist/data-display/MapPreview.js +11 -11
- package/dist/data-display/StatCard.js +3 -3
- package/dist/data-display/Table.js +2 -2
- package/dist/en-US.js +8 -8
- package/dist/feedback/ConfirmAction.js +7 -7
- package/dist/feedback/StackedModal.js +6 -6
- package/dist/feedback/TutorialOverlay.js +2 -2
- package/dist/form/AddressAutocomplete.js +7 -7
- package/dist/form/Autocomplete.js +2 -2
- package/dist/form/CategorySelect.js +9 -9
- package/dist/form/CodeEditor.js +3 -3
- package/dist/form/DateRangePicker.js +3 -3
- package/dist/form/HeaderActions.js +11 -0
- package/dist/form/HeaderActions.js.map +1 -0
- package/dist/form/Label.js +2 -2
- package/dist/form/PhoneInput.js +3 -3
- package/dist/form/total-form.js +16 -16
- package/dist/layout/ContentToolbar.js +6 -6
- package/dist/layout/Dashboard.js +4 -2
- package/dist/layout/ScrollArea.js +3 -3
- package/dist/layout/Skeleton.js +2 -2
- package/dist/locales.js +11 -11
- package/dist/navigation/CommandPalette.js +2 -2
- package/dist/navigation/NavigationMenu.js +5 -5
- package/dist/pt-BR.js +4 -4
- package/dist/types/components/form/HeaderActions/HeaderActions.d.ts +48 -0
- package/dist/types/components/form/HeaderActions/HeaderActions.d.ts.map +1 -0
- package/dist/types/components/form/HeaderActions/HeaderActions.types.d.ts +62 -0
- package/dist/types/components/form/HeaderActions/HeaderActions.types.d.ts.map +1 -0
- package/dist/types/components/form/HeaderActions/index.d.ts +3 -0
- package/dist/types/components/form/HeaderActions/index.d.ts.map +1 -0
- package/dist/types/components/layout/Dashboard/Dashboard.d.ts +4 -0
- package/dist/types/components/layout/Dashboard/Dashboard.d.ts.map +1 -1
- package/dist/types/components/layout/Dashboard/Dashboard.types.d.ts +10 -0
- package/dist/types/components/layout/Dashboard/Dashboard.types.d.ts.map +1 -1
- package/dist/types/components/layout/Dashboard/DashboardParts.d.ts +22 -1
- package/dist/types/components/layout/Dashboard/DashboardParts.d.ts.map +1 -1
- package/dist/types/components/layout/Dashboard/index.d.ts +1 -1
- package/dist/types/components/layout/Dashboard/index.d.ts.map +1 -1
- package/dist/utility/InstallPrompt.js +2 -2
- package/package.json +5 -1
- package/src/components/form/HeaderActions/HeaderActions.md +72 -0
- package/src/components/form/HeaderActions/HeaderActions.tsx +134 -0
- package/src/components/form/HeaderActions/HeaderActions.types.ts +64 -0
- package/src/components/form/HeaderActions/index.ts +2 -0
- package/src/components/layout/Dashboard/Dashboard.md +9 -2
- package/src/components/layout/Dashboard/Dashboard.tsx +2 -0
- package/src/components/layout/Dashboard/Dashboard.types.ts +12 -0
- package/src/components/layout/Dashboard/DashboardParts.tsx +36 -0
- package/src/components/layout/Dashboard/index.ts +1 -0
- package/dist/chunk-A43SJQYE.js.map +0 -1
- package/dist/chunk-FLSSV4TH.js.map +0 -1
- /package/dist/{chunk-WQSL6MCA.js.map → chunk-23FCBIUN.js.map} +0 -0
- /package/dist/{chunk-QIKTIKO6.js.map → chunk-24LW52EU.js.map} +0 -0
- /package/dist/{chunk-HR7YTBR7.js.map → chunk-3AOOI2NR.js.map} +0 -0
- /package/dist/{chunk-EIGELK2H.js.map → chunk-3P4THDBM.js.map} +0 -0
- /package/dist/{chunk-SJIBPRPB.js.map → chunk-3T2I6BYA.js.map} +0 -0
- /package/dist/{chunk-5ZZPQ3MT.js.map → chunk-434EDUHY.js.map} +0 -0
- /package/dist/{chunk-4ETQRBZC.js.map → chunk-46UPILLK.js.map} +0 -0
- /package/dist/{chunk-CKZFYGBY.js.map → chunk-47DCYF4G.js.map} +0 -0
- /package/dist/{chunk-B2324WXJ.js.map → chunk-4KNJQFDJ.js.map} +0 -0
- /package/dist/{chunk-V44U7H4M.js.map → chunk-5KZESOK6.js.map} +0 -0
- /package/dist/{chunk-JE6RZ5L6.js.map → chunk-5ZOJLYD2.js.map} +0 -0
- /package/dist/{chunk-AVGTTWTE.js.map → chunk-65DLYC4S.js.map} +0 -0
- /package/dist/{chunk-BPCYXLWY.js.map → chunk-6HNEEJES.js.map} +0 -0
- /package/dist/{chunk-PHA3NFZM.js.map → chunk-6YFMGNSA.js.map} +0 -0
- /package/dist/{chunk-R7MX5KPJ.js.map → chunk-6YLAVHV4.js.map} +0 -0
- /package/dist/{chunk-56SMIHWE.js.map → chunk-747HBFGH.js.map} +0 -0
- /package/dist/{chunk-RXSGHPCR.js.map → chunk-7FOOLP5H.js.map} +0 -0
- /package/dist/{chunk-EICVL6GS.js.map → chunk-7HPPUO2A.js.map} +0 -0
- /package/dist/{chunk-VJFH2AXT.js.map → chunk-ARI5ZU75.js.map} +0 -0
- /package/dist/{chunk-7QVYJQN4.js.map → chunk-B5LNUTGZ.js.map} +0 -0
- /package/dist/{chunk-75KRWRJA.js.map → chunk-BQYIJOKS.js.map} +0 -0
- /package/dist/{chunk-72NOM3O2.js.map → chunk-C34GFGA5.js.map} +0 -0
- /package/dist/{chunk-O6V7KKW7.js.map → chunk-CRHQN42I.js.map} +0 -0
- /package/dist/{chunk-LQR2IVSL.js.map → chunk-DWUMMMLR.js.map} +0 -0
- /package/dist/{chunk-SHDIZSN5.js.map → chunk-EGRFMPGD.js.map} +0 -0
- /package/dist/{chunk-XFUNJYFT.js.map → chunk-EPNUVSNK.js.map} +0 -0
- /package/dist/{chunk-L6KEVPXN.js.map → chunk-FH4VARZ7.js.map} +0 -0
- /package/dist/{chunk-UENDC45F.js.map → chunk-GDUIT5I6.js.map} +0 -0
- /package/dist/{chunk-R6SBP5M5.js.map → chunk-GOWBYHYW.js.map} +0 -0
- /package/dist/{chunk-HDNK7BAX.js.map → chunk-GT7C6TSM.js.map} +0 -0
- /package/dist/{chunk-RPWEXIAW.js.map → chunk-HEG7JIBM.js.map} +0 -0
- /package/dist/{chunk-J4DDXHLB.js.map → chunk-HGBZZDP6.js.map} +0 -0
- /package/dist/{chunk-O6MZPB64.js.map → chunk-HIZCBYEP.js.map} +0 -0
- /package/dist/{chunk-AZUFGKMQ.js.map → chunk-HJOABXKN.js.map} +0 -0
- /package/dist/{chunk-ZOUWHGV3.js.map → chunk-HOJL2GKW.js.map} +0 -0
- /package/dist/{chunk-AZSFIQIA.js.map → chunk-I2S2GHEG.js.map} +0 -0
- /package/dist/{chunk-RRO2EOJB.js.map → chunk-JB67KPGM.js.map} +0 -0
- /package/dist/{chunk-MNJVOU7T.js.map → chunk-K2T2CQSZ.js.map} +0 -0
- /package/dist/{chunk-GNAAHDCN.js.map → chunk-LDMXHDZ5.js.map} +0 -0
- /package/dist/{chunk-IIUB4IOH.js.map → chunk-LKF5KQ2Q.js.map} +0 -0
- /package/dist/{chunk-A2WJMZX5.js.map → chunk-LNQ6QMKG.js.map} +0 -0
- /package/dist/{chunk-ECIGNYSI.js.map → chunk-LR2ECQSZ.js.map} +0 -0
- /package/dist/{chunk-SFAP5EH5.js.map → chunk-LUMF63BM.js.map} +0 -0
- /package/dist/{chunk-CZPU5TW3.js.map → chunk-LYSSO6WC.js.map} +0 -0
- /package/dist/{chunk-XSKVBGCZ.js.map → chunk-MHJ52VJE.js.map} +0 -0
- /package/dist/{chunk-ZNGUDGKW.js.map → chunk-MJOXIENM.js.map} +0 -0
- /package/dist/{chunk-62WEMJV3.js.map → chunk-NI2ISQZI.js.map} +0 -0
- /package/dist/{chunk-LNIVT62P.js.map → chunk-NJS4WCHA.js.map} +0 -0
- /package/dist/{chunk-LPNF4YJ7.js.map → chunk-NKCKIGRL.js.map} +0 -0
- /package/dist/{chunk-IRDGC7FK.js.map → chunk-NVOQLMYF.js.map} +0 -0
- /package/dist/{chunk-AGYGNNOM.js.map → chunk-PQECNGDE.js.map} +0 -0
- /package/dist/{chunk-LPYB4Y7C.js.map → chunk-PRAGFBHW.js.map} +0 -0
- /package/dist/{chunk-7DNQHMDO.js.map → chunk-PXH24VIP.js.map} +0 -0
- /package/dist/{chunk-AP3PVR3T.js.map → chunk-Q6KXTTC4.js.map} +0 -0
- /package/dist/{chunk-CDJPDZCA.js.map → chunk-QISJKBCM.js.map} +0 -0
- /package/dist/{chunk-WBKWIFXA.js.map → chunk-QYNCPS5W.js.map} +0 -0
- /package/dist/{chunk-DFLTUI7W.js.map → chunk-QZBUGUOY.js.map} +0 -0
- /package/dist/{chunk-BLT5ZBVL.js.map → chunk-RRX6ZTNX.js.map} +0 -0
- /package/dist/{chunk-M6365FGG.js.map → chunk-RXYSP56G.js.map} +0 -0
- /package/dist/{chunk-BVGR7OYA.js.map → chunk-SE4Z3P6D.js.map} +0 -0
- /package/dist/{chunk-BGYLL467.js.map → chunk-TXHJX2NG.js.map} +0 -0
- /package/dist/{chunk-KEDI6IRA.js.map → chunk-UN5D73A4.js.map} +0 -0
- /package/dist/{chunk-PKJKA4CU.js.map → chunk-UPR7F3ML.js.map} +0 -0
- /package/dist/{chunk-XPS7FWZS.js.map → chunk-VLNM4BTH.js.map} +0 -0
- /package/dist/{chunk-2SWQ6HIK.js.map → chunk-W3FAKT3D.js.map} +0 -0
- /package/dist/{chunk-UHXNEXOC.js.map → chunk-WWNXJMBX.js.map} +0 -0
- /package/dist/{chunk-V5P5Q6HM.js.map → chunk-X24P3ZYW.js.map} +0 -0
- /package/dist/{chunk-PMS3H3OO.js.map → chunk-XSJWN3WH.js.map} +0 -0
- /package/dist/{chunk-OGGHD64H.js.map → chunk-Y5UCOBQN.js.map} +0 -0
- /package/dist/{chunk-O6J4CKS5.js.map → chunk-YROTCW42.js.map} +0 -0
- /package/dist/{chunk-2A3OMYCB.js.map → chunk-YRUCIKPO.js.map} +0 -0
- /package/dist/{chunk-PDGAFQ6Z.js.map → chunk-YVX7GGS4.js.map} +0 -0
- /package/dist/{chunk-G5ZVD5IJ.js.map → chunk-ZDWU52DJ.js.map} +0 -0
- /package/dist/{chunk-2UCJJACD.js.map → chunk-ZLNKBKUB.js.map} +0 -0
- /package/dist/{chunk-U5RIDMMV.js.map → chunk-ZPIFVTJA.js.map} +0 -0
package/dist/form/total-form.js
CHANGED
|
@@ -1,9 +1,15 @@
|
|
|
1
|
+
import {
|
|
2
|
+
FormErrorSnackbar
|
|
3
|
+
} from "../chunk-XJUEHG72.js";
|
|
1
4
|
import {
|
|
2
5
|
FormContainer
|
|
3
6
|
} from "../chunk-OK5BHFZE.js";
|
|
4
7
|
import {
|
|
5
8
|
Fields_exports
|
|
6
|
-
} from "../chunk-
|
|
9
|
+
} from "../chunk-747HBFGH.js";
|
|
10
|
+
import {
|
|
11
|
+
CategoryField
|
|
12
|
+
} from "../chunk-UN5D73A4.js";
|
|
7
13
|
import "../chunk-LIQHOLDQ.js";
|
|
8
14
|
import {
|
|
9
15
|
TextField
|
|
@@ -12,15 +18,9 @@ import {
|
|
|
12
18
|
SelectField
|
|
13
19
|
} from "../chunk-MYOFULG4.js";
|
|
14
20
|
import "../chunk-CESQKLIR.js";
|
|
15
|
-
import {
|
|
16
|
-
CategoryField
|
|
17
|
-
} from "../chunk-KEDI6IRA.js";
|
|
18
21
|
import {
|
|
19
22
|
SubmitButton
|
|
20
23
|
} from "../chunk-3BR2CLAM.js";
|
|
21
|
-
import {
|
|
22
|
-
FormErrorSnackbar
|
|
23
|
-
} from "../chunk-XJUEHG72.js";
|
|
24
24
|
import {
|
|
25
25
|
FormContext,
|
|
26
26
|
useFormContext
|
|
@@ -34,22 +34,22 @@ import "../chunk-QL7L6RHR.js";
|
|
|
34
34
|
import "../chunk-JD5BVIM7.js";
|
|
35
35
|
import "../chunk-JXUWWPZR.js";
|
|
36
36
|
import "../chunk-N5ZWC6CB.js";
|
|
37
|
-
import "../chunk-
|
|
38
|
-
import "../chunk-
|
|
39
|
-
import "../chunk-5ZZPQ3MT.js";
|
|
37
|
+
import "../chunk-I2S2GHEG.js";
|
|
38
|
+
import "../chunk-434EDUHY.js";
|
|
40
39
|
import "../chunk-ZUIJ3N7N.js";
|
|
41
|
-
import "../chunk-
|
|
40
|
+
import "../chunk-LMXWI3DD.js";
|
|
41
|
+
import "../chunk-47DCYF4G.js";
|
|
42
|
+
import "../chunk-PRAGFBHW.js";
|
|
42
43
|
import "../chunk-PLOOVF43.js";
|
|
43
44
|
import "../chunk-GPVB3FQP.js";
|
|
44
|
-
import "../chunk-ZAB65STX.js";
|
|
45
|
-
import "../chunk-XQ2BNVXL.js";
|
|
46
|
-
import "../chunk-LPYB4Y7C.js";
|
|
47
|
-
import "../chunk-DMNZD3Q7.js";
|
|
48
|
-
import "../chunk-XCT2ZLA6.js";
|
|
49
45
|
import "../chunk-2GB5CIN6.js";
|
|
50
46
|
import "../chunk-ISH42UC7.js";
|
|
47
|
+
import "../chunk-ZAB65STX.js";
|
|
51
48
|
import "../chunk-WWM2YTW4.js";
|
|
52
49
|
import "../chunk-LR6MSKTT.js";
|
|
50
|
+
import "../chunk-XQ2BNVXL.js";
|
|
51
|
+
import "../chunk-DMNZD3Q7.js";
|
|
52
|
+
import "../chunk-XCT2ZLA6.js";
|
|
53
53
|
import "../chunk-QYKDY4EI.js";
|
|
54
54
|
import "../chunk-J7VY6KNP.js";
|
|
55
55
|
import "../chunk-3AEY5TYV.js";
|
|
@@ -1,4 +1,10 @@
|
|
|
1
1
|
import "../chunk-MOLQGQEQ.js";
|
|
2
|
+
import {
|
|
3
|
+
ColumnsMenu
|
|
4
|
+
} from "../chunk-JMVIIKII.js";
|
|
5
|
+
import {
|
|
6
|
+
ViewSelector
|
|
7
|
+
} from "../chunk-WXD7MGBT.js";
|
|
2
8
|
import {
|
|
3
9
|
SortByDropdown
|
|
4
10
|
} from "../chunk-WQFIV5WD.js";
|
|
@@ -15,12 +21,6 @@ import {
|
|
|
15
21
|
import {
|
|
16
22
|
ContentToolbar
|
|
17
23
|
} from "../chunk-TSPHRZ4U.js";
|
|
18
|
-
import {
|
|
19
|
-
ColumnsMenu
|
|
20
|
-
} from "../chunk-JMVIIKII.js";
|
|
21
|
-
import {
|
|
22
|
-
ViewSelector
|
|
23
|
-
} from "../chunk-WXD7MGBT.js";
|
|
24
24
|
import "../chunk-PZ5AY32C.js";
|
|
25
25
|
export {
|
|
26
26
|
ColumnsMenu,
|
package/dist/layout/Dashboard.js
CHANGED
|
@@ -2,12 +2,14 @@ import "../chunk-LVDRVPGD.js";
|
|
|
2
2
|
import {
|
|
3
3
|
Dashboard,
|
|
4
4
|
markDashboardSlot
|
|
5
|
-
} from "../chunk-
|
|
6
|
-
import "../chunk-
|
|
5
|
+
} from "../chunk-74LYLKO2.js";
|
|
6
|
+
import "../chunk-EWGVRRUF.js";
|
|
7
7
|
import {
|
|
8
8
|
DashboardContext,
|
|
9
9
|
useDashboardContext
|
|
10
10
|
} from "../chunk-CUMSPE6B.js";
|
|
11
|
+
import "../chunk-SIZOJNB2.js";
|
|
12
|
+
import "../chunk-N4JEQJBL.js";
|
|
11
13
|
import "../chunk-URB3VVMR.js";
|
|
12
14
|
import "../chunk-2CEV746H.js";
|
|
13
15
|
import "../chunk-PZ5AY32C.js";
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import "../chunk-KAK5SAEA.js";
|
|
2
2
|
import {
|
|
3
3
|
ScrollArea
|
|
4
|
-
} from "../chunk-
|
|
5
|
-
import "../chunk-4OEKIFBC.js";
|
|
6
|
-
import "../chunk-RHIDWUK7.js";
|
|
4
|
+
} from "../chunk-6YLAVHV4.js";
|
|
7
5
|
import "../chunk-C53C7C2X.js";
|
|
6
|
+
import "../chunk-4OEKIFBC.js";
|
|
8
7
|
import "../chunk-ZADOIITM.js";
|
|
8
|
+
import "../chunk-RHIDWUK7.js";
|
|
9
9
|
import "../chunk-PZ5AY32C.js";
|
|
10
10
|
export {
|
|
11
11
|
ScrollArea
|
package/dist/layout/Skeleton.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import "../chunk-724ZONOL.js";
|
|
2
2
|
import {
|
|
3
3
|
Skeleton
|
|
4
|
-
} from "../chunk-
|
|
5
|
-
import "../chunk-JZKOJZ6V.js";
|
|
4
|
+
} from "../chunk-NVOQLMYF.js";
|
|
6
5
|
import "../chunk-HXYXDQ7U.js";
|
|
6
|
+
import "../chunk-JZKOJZ6V.js";
|
|
7
7
|
import "../chunk-PZ5AY32C.js";
|
|
8
8
|
export {
|
|
9
9
|
Skeleton
|
package/dist/locales.js
CHANGED
|
@@ -1,4 +1,8 @@
|
|
|
1
1
|
import "./chunk-BWZKLKDT.js";
|
|
2
|
+
import {
|
|
3
|
+
PT_BR_INSTALL_PROMPT_COPY,
|
|
4
|
+
PT_BR_USER_AVATAR_COPY
|
|
5
|
+
} from "./chunk-Z24VOTA7.js";
|
|
2
6
|
import {
|
|
3
7
|
PT_BR_BREADCRUMB_COPY,
|
|
4
8
|
PT_BR_COMMAND_PALETTE_COPY
|
|
@@ -59,14 +63,7 @@ import {
|
|
|
59
63
|
EN_US_LIGHTBOX_COPY,
|
|
60
64
|
EN_US_MAP_PREVIEW_COPY,
|
|
61
65
|
EN_US_TIMING_DIAGRAM_COPY
|
|
62
|
-
} from "./chunk-
|
|
63
|
-
import {
|
|
64
|
-
EN_US_TABLE_FILTER_COPY
|
|
65
|
-
} from "./chunk-GRHECKHU.js";
|
|
66
|
-
import {
|
|
67
|
-
EN_US_INSTALL_PROMPT_COPY,
|
|
68
|
-
EN_US_USER_AVATAR_COPY
|
|
69
|
-
} from "./chunk-3HLKTBEO.js";
|
|
66
|
+
} from "./chunk-LKF5KQ2Q.js";
|
|
70
67
|
import {
|
|
71
68
|
EN_US_CATEGORY_SELECT_COPY,
|
|
72
69
|
EN_US_CEP_FIELD_COPY,
|
|
@@ -75,9 +72,12 @@ import {
|
|
|
75
72
|
EN_US_SECTION_ONBOARDING_COPY
|
|
76
73
|
} from "./chunk-PZS7N74L.js";
|
|
77
74
|
import {
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
75
|
+
EN_US_TABLE_FILTER_COPY
|
|
76
|
+
} from "./chunk-GRHECKHU.js";
|
|
77
|
+
import {
|
|
78
|
+
EN_US_INSTALL_PROMPT_COPY,
|
|
79
|
+
EN_US_USER_AVATAR_COPY
|
|
80
|
+
} from "./chunk-3HLKTBEO.js";
|
|
81
81
|
import "./chunk-PZ5AY32C.js";
|
|
82
82
|
|
|
83
83
|
// src/locales.ts
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import "../chunk-P5WJUR7X.js";
|
|
2
2
|
import {
|
|
3
3
|
CommandPalette
|
|
4
|
-
} from "../chunk-
|
|
4
|
+
} from "../chunk-PXH24VIP.js";
|
|
5
|
+
import "../chunk-SQSFMZTF.js";
|
|
5
6
|
import "../chunk-SUZXPDUQ.js";
|
|
6
7
|
import "../chunk-4VRDFZ4G.js";
|
|
7
|
-
import "../chunk-SQSFMZTF.js";
|
|
8
8
|
import "../chunk-5EIW2FZY.js";
|
|
9
9
|
import "../chunk-PZ5AY32C.js";
|
|
10
10
|
export {
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import "../chunk-I53WONUS.js";
|
|
2
2
|
import {
|
|
3
3
|
NavigationMenu
|
|
4
|
-
} from "../chunk-
|
|
5
|
-
import "../chunk-
|
|
6
|
-
import "../chunk-
|
|
4
|
+
} from "../chunk-GT7C6TSM.js";
|
|
5
|
+
import "../chunk-RRX6ZTNX.js";
|
|
6
|
+
import "../chunk-ZDWU52DJ.js";
|
|
7
7
|
import "../chunk-Q444G5X7.js";
|
|
8
|
-
import "../chunk-
|
|
9
|
-
import "../chunk-3L5OZCGA.js";
|
|
8
|
+
import "../chunk-7FOOLP5H.js";
|
|
10
9
|
import "../chunk-FYLCSCMR.js";
|
|
10
|
+
import "../chunk-3L5OZCGA.js";
|
|
11
11
|
import "../chunk-PZ5AY32C.js";
|
|
12
12
|
export {
|
|
13
13
|
NavigationMenu
|
package/dist/pt-BR.js
CHANGED
|
@@ -1,4 +1,8 @@
|
|
|
1
1
|
import "./chunk-BWZKLKDT.js";
|
|
2
|
+
import {
|
|
3
|
+
PT_BR_INSTALL_PROMPT_COPY,
|
|
4
|
+
PT_BR_USER_AVATAR_COPY
|
|
5
|
+
} from "./chunk-Z24VOTA7.js";
|
|
2
6
|
import {
|
|
3
7
|
PT_BR_BREADCRUMB_COPY,
|
|
4
8
|
PT_BR_COMMAND_PALETTE_COPY
|
|
@@ -34,10 +38,6 @@ import {
|
|
|
34
38
|
import {
|
|
35
39
|
PT_BR_TABLE_FILTER_COPY
|
|
36
40
|
} from "./chunk-A7RIZOAL.js";
|
|
37
|
-
import {
|
|
38
|
-
PT_BR_INSTALL_PROMPT_COPY,
|
|
39
|
-
PT_BR_USER_AVATAR_COPY
|
|
40
|
-
} from "./chunk-Z24VOTA7.js";
|
|
41
41
|
import "./chunk-PZ5AY32C.js";
|
|
42
42
|
export {
|
|
43
43
|
PT_BR_ADDRESS_AUTOCOMPLETE_COPY,
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { HeaderActionsProps } from './HeaderActions.types';
|
|
3
|
+
/**
|
|
4
|
+
* The page header's actions, as ONE control that scales with how many there
|
|
5
|
+
* are: nothing, a button, or a button plus an overflow menu.
|
|
6
|
+
*
|
|
7
|
+
* | actions | renders |
|
|
8
|
+
* |---|---|
|
|
9
|
+
* | 0 | nothing at all — not an empty box, and not a menu with no items |
|
|
10
|
+
* | 1 | that action, as an ordinary `HeaderButton` |
|
|
11
|
+
* | n | the FIRST as a button; the other n−1 inside one dropdown |
|
|
12
|
+
*
|
|
13
|
+
* ## Why the first one stays a button
|
|
14
|
+
*
|
|
15
|
+
* A header whose every action lives behind a menu costs two clicks for the
|
|
16
|
+
* thing the page is FOR — "Novo produto" on a catalog, "Nova categoria" on the
|
|
17
|
+
* categories list. Folding it in with the exports and the reorder screens
|
|
18
|
+
* would treat a merchant's daily action as equal to the one they use monthly.
|
|
19
|
+
* So the array is in PRIORITY order and index 0 keeps its button; everything
|
|
20
|
+
* after it is secondary by the caller's own declaration.
|
|
21
|
+
*
|
|
22
|
+
* ## Why this takes a list and not children
|
|
23
|
+
*
|
|
24
|
+
* The 0/1/n decision is only decidable over data. A component handed JSX can
|
|
25
|
+
* count `React.Children`, but it cannot tell a gated-away action from an
|
|
26
|
+
* absent one, cannot read a label to put in a menu row, and cannot re-render
|
|
27
|
+
* a `<Button>` as a `<MenuItem>` without reaching into its props. Every
|
|
28
|
+
* caller in the estate had therefore hand-written the row, which is how four
|
|
29
|
+
* equally-weighted buttons ended up wrapping the line on a catalog page.
|
|
30
|
+
*
|
|
31
|
+
* ## One element, so the spacing is the component's and not the mount's
|
|
32
|
+
*
|
|
33
|
+
* It renders an `inline-flex` box rather than a fragment. A fragment inherits
|
|
34
|
+
* whatever gap its parent happens to set, and the two mounts here set
|
|
35
|
+
* different ones — a `Dashboard.Header` spaces its children, a
|
|
36
|
+
* `Dashboard.Action` slot does not, which is why the pair of buttons in that
|
|
37
|
+
* slot sat flush against each other. The gap belongs to the control.
|
|
38
|
+
*
|
|
39
|
+
* ## The ids survive the move
|
|
40
|
+
*
|
|
41
|
+
* An action that overflows keeps its `dataTestId` on its `MenuItem`. It is a
|
|
42
|
+
* different element in a different place, and it must still answer to the same
|
|
43
|
+
* selector: otherwise adding a fifth action to a header silently breaks the
|
|
44
|
+
* suite of the action that got pushed out, which is the last place anyone
|
|
45
|
+
* would look.
|
|
46
|
+
*/
|
|
47
|
+
export declare function HeaderActions({ actions, moreLabel, collapseBelow, testIdPrefix, }: HeaderActionsProps): React.JSX.Element | null;
|
|
48
|
+
//# sourceMappingURL=HeaderActions.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"HeaderActions.d.ts","sourceRoot":"","sources":["../../../../../src/components/form/HeaderActions/HeaderActions.tsx"],"names":[],"mappings":"AASA,OAAO,KAAmB,MAAM,OAAO,CAAC;AAGxC,OAAO,KAAK,EAAoB,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAWlF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2CG;AACH,wBAAgB,aAAa,CAAC,EAC5B,OAAO,EACP,SAAS,EACT,aAAoB,EACpB,YAA+B,GAChC,EAAE,kBAAkB,GAAG,KAAK,CAAC,GAAG,CAAC,OAAO,GAAG,IAAI,CA6D/C"}
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import type { ReactNode } from 'react';
|
|
2
|
+
import type { HeaderButtonProps } from '../HeaderButton';
|
|
3
|
+
/**
|
|
4
|
+
* One page-header action, declared as DATA rather than composed as an element.
|
|
5
|
+
*
|
|
6
|
+
* That is the whole point of the type. A header that composes its buttons as
|
|
7
|
+
* JSX can only ever render all of them, because nothing can count a fragment's
|
|
8
|
+
* children without walking React internals — so "three actions" and "seven
|
|
9
|
+
* actions" produce the same row, and the seventh button is what wraps the line
|
|
10
|
+
* on a laptop. A list can be measured, so the component can decide.
|
|
11
|
+
*/
|
|
12
|
+
export interface HeaderActionItem {
|
|
13
|
+
/**
|
|
14
|
+
* Stable identity. Used as the React key, and as the `data-testid` fallback
|
|
15
|
+
* so an action that MOVES into the overflow menu keeps the selector it had
|
|
16
|
+
* as a button — a suite driving it by id must not care where it ended up.
|
|
17
|
+
*/
|
|
18
|
+
id: string;
|
|
19
|
+
/** The label. Shown beside the icon as a button; alone in the menu row. */
|
|
20
|
+
text: ReactNode;
|
|
21
|
+
/** Leading icon. Always visible as a button, and in the menu row. */
|
|
22
|
+
icon: ReactNode;
|
|
23
|
+
onClick?: () => void;
|
|
24
|
+
disabled?: boolean;
|
|
25
|
+
/**
|
|
26
|
+
* Drop this action entirely when false. Present so a caller can declare a
|
|
27
|
+
* permission- or plan-gated action inline, instead of building the array
|
|
28
|
+
* conditionally and losing the reason it is missing.
|
|
29
|
+
*
|
|
30
|
+
* @default true
|
|
31
|
+
*/
|
|
32
|
+
visible?: boolean;
|
|
33
|
+
/** Overrides the `data-testid`, which otherwise falls back to {@link id}. */
|
|
34
|
+
dataTestId?: string;
|
|
35
|
+
/** MUI variant for the PRIMARY rendering. Ignored inside the menu. */
|
|
36
|
+
variant?: HeaderButtonProps['variant'];
|
|
37
|
+
/** MUI color for the PRIMARY rendering. Ignored inside the menu. */
|
|
38
|
+
color?: HeaderButtonProps['color'];
|
|
39
|
+
}
|
|
40
|
+
/** Props for {@link HeaderActions}. */
|
|
41
|
+
export interface HeaderActionsProps {
|
|
42
|
+
/**
|
|
43
|
+
* The actions, in priority order — the first is the one that stays a button.
|
|
44
|
+
*
|
|
45
|
+
* `false`/`null`/`undefined` entries are dropped, so a caller can write
|
|
46
|
+
* `[edit, canDelete && del]` without pre-filtering.
|
|
47
|
+
*/
|
|
48
|
+
actions: Array<HeaderActionItem | false | null | undefined>;
|
|
49
|
+
/**
|
|
50
|
+
* The overflow trigger's label, which is also its accessible name. REQUIRED:
|
|
51
|
+
* this package ships no copy of its own, in any language.
|
|
52
|
+
*/
|
|
53
|
+
moreLabel: string;
|
|
54
|
+
/** Width below which every button collapses to icon-only. @default 'md' */
|
|
55
|
+
collapseBelow?: HeaderButtonProps['collapseBelow'];
|
|
56
|
+
/**
|
|
57
|
+
* Prefix for the overflow trigger's and menu's own test ids. The ACTIONS
|
|
58
|
+
* keep their own ids either way. @default 'header-actions'
|
|
59
|
+
*/
|
|
60
|
+
testIdPrefix?: string;
|
|
61
|
+
}
|
|
62
|
+
//# sourceMappingURL=HeaderActions.types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"HeaderActions.types.d.ts","sourceRoot":"","sources":["../../../../../src/components/form/HeaderActions/HeaderActions.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvC,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AAEzD;;;;;;;;GAQG;AACH,MAAM,WAAW,gBAAgB;IAC/B;;;;OAIG;IACH,EAAE,EAAE,MAAM,CAAC;IACX,2EAA2E;IAC3E,IAAI,EAAE,SAAS,CAAC;IAChB,qEAAqE;IACrE,IAAI,EAAE,SAAS,CAAC;IAChB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;;;;;OAMG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,6EAA6E;IAC7E,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,sEAAsE;IACtE,OAAO,CAAC,EAAE,iBAAiB,CAAC,SAAS,CAAC,CAAC;IACvC,oEAAoE;IACpE,KAAK,CAAC,EAAE,iBAAiB,CAAC,OAAO,CAAC,CAAC;CACpC;AAED,uCAAuC;AACvC,MAAM,WAAW,kBAAkB;IACjC;;;;;OAKG;IACH,OAAO,EAAE,KAAK,CAAC,gBAAgB,GAAG,KAAK,GAAG,IAAI,GAAG,SAAS,CAAC,CAAC;IAC5D;;;OAGG;IACH,SAAS,EAAE,MAAM,CAAC;IAClB,2EAA2E;IAC3E,aAAa,CAAC,EAAE,iBAAiB,CAAC,eAAe,CAAC,CAAC;IACnD;;;OAGG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/form/HeaderActions/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,YAAY,EAAE,gBAAgB,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC"}
|
|
@@ -82,6 +82,10 @@ export declare const Dashboard: {
|
|
|
82
82
|
({ children }: import("./Dashboard.types").DashboardActionProps): React.JSX.Element;
|
|
83
83
|
displayName: string;
|
|
84
84
|
};
|
|
85
|
+
Actions: {
|
|
86
|
+
({ actions, moreLabel, collapseBelow, }: import("./Dashboard.types").DashboardActionsProps): React.JSX.Element;
|
|
87
|
+
displayName: string;
|
|
88
|
+
};
|
|
85
89
|
Filters: {
|
|
86
90
|
({ children, className }: DashboardFiltersProps): React.JSX.Element;
|
|
87
91
|
displayName: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Dashboard.d.ts","sourceRoot":"","sources":["../../../../../src/components/layout/Dashboard/Dashboard.tsx"],"names":[],"mappings":"AAaA,OAAO,KAA4B,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"Dashboard.d.ts","sourceRoot":"","sources":["../../../../../src/components/layout/Dashboard/Dashboard.tsx"],"names":[],"mappings":"AAaA,OAAO,KAA4B,MAAM,OAAO,CAAC;AAYjD,OAAO,KAAK,EACV,kBAAkB,EAClB,wBAAwB,EACxB,qBAAqB,EACrB,oBAAoB,EACpB,yBAAyB,EACzB,cAAc,EACf,MAAM,mBAAmB,CAAC;AAE3B;;;;GAIG;AACH,QAAA,MAAM,UAAU,sDAAuD,CAAC;AACxE,sEAAsE;AACtE,MAAM,MAAM,aAAa,GAAG,CAAC,OAAO,UAAU,CAAC,CAAC,MAAM,CAAC,CAAC;AAKxD;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,iBAAiB,CAAC,CAAC,EAAE,SAAS,EAAE,CAAC,EAAE,IAAI,EAAE,aAAa,GAAG,CAAC,CAGzE;AAwBD;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,eAAO,MAAM,SAAS;uFAMnB,cAAc,GAAG,KAAK,CAAC,GAAG,CAAC,OAAO;;;4CA6ClC,wBAAwB,GAAG,KAAK,CAAC,GAAG,CAAC,OAAO;;;;yCAkDU,oBAAoB,GAAG,KAAK,CAAC,GAAG,CAAC,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kCAuB9C,qBAAqB,GAAG,KAAK,CAAC,GAAG,CAAC,OAAO;;;;8BAyBxB,yBAAyB,GAAG,KAAK,CAAC,GAAG,CAAC,OAAO;;;;kCA6BjE,kBAAkB,GAAG,KAAK,CAAC,GAAG,CAAC,OAAO;;;CA3IrF,CAAC"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { ElementType, ReactNode } from 'react';
|
|
2
|
+
import type { HeaderActionsProps } from '../../form/HeaderActions';
|
|
2
3
|
/** A single breadcrumb entry for `<Dashboard.Breadcrumb>`. */
|
|
3
4
|
export interface DashboardBreadcrumbItem {
|
|
4
5
|
/** Visible label. */
|
|
@@ -123,6 +124,15 @@ export interface DashboardExportProps {
|
|
|
123
124
|
export interface DashboardActionProps {
|
|
124
125
|
children: ReactNode;
|
|
125
126
|
}
|
|
127
|
+
/**
|
|
128
|
+
* Props for `<Dashboard.Actions>` — the header's actions DECLARED, rather than
|
|
129
|
+
* composed one `<Dashboard.Action>` at a time.
|
|
130
|
+
*
|
|
131
|
+
* `testIdPrefix` is not among them: the Dashboard already has one, from its
|
|
132
|
+
* root, and letting the part carry a second would give one page two answers to
|
|
133
|
+
* "what is this header called".
|
|
134
|
+
*/
|
|
135
|
+
export type DashboardActionsProps = Omit<HeaderActionsProps, 'testIdPrefix'>;
|
|
126
136
|
/** Props for `<Dashboard.Filters>` — the collapsible search/filter region. */
|
|
127
137
|
export interface DashboardFiltersProps {
|
|
128
138
|
/** Filter controls (search input, pills, `<Dashboard.MoreFilters>`, …). */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Dashboard.types.d.ts","sourceRoot":"","sources":["../../../../../src/components/layout/Dashboard/Dashboard.types.ts"],"names":[],"mappings":"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"}
|
|
1
|
+
{"version":3,"file":"Dashboard.types.d.ts","sourceRoot":"","sources":["../../../../../src/components/layout/Dashboard/Dashboard.types.ts"],"names":[],"mappings":"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"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import type { DashboardActionProps, DashboardExportProps, DashboardFilterToggleProps, DashboardInfoProps, DashboardSettingsProps } from './Dashboard.types';
|
|
2
|
+
import type { DashboardActionProps, DashboardActionsProps, DashboardExportProps, DashboardFilterToggleProps, DashboardInfoProps, DashboardSettingsProps } from './Dashboard.types';
|
|
3
3
|
/** Flexible spacer — everything composed after it is pushed to the right. */
|
|
4
4
|
export declare const DashboardSpacer: {
|
|
5
5
|
(): React.JSX.Element;
|
|
@@ -25,4 +25,25 @@ export declare const DashboardAction: {
|
|
|
25
25
|
({ children }: DashboardActionProps): React.JSX.Element;
|
|
26
26
|
displayName: string;
|
|
27
27
|
};
|
|
28
|
+
/**
|
|
29
|
+
* The header's actions, declared as a LIST — `<Dashboard.Action>`'s plural.
|
|
30
|
+
*
|
|
31
|
+
* `<Dashboard.Action>` is a slot: it renders whatever you hand it, once per
|
|
32
|
+
* action, and a page with five of them draws five equally-loud buttons. That is
|
|
33
|
+
* the right primitive for one button and the wrong one for five, and the pages
|
|
34
|
+
* here that grew a fifth action all grew it the same way — by adding a fifth
|
|
35
|
+
* slot, because the slot was the only thing on offer.
|
|
36
|
+
*
|
|
37
|
+
* This part answers the question the slot cannot: given N actions, how many
|
|
38
|
+
* belong on the bar? See {@link HeaderActions} for the rule (0 ⇒ nothing,
|
|
39
|
+
* 1 ⇒ a button, n ⇒ a button and a menu of the rest).
|
|
40
|
+
*
|
|
41
|
+
* Both stay. A header still composes `<Dashboard.Action>` for the one control
|
|
42
|
+
* that is not an action at all — a link, a toggle, a status pill — and reaches
|
|
43
|
+
* for this when it has actions to rank.
|
|
44
|
+
*/
|
|
45
|
+
export declare const DashboardActions: {
|
|
46
|
+
({ actions, moreLabel, collapseBelow, }: DashboardActionsProps): React.JSX.Element;
|
|
47
|
+
displayName: string;
|
|
48
|
+
};
|
|
28
49
|
//# sourceMappingURL=DashboardParts.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DashboardParts.d.ts","sourceRoot":"","sources":["../../../../../src/components/layout/Dashboard/DashboardParts.tsx"],"names":[],"mappings":"AAmBA,OAAO,KAAmB,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"DashboardParts.d.ts","sourceRoot":"","sources":["../../../../../src/components/layout/Dashboard/DashboardParts.tsx"],"names":[],"mappings":"AAmBA,OAAO,KAAmB,MAAM,OAAO,CAAC;AAKxC,OAAO,KAAK,EACV,oBAAoB,EACpB,qBAAqB,EAErB,oBAAoB,EACpB,0BAA0B,EAC1B,kBAAkB,EAClB,sBAAsB,EACvB,MAAM,mBAAmB,CAAC;AAE3B,6EAA6E;AAC7E,eAAO,MAAM,eAAe;QAAO,KAAK,CAAC,GAAG,CAAC,OAAO;;CAAwC,CAAC;AAG7F,eAAO,MAAM,aAAa;sCAIvB,kBAAkB,GAAG,KAAK,CAAC,GAAG,CAAC,OAAO;;CAkCxC,CAAC;AAGF,eAAO,MAAM,qBAAqB;oBAAmB,0BAA0B,GAAG,KAAK,CAAC,GAAG,CAAC,OAAO;;CAmBlG,CAAC;AAGF,eAAO,MAAM,iBAAiB;uEAO3B,sBAAsB,GAAG,KAAK,CAAC,GAAG,CAAC,OAAO;;CAiD5C,CAAC;AASF,eAAO,MAAM,eAAe;oCAIzB,oBAAoB,GAAG,KAAK,CAAC,GAAG,CAAC,OAAO;;CAiC1C,CAAC;AAGF,eAAO,MAAM,eAAe;mBAAkB,oBAAoB,GAAG,KAAK,CAAC,GAAG,CAAC,OAAO;;CAErF,CAAC;AAGF;;;;;;;;;;;;;;;;GAgBG;AACH,eAAO,MAAM,gBAAgB;6CAI1B,qBAAqB,GAAG,KAAK,CAAC,GAAG,CAAC,OAAO;;CAU3C,CAAC"}
|
|
@@ -2,5 +2,5 @@ export { Dashboard, markDashboardSlot } from './Dashboard';
|
|
|
2
2
|
export type { DashboardSlot } from './Dashboard';
|
|
3
3
|
export { DashboardContext, useDashboardContext } from './DashboardContext';
|
|
4
4
|
export type { DashboardContextValue } from './DashboardContext';
|
|
5
|
-
export type { DashboardActionProps, DashboardBodyProps, DashboardBreadcrumbItem, DashboardBreadcrumbProps, DashboardExportFormat, DashboardExportProps, DashboardFiltersProps, DashboardFilterToggleProps, DashboardHeaderProps, DashboardInfoProps, DashboardMoreFiltersProps, DashboardProps, DashboardSettingsProps, } from './Dashboard.types';
|
|
5
|
+
export type { DashboardActionProps, DashboardActionsProps, DashboardBodyProps, DashboardBreadcrumbItem, DashboardBreadcrumbProps, DashboardExportFormat, DashboardExportProps, DashboardFiltersProps, DashboardFilterToggleProps, DashboardHeaderProps, DashboardInfoProps, DashboardMoreFiltersProps, DashboardProps, DashboardSettingsProps, } from './Dashboard.types';
|
|
6
6
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/layout/Dashboard/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AAC3D,YAAY,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AACjD,OAAO,EAAE,gBAAgB,EAAE,mBAAmB,EAAE,MAAM,oBAAoB,CAAC;AAC3E,YAAY,EAAE,qBAAqB,EAAE,MAAM,oBAAoB,CAAC;AAChE,YAAY,EACV,oBAAoB,EACpB,kBAAkB,EAClB,uBAAuB,EACvB,wBAAwB,EACxB,qBAAqB,EACrB,oBAAoB,EACpB,qBAAqB,EACrB,0BAA0B,EAC1B,oBAAoB,EACpB,kBAAkB,EAClB,yBAAyB,EACzB,cAAc,EACd,sBAAsB,GACvB,MAAM,mBAAmB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/layout/Dashboard/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AAC3D,YAAY,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AACjD,OAAO,EAAE,gBAAgB,EAAE,mBAAmB,EAAE,MAAM,oBAAoB,CAAC;AAC3E,YAAY,EAAE,qBAAqB,EAAE,MAAM,oBAAoB,CAAC;AAChE,YAAY,EACV,oBAAoB,EACpB,qBAAqB,EACrB,kBAAkB,EAClB,uBAAuB,EACvB,wBAAwB,EACxB,qBAAqB,EACrB,oBAAoB,EACpB,qBAAqB,EACrB,0BAA0B,EAC1B,oBAAoB,EACpB,kBAAkB,EAClB,yBAAyB,EACzB,cAAc,EACd,sBAAsB,GACvB,MAAM,mBAAmB,CAAC"}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import "../chunk-3QQVEYOR.js";
|
|
2
2
|
import {
|
|
3
3
|
InstallPrompt
|
|
4
|
-
} from "../chunk-
|
|
4
|
+
} from "../chunk-5ZOJLYD2.js";
|
|
5
|
+
import "../chunk-GY62N32G.js";
|
|
5
6
|
import {
|
|
6
7
|
usePwaInstall
|
|
7
8
|
} from "../chunk-5GMHJ7Y5.js";
|
|
@@ -13,7 +14,6 @@ import {
|
|
|
13
14
|
readPwaInstallStash,
|
|
14
15
|
resetPwaInstallStash
|
|
15
16
|
} from "../chunk-UUL44SUX.js";
|
|
16
|
-
import "../chunk-GY62N32G.js";
|
|
17
17
|
import "../chunk-PZ5AY32C.js";
|
|
18
18
|
export {
|
|
19
19
|
InstallPrompt,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@12-apps/ui",
|
|
3
|
-
"version": "6.
|
|
3
|
+
"version": "6.15.0",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"packageManager": "pnpm@10.34.5",
|
|
6
6
|
"type": "module",
|
|
@@ -312,6 +312,10 @@
|
|
|
312
312
|
"types": "./dist/types/components/form/Form/index.d.ts",
|
|
313
313
|
"default": "./dist/form/Form.js"
|
|
314
314
|
},
|
|
315
|
+
"./form/HeaderActions": {
|
|
316
|
+
"types": "./dist/types/components/form/HeaderActions/index.d.ts",
|
|
317
|
+
"default": "./dist/form/HeaderActions.js"
|
|
318
|
+
},
|
|
315
319
|
"./form/HeaderButton": {
|
|
316
320
|
"types": "./dist/types/components/form/HeaderButton/index.d.ts",
|
|
317
321
|
"default": "./dist/form/HeaderButton.js"
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
# HeaderActions
|
|
2
|
+
|
|
3
|
+
The page header's actions as ONE control, sized to how many there are.
|
|
4
|
+
|
|
5
|
+
```tsx
|
|
6
|
+
import { HeaderActions } from '@12-apps/ui/form/HeaderActions';
|
|
7
|
+
|
|
8
|
+
<HeaderActions
|
|
9
|
+
moreLabel={copy.moreActions}
|
|
10
|
+
actions={[
|
|
11
|
+
{ id: 'new-product', text: 'Novo produto', icon: <AddIcon fontSize="small" />, onClick: onCreate },
|
|
12
|
+
{ id: 'order-highlights', text: 'Ordenar destaques', icon: <ListIcon fontSize="small" />, onClick: onOrder },
|
|
13
|
+
{ id: 'export-sheet', text: 'Exportar planilha', icon: <DownloadIcon fontSize="small" />, onClick: onExport },
|
|
14
|
+
canImport && { id: 'import-sheet', text: 'Importar planilha', icon: <UploadIcon fontSize="small" />, onClick: onImport },
|
|
15
|
+
]}
|
|
16
|
+
/>
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
| actions | renders |
|
|
20
|
+
| --- | --- |
|
|
21
|
+
| 0 | nothing at all — not an empty box, and not a menu with no items |
|
|
22
|
+
| 1 | that action, as an ordinary `HeaderButton` |
|
|
23
|
+
| n | the FIRST as a button; the other n−1 inside one dropdown |
|
|
24
|
+
|
|
25
|
+
## The array is in priority order
|
|
26
|
+
|
|
27
|
+
Index 0 is the action that keeps its button, so the order you declare is the
|
|
28
|
+
ranking you get. Put the thing the page is FOR first — "Novo produto" on a
|
|
29
|
+
catalog — and everything the merchant reaches for monthly after it.
|
|
30
|
+
|
|
31
|
+
## Falsy entries are dropped
|
|
32
|
+
|
|
33
|
+
`[edit, canDelete && del]` is a legal array, and so is
|
|
34
|
+
`{ …, visible: false }`. Both mean the same thing and both keep the gate at the
|
|
35
|
+
call site, where a reader can see WHY an action is missing, instead of in an
|
|
36
|
+
array built somewhere above.
|
|
37
|
+
|
|
38
|
+
## Test ids survive the overflow
|
|
39
|
+
|
|
40
|
+
An action that moves into the menu keeps its `dataTestId` (falling back to its
|
|
41
|
+
`id`) on the `MenuItem`. Adding a fifth action to a header must not silently
|
|
42
|
+
break the suite of the action it pushed out.
|
|
43
|
+
|
|
44
|
+
The overflow trigger and its menu take their ids from `testIdPrefix`
|
|
45
|
+
(`header-actions` by default): `…-more-trigger` and `…-more-menu`.
|
|
46
|
+
|
|
47
|
+
## It brings its own spacing
|
|
48
|
+
|
|
49
|
+
The component renders one `inline-flex` box, not a fragment. A fragment inherits
|
|
50
|
+
whatever gap its parent sets, and the two mounts set different ones — a
|
|
51
|
+
`Dashboard.Header` spaces its children, a `Dashboard.Action` slot does not.
|
|
52
|
+
|
|
53
|
+
## Copy
|
|
54
|
+
|
|
55
|
+
`moreLabel` is REQUIRED and has no default. This package ships no words of its
|
|
56
|
+
own, in any language — the label is also the trigger's accessible name, so a
|
|
57
|
+
default would be read out to a screen-reader user in the wrong language.
|
|
58
|
+
|
|
59
|
+
## Inside a Dashboard
|
|
60
|
+
|
|
61
|
+
`<Dashboard.Actions>` is the same component wired to the Dashboard's own
|
|
62
|
+
`testIdPrefix`; prefer it when the header is a `<Dashboard.Header>`.
|
|
63
|
+
|
|
64
|
+
```tsx
|
|
65
|
+
<Dashboard.Header title="Produtos">
|
|
66
|
+
<Dashboard.Spacer />
|
|
67
|
+
<Dashboard.Actions moreLabel={copy.moreActions} actions={actions} />
|
|
68
|
+
</Dashboard.Header>
|
|
69
|
+
```
|
|
70
|
+
|
|
71
|
+
`<Dashboard.Action>` (singular) stays for the one header control that is not an
|
|
72
|
+
action at all — a link, a toggle, a status pill.
|