@12-apps/ui 6.93.0 → 6.93.1
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 +9 -2
- package/components-guidelines.md +30 -0
- package/dist/_internal/components/data-display/AlertDialog/AlertDialog.js +2 -2
- package/dist/_internal/components/data-display/AlertDialog/AlertDialog.parts.js +9 -3
- package/dist/_internal/components/data-display/Avatar/Avatar.js +2 -2
- package/dist/_internal/components/data-display/Badge/Badge.js +2 -2
- package/dist/_internal/components/data-display/CardKit/use-remove-confirm.js +7 -7
- package/dist/_internal/components/data-display/CardKit/use-row-confirm.js +7 -7
- package/dist/_internal/components/data-display/Carousel/Carousel.js +3 -3
- 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/DataViews/DataViewsGrid.js +31 -31
- package/dist/_internal/components/data-display/DataViews/DataViewsTableBase.js +42 -42
- package/dist/_internal/components/data-display/DataViews/ManageViewsDialog.js +7 -7
- package/dist/_internal/components/data-display/DataViews/base-list-card-geometry.js +2 -2
- package/dist/_internal/components/data-display/DataViews/base-list-card-layout.js +2 -2
- package/dist/_internal/components/data-display/DataViews/base-list-card-slots.js +2 -2
- package/dist/_internal/components/data-display/DataViews/base-list-card.js +5 -5
- 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 +6 -6
- package/dist/_internal/components/data-display/DataViews/data-views-grid-bodies.js +5 -5
- package/dist/_internal/components/data-display/DataViews/data-views-grid-parts.js +26 -26
- package/dist/_internal/components/data-display/DataViews/data-views-inline-bar.js +8 -8
- 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-range-bounds.js +3 -3
- package/dist/_internal/components/data-display/DataViews/data-views-range-pill.js +5 -5
- 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 +7 -7
- 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 +6 -6
- 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 +3 -3
- package/dist/_internal/components/data-display/DayRuler/DayRuler.footer.js +25 -0
- package/dist/_internal/components/data-display/DayRuler/DayRuler.footer.js.map +1 -0
- package/dist/_internal/components/data-display/DayRuler/DayRuler.footer.styles.js +23 -0
- package/dist/_internal/components/data-display/DayRuler/DayRuler.footer.styles.js.map +1 -0
- package/dist/_internal/components/data-display/DayRuler/DayRuler.js +14 -12
- package/dist/_internal/components/data-display/DayRuler/DayRuler.keyboard.js +3 -3
- package/dist/_internal/components/data-display/DayRuler/DayRuler.metrics.js +1 -1
- package/dist/_internal/components/data-display/DayRuler/DayRuler.parts.js +12 -15
- package/dist/_internal/components/data-display/DayRuler/DayRuler.styles.js +3 -11
- package/dist/_internal/components/data-display/DayRuler/day-ruler-model.js +5 -1
- package/dist/_internal/components/data-display/DayRuler/useRulerDrag.js +3 -3
- package/dist/_internal/components/data-display/DayRuler/useTextFits.js +4 -3
- package/dist/_internal/components/data-display/ScheduleGrid/ScheduleGrid.js +6 -6
- package/dist/_internal/components/data-display/ScheduleGrid/ScheduleGrid.parts.js +5 -5
- package/dist/_internal/components/data-display/ScheduleGrid/ScheduleGrid.styles.js +2 -2
- package/dist/_internal/components/data-display/ScheduleGrid/ScheduleNameCell.js +3 -3
- package/dist/_internal/components/data-display/ScheduleGrid/schedule-name.styles.js +2 -2
- package/dist/_internal/components/data-display/ScheduleGrid/schedule-tones.js +3 -1
- package/dist/_internal/components/data-display/index.js +38 -36
- package/dist/_internal/components/feedback/ConfirmAction/ConfirmAction.js +4 -4
- package/dist/_internal/components/feedback/ConfirmAction/ConfirmAction.parts.js +3 -3
- package/dist/_internal/components/feedback/ConfirmAction/ConfirmButton.js +5 -5
- package/dist/_internal/components/feedback/ConfirmAction/with-confirmation.js +4 -4
- package/dist/_internal/components/feedback/index.js +6 -6
- package/dist/_internal/components/index.js +49 -47
- package/dist/_internal/components/navigation/SectionNav/SectionNav.bar.js +6 -6
- package/dist/_internal/components/navigation/SectionNav/SectionNav.js +9 -9
- package/dist/_internal/components/navigation/SectionNav/SectionNav.parts.js +3 -3
- package/dist/_internal/components/navigation/SectionNav/SectionNav.primary.js +4 -4
- package/dist/_internal/components/navigation/SectionNav/SectionNav.rail.js +5 -5
- package/dist/_internal/components/navigation/SectionNav/SectionNav.railCreate.js +4 -4
- package/dist/_internal/components/navigation/SectionNav/SectionNav.sheet.js +4 -4
- package/dist/_internal/components/navigation/index.js +9 -9
- package/dist/_internal/user-avatar/user-avatar.js +3 -3
- package/dist/charts.js +13 -13
- package/dist/{chunk-LDCZPZPD.js → chunk-24HHUCWB.js} +2 -2
- package/dist/{chunk-7ZQ3KQ7J.js → chunk-273OLFJD.js} +16 -6
- package/dist/chunk-273OLFJD.js.map +1 -0
- package/dist/{chunk-FAUNQ3FS.js → chunk-2M3W6ACW.js} +3 -3
- package/dist/{chunk-ALOEOGQV.js → chunk-3TZUZXY5.js} +2 -2
- package/dist/{chunk-4HK4FVMV.js → chunk-3UAHDLKH.js} +7 -1
- package/dist/{chunk-4HK4FVMV.js.map → chunk-3UAHDLKH.js.map} +1 -1
- package/dist/{chunk-F5H3WDG7.js → chunk-4E2RQOSQ.js} +2 -2
- package/dist/{chunk-JIEVKHOH.js → chunk-4J62V5OE.js} +6 -6
- package/dist/{chunk-OJZLFFG4.js → chunk-5AZEDQXX.js} +59 -70
- package/dist/chunk-5AZEDQXX.js.map +1 -0
- package/dist/{chunk-CZVAVX5L.js → chunk-6ATXOJVQ.js} +2 -2
- package/dist/{chunk-E2UOEI7N.js → chunk-6LGKJVOA.js} +2 -2
- package/dist/{chunk-XBWW3QSI.js → chunk-7WE432RQ.js} +9 -9
- package/dist/{chunk-5357QUVE.js → chunk-AMLHEKSV.js} +5 -5
- package/dist/{chunk-HSVSU7I2.js → chunk-ASEHJIIV.js} +3 -3
- package/dist/{chunk-FYUNROLW.js → chunk-BZYLTGOE.js} +2 -2
- package/dist/{chunk-TZ44F6W7.js → chunk-CGS2LQE5.js} +2 -2
- package/dist/{chunk-KPUUHAK6.js → chunk-CWXX5JR3.js} +11 -9
- package/dist/chunk-CWXX5JR3.js.map +1 -0
- package/dist/{chunk-6HXNFNOB.js → chunk-EE6DJPB7.js} +4 -4
- package/dist/{chunk-OM6ZT64U.js → chunk-F2UP5ZF4.js} +3 -3
- package/dist/{chunk-P53ANKZV.js → chunk-F7LBTMCA.js} +4 -4
- package/dist/{chunk-6HPVCDVU.js → chunk-FGZIEZEP.js} +69 -112
- package/dist/chunk-FGZIEZEP.js.map +1 -0
- package/dist/{chunk-IWSTMVCA.js → chunk-FKS2PNJF.js} +8 -8
- package/dist/{chunk-3WYEENUH.js → chunk-FPNVOB52.js} +7 -7
- package/dist/{chunk-E73C73UD.js → chunk-FYSS2PYA.js} +3 -3
- package/dist/{chunk-N557OEZR.js → chunk-G6NMSBSQ.js} +2 -2
- package/dist/{chunk-A5OERY43.js → chunk-GARM5SX6.js} +2 -2
- package/dist/{chunk-WJMSND5Q.js → chunk-GXGHEOWC.js} +2 -2
- package/dist/{chunk-U2SAW6DH.js → chunk-GY53SDVL.js} +4 -4
- package/dist/{chunk-MFX4ASX5.js → chunk-HWZETMO4.js} +3 -3
- package/dist/{chunk-MM3QESLI.js → chunk-ILJ3FXIC.js} +2 -2
- package/dist/{chunk-K6VEN5VN.js → chunk-K3PMMW23.js} +4 -4
- package/dist/{chunk-T5RFH2T5.js → chunk-KOGJBAFI.js} +2 -2
- package/dist/{chunk-COK65GX2.js → chunk-KURE5R7Z.js} +12 -2
- package/dist/chunk-KURE5R7Z.js.map +1 -0
- package/dist/{chunk-MAYAJXO6.js → chunk-KXDLLS62.js} +5 -5
- package/dist/{chunk-LE5JYNR7.js → chunk-L5CAHQIN.js} +23 -2
- package/dist/chunk-L5CAHQIN.js.map +1 -0
- package/dist/{chunk-DBI6AMNY.js → chunk-LKWXU6NH.js} +4 -4
- package/dist/chunk-MPVH2GM5.js +83 -0
- package/dist/chunk-MPVH2GM5.js.map +1 -0
- package/dist/{chunk-6DO672AG.js → chunk-N5PVD4J5.js} +7 -7
- package/dist/{chunk-ZYZPSBNQ.js → chunk-OGSTMHT6.js} +22 -7
- package/dist/chunk-OGSTMHT6.js.map +1 -0
- package/dist/{chunk-R52N5UCS.js → chunk-SB2SEGR6.js} +2 -2
- package/dist/{chunk-Z2WZDVGG.js → chunk-SI5SKX52.js} +2 -2
- package/dist/{chunk-RYJ6XGFA.js → chunk-SJAOQGQI.js} +2 -2
- package/dist/{chunk-D7R6SRJB.js → chunk-SKQPUAMK.js} +3 -3
- package/dist/{chunk-AMIUZRDQ.js → chunk-SNWCT6JN.js} +3 -3
- package/dist/{chunk-7W5X3KQ2.js → chunk-SW7JCF4Z.js} +2 -2
- package/dist/{chunk-BNBWUXT3.js → chunk-TE6HAWDM.js} +2 -2
- package/dist/{chunk-JG733RMP.js → chunk-TZC6KIK2.js} +5 -5
- package/dist/{chunk-4QGKR65P.js → chunk-U4Z6GZDW.js} +5 -5
- package/dist/{chunk-XFZDO2KB.js → chunk-UIIHUWOV.js} +13 -13
- package/dist/{chunk-L4V7FZJI.js → chunk-UKUGSU3Y.js} +2 -2
- package/dist/{chunk-VJIJCLUX.js → chunk-UOKXYV3U.js} +2 -2
- package/dist/{chunk-K7IDOTSU.js → chunk-VNMD6BA4.js} +2 -2
- package/dist/chunk-WG7CAT5D.js +65 -0
- package/dist/chunk-WG7CAT5D.js.map +1 -0
- package/dist/chunk-WSSD7H5E.js +52 -0
- package/dist/chunk-WSSD7H5E.js.map +1 -0
- package/dist/{chunk-DTZOP4ZR.js → chunk-XCUHGPPZ.js} +2 -2
- package/dist/{chunk-3YFDGFEK.js → chunk-Y7BOP7VZ.js} +2 -2
- package/dist/{chunk-XNAI7QGU.js → chunk-ZM6FJCWS.js} +4 -4
- package/dist/{chunk-FC7UCFFA.js → chunk-ZPWPA6FR.js} +8 -8
- package/dist/data-display/AlertDialog.js +2 -2
- package/dist/data-display/Avatar.js +2 -2
- package/dist/data-display/Badge.js +2 -2
- package/dist/data-display/CardKit.js +10 -10
- package/dist/data-display/Carousel.js +3 -3
- package/dist/data-display/Chart.js +13 -13
- package/dist/data-display/DataViews.js +56 -56
- package/dist/data-display/DayRuler.js +14 -12
- package/dist/data-display/ScheduleGrid.js +6 -6
- package/dist/feedback/ConfirmAction.js +6 -6
- package/dist/navigation/SectionNav.js +9 -9
- package/dist/types/components/data-display/AlertDialog/AlertDialog.d.ts.map +1 -1
- package/dist/types/components/data-display/AlertDialog/AlertDialog.parts.d.ts +11 -0
- package/dist/types/components/data-display/AlertDialog/AlertDialog.parts.d.ts.map +1 -1
- package/dist/types/components/data-display/DayRuler/DayRuler.d.ts.map +1 -1
- package/dist/types/components/data-display/DayRuler/DayRuler.footer.d.ts +16 -0
- package/dist/types/components/data-display/DayRuler/DayRuler.footer.d.ts.map +1 -0
- package/dist/types/components/data-display/DayRuler/DayRuler.footer.styles.d.ts +18 -0
- package/dist/types/components/data-display/DayRuler/DayRuler.footer.styles.d.ts.map +1 -0
- package/dist/types/components/data-display/DayRuler/DayRuler.metrics.d.ts +15 -5
- package/dist/types/components/data-display/DayRuler/DayRuler.metrics.d.ts.map +1 -1
- package/dist/types/components/data-display/DayRuler/DayRuler.parts.d.ts +13 -14
- package/dist/types/components/data-display/DayRuler/DayRuler.parts.d.ts.map +1 -1
- package/dist/types/components/data-display/DayRuler/DayRuler.styles.d.ts +20 -23
- package/dist/types/components/data-display/DayRuler/DayRuler.styles.d.ts.map +1 -1
- package/dist/types/components/data-display/DayRuler/DayRuler.types.d.ts +13 -3
- package/dist/types/components/data-display/DayRuler/DayRuler.types.d.ts.map +1 -1
- package/dist/types/components/data-display/DayRuler/day-ruler-model.d.ts +27 -0
- package/dist/types/components/data-display/DayRuler/day-ruler-model.d.ts.map +1 -1
- package/dist/types/components/data-display/DayRuler/useTextFits.d.ts +11 -9
- package/dist/types/components/data-display/DayRuler/useTextFits.d.ts.map +1 -1
- package/dist/types/components/data-display/ScheduleGrid/schedule-tones.d.ts +8 -0
- package/dist/types/components/data-display/ScheduleGrid/schedule-tones.d.ts.map +1 -1
- package/dist/user-avatar.js +3 -3
- package/package.json +1 -1
- package/src/components/data-display/AlertDialog/AlertDialog.md +25 -1
- package/src/components/data-display/AlertDialog/AlertDialog.parts.tsx +28 -0
- package/src/components/data-display/AlertDialog/AlertDialog.tsx +34 -5
- package/src/components/data-display/DayRuler/DayRuler.footer.styles.ts +54 -0
- package/src/components/data-display/DayRuler/DayRuler.footer.tsx +123 -0
- package/src/components/data-display/DayRuler/DayRuler.md +37 -13
- package/src/components/data-display/DayRuler/DayRuler.metrics.ts +15 -5
- package/src/components/data-display/DayRuler/DayRuler.parts.tsx +86 -155
- package/src/components/data-display/DayRuler/DayRuler.styles.ts +89 -83
- package/src/components/data-display/DayRuler/DayRuler.tsx +3 -2
- package/src/components/data-display/DayRuler/DayRuler.types.ts +13 -3
- package/src/components/data-display/DayRuler/day-ruler-model.ts +45 -0
- package/src/components/data-display/DayRuler/useTextFits.ts +68 -25
- package/src/components/data-display/ScheduleGrid/schedule-tones.ts +13 -0
- package/src/components/feedback/ConfirmAction/ConfirmAction.md +10 -0
- package/dist/chunk-6HPVCDVU.js.map +0 -1
- package/dist/chunk-7ZQ3KQ7J.js.map +0 -1
- package/dist/chunk-COK65GX2.js.map +0 -1
- package/dist/chunk-KPUUHAK6.js.map +0 -1
- package/dist/chunk-LE5JYNR7.js.map +0 -1
- package/dist/chunk-OJZLFFG4.js.map +0 -1
- package/dist/chunk-YMYJO2CZ.js +0 -32
- package/dist/chunk-YMYJO2CZ.js.map +0 -1
- package/dist/chunk-ZYZPSBNQ.js.map +0 -1
- /package/dist/{chunk-LDCZPZPD.js.map → chunk-24HHUCWB.js.map} +0 -0
- /package/dist/{chunk-FAUNQ3FS.js.map → chunk-2M3W6ACW.js.map} +0 -0
- /package/dist/{chunk-ALOEOGQV.js.map → chunk-3TZUZXY5.js.map} +0 -0
- /package/dist/{chunk-F5H3WDG7.js.map → chunk-4E2RQOSQ.js.map} +0 -0
- /package/dist/{chunk-JIEVKHOH.js.map → chunk-4J62V5OE.js.map} +0 -0
- /package/dist/{chunk-CZVAVX5L.js.map → chunk-6ATXOJVQ.js.map} +0 -0
- /package/dist/{chunk-E2UOEI7N.js.map → chunk-6LGKJVOA.js.map} +0 -0
- /package/dist/{chunk-XBWW3QSI.js.map → chunk-7WE432RQ.js.map} +0 -0
- /package/dist/{chunk-5357QUVE.js.map → chunk-AMLHEKSV.js.map} +0 -0
- /package/dist/{chunk-HSVSU7I2.js.map → chunk-ASEHJIIV.js.map} +0 -0
- /package/dist/{chunk-FYUNROLW.js.map → chunk-BZYLTGOE.js.map} +0 -0
- /package/dist/{chunk-TZ44F6W7.js.map → chunk-CGS2LQE5.js.map} +0 -0
- /package/dist/{chunk-6HXNFNOB.js.map → chunk-EE6DJPB7.js.map} +0 -0
- /package/dist/{chunk-OM6ZT64U.js.map → chunk-F2UP5ZF4.js.map} +0 -0
- /package/dist/{chunk-P53ANKZV.js.map → chunk-F7LBTMCA.js.map} +0 -0
- /package/dist/{chunk-IWSTMVCA.js.map → chunk-FKS2PNJF.js.map} +0 -0
- /package/dist/{chunk-3WYEENUH.js.map → chunk-FPNVOB52.js.map} +0 -0
- /package/dist/{chunk-E73C73UD.js.map → chunk-FYSS2PYA.js.map} +0 -0
- /package/dist/{chunk-N557OEZR.js.map → chunk-G6NMSBSQ.js.map} +0 -0
- /package/dist/{chunk-A5OERY43.js.map → chunk-GARM5SX6.js.map} +0 -0
- /package/dist/{chunk-WJMSND5Q.js.map → chunk-GXGHEOWC.js.map} +0 -0
- /package/dist/{chunk-U2SAW6DH.js.map → chunk-GY53SDVL.js.map} +0 -0
- /package/dist/{chunk-MFX4ASX5.js.map → chunk-HWZETMO4.js.map} +0 -0
- /package/dist/{chunk-MM3QESLI.js.map → chunk-ILJ3FXIC.js.map} +0 -0
- /package/dist/{chunk-K6VEN5VN.js.map → chunk-K3PMMW23.js.map} +0 -0
- /package/dist/{chunk-T5RFH2T5.js.map → chunk-KOGJBAFI.js.map} +0 -0
- /package/dist/{chunk-MAYAJXO6.js.map → chunk-KXDLLS62.js.map} +0 -0
- /package/dist/{chunk-DBI6AMNY.js.map → chunk-LKWXU6NH.js.map} +0 -0
- /package/dist/{chunk-6DO672AG.js.map → chunk-N5PVD4J5.js.map} +0 -0
- /package/dist/{chunk-R52N5UCS.js.map → chunk-SB2SEGR6.js.map} +0 -0
- /package/dist/{chunk-Z2WZDVGG.js.map → chunk-SI5SKX52.js.map} +0 -0
- /package/dist/{chunk-RYJ6XGFA.js.map → chunk-SJAOQGQI.js.map} +0 -0
- /package/dist/{chunk-D7R6SRJB.js.map → chunk-SKQPUAMK.js.map} +0 -0
- /package/dist/{chunk-AMIUZRDQ.js.map → chunk-SNWCT6JN.js.map} +0 -0
- /package/dist/{chunk-7W5X3KQ2.js.map → chunk-SW7JCF4Z.js.map} +0 -0
- /package/dist/{chunk-BNBWUXT3.js.map → chunk-TE6HAWDM.js.map} +0 -0
- /package/dist/{chunk-JG733RMP.js.map → chunk-TZC6KIK2.js.map} +0 -0
- /package/dist/{chunk-4QGKR65P.js.map → chunk-U4Z6GZDW.js.map} +0 -0
- /package/dist/{chunk-XFZDO2KB.js.map → chunk-UIIHUWOV.js.map} +0 -0
- /package/dist/{chunk-L4V7FZJI.js.map → chunk-UKUGSU3Y.js.map} +0 -0
- /package/dist/{chunk-VJIJCLUX.js.map → chunk-UOKXYV3U.js.map} +0 -0
- /package/dist/{chunk-K7IDOTSU.js.map → chunk-VNMD6BA4.js.map} +0 -0
- /package/dist/{chunk-DTZOP4ZR.js.map → chunk-XCUHGPPZ.js.map} +0 -0
- /package/dist/{chunk-3YFDGFEK.js.map → chunk-Y7BOP7VZ.js.map} +0 -0
- /package/dist/{chunk-XNAI7QGU.js.map → chunk-ZM6FJCWS.js.map} +0 -0
- /package/dist/{chunk-FC7UCFFA.js.map → chunk-ZPWPA6FR.js.map} +0 -0
|
@@ -1,27 +1,27 @@
|
|
|
1
1
|
import "../chunk-R26KYJHK.js";
|
|
2
2
|
import {
|
|
3
3
|
SectionNav
|
|
4
|
-
} from "../chunk-
|
|
5
|
-
import "../chunk-
|
|
6
|
-
import "../chunk-
|
|
4
|
+
} from "../chunk-2M3W6ACW.js";
|
|
5
|
+
import "../chunk-SNWCT6JN.js";
|
|
6
|
+
import "../chunk-ILJ3FXIC.js";
|
|
7
7
|
import {
|
|
8
8
|
sectionNavBarInset
|
|
9
|
-
} from "../chunk-
|
|
10
|
-
import "../chunk-
|
|
9
|
+
} from "../chunk-F7LBTMCA.js";
|
|
10
|
+
import "../chunk-XCUHGPPZ.js";
|
|
11
11
|
import {
|
|
12
12
|
RaisedActionButton
|
|
13
|
-
} from "../chunk-
|
|
14
|
-
import "../chunk-
|
|
13
|
+
} from "../chunk-UKUGSU3Y.js";
|
|
14
|
+
import "../chunk-24HHUCWB.js";
|
|
15
15
|
import "../chunk-YCCWJ5XQ.js";
|
|
16
16
|
import "../chunk-TMSWLFL4.js";
|
|
17
17
|
import "../chunk-UYKIUUWP.js";
|
|
18
18
|
import "../chunk-PUFA7FQ7.js";
|
|
19
19
|
import "../chunk-5AK2EZG5.js";
|
|
20
|
-
import "../chunk-
|
|
20
|
+
import "../chunk-N5PVD4J5.js";
|
|
21
|
+
import "../chunk-6C5D6O3D.js";
|
|
21
22
|
import "../chunk-ZNCYCE7L.js";
|
|
22
23
|
import "../chunk-2L3VRVRE.js";
|
|
23
24
|
import "../chunk-BJE3XHD4.js";
|
|
24
|
-
import "../chunk-6C5D6O3D.js";
|
|
25
25
|
import "../chunk-3UIDKLML.js";
|
|
26
26
|
import "../chunk-PYC4CWCQ.js";
|
|
27
27
|
import "../chunk-XOXXG7Q5.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AlertDialog.d.ts","sourceRoot":"","sources":["../../../../../src/components/data-display/AlertDialog/AlertDialog.tsx"],"names":[],"mappings":"AAWA,OAAO,KAAK,MAAM,OAAO,CAAC;AAM1B,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;
|
|
1
|
+
{"version":3,"file":"AlertDialog.d.ts","sourceRoot":"","sources":["../../../../../src/components/data-display/AlertDialog/AlertDialog.tsx"],"names":[],"mappings":"AAWA,OAAO,KAAK,MAAM,OAAO,CAAC;AAM1B,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAmP5D,eAAO,MAAM,WAAW,sGA8EvB,CAAC"}
|
|
@@ -1,5 +1,16 @@
|
|
|
1
|
+
import type { Theme } from '@mui/material/styles/index.js';
|
|
1
2
|
import React from 'react';
|
|
2
3
|
import type { AlertDialogProps } from './AlertDialog.types';
|
|
4
|
+
/** The query container the dialog's narrow layout reads: its `.MuiDialog-container`. */
|
|
5
|
+
export declare const ALERT_DIALOG_CONTAINER = "alert-dialog";
|
|
6
|
+
/**
|
|
7
|
+
* Below this width of the space the dialog is given, it lays out for a phone:
|
|
8
|
+
* the icon above the title, the buttons each across the row. 480px covers
|
|
9
|
+
* every phone (320–430) and leaves a tablet's dialog as it was.
|
|
10
|
+
*/
|
|
11
|
+
export declare const ALERT_DIALOG_NARROW_BELOW = 480;
|
|
12
|
+
/** `@container` for a dialog given less than {@link ALERT_DIALOG_NARROW_BELOW}. Never a media query. */
|
|
13
|
+
export declare function narrowDialog(theme: Theme): string;
|
|
3
14
|
/**
|
|
4
15
|
* Action row: the optional cancel button and the (variant-coloured) confirm,
|
|
5
16
|
* with the emphasised one LAST — the primary slot, on the right or, once the
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AlertDialog.parts.d.ts","sourceRoot":"","sources":["../../../../../src/components/data-display/AlertDialog/AlertDialog.parts.tsx"],"names":[],"mappings":"AAUA,OAAO,KAAK,MAAM,OAAO,CAAC;AAK1B,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;
|
|
1
|
+
{"version":3,"file":"AlertDialog.parts.d.ts","sourceRoot":"","sources":["../../../../../src/components/data-display/AlertDialog/AlertDialog.parts.tsx"],"names":[],"mappings":"AAUA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,+BAA+B,CAAC;AAC3D,OAAO,KAAK,MAAM,OAAO,CAAC;AAK1B,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAE5D,wFAAwF;AACxF,eAAO,MAAM,sBAAsB,iBAAiB,CAAC;AAErD;;;;GAIG;AACH,eAAO,MAAM,yBAAyB,MAAM,CAAC;AAE7C,wGAAwG;AACxG,wBAAgB,YAAY,CAAC,KAAK,EAAE,KAAK,GAAG,MAAM,CAEjD;AAoGD;;;;GAIG;AACH,wBAAgB,iBAAiB,CAAC,EAChC,OAAO,EACP,UAA+C,EAC/C,WAAiD,EACjD,UAAiB,EACjB,OAAe,EACf,eAAuB,EACvB,YAAY,EACZ,QAAQ,EAAE,KAAK,EACf,QAAQ,EACR,SAAS,EACT,UAAU,GACX,EAAE,IAAI,CACL,gBAAgB,EACd,SAAS,GACT,YAAY,GACZ,aAAa,GACb,YAAY,GACZ,SAAS,GACT,iBAAiB,GACjB,cAAc,GACd,UAAU,CACb,GAAG;IACF,QAAQ,EAAE,MAAM,IAAI,CAAC;IACrB,SAAS,EAAE,MAAM,IAAI,CAAC;IACtB,UAAU,EAAE,MAAM,CAAC;CACpB,GAAG,KAAK,CAAC,YAAY,CAiDrB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DayRuler.d.ts","sourceRoot":"","sources":["../../../../../src/components/data-display/DayRuler/DayRuler.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"DayRuler.d.ts","sourceRoot":"","sources":["../../../../../src/components/data-display/DayRuler/DayRuler.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAW/B,OAAO,KAAK,EAAE,aAAa,EAAe,MAAM,kBAAkB,CAAC;AAwEnE;;;;;;;;GAQG;AACH,wBAAgB,QAAQ,CAAC,KAAK,EAAE,aAAa,GAAG,KAAK,CAAC,GAAG,CAAC,OAAO,CA4ChE"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type * as React from 'react';
|
|
2
|
+
import type { RulerScale } from './DayRuler.keyboard';
|
|
3
|
+
import type { DayRulerFooterRow } from './DayRuler.types';
|
|
4
|
+
/** The points of a trend over the hours' centres, in a 100 × 40 box: the highest value near the top, `null` breaks nothing (it is skipped). */
|
|
5
|
+
export declare function trendPoints(values: readonly (number | null)[], hours: number): string;
|
|
6
|
+
/**
|
|
7
|
+
* A group's lines under its rows (FUT-3882): counts per hour, a trend, or a
|
|
8
|
+
* sentence, on the tracks' columns. `marked` is `labels.footerMarked`.
|
|
9
|
+
*/
|
|
10
|
+
export declare function GroupFooter(props: {
|
|
11
|
+
rows: readonly DayRulerFooterRow[];
|
|
12
|
+
scale: RulerScale;
|
|
13
|
+
testId: string;
|
|
14
|
+
marked: string;
|
|
15
|
+
}): React.JSX.Element;
|
|
16
|
+
//# sourceMappingURL=DayRuler.footer.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DayRuler.footer.d.ts","sourceRoot":"","sources":["../../../../../src/components/data-display/DayRuler/DayRuler.footer.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,KAAK,MAAM,OAAO,CAAC;AAGpC,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAGtD,OAAO,KAAK,EAAsB,iBAAiB,EAAa,MAAM,kBAAkB,CAAC;AAGzF,+IAA+I;AAC/I,wBAAgB,WAAW,CAAC,MAAM,EAAE,SAAS,CAAC,MAAM,GAAG,IAAI,CAAC,EAAE,EAAE,KAAK,EAAE,MAAM,GAAG,MAAM,CAYrF;AAgFD;;;GAGG;AACH,wBAAgB,WAAW,CAAC,KAAK,EAAE;IAAE,IAAI,EAAE,SAAS,iBAAiB,EAAE,CAAC;IAAC,KAAK,EAAE,UAAU,CAAC;IAAC,MAAM,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,MAAM,CAAA;CAAE,GAAG,KAAK,CAAC,GAAG,CAAC,OAAO,CAe/I"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { SxProps, Theme } from '@mui/material/styles/index.js';
|
|
2
|
+
/**
|
|
3
|
+
* A marked footer's words (FUT-3882): the warning ink deepened until it reads
|
|
4
|
+
* at 4.5:1 on the page — `warning.main` is 3.1:1 on white. The outline keeps
|
|
5
|
+
* `warning.main`: a non-text mark needs 3:1.
|
|
6
|
+
*/
|
|
7
|
+
export declare function footerInk(theme: Theme, marked: boolean, plain: string): string;
|
|
8
|
+
/** A group's count line (FUT-3882): plain counts on the hours' columns, a marked hour outlined in the warning ink. */
|
|
9
|
+
export declare function footerCellSx(marked: boolean): SxProps<Theme>;
|
|
10
|
+
/**
|
|
11
|
+
* A footer line's sentence; when the host marks it ("Faltam 2, 20h–22h"), in
|
|
12
|
+
* the readable warning ink with a warning bar before it — a shape, so colour
|
|
13
|
+
* is never the only signal.
|
|
14
|
+
*/
|
|
15
|
+
export declare function footerNoteSx(marked: boolean): SxProps<Theme>;
|
|
16
|
+
/** A group's trend line: as tall as the coverage row, drawn in the primary colour. */
|
|
17
|
+
export declare const trendSx: SxProps<Theme>;
|
|
18
|
+
//# sourceMappingURL=DayRuler.footer.styles.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DayRuler.footer.styles.d.ts","sourceRoot":"","sources":["../../../../../src/components/data-display/DayRuler/DayRuler.footer.styles.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,KAAK,EAAE,MAAM,+BAA+B,CAAC;AAMpE;;;;GAIG;AACH,wBAAgB,SAAS,CAAC,KAAK,EAAE,KAAK,EAAE,MAAM,EAAE,OAAO,EAAE,KAAK,EAAE,MAAM,GAAG,MAAM,CAE9E;AAED,sHAAsH;AACtH,wBAAgB,YAAY,CAAC,MAAM,EAAE,OAAO,GAAG,OAAO,CAAC,KAAK,CAAC,CAc5D;AAED;;;;GAIG;AACH,wBAAgB,YAAY,CAAC,MAAM,EAAE,OAAO,GAAG,OAAO,CAAC,KAAK,CAAC,CAO5D;AAED,sFAAsF;AACtF,eAAO,MAAM,OAAO,EAAE,OAAO,CAAC,KAAK,CAMjC,CAAC"}
|
|
@@ -3,14 +3,18 @@
|
|
|
3
3
|
* 1280 and the phone rows), in px. The web reads them through `rem`/`sxRem`.
|
|
4
4
|
*/
|
|
5
5
|
export declare const DAY_RULER_METRICS: {
|
|
6
|
-
/** The name
|
|
6
|
+
/** The name column on a computer; a row's actions sit in it, under the name (FUT-3831). */
|
|
7
7
|
readonly sideColumn: 220;
|
|
8
8
|
readonly gap: 16;
|
|
9
|
+
/** Between the name (with its meta and chips) and the row's actions under it, on a computer. */
|
|
10
|
+
readonly actionsTop: 8;
|
|
9
11
|
/**
|
|
10
12
|
* Below this container width a row stacks: name and actions on top, the
|
|
11
|
-
* track under them.
|
|
12
|
-
*
|
|
13
|
-
* rounded up
|
|
13
|
+
* track under them. Measured when the actions had a 220px column of their
|
|
14
|
+
* own (two 220px side columns, their gaps and a track of at least 320px,
|
|
15
|
+
* where the hour labels every 4 hours do not collide: 792, rounded up); kept
|
|
16
|
+
* when they moved under the name (FUT-3831) so the bound every host was
|
|
17
|
+
* checked at did not move.
|
|
14
18
|
*/
|
|
15
19
|
readonly compactBelow: 800;
|
|
16
20
|
/**
|
|
@@ -26,6 +30,12 @@ export declare const DAY_RULER_METRICS: {
|
|
|
26
30
|
readonly radius: 8;
|
|
27
31
|
readonly compactRadius: 6;
|
|
28
32
|
};
|
|
33
|
+
/**
|
|
34
|
+
* `hitArea`: on a narrow ruler the invisible hit band round a bar is this
|
|
35
|
+
* tall and at least this wide, centred on the bar and cut at the midpoint to
|
|
36
|
+
* a neighbour (FUT-3831). `font` is the floor: a text that does not fit at
|
|
37
|
+
* it is not drawn, never drawn smaller.
|
|
38
|
+
*/
|
|
29
39
|
readonly block: {
|
|
30
40
|
readonly top: 4;
|
|
31
41
|
readonly height: 24;
|
|
@@ -72,7 +82,7 @@ export declare const DAY_RULER_METRICS: {
|
|
|
72
82
|
readonly ringOffset: 1;
|
|
73
83
|
/** The loading row's name bar. */
|
|
74
84
|
readonly skeletonNameRadius: 4;
|
|
75
|
-
/** Where a block's text cannot be measured, one shorter than this share of the ruler says only its start
|
|
85
|
+
/** Where a block's text cannot be measured, one shorter than this share of the ruler says only its start. */
|
|
76
86
|
readonly narrowShare: 0.3;
|
|
77
87
|
/** The shortest block a resize leaves, in hours. */
|
|
78
88
|
readonly minHours: 0.5;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DayRuler.metrics.d.ts","sourceRoot":"","sources":["../../../../../src/components/data-display/DayRuler/DayRuler.metrics.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,eAAO,MAAM,iBAAiB;IAC5B,
|
|
1
|
+
{"version":3,"file":"DayRuler.metrics.d.ts","sourceRoot":"","sources":["../../../../../src/components/data-display/DayRuler/DayRuler.metrics.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,eAAO,MAAM,iBAAiB;IAC5B,2FAA2F;;;IAG3F,gGAAgG;;IAEhG;;;;;;;OAOG;;IAEH;;;;OAIG;;;;;;;;;IAIH;;;;;OAKG;;;;;;;;;;;IAEH,iCAAiC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAWjC,kDAAkD;;IAElD,kCAAkC;;IAElC,6GAA6G;;IAE7G,oDAAoD;;;IAGpD,yDAAyD;;;;;CAEjD,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type * as React from 'react';
|
|
2
2
|
import type { RulerAbilities, RulerScale } from './DayRuler.keyboard';
|
|
3
3
|
import { type Span } from './DayRuler.styles';
|
|
4
|
-
import type { DayRulerBlock,
|
|
4
|
+
import type { DayRulerBlock, DayRulerRow, RulerHour } from './DayRuler.types';
|
|
5
5
|
import type { RulerDrag, RulerDragApi } from './useRulerDrag';
|
|
6
6
|
export declare const spanOf: (start: RulerHour, end: RulerHour, scale: RulerScale) => Span;
|
|
7
7
|
/** What every row of one ruler shares. */
|
|
@@ -17,7 +17,18 @@ export interface RowContext {
|
|
|
17
17
|
createLabel: (row: string) => string;
|
|
18
18
|
testId: string;
|
|
19
19
|
}
|
|
20
|
-
/**
|
|
20
|
+
/**
|
|
21
|
+
* Whether a node draws anything: nothing, a boolean, an empty string, an empty
|
|
22
|
+
* array and an empty fragment do not — the actions slot (and its 8px above)
|
|
23
|
+
* is rendered only for content.
|
|
24
|
+
*/
|
|
25
|
+
export declare function hasContent(node: React.ReactNode): boolean;
|
|
26
|
+
/**
|
|
27
|
+
* One person: name, meta and chips, the row's actions under them · the track.
|
|
28
|
+
* The actions live in the name's column, never a column of their own: a
|
|
29
|
+
* column reserved for one row's "Iniciar agora" left every other row a blank
|
|
30
|
+
* band, and a per-row one would have cut the hours out of line (FUT-3831).
|
|
31
|
+
*/
|
|
21
32
|
export declare function RulerRow({ row, ctx }: {
|
|
22
33
|
row: DayRulerRow;
|
|
23
34
|
ctx: RowContext;
|
|
@@ -29,18 +40,6 @@ export declare function Coverage(props: {
|
|
|
29
40
|
scale: RulerScale;
|
|
30
41
|
testId: string;
|
|
31
42
|
}): React.JSX.Element;
|
|
32
|
-
/** The points of a trend over the hours' centres, in a 100 × 40 box: the highest value near the top, `null` breaks nothing (it is skipped). */
|
|
33
|
-
export declare function trendPoints(values: readonly (number | null)[], hours: number): string;
|
|
34
|
-
/**
|
|
35
|
-
* A group's lines under its rows (FUT-3882): counts per hour, a trend, or a
|
|
36
|
-
* sentence, on the tracks' columns. `marked` is `labels.footerMarked`.
|
|
37
|
-
*/
|
|
38
|
-
export declare function GroupFooter(props: {
|
|
39
|
-
rows: readonly DayRulerFooterRow[];
|
|
40
|
-
scale: RulerScale;
|
|
41
|
-
testId: string;
|
|
42
|
-
marked: string;
|
|
43
|
-
}): React.JSX.Element;
|
|
44
43
|
/** The hour labels under the coverage row. */
|
|
45
44
|
export declare function Axis({ scale, testId }: {
|
|
46
45
|
scale: RulerScale;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DayRuler.parts.d.ts","sourceRoot":"","sources":["../../../../../src/components/data-display/DayRuler/DayRuler.parts.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,KAAK,MAAM,OAAO,CAAC;AAIpC,OAAO,KAAK,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;
|
|
1
|
+
{"version":3,"file":"DayRuler.parts.d.ts","sourceRoot":"","sources":["../../../../../src/components/data-display/DayRuler/DayRuler.parts.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,KAAK,MAAM,OAAO,CAAC;AAIpC,OAAO,KAAK,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAItE,OAAO,EAiBL,KAAK,IAAI,EACV,MAAM,mBAAmB,CAAC;AAC3B,OAAO,KAAK,EAAE,aAAa,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAC9E,OAAO,KAAK,EAAE,SAAS,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAE9D,eAAO,MAAM,MAAM,GAAI,OAAO,SAAS,EAAE,KAAK,SAAS,EAAE,OAAO,UAAU,KAAG,IAG5E,CAAC;AAEF,0CAA0C;AAC1C,MAAM,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@
|
|
|
1
1
|
import { type SxProps, type Theme } from '@mui/material/styles/index.js';
|
|
2
2
|
import type { ScheduleBlockTone } from '../ScheduleGrid/ScheduleGrid.types';
|
|
3
|
-
/** The
|
|
3
|
+
/** The ruler's root: the named container every layout query reads. */
|
|
4
|
+
export declare const rootSx: SxProps<Theme>;
|
|
4
5
|
/**
|
|
5
|
-
*
|
|
6
|
-
*
|
|
6
|
+
* Name · track: the coverage row and the axis row share these columns with
|
|
7
|
+
* every row on a computer, so the hours line up down the whole ruler.
|
|
7
8
|
*/
|
|
8
|
-
export declare function rootSx(hasActions: boolean): SxProps<Theme>;
|
|
9
|
-
/** Name · track · actions, the coverage row and the axis row share these columns on a computer. */
|
|
10
9
|
export declare const lineSx: SxProps<Theme>;
|
|
11
10
|
export declare const coverageLabelSx: SxProps<Theme>;
|
|
12
11
|
export declare function coverageSx(hours: number): SxProps<Theme>;
|
|
@@ -19,8 +18,10 @@ export declare function coverageCellSx(count: number): SxProps<Theme>;
|
|
|
19
18
|
export declare const axisSx: SxProps<Theme>;
|
|
20
19
|
export declare const groupTitleSx: SxProps<Theme>;
|
|
21
20
|
/**
|
|
22
|
-
* One person's row. A computer: name
|
|
23
|
-
*
|
|
21
|
+
* One person's row. A computer: name (its actions under it) · track, the
|
|
22
|
+
* track the same width on every row whether or not the row has actions. A
|
|
23
|
+
* narrow ruler (a phone): name and actions on top, the track under them, full
|
|
24
|
+
* width.
|
|
24
25
|
*/
|
|
25
26
|
export declare const rowSx: SxProps<Theme>;
|
|
26
27
|
export declare const whoSx: SxProps<Theme>;
|
|
@@ -37,30 +38,26 @@ export interface Span {
|
|
|
37
38
|
at: number;
|
|
38
39
|
share: number;
|
|
39
40
|
}
|
|
41
|
+
/** How far a bar's hit band may reach, in % of the track: the midpoints to its neighbours, or the track's ends. */
|
|
42
|
+
export interface HitBounds {
|
|
43
|
+
lo: number;
|
|
44
|
+
hi: number;
|
|
45
|
+
}
|
|
40
46
|
export declare function blockSx(tone: ScheduleBlockTone, span: Span, opts: {
|
|
41
47
|
selected: boolean;
|
|
42
48
|
movable: boolean;
|
|
49
|
+
hit: HitBounds;
|
|
43
50
|
}): SxProps<Theme>;
|
|
44
51
|
export declare function handleSx(side: 'l' | 'r'): SxProps<Theme>;
|
|
45
52
|
export declare function actualSx(span: Span): SxProps<Theme>;
|
|
46
53
|
export declare function actualLabelSx(left: number): SxProps<Theme>;
|
|
54
|
+
/**
|
|
55
|
+
* "Agora": drawn UNDER the blocks (before them in the track), so it never
|
|
56
|
+
* crosses a block's label — "07:30–1|3:00" at 1280 (FUT-3831). It still shows
|
|
57
|
+
* above and below each bar, where it overhangs the track, and through a
|
|
58
|
+
* block's fill where that fill is not opaque — never through its text.
|
|
59
|
+
*/
|
|
47
60
|
export declare function nowSx(left: number): SxProps<Theme>;
|
|
48
61
|
export declare const skeletonTrackSx: SxProps<Theme>;
|
|
49
62
|
export declare const skeletonNameSx: SxProps<Theme>;
|
|
50
|
-
/**
|
|
51
|
-
* A marked footer's words (FUT-3882): the warning ink deepened until it reads
|
|
52
|
-
* at 4.5:1 on the page — `warning.main` is 3.1:1 on white. The outline keeps
|
|
53
|
-
* `warning.main`: a non-text mark needs 3:1.
|
|
54
|
-
*/
|
|
55
|
-
export declare function footerInk(theme: Theme, marked: boolean, plain: string): string;
|
|
56
|
-
/** A group's count line (FUT-3882): plain counts on the hours' columns, a marked hour outlined in the warning ink. */
|
|
57
|
-
export declare function footerCellSx(marked: boolean): SxProps<Theme>;
|
|
58
|
-
/**
|
|
59
|
-
* A footer line's sentence; when the host marks it ("Faltam 2, 20h–22h"), in
|
|
60
|
-
* the readable warning ink with a warning bar before it — a shape, so colour
|
|
61
|
-
* is never the only signal.
|
|
62
|
-
*/
|
|
63
|
-
export declare function footerNoteSx(marked: boolean): SxProps<Theme>;
|
|
64
|
-
/** A group's trend line: as tall as the coverage row, drawn in the primary colour. */
|
|
65
|
-
export declare const trendSx: SxProps<Theme>;
|
|
66
63
|
//# sourceMappingURL=DayRuler.styles.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DayRuler.styles.d.ts","sourceRoot":"","sources":["../../../../../src/components/data-display/DayRuler/DayRuler.styles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAyB,KAAK,OAAO,EAAE,KAAK,KAAK,EAAE,MAAM,+BAA+B,CAAC;AAKhG,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,oCAAoC,CAAC;
|
|
1
|
+
{"version":3,"file":"DayRuler.styles.d.ts","sourceRoot":"","sources":["../../../../../src/components/data-display/DayRuler/DayRuler.styles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAyB,KAAK,OAAO,EAAE,KAAK,KAAK,EAAE,MAAM,+BAA+B,CAAC;AAKhG,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,oCAAoC,CAAC;AAM5E,sEAAsE;AACtE,eAAO,MAAM,MAAM,EAAE,OAAO,CAAC,KAAK,CAMjC,CAAC;AAYF;;;GAGG;AACH,eAAO,MAAM,MAAM,EAAE,OAAO,CAAC,KAAK,CAYhC,CAAC;AAEH,eAAO,MAAM,eAAe,EAAE,OAAO,CAAC,KAAK,CAAwD,CAAC;AAEpG,wBAAgB,UAAU,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAAC,KAAK,CAAC,CAOxD;AAED;;;GAGG;AACH,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAGtD;AAED,wBAAgB,cAAc,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAAC,KAAK,CAAC,CAoB5D;AAED,eAAO,MAAM,MAAM,EAAE,OAAO,CAAC,KAAK,CAOhC,CAAC;AAEH,eAAO,MAAM,YAAY,EAAE,OAAO,CAAC,KAAK,CASvC,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,KAAK,EAAE,OAAO,CAAC,KAAK,CAgB/B,CAAC;AAEH,eAAO,MAAM,KAAK,EAAE,OAAO,CAAC,KAAK,CAAoC,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xC,CAAC"}
|
|
@@ -11,9 +11,14 @@ export interface DayRulerBlock {
|
|
|
11
11
|
id: string;
|
|
12
12
|
start: RulerHour;
|
|
13
13
|
end: RulerHour;
|
|
14
|
-
/**
|
|
14
|
+
/**
|
|
15
|
+
* What the block says ("↻ 20:39–00:00", "Ausente"). One line, drawn whole or
|
|
16
|
+
* not at all: a bar too short for it says `shortLabel`, and one too short
|
|
17
|
+
* even for that says nothing — never a cut text (FUT-3831). Either way it
|
|
18
|
+
* stays the block's tooltip (unless `title`) and its accessible name.
|
|
19
|
+
*/
|
|
15
20
|
label: string;
|
|
16
|
-
/** What a
|
|
21
|
+
/** What a block too short for its `label` says instead, at any width — its start ("20:39"). */
|
|
17
22
|
shortLabel?: string;
|
|
18
23
|
tone: ScheduleBlockTone;
|
|
19
24
|
/** Its middle can be dragged along the row (and Alt+←/→ moves it). */
|
|
@@ -51,7 +56,12 @@ export interface DayRulerRow {
|
|
|
51
56
|
nameAdornment?: React.ReactNode;
|
|
52
57
|
/** Under the meta: the host's chips (praça, "Em pausa desde …"). One line; a chip that does not fit shrinks, its label cut. */
|
|
53
58
|
chips?: React.ReactNode;
|
|
54
|
-
/**
|
|
59
|
+
/**
|
|
60
|
+
* The row's own buttons ("Encerrar turno", "Iniciar agora"): under the name
|
|
61
|
+
* on a computer, beside it when the row stacks. They take no column of their
|
|
62
|
+
* own, so every track keeps the same width and the hours stay aligned
|
|
63
|
+
* (FUT-3831).
|
|
64
|
+
*/
|
|
55
65
|
actions?: React.ReactNode;
|
|
56
66
|
blocks: readonly DayRulerBlock[];
|
|
57
67
|
actual?: DayRulerActual;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DayRuler.types.d.ts","sourceRoot":"","sources":["../../../../../src/components/data-display/DayRuler/DayRuler.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,KAAK,MAAM,OAAO,CAAC;AAEpC,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AACxD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,oCAAoC,CAAC;AAE5E;;;GAGG;AACH,MAAM,MAAM,SAAS,GAAG,MAAM,CAAC;AAE/B,0CAA0C;AAC1C,MAAM,WAAW,aAAa;IAC5B,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,SAAS,CAAC;IACjB,GAAG,EAAE,SAAS,CAAC;IACf
|
|
1
|
+
{"version":3,"file":"DayRuler.types.d.ts","sourceRoot":"","sources":["../../../../../src/components/data-display/DayRuler/DayRuler.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,KAAK,MAAM,OAAO,CAAC;AAEpC,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AACxD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,oCAAoC,CAAC;AAE5E;;;GAGG;AACH,MAAM,MAAM,SAAS,GAAG,MAAM,CAAC;AAE/B,0CAA0C;AAC1C,MAAM,WAAW,aAAa;IAC5B,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,SAAS,CAAC;IACjB,GAAG,EAAE,SAAS,CAAC;IACf;;;;;OAKG;IACH,KAAK,EAAE,MAAM,CAAC;IACd,+FAA+F;IAC/F,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,IAAI,EAAE,iBAAiB,CAAC;IACxB,sEAAsE;IACtE,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,sFAAsF;IACtF,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,0DAA0D;IAC1D,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,+CAA+C;IAC/C,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;;;;OAKG;IACH,SAAS,CAAC,EAAE;QAAE,KAAK,EAAE,SAAS,CAAC;QAAC,GAAG,EAAE,SAAS,CAAA;KAAE,CAAC;CAClD;AAED,gEAAgE;AAChE,MAAM,WAAW,cAAc;IAC7B,KAAK,EAAE,SAAS,CAAC;I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,KAAK,EAAE,SAAS,EAAE,GAAG,EAAE,SAAS,KAAK,IAAI,CAAC;IACrE,QAAQ,CAAC,EAAE,CAAC,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,SAAS,EAAE,GAAG,EAAE,SAAS,KAAK,IAAI,CAAC;IACvE,YAAY,CAAC,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,IAAI,CAAC;IACzC,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,KAAK,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACxB,KAAK,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACxB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,4DAA4D;IAC5D,MAAM,CAAC,EAAE,OAAO,CAAC,cAAc,CAAC,CAAC;IACjC;;;;OAIG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB"}
|
|
@@ -23,4 +23,31 @@ export declare function resized(start: RulerHour, end: RulerHour, side: 'start'
|
|
|
23
23
|
export declare function createdSpan(a: RulerHour, b: RulerHour, minHours: number, createHours: number, to: RulerHour): [RulerHour, RulerHour];
|
|
24
24
|
/** The axis labels: every `step` hours from `from` to `to`, both ends included. */
|
|
25
25
|
export declare function ticksOf(from: RulerHour, to: RulerHour, step: number): RulerHour[];
|
|
26
|
+
/** A bar along the track: where it starts and how long it is, both in % of the track. */
|
|
27
|
+
export interface TrackSpan {
|
|
28
|
+
at: number;
|
|
29
|
+
share: number;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* How far each bar's hit band may reach, in % of the track (FUT-3831): from
|
|
33
|
+
* `lo` to `hi`, never past the track's ends and never past the MIDPOINT of
|
|
34
|
+
* the gap to the bar beside it, so a band widened round a short bar cannot
|
|
35
|
+
* take a tap meant for its neighbour. Two bars that touch or overlap give each
|
|
36
|
+
* other nothing: the band stays on the bar's own edge on that side.
|
|
37
|
+
*
|
|
38
|
+
* The band itself is drawn in CSS — at least the hit area wide, centred on the
|
|
39
|
+
* bar, then cut to `lo…hi` — because the bar's width in px is the layout's.
|
|
40
|
+
*/
|
|
41
|
+
export declare function hitBoundsOf(spans: readonly TrackSpan[]): {
|
|
42
|
+
lo: number;
|
|
43
|
+
hi: number;
|
|
44
|
+
}[];
|
|
45
|
+
/** What a block can say in its bar: its full text, its start, or nothing. */
|
|
46
|
+
export type BlockTextFit = 'full' | 'short' | 'none';
|
|
47
|
+
/**
|
|
48
|
+
* Which of a block's texts fits the room it leaves inside the bar, by pixels
|
|
49
|
+
* (FUT-3831): the full one, else the short one, else NOTHING — a cut "12:"
|
|
50
|
+
* says less than an empty bar whose title and accessible name carry the text.
|
|
51
|
+
*/
|
|
52
|
+
export declare function textFitOf(fullWidth: number, shortWidth: number, room: number): BlockTextFit;
|
|
26
53
|
//# sourceMappingURL=day-ruler-model.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"day-ruler-model.d.ts","sourceRoot":"","sources":["../../../../../src/components/data-display/DayRuler/day-ruler-model.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAElD;;;;GAIG;AAEH,yDAAyD;AACzD,wBAAgB,MAAM,CAAC,CAAC,EAAE,SAAS,EAAE,IAAI,EAAE,MAAM,GAAG,SAAS,CAE5D;AAED,wBAAgB,KAAK,CAAC,CAAC,EAAE,SAAS,EAAE,IAAI,EAAE,SAAS,EAAE,EAAE,EAAE,SAAS,GAAG,SAAS,CAE7E;AAED,yGAAyG;AACzG,wBAAgB,MAAM,CAAC,CAAC,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,SAAS,EAAE,EAAE,EAAE,SAAS,EAAE,IAAI,EAAE,MAAM,GAAG,SAAS,CAGtH;AAED,iEAAiE;AACjE,wBAAgB,SAAS,CAAC,CAAC,EAAE,SAAS,EAAE,IAAI,EAAE,SAAS,EAAE,EAAE,EAAE,SAAS,GAAG,MAAM,CAE9E;AAED,2CAA2C;AAC3C,wBAAgB,UAAU,CAAC,CAAC,EAAE,SAAS,GAAG,MAAM,CAK/C;AAED,qBAAqB;AACrB,wBAAgB,WAAW,CAAC,KAAK,EAAE,SAAS,EAAE,GAAG,EAAE,SAAS,GAAG,MAAM,CAEpE;AAED,4EAA4E;AAC5E,wBAAgB,KAAK,CAAC,KAAK,EAAE,SAAS,EAAE,GAAG,EAAE,SAAS,EAAE,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,SAAS,EAAE,EAAE,EAAE,SAAS,GAAG,CAAC,SAAS,EAAE,SAAS,CAAC,CAI7H;AAED,mGAAmG;AACnG,wBAAgB,OAAO,CACrB,KAAK,EAAE,SAAS,EAChB,GAAG,EAAE,SAAS,EACd,IAAI,EAAE,OAAO,GAAG,KAAK,EACrB,CAAC,EAAE,SAAS,EACZ,QAAQ,EAAE,MAAM,EAChB,IAAI,EAAE,SAAS,EACf,EAAE,EAAE,SAAS,GACZ,CAAC,SAAS,EAAE,SAAS,CAAC,CAGxB;AAED,+FAA+F;AAC/F,wBAAgB,WAAW,CACzB,CAAC,EAAE,SAAS,EACZ,CAAC,EAAE,SAAS,EACZ,QAAQ,EAAE,MAAM,EAChB,WAAW,EAAE,MAAM,EACnB,EAAE,EAAE,SAAS,GACZ,CAAC,SAAS,EAAE,SAAS,CAAC,CAKxB;AAED,mFAAmF;AACnF,wBAAgB,OAAO,CAAC,IAAI,EAAE,SAAS,EAAE,EAAE,EAAE,SAAS,EAAE,IAAI,EAAE,MAAM,GAAG,SAAS,EAAE,CAKjF"}
|
|
1
|
+
{"version":3,"file":"day-ruler-model.d.ts","sourceRoot":"","sources":["../../../../../src/components/data-display/DayRuler/day-ruler-model.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAElD;;;;GAIG;AAEH,yDAAyD;AACzD,wBAAgB,MAAM,CAAC,CAAC,EAAE,SAAS,EAAE,IAAI,EAAE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EAAE,EAAE,SAAS,GACZ,CAAC,SAAS,EAAE,SAAS,CAAC,CAKxB;AAED,mFAAmF;AACnF,wBAAgB,OAAO,CAAC,IAAI,EAAE,SAAS,EAAE,EAAE,EAAE,SAAS,EAAE,IAAI,EAAE,MAAM,GAAG,SAAS,EAAE,CAKjF;AAED,yFAAyF;AACzF,MAAM,WAAW,SAAS;IACxB,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;CACf;AAED;;;;;;;;;GASG;AACH,wBAAgB,WAAW,CAAC,KAAK,EAAE,SAAS,SAAS,EAAE,GAAG;IAAE,EAAE,EAAE,MAAM,CAAC;IAAC,EAAE,EAAE,MAAM,CAAA;CAAE,EAAE,CAYrF;AAED,6EAA6E;AAC7E,MAAM,MAAM,YAAY,GAAG,MAAM,GAAG,OAAO,GAAG,MAAM,CAAC;AAErD;;;;GAIG;AACH,wBAAgB,SAAS,CAAC,SAAS,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG,YAAY,CAK3F"}
|
|
@@ -1,14 +1,16 @@
|
|
|
1
1
|
import type * as React from 'react';
|
|
2
|
+
import { type BlockTextFit } from './day-ruler-model';
|
|
2
3
|
/**
|
|
3
|
-
*
|
|
4
|
-
* own
|
|
5
|
-
*
|
|
6
|
-
* short for
|
|
4
|
+
* Which of a block's texts fits it, by pixels (FUT-3825, FUT-3831): the full
|
|
5
|
+
* text's and the short text's own widths against the room the block leaves
|
|
6
|
+
* them. A wide block keeps "18:00–23:00"; one too short for it says its start
|
|
7
|
+
* ("18:00"); one too short even for that says nothing — never a cut "18:".
|
|
7
8
|
*
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
*
|
|
11
|
-
*
|
|
9
|
+
* Measured at once (synchronously, so nothing is painted), then again on the
|
|
10
|
+
* next frame whenever the block is resized, and once more when the page's
|
|
11
|
+
* fonts have loaded: a webfont arriving late changes every text's width, and
|
|
12
|
+
* a fit read in the fallback font would leave a label cut. Where nothing can
|
|
13
|
+
* be measured (no `ResizeObserver`) it answers `fallback`.
|
|
12
14
|
*/
|
|
13
|
-
export declare function
|
|
15
|
+
export declare function useTextFit(block: React.RefObject<HTMLElement | null>, text: string, short: string, fallback: BlockTextFit): BlockTextFit;
|
|
14
16
|
//# sourceMappingURL=useTextFits.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useTextFits.d.ts","sourceRoot":"","sources":["../../../../../src/components/data-display/DayRuler/useTextFits.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,KAAK,MAAM,OAAO,CAAC;AAGpC
|
|
1
|
+
{"version":3,"file":"useTextFits.d.ts","sourceRoot":"","sources":["../../../../../src/components/data-display/DayRuler/useTextFits.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,KAAK,MAAM,OAAO,CAAC;AAGpC,OAAO,EAAa,KAAK,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAoCjE;;;;;;;;;;;GAWG;AACH,wBAAgB,UAAU,CAAC,KAAK,EAAE,KAAK,CAAC,SAAS,CAAC,WAAW,GAAG,IAAI,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,QAAQ,EAAE,YAAY,GAAG,YAAY,CAgCxI"}
|
|
@@ -20,6 +20,14 @@ export declare function signalInk(theme: Theme, signal: 'warning' | 'success', g
|
|
|
20
20
|
* a raised chip. Never colour alone: every tone also carries its note text.
|
|
21
21
|
*/
|
|
22
22
|
export declare function blockToneStyles(theme: Theme, tone: ScheduleBlockTone, dashedPlan?: boolean): CSSObject;
|
|
23
|
+
/**
|
|
24
|
+
* An OPAQUE ground for a ruler block's label where the block's own fill is
|
|
25
|
+
* not opaque (the dashed plan's faint wash, the away / uncovered outline): the
|
|
26
|
+
* fill flattened over the cell's ground, so the label reads the same and
|
|
27
|
+
* whatever the track draws under the block — the "agora" line — never shows
|
|
28
|
+
* through the text (FUT-3831). An opaque fill needs none: `undefined`.
|
|
29
|
+
*/
|
|
30
|
+
export declare function dashedLabelGround(theme: Theme, tone: ScheduleBlockTone): string | undefined;
|
|
23
31
|
/**
|
|
24
32
|
* A break inside a block (a meal break): the page's own ground with diagonal
|
|
25
33
|
* stripes of the disabled action colour, opaque, so the block reads as CUT there in any
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schedule-tones.d.ts","sourceRoot":"","sources":["../../../../../src/components/data-display/ScheduleGrid/schedule-tones.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,+BAA+B,CAAC;AAC3D,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,+BAA+B,CAAC;AAM/D,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AAE9D,8FAA8F;AAC9F,eAAO,MAAM,kBAAkB,MAAM,CAAC;AAStC,6FAA6F;AAC7F,wBAAgB,UAAU,CAAC,KAAK,EAAE,KAAK,GAAG,MAAM,CAE/C;AAED,8GAA8G;AAC9G,wBAAgB,WAAW,CAAC,MAAM,EAAE,MAAM,EAAE,UAAU,EAAE,SAAS,MAAM,EAAE,GAAG,MAAM,CASjF;AAWD;;;;GAIG;AACH,wBAAgB,SAAS,CAAC,KAAK,EAAE,KAAK,EAAE,MAAM,EAAE,SAAS,GAAG,SAAS,EAAE,MAAM,EAAE,MAAM,GAAG,MAAM,CAG7F;AAaD;;;;;GAKG;AACH,wBAAgB,eAAe,CAAC,KAAK,EAAE,KAAK,EAAE,IAAI,EAAE,iBAAiB,EAAE,UAAU,UAAQ,GAAG,SAAS,CAoCpG;AAED;;;;;GAKG;AACH,wBAAgB,UAAU,CAAC,KAAK,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,MAAM,CAI/E;AAED,4EAA4E;AAC5E,wBAAgB,cAAc,CAAC,KAAK,EAAE,KAAK,GAAG,MAAM,CAEnD"}
|
|
1
|
+
{"version":3,"file":"schedule-tones.d.ts","sourceRoot":"","sources":["../../../../../src/components/data-display/ScheduleGrid/schedule-tones.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,+BAA+B,CAAC;AAC3D,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,+BAA+B,CAAC;AAM/D,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AAE9D,8FAA8F;AAC9F,eAAO,MAAM,kBAAkB,MAAM,CAAC;AAStC,6FAA6F;AAC7F,wBAAgB,UAAU,CAAC,KAAK,EAAE,KAAK,GAAG,MAAM,CAE/C;AAED,8GAA8G;AAC9G,wBAAgB,WAAW,CAAC,MAAM,EAAE,MAAM,EAAE,UAAU,EAAE,SAAS,MAAM,EAAE,GAAG,MAAM,CASjF;AAWD;;;;GAIG;AACH,wBAAgB,SAAS,CAAC,KAAK,EAAE,KAAK,EAAE,MAAM,EAAE,SAAS,GAAG,SAAS,EAAE,MAAM,EAAE,MAAM,GAAG,MAAM,CAG7F;AAaD;;;;;GAKG;AACH,wBAAgB,eAAe,CAAC,KAAK,EAAE,KAAK,EAAE,IAAI,EAAE,iBAAiB,EAAE,UAAU,UAAQ,GAAG,SAAS,CAoCpG;AAED;;;;;;GAMG;AACH,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,KAAK,EAAE,IAAI,EAAE,iBAAiB,GAAG,MAAM,GAAG,SAAS,CAI3F;AAED;;;;;GAKG;AACH,wBAAgB,UAAU,CAAC,KAAK,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,MAAM,CAI/E;AAED,4EAA4E;AAC5E,wBAAgB,cAAc,CAAC,KAAK,EAAE,KAAK,GAAG,MAAM,CAEnD"}
|
package/dist/user-avatar.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import {
|
|
2
2
|
UserAvatar,
|
|
3
3
|
UserMenu
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-6LGKJVOA.js";
|
|
5
5
|
import "./chunk-DQ22UKMZ.js";
|
|
6
6
|
import "./chunk-UDQSIRAP.js";
|
|
7
|
-
import "./chunk-
|
|
7
|
+
import "./chunk-4J62V5OE.js";
|
|
8
|
+
import "./chunk-3ZVUNSFF.js";
|
|
8
9
|
import "./chunk-7XSCEHGA.js";
|
|
9
10
|
import "./chunk-MTEQEPNY.js";
|
|
10
11
|
import "./chunk-6ZZGK5DT.js";
|
|
11
|
-
import "./chunk-3ZVUNSFF.js";
|
|
12
12
|
import "./chunk-VUHLNYAE.js";
|
|
13
13
|
import "./chunk-2GSIEDGN.js";
|
|
14
14
|
import "./chunk-4XBAEKQQ.js";
|
package/package.json
CHANGED
|
@@ -155,6 +155,30 @@ that fits keeps its natural widths, pushed to the right; a pair that does not
|
|
|
155
155
|
stacks, with the primary on top. With `emphasis="cancel"` the two buttons also
|
|
156
156
|
grow to share the row, so stacked they take its full width.
|
|
157
157
|
|
|
158
|
+
**Stacked order** is the library's rule ([guidelines › Stacked
|
|
159
|
+
buttons](../../../../components-guidelines.md#stacked-buttons)): the primary on
|
|
160
|
+
top, the dismissive button at the bottom — so on a destructive question the
|
|
161
|
+
verb sits above Cancel, and Cancel takes the bottom slot, the one a thumb
|
|
162
|
+
reaches first. Cancel stays FIRST in the DOM, so it is also the first to tab
|
|
163
|
+
to.
|
|
164
|
+
|
|
165
|
+
### Narrow Layout (FUT-3831)
|
|
166
|
+
|
|
167
|
+
A dialog given less than **480px** — read with a container query on its
|
|
168
|
+
`.MuiDialog-container` (named `alert-dialog`), never a media query, so a dialog
|
|
169
|
+
portalled into a narrow pane answers to the pane — lays out for a phone:
|
|
170
|
+
|
|
171
|
+
- **The icon sits above the title**, beside the close button, and the title
|
|
172
|
+
takes the paper's whole width. At 320 the icon column and the close button's
|
|
173
|
+
clearance had left a long question about two words a line. A title with no
|
|
174
|
+
icon (`icon={null}`) keeps the close button's clearance.
|
|
175
|
+
- **A pair of buttons always grows**: a pair that still fits shares the row in
|
|
176
|
+
two equal halves, and a pair that stacks is two buttons each across the row,
|
|
177
|
+
in the stacked order above — never two ragged widths pushed to the right. A
|
|
178
|
+
lone button (`showCancel={false}`) keeps its own width, pushed to the right.
|
|
179
|
+
|
|
180
|
+
Over 480px nothing changes.
|
|
181
|
+
|
|
158
182
|
### Without Cancel Button
|
|
159
183
|
|
|
160
184
|
```tsx
|
|
@@ -306,7 +330,7 @@ The AlertDialog component includes `data-testid` attributes for reliable testing
|
|
|
306
330
|
| `alert-dialog` | Dialog container | Root Dialog element (can be customized via prop) |
|
|
307
331
|
| `{dataTestId}-close-button` | Close button | X button in top-right corner |
|
|
308
332
|
| `{dataTestId}-title` | Title section | Dialog title container |
|
|
309
|
-
| `{dataTestId}-icon` | Icon wrapper | Wrapper around icon element (when icon is shown)
|
|
333
|
+
| `{dataTestId}-icon` | Icon wrapper | Wrapper around icon element (when icon is shown); carries `data-alert-icon` |
|
|
310
334
|
| `{dataTestId}-content` | Content section | Dialog content container |
|
|
311
335
|
| `{dataTestId}-description` | Description text | Main description text element |
|
|
312
336
|
| `{dataTestId}-actions` | Actions section | Dialog actions footer container |
|
|
@@ -8,6 +8,7 @@ import Button from '@mui/material/Button/index.js';
|
|
|
8
8
|
import CircularProgress from '@mui/material/CircularProgress/index.js';
|
|
9
9
|
import DialogActions from '@mui/material/DialogActions/index.js';
|
|
10
10
|
import { styled, useTheme } from '@mui/material/styles/index.js';
|
|
11
|
+
import type { Theme } from '@mui/material/styles/index.js';
|
|
11
12
|
import React from 'react';
|
|
12
13
|
|
|
13
14
|
import { rem } from '../../../tokens/relative';
|
|
@@ -15,6 +16,21 @@ import { EN_US_UI_LABELS } from '../../../en-US.labels';
|
|
|
15
16
|
|
|
16
17
|
import type { AlertDialogProps } from './AlertDialog.types';
|
|
17
18
|
|
|
19
|
+
/** The query container the dialog's narrow layout reads: its `.MuiDialog-container`. */
|
|
20
|
+
export const ALERT_DIALOG_CONTAINER = 'alert-dialog';
|
|
21
|
+
|
|
22
|
+
/**
|
|
23
|
+
* Below this width of the space the dialog is given, it lays out for a phone:
|
|
24
|
+
* the icon above the title, the buttons each across the row. 480px covers
|
|
25
|
+
* every phone (320–430) and leaves a tablet's dialog as it was.
|
|
26
|
+
*/
|
|
27
|
+
export const ALERT_DIALOG_NARROW_BELOW = 480;
|
|
28
|
+
|
|
29
|
+
/** `@container` for a dialog given less than {@link ALERT_DIALOG_NARROW_BELOW}. Never a media query. */
|
|
30
|
+
export function narrowDialog(theme: Theme): string {
|
|
31
|
+
return `@container ${ALERT_DIALOG_CONTAINER} (width < ${rem(theme, ALERT_DIALOG_NARROW_BELOW)})`;
|
|
32
|
+
}
|
|
33
|
+
|
|
18
34
|
/**
|
|
19
35
|
* The action row WRAPS WHOLE BUTTONS; it never breaks a label inside one. A pair
|
|
20
36
|
* that did not fit side by side used to squeeze the longer label onto two
|
|
@@ -29,6 +45,16 @@ import type { AlertDialogProps } from './AlertDialog.types';
|
|
|
29
45
|
* the default because growing also stretches a pair that fits, which would
|
|
30
46
|
* redraw every existing dialog's footer.
|
|
31
47
|
*
|
|
48
|
+
* Narrow (a dialog given less than {@link ALERT_DIALOG_NARROW_BELOW}, a
|
|
49
|
+
* phone) a PAIR of buttons always grows (a lone one keeps its width), so a pair that stacks is two buttons each
|
|
50
|
+
* across the row rather than two ragged widths pushed to the right
|
|
51
|
+
* (FUT-3831). The stacked ORDER is the library's rule, the platforms' too
|
|
52
|
+
* (Material's stacked dialog actions, Apple's stacked alert buttons): the
|
|
53
|
+
* primary on top and the dismissive one at the bottom, the slot a thumb
|
|
54
|
+
* reaches first — so on a destructive question the safe tap is the near one,
|
|
55
|
+
* and Cancel is still FIRST in the DOM, the tab order. See
|
|
56
|
+
* `components-guidelines.md`, "Stacked buttons".
|
|
57
|
+
*
|
|
32
58
|
* Rendered with `disableSpacing`: MUI's own spacing is a left margin on every
|
|
33
59
|
* button after the first, which would indent a button that wrapped onto a line
|
|
34
60
|
* of its own. The gaps below replace it, at the same 16px across.
|
|
@@ -44,6 +70,8 @@ const StyledDialogActions = styled(DialogActions, {
|
|
|
44
70
|
// medium button is 37px, short of it on a phone.
|
|
45
71
|
'& > .MuiButton-root': { minHeight: rem(theme, 40) },
|
|
46
72
|
...(fill && { '& > .MuiButton-root': { flexGrow: 1, minHeight: rem(theme, 40) } }),
|
|
73
|
+
// A PAIR only: a lone button (`showCancel={false}`) keeps its own width.
|
|
74
|
+
[narrowDialog(theme)]: { '& > .MuiButton-root:not(:only-child)': { flexGrow: 1 } },
|
|
47
75
|
}));
|
|
48
76
|
|
|
49
77
|
const confirmButtonColor = (variant: AlertDialogProps['variant']): 'error' | 'primary' =>
|