@12-apps/ui 6.86.1 → 6.86.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/_internal/components/data-display/AsyncStateContainer/AsyncStateContainer.js +3 -3
- package/dist/_internal/components/data-display/Avatar/Avatar.js +2 -2
- package/dist/_internal/components/data-display/CardKit/CardKebab.js +3 -3
- package/dist/_internal/components/data-display/CardKit/use-remove-confirm.js +3 -3
- package/dist/_internal/components/data-display/CardKit/use-row-confirm.js +3 -3
- package/dist/_internal/components/data-display/Carousel/Carousel.js +2 -2
- package/dist/_internal/components/data-display/Chart/Chart.js +4 -4
- package/dist/_internal/components/data-display/Chart/SpecChart.js +5 -5
- 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/Chip/Chip.js +3 -3
- package/dist/_internal/components/data-display/Chip/Chip.styles.js +2 -2
- package/dist/_internal/components/data-display/DataGrid/DataGrid.js +1 -1
- package/dist/_internal/components/data-display/DataViews/DataViewsGrid.js +28 -28
- package/dist/_internal/components/data-display/DataViews/DataViewsTableBase.js +36 -36
- package/dist/_internal/components/data-display/DataViews/DeleteViewDialog.js +3 -3
- package/dist/_internal/components/data-display/DataViews/ManageViewsDialog.js +4 -4
- package/dist/_internal/components/data-display/DataViews/SaveViewModal.js +3 -3
- 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 +2 -2
- package/dist/_internal/components/data-display/DataViews/data-views-card-body.js +4 -4
- package/dist/_internal/components/data-display/DataViews/data-views-columns.js +4 -4
- package/dist/_internal/components/data-display/DataViews/data-views-display-panel.js +4 -4
- package/dist/_internal/components/data-display/DataViews/data-views-empty.js +3 -3
- package/dist/_internal/components/data-display/DataViews/data-views-export.js +3 -3
- package/dist/_internal/components/data-display/DataViews/data-views-filter-panel.js +4 -4
- package/dist/_internal/components/data-display/DataViews/data-views-grid-bodies.js +9 -9
- package/dist/_internal/components/data-display/DataViews/data-views-grid-helpers.js +3 -3
- package/dist/_internal/components/data-display/DataViews/data-views-grid-parts.js +24 -24
- package/dist/_internal/components/data-display/DataViews/data-views-inline-bar.js +9 -9
- 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 +8 -8
- package/dist/_internal/components/data-display/DataViews/data-views-range-pill.js +3 -3
- package/dist/_internal/components/data-display/DataViews/data-views-select-all-strip.js +3 -3
- package/dist/_internal/components/data-display/DataViews/data-views-shell-toolbar.js +8 -8
- package/dist/_internal/components/data-display/DataViews/data-views-table-parts.js +6 -6
- package/dist/_internal/components/data-display/DataViews/data-views-toolbar.js +7 -7
- package/dist/_internal/components/data-display/DataViews/data-views-view-nav.js +3 -3
- 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 +7 -7
- package/dist/_internal/components/data-display/EmptyState/EmptyState.js +2 -2
- package/dist/_internal/components/data-display/FleetMap/FleetBody.js +9 -9
- package/dist/_internal/components/data-display/FleetMap/FleetCanvas.js +8 -8
- package/dist/_internal/components/data-display/FleetMap/FleetMap.js +12 -12
- package/dist/_internal/components/data-display/InteractiveTooltip/InteractiveTooltip.js +2 -2
- package/dist/_internal/components/data-display/Lightbox/Lightbox.js +7 -7
- package/dist/_internal/components/data-display/Lightbox/LightboxControls.js +2 -2
- package/dist/_internal/components/data-display/Lightbox/LightboxOverlay.js +3 -3
- package/dist/_internal/components/data-display/Lightbox/LightboxThumbnails.js +2 -2
- package/dist/_internal/components/data-display/MapPreview/MapLayers.js +2 -2
- package/dist/_internal/components/data-display/MapPreview/MapMarkers.js +2 -2
- package/dist/_internal/components/data-display/MapPreview/MapPreview.js +7 -7
- package/dist/_internal/components/data-display/RegionMap/RegionMap.js +2 -2
- package/dist/_internal/components/data-display/SectionOnboarding/SectionOnboarding.js +3 -3
- package/dist/_internal/components/data-display/Sheet/Sheet.js +2 -2
- package/dist/_internal/components/data-display/Table/Table.js +2 -2
- package/dist/_internal/components/data-display/index.js +42 -42
- package/dist/_internal/components/feedback/ConfirmAction/ConfirmButton.js +3 -3
- package/dist/_internal/components/feedback/Modal/Modal.js +2 -2
- package/dist/_internal/components/feedback/NotificationStatusNotice/NotificationStatusNotice.js +3 -3
- package/dist/_internal/components/feedback/SequenceResolver/SequenceResolver.js +4 -4
- package/dist/_internal/components/feedback/SequenceResolver/SequenceResolver.parts.js +3 -3
- package/dist/_internal/components/feedback/index.js +8 -8
- package/dist/_internal/components/form/AddressAutocomplete/AddressAutocomplete.js +4 -4
- package/dist/_internal/components/form/AddressAutocomplete/AddressAutocompleteField.js +2 -2
- package/dist/_internal/components/form/AddressAutocomplete/AddressSuggestionsPaper.js +1 -1
- package/dist/_internal/components/form/Autocomplete/Autocomplete.js +1 -1
- package/dist/_internal/components/form/Button/Button.js +2 -2
- package/dist/_internal/components/form/Calendar/Calendar.band.js +18 -0
- package/dist/_internal/components/form/Calendar/Calendar.band.js.map +1 -0
- package/dist/_internal/components/form/Calendar/Calendar.js +7 -5
- package/dist/_internal/components/form/Calendar/CalendarDay.js +4 -1
- package/dist/_internal/components/form/Calendar/CalendarDayCell.js +4 -2
- package/dist/_internal/components/form/Calendar/CalendarMonth.js +5 -3
- package/dist/_internal/components/form/Calendar/CalendarSelectorsMonth.js +6 -4
- package/dist/_internal/components/form/DateRangePicker/DateRangePicker.js +7 -6
- package/dist/_internal/components/form/index.js +14 -13
- package/dist/_internal/components/form/total-form/SubmitButton.js +3 -3
- package/dist/_internal/components/index.js +75 -74
- package/dist/_internal/components/layout/SettingCard/SettingCard.js +10 -10
- package/dist/_internal/components/layout/SettingCard/SettingCard.parts.js +6 -6
- package/dist/_internal/components/layout/SettingCard/SettingCard.summary.js +9 -9
- package/dist/_internal/components/layout/SettingCard/SettingGrid.js +7 -7
- package/dist/_internal/components/layout/SettingCard/SettingGroup.js +11 -11
- package/dist/_internal/components/layout/SettingCard/SettingSwitch.js +10 -10
- package/dist/_internal/components/layout/SettingCard/SettingToggle.js +11 -11
- package/dist/_internal/components/layout/index.js +14 -14
- package/dist/_internal/components/navigation/AppHeader/AppHeader.details.js +5 -5
- package/dist/_internal/components/navigation/CommandPalette/CommandPalette.helpers.js +2 -2
- package/dist/_internal/components/navigation/CommandPalette/CommandPalette.hooks.js +3 -3
- package/dist/_internal/components/navigation/CommandPalette/CommandPalette.js +5 -5
- package/dist/_internal/components/navigation/CommandPalette/CommandPaletteResults.js +2 -2
- package/dist/_internal/components/navigation/index.js +10 -10
- package/dist/_internal/en-US.navigation.js +1 -1
- package/dist/_internal/pt-BR.navigation.js +1 -1
- package/dist/_internal/social-login-button/social-login-button.js +3 -3
- package/dist/_internal/user-avatar/user-avatar.js +5 -5
- package/dist/charts.js +5 -5
- package/dist/{chunk-OPY2AGAU.js → chunk-2IHUFUTO.js} +2 -2
- package/dist/{chunk-33AVAYCR.js → chunk-2L6TANRY.js} +5 -5
- package/dist/{chunk-ENJOBJPK.js → chunk-2MT6VSS2.js} +2 -2
- package/dist/{chunk-QADTI63U.js → chunk-3JZ3KEQQ.js} +2 -2
- package/dist/{chunk-EOIRU62W.js → chunk-42D7KBDH.js} +2 -2
- package/dist/{chunk-LXIPBHNJ.js → chunk-42TOCPXB.js} +5 -5
- package/dist/{chunk-EXVCVXFX.js → chunk-437HQPUN.js} +4 -4
- package/dist/{chunk-VYQZ5U3N.js → chunk-4NG3LTRX.js} +2 -2
- package/dist/{chunk-POUNFTG3.js → chunk-4OUJ4ZMK.js} +9 -3
- package/dist/chunk-4OUJ4ZMK.js.map +1 -0
- package/dist/{chunk-7YJYIMWP.js → chunk-4QR7LM5F.js} +6 -6
- package/dist/{chunk-KR4TN3OF.js → chunk-4ZQQUICR.js} +2 -2
- package/dist/{chunk-IYDXKLCE.js → chunk-5C3JSXBK.js} +2 -2
- package/dist/{chunk-4LUWZ6UE.js → chunk-5IMI2XNU.js} +5 -5
- package/dist/{chunk-Q7XLTN2D.js → chunk-5VKHJ7PI.js} +3 -3
- package/dist/{chunk-BP3ZKIPE.js → chunk-64UNVW6D.js} +4 -4
- package/dist/{chunk-SSCEX5NY.js → chunk-656DBMWT.js} +3 -2
- package/dist/{chunk-SSCEX5NY.js.map → chunk-656DBMWT.js.map} +1 -1
- package/dist/{chunk-FCLON3MO.js → chunk-6HXNFNOB.js} +3 -3
- package/dist/{chunk-WNNA6YYE.js → chunk-6IRZZYHF.js} +4 -4
- package/dist/{chunk-A5CKUJP2.js → chunk-6X7PE5DH.js} +4 -4
- package/dist/{chunk-ABRVOPC2.js → chunk-7FFY4LJY.js} +2 -2
- package/dist/{chunk-H7CZRKN7.js → chunk-7WE432RQ.js} +11 -11
- package/dist/{chunk-V4CWJ7Q6.js → chunk-A3DDEKLV.js} +2 -2
- package/dist/{chunk-KRPDBVUB.js → chunk-APSEM5AA.js} +3 -3
- package/dist/{chunk-I2LMLQGQ.js → chunk-AQPPSR4P.js} +2 -2
- package/dist/{chunk-U2DRE36S.js → chunk-BAC2PBOS.js} +4 -4
- package/dist/{chunk-OQN2FHEL.js → chunk-C4NSEUT5.js} +3 -3
- package/dist/{chunk-MW7P2C2C.js → chunk-CJLZHW2Z.js} +2 -2
- package/dist/{chunk-65KJLPF5.js → chunk-DILDC77M.js} +3 -3
- package/dist/{chunk-UTUYXH72.js → chunk-E5QOT7KK.js} +8 -8
- package/dist/{chunk-V6KQ5R4T.js → chunk-EAFZ3RDY.js} +5 -5
- package/dist/{chunk-C5RQBTRZ.js → chunk-EIOGJBJ5.js} +25 -5
- package/dist/chunk-EIOGJBJ5.js.map +1 -0
- package/dist/{chunk-ULAZDF6D.js → chunk-FF22F7FA.js} +2 -2
- package/dist/{chunk-Z5WUSI47.js → chunk-G3JFESKD.js} +6 -6
- package/dist/{chunk-CARUHKZW.js → chunk-G4W6HR6Q.js} +9 -9
- package/dist/{chunk-KYTFGW4R.js → chunk-GMIMHQ6H.js} +2 -2
- package/dist/chunk-H2UUMZQR.js +74 -0
- package/dist/chunk-H2UUMZQR.js.map +1 -0
- package/dist/{chunk-UT545JBQ.js → chunk-HC6OZ7QK.js} +3 -3
- package/dist/{chunk-MVNFUIJS.js → chunk-HOPRZEBM.js} +4 -4
- package/dist/{chunk-Z445LLFN.js → chunk-I44XL4Z4.js} +7 -6
- package/dist/chunk-I44XL4Z4.js.map +1 -0
- package/dist/{chunk-FZUAB2KS.js → chunk-INFBO356.js} +2 -2
- package/dist/{chunk-XW44IFYE.js → chunk-IWMAFTXP.js} +2 -2
- package/dist/{chunk-2DDCRHJE.js → chunk-IX5ADKII.js} +2 -2
- package/dist/{chunk-N5OEDOJT.js → chunk-J2KVF5GO.js} +3 -3
- package/dist/{chunk-TZC6KIK2.js → chunk-JG733RMP.js} +5 -5
- package/dist/{chunk-PGYYDSNX.js → chunk-JH2XLVWM.js} +2 -2
- package/dist/{chunk-TMUGBHHG.js → chunk-JHW35C6W.js} +5 -5
- package/dist/{chunk-4V37DAMA.js → chunk-JRBSTOMA.js} +3 -3
- package/dist/{chunk-NCI74EOS.js → chunk-K6FCSB6T.js} +5 -5
- package/dist/{chunk-FZEDQNUN.js → chunk-K7IDOTSU.js} +3 -3
- package/dist/{chunk-B32554CQ.js → chunk-LH43GKP2.js} +10 -10
- package/dist/{chunk-QJLOWBFW.js → chunk-LXTNWQWF.js} +2 -2
- package/dist/{chunk-HI7JPDD6.js → chunk-M3XJVD5G.js} +2 -2
- package/dist/{chunk-FQMLTCXT.js → chunk-MAHY7PK3.js} +4 -4
- package/dist/{chunk-NTRWUDP6.js → chunk-MKVDHR3B.js} +2 -2
- package/dist/{chunk-67ADHGA2.js → chunk-NKEFH3RS.js} +3 -3
- package/dist/{chunk-WXZCNHBX.js → chunk-OFESNJKE.js} +2 -2
- package/dist/{chunk-GLR5MSU3.js → chunk-OY437NRJ.js} +2 -2
- package/dist/{chunk-CJUK32UH.js → chunk-OZYUE2BI.js} +4 -4
- package/dist/{chunk-NI67M453.js → chunk-PGANINQD.js} +5 -5
- package/dist/{chunk-KRYOT3KB.js → chunk-PQGHYFUA.js} +2 -2
- package/dist/{chunk-ZHYLOB7Q.js → chunk-PXEIN3J4.js} +7 -7
- package/dist/{chunk-ZO2GZRZS.js → chunk-Q4QFYGPH.js} +2 -2
- package/dist/{chunk-TIM4PXWN.js → chunk-QHIWV55K.js} +2 -2
- package/dist/{chunk-DHAXUVMR.js → chunk-QN7FVZQD.js} +4 -4
- package/dist/{chunk-6PTP5NID.js → chunk-R2ODLE6G.js} +2 -2
- package/dist/{chunk-XQJPR57I.js → chunk-T5RFH2T5.js} +2 -2
- package/dist/{chunk-WMAS6DZR.js → chunk-TLJVUWJ5.js} +2 -2
- package/dist/{chunk-MK6UXAWY.js → chunk-TSEBMVYY.js} +3 -3
- package/dist/{chunk-OKRITX4S.js → chunk-UFGT2SFD.js} +6 -6
- package/dist/{chunk-WTOA52EQ.js → chunk-UKNMPGEM.js} +2 -2
- package/dist/{chunk-P772HCHI.js → chunk-W676GY42.js} +4 -4
- package/dist/{chunk-T2G4LDU5.js → chunk-WLLUARTC.js} +2 -2
- package/dist/{chunk-JZQYVGPV.js → chunk-WLSFBXGS.js} +3 -3
- package/dist/{chunk-52RHAAIH.js → chunk-X3EEV3OI.js} +3 -3
- package/dist/{chunk-DYRZRY2T.js → chunk-X4N6Q37Q.js} +4 -4
- package/dist/{chunk-HKGKQKQT.js → chunk-X5OGIT2F.js} +52 -20
- package/dist/chunk-X5OGIT2F.js.map +1 -0
- package/dist/{chunk-56GWNA5V.js → chunk-X6D5JEUV.js} +12 -5
- package/dist/chunk-X6D5JEUV.js.map +1 -0
- package/dist/{chunk-ZVZTQF7E.js → chunk-XS6QHZMD.js} +2 -2
- package/dist/{chunk-CPZGFIFH.js → chunk-YNVTUQ5B.js} +2 -2
- package/dist/{chunk-HJJR2WGL.js → chunk-YOXYSAUI.js} +4 -4
- package/dist/{chunk-D72GD4XC.js → chunk-YPW4HZ3Z.js} +6 -2
- package/dist/chunk-YPW4HZ3Z.js.map +1 -0
- package/dist/{chunk-G76PIGF7.js → chunk-ZHQAVW2V.js} +3 -2
- package/dist/chunk-ZHQAVW2V.js.map +1 -0
- package/dist/{chunk-COKPPU42.js → chunk-ZIHSCBMN.js} +12 -12
- package/dist/data-display/AsyncStateContainer.js +3 -3
- package/dist/data-display/Avatar.js +2 -2
- package/dist/data-display/CardKit.js +11 -11
- package/dist/data-display/Carousel.js +2 -2
- package/dist/data-display/Chart.js +5 -5
- package/dist/data-display/Chip.js +3 -3
- package/dist/data-display/DataGrid.js +1 -1
- package/dist/data-display/DataViews.js +43 -43
- package/dist/data-display/EmptyState.js +2 -2
- package/dist/data-display/FleetMap.js +12 -12
- package/dist/data-display/InteractiveTooltip.js +2 -2
- package/dist/data-display/Lightbox.js +7 -7
- package/dist/data-display/MapPreview.js +7 -7
- package/dist/data-display/RegionMap.js +2 -2
- package/dist/data-display/SectionOnboarding.js +3 -3
- package/dist/data-display/Sheet.js +2 -2
- package/dist/data-display/Table.js +2 -2
- package/dist/en-US.js +1 -1
- package/dist/feedback/ConfirmAction.js +3 -3
- package/dist/feedback/Modal.js +2 -2
- package/dist/feedback/NotificationStatusNotice.js +3 -3
- package/dist/feedback/SequenceResolver.js +4 -4
- package/dist/form/AddressAutocomplete.js +4 -4
- package/dist/form/Autocomplete.js +1 -1
- package/dist/form/Button.js +2 -2
- package/dist/form/Calendar.js +7 -5
- package/dist/form/DateRangePicker.js +7 -6
- package/dist/form/total-form.js +3 -3
- package/dist/layout/SettingCard.js +14 -14
- package/dist/locales.js +2 -2
- package/dist/navigation/AppHeader.js +5 -5
- package/dist/navigation/CommandPalette.js +5 -5
- package/dist/pt-BR.js +1 -1
- package/dist/social-login-button.js +3 -3
- package/dist/types/components/form/AddressAutocomplete/AddressAutocompleteField.d.ts.map +1 -1
- package/dist/types/components/form/AddressAutocomplete/AddressSuggestionsPaper.d.ts +11 -1
- package/dist/types/components/form/AddressAutocomplete/AddressSuggestionsPaper.d.ts.map +1 -1
- package/dist/types/components/form/Calendar/Calendar.band.d.ts +44 -0
- package/dist/types/components/form/Calendar/Calendar.band.d.ts.map +1 -0
- package/dist/types/components/form/Calendar/CalendarDay.d.ts +2 -0
- package/dist/types/components/form/Calendar/CalendarDay.d.ts.map +1 -1
- package/dist/types/components/form/Calendar/CalendarDayCell.d.ts.map +1 -1
- package/dist/types/components/form/Calendar/CalendarMonth.d.ts +3 -2
- package/dist/types/components/form/Calendar/CalendarMonth.d.ts.map +1 -1
- package/dist/types/components/navigation/CommandPalette/CommandPalette.d.ts.map +1 -1
- package/dist/types/copy/navigation.d.ts +2 -0
- package/dist/types/copy/navigation.d.ts.map +1 -1
- package/dist/types/en-US.navigation.d.ts.map +1 -1
- package/dist/types/pt-BR.navigation.d.ts.map +1 -1
- package/dist/user-avatar.js +5 -5
- package/package.json +1 -1
- package/src/components/form/AddressAutocomplete/AddressAutocompleteField.tsx +17 -4
- package/src/components/form/AddressAutocomplete/AddressSuggestionsPaper.tsx +32 -3
- package/src/components/form/Calendar/Calendar.band.ts +118 -0
- package/src/components/form/Calendar/CalendarDay.tsx +73 -23
- package/src/components/form/Calendar/CalendarDayCell.tsx +2 -0
- package/src/components/form/Calendar/CalendarMonth.tsx +14 -4
- package/src/components/navigation/CommandPalette/CommandPalette.md +1 -0
- package/src/components/navigation/CommandPalette/CommandPalette.tsx +4 -2
- package/src/copy/navigation.ts +2 -0
- package/src/en-US.navigation.ts +1 -0
- package/src/pt-BR.navigation.ts +1 -0
- package/dist/chunk-56GWNA5V.js.map +0 -1
- package/dist/chunk-C5RQBTRZ.js.map +0 -1
- package/dist/chunk-D72GD4XC.js.map +0 -1
- package/dist/chunk-G76PIGF7.js.map +0 -1
- package/dist/chunk-HKGKQKQT.js.map +0 -1
- package/dist/chunk-POUNFTG3.js.map +0 -1
- package/dist/chunk-Z445LLFN.js.map +0 -1
- /package/dist/{chunk-OPY2AGAU.js.map → chunk-2IHUFUTO.js.map} +0 -0
- /package/dist/{chunk-33AVAYCR.js.map → chunk-2L6TANRY.js.map} +0 -0
- /package/dist/{chunk-ENJOBJPK.js.map → chunk-2MT6VSS2.js.map} +0 -0
- /package/dist/{chunk-QADTI63U.js.map → chunk-3JZ3KEQQ.js.map} +0 -0
- /package/dist/{chunk-EOIRU62W.js.map → chunk-42D7KBDH.js.map} +0 -0
- /package/dist/{chunk-LXIPBHNJ.js.map → chunk-42TOCPXB.js.map} +0 -0
- /package/dist/{chunk-EXVCVXFX.js.map → chunk-437HQPUN.js.map} +0 -0
- /package/dist/{chunk-VYQZ5U3N.js.map → chunk-4NG3LTRX.js.map} +0 -0
- /package/dist/{chunk-7YJYIMWP.js.map → chunk-4QR7LM5F.js.map} +0 -0
- /package/dist/{chunk-KR4TN3OF.js.map → chunk-4ZQQUICR.js.map} +0 -0
- /package/dist/{chunk-IYDXKLCE.js.map → chunk-5C3JSXBK.js.map} +0 -0
- /package/dist/{chunk-4LUWZ6UE.js.map → chunk-5IMI2XNU.js.map} +0 -0
- /package/dist/{chunk-Q7XLTN2D.js.map → chunk-5VKHJ7PI.js.map} +0 -0
- /package/dist/{chunk-BP3ZKIPE.js.map → chunk-64UNVW6D.js.map} +0 -0
- /package/dist/{chunk-FCLON3MO.js.map → chunk-6HXNFNOB.js.map} +0 -0
- /package/dist/{chunk-WNNA6YYE.js.map → chunk-6IRZZYHF.js.map} +0 -0
- /package/dist/{chunk-A5CKUJP2.js.map → chunk-6X7PE5DH.js.map} +0 -0
- /package/dist/{chunk-ABRVOPC2.js.map → chunk-7FFY4LJY.js.map} +0 -0
- /package/dist/{chunk-H7CZRKN7.js.map → chunk-7WE432RQ.js.map} +0 -0
- /package/dist/{chunk-V4CWJ7Q6.js.map → chunk-A3DDEKLV.js.map} +0 -0
- /package/dist/{chunk-KRPDBVUB.js.map → chunk-APSEM5AA.js.map} +0 -0
- /package/dist/{chunk-I2LMLQGQ.js.map → chunk-AQPPSR4P.js.map} +0 -0
- /package/dist/{chunk-U2DRE36S.js.map → chunk-BAC2PBOS.js.map} +0 -0
- /package/dist/{chunk-OQN2FHEL.js.map → chunk-C4NSEUT5.js.map} +0 -0
- /package/dist/{chunk-MW7P2C2C.js.map → chunk-CJLZHW2Z.js.map} +0 -0
- /package/dist/{chunk-65KJLPF5.js.map → chunk-DILDC77M.js.map} +0 -0
- /package/dist/{chunk-UTUYXH72.js.map → chunk-E5QOT7KK.js.map} +0 -0
- /package/dist/{chunk-V6KQ5R4T.js.map → chunk-EAFZ3RDY.js.map} +0 -0
- /package/dist/{chunk-ULAZDF6D.js.map → chunk-FF22F7FA.js.map} +0 -0
- /package/dist/{chunk-Z5WUSI47.js.map → chunk-G3JFESKD.js.map} +0 -0
- /package/dist/{chunk-CARUHKZW.js.map → chunk-G4W6HR6Q.js.map} +0 -0
- /package/dist/{chunk-KYTFGW4R.js.map → chunk-GMIMHQ6H.js.map} +0 -0
- /package/dist/{chunk-UT545JBQ.js.map → chunk-HC6OZ7QK.js.map} +0 -0
- /package/dist/{chunk-MVNFUIJS.js.map → chunk-HOPRZEBM.js.map} +0 -0
- /package/dist/{chunk-FZUAB2KS.js.map → chunk-INFBO356.js.map} +0 -0
- /package/dist/{chunk-XW44IFYE.js.map → chunk-IWMAFTXP.js.map} +0 -0
- /package/dist/{chunk-2DDCRHJE.js.map → chunk-IX5ADKII.js.map} +0 -0
- /package/dist/{chunk-N5OEDOJT.js.map → chunk-J2KVF5GO.js.map} +0 -0
- /package/dist/{chunk-TZC6KIK2.js.map → chunk-JG733RMP.js.map} +0 -0
- /package/dist/{chunk-PGYYDSNX.js.map → chunk-JH2XLVWM.js.map} +0 -0
- /package/dist/{chunk-TMUGBHHG.js.map → chunk-JHW35C6W.js.map} +0 -0
- /package/dist/{chunk-4V37DAMA.js.map → chunk-JRBSTOMA.js.map} +0 -0
- /package/dist/{chunk-NCI74EOS.js.map → chunk-K6FCSB6T.js.map} +0 -0
- /package/dist/{chunk-FZEDQNUN.js.map → chunk-K7IDOTSU.js.map} +0 -0
- /package/dist/{chunk-B32554CQ.js.map → chunk-LH43GKP2.js.map} +0 -0
- /package/dist/{chunk-QJLOWBFW.js.map → chunk-LXTNWQWF.js.map} +0 -0
- /package/dist/{chunk-HI7JPDD6.js.map → chunk-M3XJVD5G.js.map} +0 -0
- /package/dist/{chunk-FQMLTCXT.js.map → chunk-MAHY7PK3.js.map} +0 -0
- /package/dist/{chunk-NTRWUDP6.js.map → chunk-MKVDHR3B.js.map} +0 -0
- /package/dist/{chunk-67ADHGA2.js.map → chunk-NKEFH3RS.js.map} +0 -0
- /package/dist/{chunk-WXZCNHBX.js.map → chunk-OFESNJKE.js.map} +0 -0
- /package/dist/{chunk-GLR5MSU3.js.map → chunk-OY437NRJ.js.map} +0 -0
- /package/dist/{chunk-CJUK32UH.js.map → chunk-OZYUE2BI.js.map} +0 -0
- /package/dist/{chunk-NI67M453.js.map → chunk-PGANINQD.js.map} +0 -0
- /package/dist/{chunk-KRYOT3KB.js.map → chunk-PQGHYFUA.js.map} +0 -0
- /package/dist/{chunk-ZHYLOB7Q.js.map → chunk-PXEIN3J4.js.map} +0 -0
- /package/dist/{chunk-ZO2GZRZS.js.map → chunk-Q4QFYGPH.js.map} +0 -0
- /package/dist/{chunk-TIM4PXWN.js.map → chunk-QHIWV55K.js.map} +0 -0
- /package/dist/{chunk-DHAXUVMR.js.map → chunk-QN7FVZQD.js.map} +0 -0
- /package/dist/{chunk-6PTP5NID.js.map → chunk-R2ODLE6G.js.map} +0 -0
- /package/dist/{chunk-XQJPR57I.js.map → chunk-T5RFH2T5.js.map} +0 -0
- /package/dist/{chunk-WMAS6DZR.js.map → chunk-TLJVUWJ5.js.map} +0 -0
- /package/dist/{chunk-MK6UXAWY.js.map → chunk-TSEBMVYY.js.map} +0 -0
- /package/dist/{chunk-OKRITX4S.js.map → chunk-UFGT2SFD.js.map} +0 -0
- /package/dist/{chunk-WTOA52EQ.js.map → chunk-UKNMPGEM.js.map} +0 -0
- /package/dist/{chunk-P772HCHI.js.map → chunk-W676GY42.js.map} +0 -0
- /package/dist/{chunk-T2G4LDU5.js.map → chunk-WLLUARTC.js.map} +0 -0
- /package/dist/{chunk-JZQYVGPV.js.map → chunk-WLSFBXGS.js.map} +0 -0
- /package/dist/{chunk-52RHAAIH.js.map → chunk-X3EEV3OI.js.map} +0 -0
- /package/dist/{chunk-DYRZRY2T.js.map → chunk-X4N6Q37Q.js.map} +0 -0
- /package/dist/{chunk-ZVZTQF7E.js.map → chunk-XS6QHZMD.js.map} +0 -0
- /package/dist/{chunk-CPZGFIFH.js.map → chunk-YNVTUQ5B.js.map} +0 -0
- /package/dist/{chunk-HJJR2WGL.js.map → chunk-YOXYSAUI.js.map} +0 -0
- /package/dist/{chunk-COKPPU42.js.map → chunk-ZIHSCBMN.js.map} +0 -0
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import "../chunk-BN6POCYF.js";
|
|
2
2
|
import {
|
|
3
3
|
DateRangePicker
|
|
4
|
-
} from "../chunk-
|
|
4
|
+
} from "../chunk-XS6QHZMD.js";
|
|
5
5
|
import "../chunk-6KKQHJE7.js";
|
|
6
6
|
import "../chunk-5S5K73I6.js";
|
|
7
7
|
import {
|
|
@@ -16,16 +16,17 @@ import {
|
|
|
16
16
|
} from "../chunk-5CP5Z3YU.js";
|
|
17
17
|
import "../chunk-SUTOAW7I.js";
|
|
18
18
|
import "../chunk-BO6S47KI.js";
|
|
19
|
-
import "../chunk-
|
|
19
|
+
import "../chunk-APSEM5AA.js";
|
|
20
20
|
import "../chunk-ZZGG6AUD.js";
|
|
21
21
|
import "../chunk-TPMT3J32.js";
|
|
22
22
|
import "../chunk-LZOCNAUA.js";
|
|
23
23
|
import "../chunk-I4K5JMS4.js";
|
|
24
|
-
import "../chunk-
|
|
24
|
+
import "../chunk-5C3JSXBK.js";
|
|
25
25
|
import "../chunk-66TCKXOB.js";
|
|
26
|
-
import "../chunk-
|
|
27
|
-
import "../chunk-
|
|
28
|
-
import "../chunk-
|
|
26
|
+
import "../chunk-4OUJ4ZMK.js";
|
|
27
|
+
import "../chunk-YPW4HZ3Z.js";
|
|
28
|
+
import "../chunk-X5OGIT2F.js";
|
|
29
|
+
import "../chunk-H2UUMZQR.js";
|
|
29
30
|
import "../chunk-WQEGPSGD.js";
|
|
30
31
|
import "../chunk-JV2JIUDT.js";
|
|
31
32
|
import "../chunk-J6LIZXSF.js";
|
package/dist/form/total-form.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
SubmitButton
|
|
3
|
-
} from "../chunk-
|
|
3
|
+
} from "../chunk-7FFY4LJY.js";
|
|
4
4
|
import {
|
|
5
5
|
FormErrorSnackbar
|
|
6
6
|
} from "../chunk-B32XH7NK.js";
|
|
@@ -67,10 +67,10 @@ import "../chunk-LZRVUOMU.js";
|
|
|
67
67
|
import "../chunk-EEB66IVH.js";
|
|
68
68
|
import "../chunk-RTSK5OZT.js";
|
|
69
69
|
import "../chunk-BA4RHQ3B.js";
|
|
70
|
-
import "../chunk-
|
|
71
|
-
import "../chunk-TAMIZE4Q.js";
|
|
70
|
+
import "../chunk-YOXYSAUI.js";
|
|
72
71
|
import "../chunk-PPEHBI5O.js";
|
|
73
72
|
import "../chunk-G2FUZALJ.js";
|
|
73
|
+
import "../chunk-TAMIZE4Q.js";
|
|
74
74
|
import "../chunk-XOXXG7Q5.js";
|
|
75
75
|
import "../chunk-TYJR4GOF.js";
|
|
76
76
|
import "../chunk-HPK33ACY.js";
|
|
@@ -1,36 +1,36 @@
|
|
|
1
1
|
import "../chunk-QGUNUXTT.js";
|
|
2
2
|
import {
|
|
3
3
|
SettingGroup
|
|
4
|
-
} from "../chunk-
|
|
4
|
+
} from "../chunk-J2KVF5GO.js";
|
|
5
5
|
import {
|
|
6
6
|
SETTING_GRID_CONTAINER,
|
|
7
7
|
SettingGrid
|
|
8
|
-
} from "../chunk-
|
|
8
|
+
} from "../chunk-JH2XLVWM.js";
|
|
9
9
|
import {
|
|
10
10
|
SettingCard
|
|
11
|
-
} from "../chunk-
|
|
11
|
+
} from "../chunk-HOPRZEBM.js";
|
|
12
12
|
import {
|
|
13
13
|
SettingToggle
|
|
14
|
-
} from "../chunk-
|
|
15
|
-
import "../chunk-
|
|
14
|
+
} from "../chunk-IWMAFTXP.js";
|
|
15
|
+
import "../chunk-JRBSTOMA.js";
|
|
16
16
|
import "../chunk-XJQNSMGA.js";
|
|
17
17
|
import "../chunk-SALQ65SM.js";
|
|
18
|
-
import "../chunk-
|
|
19
|
-
import "../chunk-
|
|
18
|
+
import "../chunk-TSEBMVYY.js";
|
|
19
|
+
import "../chunk-HC6OZ7QK.js";
|
|
20
20
|
import "../chunk-IQWPVPV5.js";
|
|
21
21
|
import "../chunk-BFRVMCQM.js";
|
|
22
22
|
import "../chunk-RN7UJI7S.js";
|
|
23
23
|
import "../chunk-JYWF76Z5.js";
|
|
24
24
|
import "../chunk-GGMB6LJH.js";
|
|
25
25
|
import "../chunk-TAF3YYMK.js";
|
|
26
|
-
import "../chunk-
|
|
27
|
-
import "../chunk-BCWL7HUO.js";
|
|
26
|
+
import "../chunk-G3JFESKD.js";
|
|
28
27
|
import "../chunk-QYJ25FWM.js";
|
|
28
|
+
import "../chunk-BCWL7HUO.js";
|
|
29
29
|
import "../chunk-2GTORM5E.js";
|
|
30
|
-
import "../chunk-
|
|
31
|
-
import "../chunk-
|
|
32
|
-
import "../chunk-E5I776YW.js";
|
|
30
|
+
import "../chunk-PGANINQD.js";
|
|
31
|
+
import "../chunk-QN7FVZQD.js";
|
|
33
32
|
import "../chunk-BF4FYOAR.js";
|
|
33
|
+
import "../chunk-E5I776YW.js";
|
|
34
34
|
import "../chunk-4PJ52YBO.js";
|
|
35
35
|
import "../chunk-ANUO67JQ.js";
|
|
36
36
|
import "../chunk-2FQF4CNE.js";
|
|
@@ -49,10 +49,10 @@ import "../chunk-Q3HYEAVQ.js";
|
|
|
49
49
|
import "../chunk-IBOFASAZ.js";
|
|
50
50
|
import "../chunk-HDBP55R3.js";
|
|
51
51
|
import "../chunk-BA4RHQ3B.js";
|
|
52
|
-
import "../chunk-
|
|
53
|
-
import "../chunk-TAMIZE4Q.js";
|
|
52
|
+
import "../chunk-YOXYSAUI.js";
|
|
54
53
|
import "../chunk-PPEHBI5O.js";
|
|
55
54
|
import "../chunk-G2FUZALJ.js";
|
|
55
|
+
import "../chunk-TAMIZE4Q.js";
|
|
56
56
|
import "../chunk-TYJR4GOF.js";
|
|
57
57
|
import "../chunk-HPK33ACY.js";
|
|
58
58
|
import "../chunk-B7ZHEOQQ.js";
|
package/dist/locales.js
CHANGED
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
PT_BR_BREADCRUMB_COPY,
|
|
4
4
|
PT_BR_COMMAND_PALETTE_COPY,
|
|
5
5
|
PT_BR_SECTION_NAV_COPY
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-ZHQAVW2V.js";
|
|
7
7
|
import {
|
|
8
8
|
PT_BR_ADDRESS_AUTOCOMPLETE_COPY,
|
|
9
9
|
PT_BR_AUTOCOMPLETE_COPY,
|
|
@@ -48,7 +48,7 @@ import {
|
|
|
48
48
|
EN_US_BREADCRUMB_COPY,
|
|
49
49
|
EN_US_COMMAND_PALETTE_COPY,
|
|
50
50
|
EN_US_SECTION_NAV_COPY
|
|
51
|
-
} from "./chunk-
|
|
51
|
+
} from "./chunk-656DBMWT.js";
|
|
52
52
|
import {
|
|
53
53
|
EN_US_CHROME_COPY,
|
|
54
54
|
EN_US_TUTORIAL_COPY
|
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
} from "../chunk-X4J576GR.js";
|
|
10
10
|
import {
|
|
11
11
|
AppHeaderDetails
|
|
12
|
-
} from "../chunk-
|
|
12
|
+
} from "../chunk-5VKHJ7PI.js";
|
|
13
13
|
import {
|
|
14
14
|
AppHeaderBrand
|
|
15
15
|
} from "../chunk-GWFAINQ7.js";
|
|
@@ -18,12 +18,12 @@ import {
|
|
|
18
18
|
highlightOf,
|
|
19
19
|
initialsOf
|
|
20
20
|
} from "../chunk-IQU4HKND.js";
|
|
21
|
-
import "../chunk-
|
|
21
|
+
import "../chunk-X4N6Q37Q.js";
|
|
22
22
|
import "../chunk-LYVTJLCF.js";
|
|
23
23
|
import "../chunk-CRN4KKNI.js";
|
|
24
24
|
import "../chunk-E5OBAS3U.js";
|
|
25
|
-
import "../chunk-3ROCD7XF.js";
|
|
26
25
|
import "../chunk-NASLJO2R.js";
|
|
26
|
+
import "../chunk-3ROCD7XF.js";
|
|
27
27
|
import "../chunk-IM4DMKH4.js";
|
|
28
28
|
import "../chunk-TJUWSQYQ.js";
|
|
29
29
|
import "../chunk-DAFFZED3.js";
|
|
@@ -32,10 +32,10 @@ import "../chunk-Z2JH5KW5.js";
|
|
|
32
32
|
import "../chunk-AL5E624U.js";
|
|
33
33
|
import "../chunk-GYXUCS37.js";
|
|
34
34
|
import "../chunk-LV7LSPBF.js";
|
|
35
|
-
import "../chunk-
|
|
36
|
-
import "../chunk-TAMIZE4Q.js";
|
|
35
|
+
import "../chunk-YOXYSAUI.js";
|
|
37
36
|
import "../chunk-PPEHBI5O.js";
|
|
38
37
|
import "../chunk-G2FUZALJ.js";
|
|
38
|
+
import "../chunk-TAMIZE4Q.js";
|
|
39
39
|
import "../chunk-XOXXG7Q5.js";
|
|
40
40
|
import "../chunk-TYJR4GOF.js";
|
|
41
41
|
import "../chunk-AKZWDZCZ.js";
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import "../chunk-P5WJUR7X.js";
|
|
2
2
|
import {
|
|
3
3
|
CommandPalette
|
|
4
|
-
} from "../chunk-
|
|
5
|
-
import "../chunk-
|
|
4
|
+
} from "../chunk-I44XL4Z4.js";
|
|
5
|
+
import "../chunk-INFBO356.js";
|
|
6
6
|
import "../chunk-Z6MCTGIK.js";
|
|
7
|
-
import "../chunk-
|
|
8
|
-
import "../chunk-
|
|
9
|
-
import "../chunk-
|
|
7
|
+
import "../chunk-LXTNWQWF.js";
|
|
8
|
+
import "../chunk-GMIMHQ6H.js";
|
|
9
|
+
import "../chunk-656DBMWT.js";
|
|
10
10
|
import "../chunk-LL2BWQPM.js";
|
|
11
11
|
import "../chunk-XJAD6E3V.js";
|
|
12
12
|
import "../chunk-F5H2ZXST.js";
|
package/dist/pt-BR.js
CHANGED
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
GoogleIcon,
|
|
5
5
|
SocialLoginButton,
|
|
6
6
|
SocialLoginContainer
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-IX5ADKII.js";
|
|
8
8
|
import "./chunk-6GP2DOOO.js";
|
|
9
9
|
import "./chunk-GBVVI35T.js";
|
|
10
10
|
import "./chunk-KZYCQH7O.js";
|
|
@@ -20,10 +20,10 @@ import "./chunk-PLB6WWXW.js";
|
|
|
20
20
|
import "./chunk-FKUYRQSP.js";
|
|
21
21
|
import "./chunk-HDBP55R3.js";
|
|
22
22
|
import "./chunk-BA4RHQ3B.js";
|
|
23
|
-
import "./chunk-
|
|
24
|
-
import "./chunk-TAMIZE4Q.js";
|
|
23
|
+
import "./chunk-YOXYSAUI.js";
|
|
25
24
|
import "./chunk-PPEHBI5O.js";
|
|
26
25
|
import "./chunk-G2FUZALJ.js";
|
|
26
|
+
import "./chunk-TAMIZE4Q.js";
|
|
27
27
|
import "./chunk-AJBRO76D.js";
|
|
28
28
|
import "./chunk-36VXZCJT.js";
|
|
29
29
|
import "./chunk-XOXXG7Q5.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AddressAutocompleteField.d.ts","sourceRoot":"","sources":["../../../../../src/components/form/AddressAutocomplete/AddressAutocompleteField.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAGhC,OAAO,EAIL,KAAK,oBAAoB,EAC1B,MAAM,+BAA+B,CAAC;AACvC,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,6BAA6B,CAAC;AAK5E,MAAM,MAAM,6BAA6B,GAAG,oBAAoB,GAAG,wBAAwB,CAAC;
|
|
1
|
+
{"version":3,"file":"AddressAutocompleteField.d.ts","sourceRoot":"","sources":["../../../../../src/components/form/AddressAutocomplete/AddressAutocompleteField.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAGhC,OAAO,EAIL,KAAK,oBAAoB,EAC1B,MAAM,+BAA+B,CAAC;AACvC,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,6BAA6B,CAAC;AAK5E,MAAM,MAAM,6BAA6B,GAAG,oBAAoB,GAAG,wBAAwB,CAAC;AAe5F,eAAO,MAAM,wBAAwB,EAAE,EAAE,CAAC,6BAA6B,CA0EtE,CAAC"}
|
|
@@ -1,4 +1,14 @@
|
|
|
1
1
|
import type { PaperProps } from '@mui/material/Paper/index.js';
|
|
2
2
|
import type { FC } from 'react';
|
|
3
|
-
|
|
3
|
+
import React from 'react';
|
|
4
|
+
export interface AddressSuggestionsPaperProps extends PaperProps {
|
|
5
|
+
/**
|
|
6
|
+
* Said when the list is open with nothing in it. MUI never renders its own
|
|
7
|
+
* `noOptionsText` for a `freeSolo` field, so an empty list was a blank strip
|
|
8
|
+
* (FUT-4162): the paper says it instead, exactly when MUI gave it no content
|
|
9
|
+
* (no suggestions and no loading row).
|
|
10
|
+
*/
|
|
11
|
+
emptyText?: React.ReactNode;
|
|
12
|
+
}
|
|
13
|
+
export declare const AddressSuggestionsPaper: FC<AddressSuggestionsPaperProps>;
|
|
4
14
|
//# sourceMappingURL=AddressSuggestionsPaper.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AddressSuggestionsPaper.d.ts","sourceRoot":"","sources":["../../../../../src/components/form/AddressAutocomplete/AddressSuggestionsPaper.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,8BAA8B,CAAC;
|
|
1
|
+
{"version":3,"file":"AddressSuggestionsPaper.d.ts","sourceRoot":"","sources":["../../../../../src/components/form/AddressAutocomplete/AddressSuggestionsPaper.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,8BAA8B,CAAC;AAI/D,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAChC,OAAO,KAAmB,MAAM,OAAO,CAAC;AAIxC,MAAM,WAAW,4BAA6B,SAAQ,UAAU;IAC9D;;;;;OAKG;IACH,SAAS,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC7B;AAGD,eAAO,MAAM,uBAAuB,EAAE,EAAE,CAAC,4BAA4B,CAmCpE,CAAC"}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import type { Theme } from '@mui/material/styles/index.js';
|
|
2
|
+
import type { DateRange, DayRenderArgs, SelectionMode } from './Calendar.types';
|
|
3
|
+
/**
|
|
4
|
+
* WHERE A DAY SITS ON THE RANGE BAND (FUT-4162).
|
|
5
|
+
*
|
|
6
|
+
* A selected range is ONE band behind its days, not a tile per day: the grid
|
|
7
|
+
* has no column gap and each day paints its share of the band. A day strictly
|
|
8
|
+
* inside the range paints all of it (`full`); the first and last day paint the
|
|
9
|
+
* half that faces the rest of the range (`after` / `before`), so the band runs
|
|
10
|
+
* into the round endpoint and stops at its centre. A range of one day, or no
|
|
11
|
+
* range, paints none.
|
|
12
|
+
*
|
|
13
|
+
* While only the start is chosen, the hovered day stands in for the end, the
|
|
14
|
+
* same preview `isDateInRange` draws.
|
|
15
|
+
*/
|
|
16
|
+
export type DayBand = 'none' | 'full' | 'after' | 'before';
|
|
17
|
+
export declare const bandFor: ({ args, selectionMode, range, hoveredDate, isDisabled, }: {
|
|
18
|
+
args: DayRenderArgs;
|
|
19
|
+
selectionMode: SelectionMode;
|
|
20
|
+
range: DateRange;
|
|
21
|
+
hoveredDate: Date | null;
|
|
22
|
+
isDisabled: (date: Date) => boolean;
|
|
23
|
+
}) => DayBand;
|
|
24
|
+
/**
|
|
25
|
+
* The band: the brand at a quarter strength, so it reads as the brand's tint on
|
|
26
|
+
* any ground (on white it is the brand three quarters of the way to white).
|
|
27
|
+
*/
|
|
28
|
+
export declare const BAND_OPACITY = 0.25;
|
|
29
|
+
export declare const bandColor: (theme: Theme) => string;
|
|
30
|
+
/**
|
|
31
|
+
* An endpoint's fill: the brand, moved away from its own ink JUST far enough
|
|
32
|
+
* for that ink to read at AA (FUT-4162).
|
|
33
|
+
*
|
|
34
|
+
* The ink is the palette's `primary.contrastText`, which MUI picks at 3:1, so
|
|
35
|
+
* a brand can ship an ink that reads at 3 to 4.5:1 on it — the default indigo
|
|
36
|
+
* is 4.47:1 under white. Rather than change the ink (every other component
|
|
37
|
+
* shares it), the fill gives way: darker under white ink, lighter under dark
|
|
38
|
+
* ink. A brand that already passes is returned unchanged; the default indigo
|
|
39
|
+
* moves by one percent, which no one can see.
|
|
40
|
+
*/
|
|
41
|
+
export declare const endpointFill: (theme: Theme) => string;
|
|
42
|
+
/** A hovered endpoint: one more step the same way, so it only gains contrast. */
|
|
43
|
+
export declare const endpointHoverFill: (theme: Theme) => string;
|
|
44
|
+
//# sourceMappingURL=Calendar.band.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Calendar.band.d.ts","sourceRoot":"","sources":["../../../../../src/components/form/Calendar/Calendar.band.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,+BAA+B,CAAC;AAK3D,OAAO,KAAK,EAAE,SAAS,EAAE,aAAa,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAEhF;;;;;;;;;;;;GAYG;AACH,MAAM,MAAM,OAAO,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,QAAQ,CAAC;AAe3D,eAAO,MAAM,OAAO,GAAI,0DAMrB;IACD,IAAI,EAAE,aAAa,CAAC;IACpB,aAAa,EAAE,aAAa,CAAC;IAC7B,KAAK,EAAE,SAAS,CAAC;IACjB,WAAW,EAAE,IAAI,GAAG,IAAI,CAAC;IACzB,UAAU,EAAE,CAAC,IAAI,EAAE,IAAI,KAAK,OAAO,CAAC;CACrC,KAAG,OAOH,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,YAAY,OAAO,CAAC;AAEjC,eAAO,MAAM,SAAS,GAAI,OAAO,KAAK,KAAG,MAAyD,CAAC;AAoBnG;;;;;;;;;;GAUG;AACH,eAAO,MAAM,YAAY,GAAI,OAAO,KAAK,KAAG,MAc3C,CAAC;AAEF,iFAAiF;AACjF,eAAO,MAAM,iBAAiB,GAAI,OAAO,KAAK,KAAG,MAOhD,CAAC"}
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import type { FC } from 'react';
|
|
2
|
+
import type { DayBand } from './Calendar.band';
|
|
2
3
|
import type { DayRenderArgs } from './Calendar.types';
|
|
3
4
|
export interface CalendarDayProps {
|
|
4
5
|
day: DayRenderArgs;
|
|
6
|
+
band: DayBand;
|
|
5
7
|
focused: boolean;
|
|
6
8
|
showOutsideDays: boolean;
|
|
7
9
|
dayClassName?: (args: DayRenderArgs) => string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CalendarDay.d.ts","sourceRoot":"","sources":["../../../../../src/components/form/Calendar/CalendarDay.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAKhC,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;
|
|
1
|
+
{"version":3,"file":"CalendarDay.d.ts","sourceRoot":"","sources":["../../../../../src/components/form/Calendar/CalendarDay.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAKhC,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,iBAAiB,CAAC;AAE/C,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAqItD,MAAM,WAAW,gBAAgB;IAC/B,GAAG,EAAE,aAAa,CAAC;IACnB,IAAI,EAAE,OAAO,CAAC;IACd,OAAO,EAAE,OAAO,CAAC;IACjB,eAAe,EAAE,OAAO,CAAC;IACzB,YAAY,CAAC,EAAE,CAAC,IAAI,EAAE,aAAa,KAAK,MAAM,CAAC;IAC/C,QAAQ,EAAE,CAAC,IAAI,EAAE,IAAI,KAAK,IAAI,CAAC;IAC/B,OAAO,EAAE,CAAC,IAAI,EAAE,IAAI,KAAK,IAAI,CAAC;IAC9B,UAAU,EAAE,MAAM,IAAI,CAAC;CACxB;AAED,eAAO,MAAM,WAAW,EAAE,EAAE,CAAC,gBAAgB,CAqC5C,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CalendarDayCell.d.ts","sourceRoot":"","sources":["../../../../../src/components/form/Calendar/CalendarDayCell.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"CalendarDayCell.d.ts","sourceRoot":"","sources":["../../../../../src/components/form/Calendar/CalendarDayCell.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAMhC,OAAO,KAAK,EAAE,aAAa,EAAE,SAAS,EAAE,cAAc,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAIhG,MAAM,WAAW,cAAc;IAC7B,aAAa,EAAE,aAAa,CAAC;IAC7B,KAAK,EAAE,IAAI,GAAG,IAAI,CAAC;IACnB,KAAK,EAAE,SAAS,CAAC;IACjB,WAAW,EAAE,IAAI,GAAG,IAAI,CAAC;IACzB,WAAW,EAAE,IAAI,CAAC;IAClB,KAAK,EAAE,IAAI,CAAC;IACZ,eAAe,EAAE,OAAO,CAAC;IACzB,UAAU,EAAE,CAAC,IAAI,EAAE,IAAI,KAAK,OAAO,CAAC;IACpC,SAAS,CAAC,EAAE,aAAa,CAAC,WAAW,CAAC,CAAC;IACvC,YAAY,CAAC,EAAE,aAAa,CAAC,cAAc,CAAC,CAAC;IAC7C,QAAQ,EAAE,CAAC,IAAI,EAAE,IAAI,KAAK,IAAI,CAAC;IAC/B,OAAO,EAAE,CAAC,IAAI,EAAE,IAAI,KAAK,IAAI,CAAC;IAC9B,UAAU,EAAE,MAAM,IAAI,CAAC;CACxB;AAED,eAAO,MAAM,eAAe,EAAE,EAAE,CAAC,cAAc,GAAG;IAAE,GAAG,EAAE,cAAc,CAAA;CAAE,CA2BxE,CAAC"}
|
|
@@ -2,8 +2,9 @@ import type { FC } from 'react';
|
|
|
2
2
|
import type { CalendarProps, MonthMatrix } from './Calendar.types';
|
|
3
3
|
import type { DayCellContext } from './CalendarDayCell';
|
|
4
4
|
/**
|
|
5
|
-
* A month takes the room it is given, from nothing up to seven full
|
|
6
|
-
*
|
|
5
|
+
* A month takes the room it is given, from nothing up to seven full columns
|
|
6
|
+
* (304 design px: what 7 × 40 cells and 6 × 4 gaps came to before the gaps
|
|
7
|
+
* went, FUT-4162). Months side by side keep a 280 basis,
|
|
7
8
|
* so a multi-month calendar still wraps rather than squeezing every month.
|
|
8
9
|
*/
|
|
9
10
|
export declare const MONTH_SX: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CalendarMonth.d.ts","sourceRoot":"","sources":["../../../../../src/components/form/Calendar/CalendarMonth.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAMhC,OAAO,KAAK,EAAE,aAAa,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AACnE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;
|
|
1
|
+
{"version":3,"file":"CalendarMonth.d.ts","sourceRoot":"","sources":["../../../../../src/components/form/Calendar/CalendarMonth.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAMhC,OAAO,KAAK,EAAE,aAAa,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AACnE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAmBxD;;;;;GAKG;AACH,eAAO,MAAM,QAAQ;;;;CAA4E,CAAC;AAgElG,gEAAgE;AAChE,eAAO,MAAM,SAAS,EAAE,EAAE,CAAC;IACzB,MAAM,EAAE,WAAW,CAAC;IACpB,UAAU,EAAE,MAAM,CAAC;IACnB,YAAY,EAAE,MAAM,EAAE,CAAC;IACvB,UAAU,EAAE,cAAc,CAAC;CAC5B,CAeA,CAAC;AAEF,MAAM,WAAW,kBAAkB;IACjC,MAAM,EAAE,WAAW,CAAC;IACpB,UAAU,EAAE,MAAM,CAAC;IACnB,YAAY,EAAE,MAAM,CAAC;IACrB,MAAM,EAAE,MAAM,CAAC;IACf,YAAY,EAAE,MAAM,EAAE,CAAC;IACvB,YAAY,CAAC,EAAE,aAAa,CAAC,cAAc,CAAC,CAAC;IAC7C,eAAe,EAAE,MAAM,IAAI,CAAC;IAC5B,WAAW,EAAE,MAAM,IAAI,CAAC;IACxB,UAAU,EAAE,cAAc,CAAC;CAC5B;AAED,eAAO,MAAM,aAAa,EAAE,EAAE,CAAC,kBAAkB,CAqChD,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CommandPalette.d.ts","sourceRoot":"","sources":["../../../../../src/components/navigation/CommandPalette/CommandPalette.tsx"],"names":[],"mappings":"AAeA,OAAO,KAAK,EAAE,EAAE,EAAC,MAAM,OAAO,CAAC;AAM/B,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAC;
|
|
1
|
+
{"version":3,"file":"CommandPalette.d.ts","sourceRoot":"","sources":["../../../../../src/components/navigation/CommandPalette/CommandPalette.tsx"],"names":[],"mappings":"AAeA,OAAO,KAAK,EAAE,EAAE,EAAC,MAAM,OAAO,CAAC;AAM/B,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAC;AAwHlE,eAAO,MAAM,cAAc,EAAE,EAAE,CAAC,mBAAmB,CA6ElD,CAAC;AAGF,eAAe,cAAc,CAAC"}
|
|
@@ -27,6 +27,8 @@ export interface CommandPaletteCopy {
|
|
|
27
27
|
noCommandsFound?: (query: string) => string;
|
|
28
28
|
/** The group header of a command that names no `category`. */
|
|
29
29
|
general?: string;
|
|
30
|
+
/** The search row's ✕, as a screen reader names it (FUT-4162). */
|
|
31
|
+
closeSearch?: string;
|
|
30
32
|
}
|
|
31
33
|
/**
|
|
32
34
|
* `SectionNav`'s own words — only the chrome it draws around the host's
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"navigation.d.ts","sourceRoot":"","sources":["../../../src/copy/navigation.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,8DAA8D;AAC9D,MAAM,WAAW,kBAAkB;IACjC,2DAA2D;IAC3D,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,EAAE,MAAM,CAAC;IACjB,KAAK,EAAE,MAAM,CAAC;IACd,sEAAsE;IACtE,MAAM,EAAE,MAAM,CAAC;IACf,cAAc,EAAE,MAAM,CAAC;IACvB;;;OAGG;IACH,wEAAwE;IACxE,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,0BAA0B;IAC1B,YAAY,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,MAAM,CAAC;IACzC,8CAA8C;IAC9C,eAAe,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,MAAM,CAAC;IAC5C,8DAA8D;IAC9D,OAAO,CAAC,EAAE,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"navigation.d.ts","sourceRoot":"","sources":["../../../src/copy/navigation.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,8DAA8D;AAC9D,MAAM,WAAW,kBAAkB;IACjC,2DAA2D;IAC3D,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,EAAE,MAAM,CAAC;IACjB,KAAK,EAAE,MAAM,CAAC;IACd,sEAAsE;IACtE,MAAM,EAAE,MAAM,CAAC;IACf,cAAc,EAAE,MAAM,CAAC;IACvB;;;OAGG;IACH,wEAAwE;IACxE,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,0BAA0B;IAC1B,YAAY,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,MAAM,CAAC;IACzC,8CAA8C;IAC9C,eAAe,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,MAAM,CAAC;IAC5C,8DAA8D;IAC9D,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,kEAAkE;IAClE,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED;;;GAGG;AACH,MAAM,WAAW,cAAc;IAC7B,gFAAgF;IAChF,KAAK,EAAE,MAAM,CAAC;IACd,iEAAiE;IACjE,KAAK,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,MAAM,CAAC;IACjC;;;OAGG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,+DAA+D;AAC/D,MAAM,WAAW,cAAc;IAC7B,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE,MAAM,CAAC;CACnB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"en-US.navigation.d.ts","sourceRoot":"","sources":["../../src/en-US.navigation.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,OAAO,KAAK,EACV,cAAc,EACd,kBAAkB,EAClB,cAAc,EACf,MAAM,QAAQ,CAAC;AAEhB,eAAO,MAAM,0BAA0B,EAAE,QAAQ,CAAC,kBAAkB,
|
|
1
|
+
{"version":3,"file":"en-US.navigation.d.ts","sourceRoot":"","sources":["../../src/en-US.navigation.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,OAAO,KAAK,EACV,cAAc,EACd,kBAAkB,EAClB,cAAc,EACf,MAAM,QAAQ,CAAC;AAEhB,eAAO,MAAM,0BAA0B,EAAE,QAAQ,CAAC,kBAAkB,CAanE,CAAC;AAEF,eAAO,MAAM,qBAAqB,EAAE,cAGnC,CAAC;AAEF,eAAO,MAAM,sBAAsB,EAAE,cAIpC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pt-BR.navigation.d.ts","sourceRoot":"","sources":["../../src/pt-BR.navigation.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,OAAO,KAAK,EACV,cAAc,EACd,kBAAkB,EAClB,cAAc,EACf,MAAM,QAAQ,CAAC;AAEhB,eAAO,MAAM,0BAA0B,EAAE,QAAQ,CAAC,kBAAkB,
|
|
1
|
+
{"version":3,"file":"pt-BR.navigation.d.ts","sourceRoot":"","sources":["../../src/pt-BR.navigation.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,OAAO,KAAK,EACV,cAAc,EACd,kBAAkB,EAClB,cAAc,EACf,MAAM,QAAQ,CAAC;AAEhB,eAAO,MAAM,0BAA0B,EAAE,QAAQ,CAAC,kBAAkB,CAWnE,CAAC;AAEF,eAAO,MAAM,qBAAqB,EAAE,cAGnC,CAAC;AAEF,eAAO,MAAM,sBAAsB,EAAE,cAIpC,CAAC"}
|
package/dist/user-avatar.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
UserAvatar,
|
|
3
3
|
UserMenu
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-WLSFBXGS.js";
|
|
5
5
|
import "./chunk-DQ22UKMZ.js";
|
|
6
6
|
import "./chunk-UDQSIRAP.js";
|
|
7
|
-
import "./chunk-
|
|
8
|
-
import "./chunk-3ZVUNSFF.js";
|
|
7
|
+
import "./chunk-4QR7LM5F.js";
|
|
9
8
|
import "./chunk-EOQ6EKTS.js";
|
|
10
9
|
import "./chunk-6ZZGK5DT.js";
|
|
10
|
+
import "./chunk-3ZVUNSFF.js";
|
|
11
11
|
import "./chunk-MTEQEPNY.js";
|
|
12
12
|
import "./chunk-VUHLNYAE.js";
|
|
13
13
|
import "./chunk-2GSIEDGN.js";
|
|
@@ -16,10 +16,10 @@ import "./chunk-PLB6WWXW.js";
|
|
|
16
16
|
import "./chunk-FKUYRQSP.js";
|
|
17
17
|
import "./chunk-HDBP55R3.js";
|
|
18
18
|
import "./chunk-BA4RHQ3B.js";
|
|
19
|
-
import "./chunk-
|
|
20
|
-
import "./chunk-TAMIZE4Q.js";
|
|
19
|
+
import "./chunk-YOXYSAUI.js";
|
|
21
20
|
import "./chunk-PPEHBI5O.js";
|
|
22
21
|
import "./chunk-G2FUZALJ.js";
|
|
22
|
+
import "./chunk-TAMIZE4Q.js";
|
|
23
23
|
import "./chunk-AJBRO76D.js";
|
|
24
24
|
import "./chunk-36VXZCJT.js";
|
|
25
25
|
import "./chunk-XOXXG7Q5.js";
|
package/package.json
CHANGED
|
@@ -15,10 +15,22 @@ import {
|
|
|
15
15
|
import type { AddressAutocompleteState } from './AddressAutocomplete.hooks';
|
|
16
16
|
import { AddressInputField } from './AddressInputField';
|
|
17
17
|
import { AddressOption } from './AddressOption';
|
|
18
|
-
import { AddressSuggestionsPaper } from './AddressSuggestionsPaper';
|
|
18
|
+
import { AddressSuggestionsPaper, type AddressSuggestionsPaperProps } from './AddressSuggestionsPaper';
|
|
19
19
|
|
|
20
20
|
export type AddressAutocompleteFieldProps = ResolvedAddressProps & AddressAutocompleteState;
|
|
21
21
|
|
|
22
|
+
// What the open list says when it is empty. A failed lookup is not an empty
|
|
23
|
+
// answer: the field's helper text and the alert below already say what went
|
|
24
|
+
// wrong.
|
|
25
|
+
const emptyTextFor = (
|
|
26
|
+
text: { typeToSearch: string; noAddressesFound: string },
|
|
27
|
+
inputValue: string,
|
|
28
|
+
apiError: string | null | undefined,
|
|
29
|
+
): string | undefined => {
|
|
30
|
+
if (apiError) return undefined;
|
|
31
|
+
return inputValue.length <= MIN_QUERY_LENGTH ? text.typeToSearch : text.noAddressesFound;
|
|
32
|
+
};
|
|
33
|
+
|
|
22
34
|
// The live field, rendered once Google Maps (or the mock stand-in) is ready.
|
|
23
35
|
export const AddressAutocompleteField: FC<AddressAutocompleteFieldProps> = ({
|
|
24
36
|
copy,
|
|
@@ -42,6 +54,9 @@ export const AddressAutocompleteField: FC<AddressAutocompleteFieldProps> = ({
|
|
|
42
54
|
handleGetCurrentLocation,
|
|
43
55
|
}) => {
|
|
44
56
|
const text = resolveLabels(EN_US_ADDRESS_AUTOCOMPLETE_COPY, copy);
|
|
57
|
+
const paperProps: AddressSuggestionsPaperProps = {
|
|
58
|
+
emptyText: emptyTextFor(text, inputValue, apiError),
|
|
59
|
+
};
|
|
45
60
|
return (
|
|
46
61
|
<Box data-testid="address-autocomplete-container">
|
|
47
62
|
<Autocomplete
|
|
@@ -57,9 +72,7 @@ export const AddressAutocompleteField: FC<AddressAutocompleteFieldProps> = ({
|
|
|
57
72
|
getOptionLabel={addressOptionLabel}
|
|
58
73
|
isOptionEqualToValue={isSameAddressOption}
|
|
59
74
|
PaperComponent={AddressSuggestionsPaper}
|
|
60
|
-
|
|
61
|
-
inputValue.length <= MIN_QUERY_LENGTH ? text.typeToSearch : text.noAddressesFound
|
|
62
|
-
}
|
|
75
|
+
slotProps={{ paper: paperProps }}
|
|
63
76
|
renderOption={({ key, ...optionProps }, option, state) => (
|
|
64
77
|
<AddressOption
|
|
65
78
|
key={key}
|
|
@@ -1,14 +1,30 @@
|
|
|
1
1
|
import type { PaperProps } from '@mui/material/Paper/index.js';
|
|
2
|
+
import Box from '@mui/material/Box/index.js';
|
|
2
3
|
import Paper from '@mui/material/Paper/index.js';
|
|
3
4
|
import { alpha, useTheme } from '@mui/material/styles/index.js';
|
|
4
5
|
import type { FC } from 'react';
|
|
5
|
-
import React from 'react';
|
|
6
|
+
import React, { Children } from 'react';
|
|
6
7
|
|
|
7
8
|
import { rem } from '../../../tokens/relative';
|
|
8
9
|
|
|
10
|
+
export interface AddressSuggestionsPaperProps extends PaperProps {
|
|
11
|
+
/**
|
|
12
|
+
* Said when the list is open with nothing in it. MUI never renders its own
|
|
13
|
+
* `noOptionsText` for a `freeSolo` field, so an empty list was a blank strip
|
|
14
|
+
* (FUT-4162): the paper says it instead, exactly when MUI gave it no content
|
|
15
|
+
* (no suggestions and no loading row).
|
|
16
|
+
*/
|
|
17
|
+
emptyText?: React.ReactNode;
|
|
18
|
+
}
|
|
19
|
+
|
|
9
20
|
// The dropdown surface, frosted to match the glass field.
|
|
10
|
-
export const AddressSuggestionsPaper: FC<
|
|
21
|
+
export const AddressSuggestionsPaper: FC<AddressSuggestionsPaperProps> = ({
|
|
22
|
+
emptyText,
|
|
23
|
+
children,
|
|
24
|
+
...props
|
|
25
|
+
}) => {
|
|
11
26
|
const theme = useTheme();
|
|
27
|
+
const empty = Children.toArray(children).length === 0;
|
|
12
28
|
|
|
13
29
|
return (
|
|
14
30
|
<Paper
|
|
@@ -22,6 +38,19 @@ export const AddressSuggestionsPaper: FC<PaperProps> = (props) => {
|
|
|
22
38
|
WebkitBackdropFilter: `blur(${rem(theme, 20)})`,
|
|
23
39
|
border: `1px solid ${alpha(theme.palette.divider, 0.18)}`,
|
|
24
40
|
}}
|
|
25
|
-
|
|
41
|
+
>
|
|
42
|
+
{children}
|
|
43
|
+
{empty && emptyText && (
|
|
44
|
+
<Box
|
|
45
|
+
role="presentation"
|
|
46
|
+
data-testid="address-suggestions-empty"
|
|
47
|
+
// Keeps the input focused, as MUI's own no-options row does.
|
|
48
|
+
onMouseDown={(event) => event.preventDefault()}
|
|
49
|
+
sx={{ px: 2, py: 1.5, color: 'text.secondary' }}
|
|
50
|
+
>
|
|
51
|
+
{emptyText}
|
|
52
|
+
</Box>
|
|
53
|
+
)}
|
|
54
|
+
</Paper>
|
|
26
55
|
);
|
|
27
56
|
};
|
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
import type { Theme } from '@mui/material/styles/index.js';
|
|
2
|
+
|
|
3
|
+
import { alpha, blend, darken, decomposeColor, getContrastRatio, getLuminance, lighten } from '../../../tokens/color';
|
|
4
|
+
|
|
5
|
+
import { isSameDay } from './Calendar.dates';
|
|
6
|
+
import type { DateRange, DayRenderArgs, SelectionMode } from './Calendar.types';
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* WHERE A DAY SITS ON THE RANGE BAND (FUT-4162).
|
|
10
|
+
*
|
|
11
|
+
* A selected range is ONE band behind its days, not a tile per day: the grid
|
|
12
|
+
* has no column gap and each day paints its share of the band. A day strictly
|
|
13
|
+
* inside the range paints all of it (`full`); the first and last day paint the
|
|
14
|
+
* half that faces the rest of the range (`after` / `before`), so the band runs
|
|
15
|
+
* into the round endpoint and stops at its centre. A range of one day, or no
|
|
16
|
+
* range, paints none.
|
|
17
|
+
*
|
|
18
|
+
* While only the start is chosen, the hovered day stands in for the end, the
|
|
19
|
+
* same preview `isDateInRange` draws.
|
|
20
|
+
*/
|
|
21
|
+
export type DayBand = 'none' | 'full' | 'after' | 'before';
|
|
22
|
+
|
|
23
|
+
// The other end of the range: its end, or while only the start is chosen, the
|
|
24
|
+
// hovered day standing in for it.
|
|
25
|
+
const otherEnd = (range: DateRange, hoveredDate: Date | null, isDisabled: (date: Date) => boolean) =>
|
|
26
|
+
range.end ?? (hoveredDate && !isDisabled(hoveredDate) ? hoveredDate : null);
|
|
27
|
+
|
|
28
|
+
// The half an endpoint paints: towards the rest of the range.
|
|
29
|
+
const endpointBand = (date: Date, start: Date, other: Date): DayBand => {
|
|
30
|
+
const [first, last] = start < other ? [start, other] : [other, start];
|
|
31
|
+
if (isSameDay(date, first)) return 'after';
|
|
32
|
+
if (isSameDay(date, last)) return 'before';
|
|
33
|
+
return 'none';
|
|
34
|
+
};
|
|
35
|
+
|
|
36
|
+
export const bandFor = ({
|
|
37
|
+
args,
|
|
38
|
+
selectionMode,
|
|
39
|
+
range,
|
|
40
|
+
hoveredDate,
|
|
41
|
+
isDisabled,
|
|
42
|
+
}: {
|
|
43
|
+
args: DayRenderArgs;
|
|
44
|
+
selectionMode: SelectionMode;
|
|
45
|
+
range: DateRange;
|
|
46
|
+
hoveredDate: Date | null;
|
|
47
|
+
isDisabled: (date: Date) => boolean;
|
|
48
|
+
}): DayBand => {
|
|
49
|
+
if (selectionMode !== 'range') return 'none';
|
|
50
|
+
if (args.inRange) return 'full';
|
|
51
|
+
|
|
52
|
+
const other = otherEnd(range, hoveredDate, isDisabled);
|
|
53
|
+
if (!range.start || !other || isSameDay(range.start, other)) return 'none';
|
|
54
|
+
return endpointBand(args.date, range.start, other);
|
|
55
|
+
};
|
|
56
|
+
|
|
57
|
+
/**
|
|
58
|
+
* The band: the brand at a quarter strength, so it reads as the brand's tint on
|
|
59
|
+
* any ground (on white it is the brand three quarters of the way to white).
|
|
60
|
+
*/
|
|
61
|
+
export const BAND_OPACITY = 0.25;
|
|
62
|
+
|
|
63
|
+
export const bandColor = (theme: Theme): string => alpha(theme.palette.primary.main, BAND_OPACITY);
|
|
64
|
+
|
|
65
|
+
/**
|
|
66
|
+
* WCAG AA for body text, plus a margin: `getLuminance` rounds to three
|
|
67
|
+
* places, which can move a ratio by about a hundredth either way.
|
|
68
|
+
*/
|
|
69
|
+
const ENDPOINT_MIN_CONTRAST = 4.55;
|
|
70
|
+
const STEP = 0.01;
|
|
71
|
+
|
|
72
|
+
// The ink as it reads ON the fill: MUI's dark ink is 87% black, so it is laid
|
|
73
|
+
// over the fill before it is measured, rather than taken as solid black.
|
|
74
|
+
const readsAt = (ink: string, fill: string): number => {
|
|
75
|
+
const [, , , opacity = 1] = decomposeColor(ink).values;
|
|
76
|
+
return getContrastRatio(opacity < 1 ? blend(fill, ink, opacity) : ink, fill);
|
|
77
|
+
};
|
|
78
|
+
|
|
79
|
+
// Light ink (white) wants a darker fill; dark ink a lighter one.
|
|
80
|
+
const awayFromInk = (ink: string): ((color: string, coefficient: number) => string) =>
|
|
81
|
+
getLuminance(ink) > 0.5 ? darken : lighten;
|
|
82
|
+
|
|
83
|
+
/**
|
|
84
|
+
* An endpoint's fill: the brand, moved away from its own ink JUST far enough
|
|
85
|
+
* for that ink to read at AA (FUT-4162).
|
|
86
|
+
*
|
|
87
|
+
* The ink is the palette's `primary.contrastText`, which MUI picks at 3:1, so
|
|
88
|
+
* a brand can ship an ink that reads at 3 to 4.5:1 on it — the default indigo
|
|
89
|
+
* is 4.47:1 under white. Rather than change the ink (every other component
|
|
90
|
+
* shares it), the fill gives way: darker under white ink, lighter under dark
|
|
91
|
+
* ink. A brand that already passes is returned unchanged; the default indigo
|
|
92
|
+
* moves by one percent, which no one can see.
|
|
93
|
+
*/
|
|
94
|
+
export const endpointFill = (theme: Theme): string => {
|
|
95
|
+
const { main, contrastText } = theme.palette.primary;
|
|
96
|
+
try {
|
|
97
|
+
if (readsAt(contrastText, main) >= ENDPOINT_MIN_CONTRAST) return main;
|
|
98
|
+
const move = awayFromInk(contrastText);
|
|
99
|
+
for (let coefficient = STEP; coefficient < 1; coefficient += STEP) {
|
|
100
|
+
const fill = move(main, coefficient);
|
|
101
|
+
if (readsAt(contrastText, fill) >= ENDPOINT_MIN_CONTRAST) return fill;
|
|
102
|
+
}
|
|
103
|
+
return move(main, 1);
|
|
104
|
+
} catch {
|
|
105
|
+
// A colour format the helpers cannot decompose: the brand as it is.
|
|
106
|
+
return main;
|
|
107
|
+
}
|
|
108
|
+
};
|
|
109
|
+
|
|
110
|
+
/** A hovered endpoint: one more step the same way, so it only gains contrast. */
|
|
111
|
+
export const endpointHoverFill = (theme: Theme): string => {
|
|
112
|
+
const fill = endpointFill(theme);
|
|
113
|
+
try {
|
|
114
|
+
return awayFromInk(theme.palette.primary.contrastText)(fill, 0.15);
|
|
115
|
+
} catch {
|
|
116
|
+
return fill;
|
|
117
|
+
}
|
|
118
|
+
};
|