@12-apps/ui 6.19.1 → 6.20.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/NATIVE.md +6 -1
- package/dist/_internal/components/data-display/AsyncStateContainer/AsyncStateContainer.js +8 -7
- package/dist/_internal/components/data-display/Avatar/Avatar.base.js +1 -0
- package/dist/_internal/components/data-display/Avatar/Avatar.base.js.map +1 -0
- package/dist/_internal/components/data-display/Avatar/Avatar.helpers.js +14 -0
- package/dist/_internal/components/data-display/Avatar/Avatar.helpers.js.map +1 -0
- package/dist/_internal/components/data-display/Avatar/Avatar.js +8 -2
- package/dist/_internal/components/data-display/Avatar/Avatar.metrics.js +52 -0
- package/dist/_internal/components/data-display/Avatar/Avatar.metrics.js.map +1 -0
- package/dist/_internal/components/data-display/Avatar/Avatar.view.js +6 -1
- package/dist/_internal/components/data-display/Badge/Badge.animations.js +6 -1
- package/dist/_internal/components/data-display/Badge/Badge.base.js +1 -0
- package/dist/_internal/components/data-display/Badge/Badge.base.js.map +1 -0
- package/dist/_internal/components/data-display/Badge/Badge.helpers.js +3 -1
- package/dist/_internal/components/data-display/Badge/Badge.js +12 -6
- package/dist/_internal/components/data-display/Badge/Badge.metrics.js +64 -0
- package/dist/_internal/components/data-display/Badge/Badge.metrics.js.map +1 -0
- package/dist/_internal/components/data-display/Badge/Badge.styles.js +8 -3
- package/dist/_internal/components/data-display/Badge/Badge.variants.js +6 -1
- package/dist/_internal/components/data-display/Badge/BadgeContent.js +9 -4
- package/dist/_internal/components/data-display/CardKit/CardKebab.js +3 -3
- package/dist/_internal/components/data-display/CardKit/use-remove-confirm.js +4 -4
- package/dist/_internal/components/data-display/CardKit/use-row-confirm.js +4 -4
- package/dist/_internal/components/data-display/Carousel/Carousel.js +2 -2
- package/dist/_internal/components/data-display/Chart/Chart.js +3 -3
- package/dist/_internal/components/data-display/Chart/SpecChart.js +6 -6
- package/dist/_internal/components/data-display/Chart/chart-renderers.js +2 -2
- package/dist/_internal/components/data-display/Chart/chart-spec.js +2 -2
- package/dist/_internal/components/data-display/Chip/Chip.base.js +1 -0
- package/dist/_internal/components/data-display/Chip/Chip.base.js.map +1 -0
- package/dist/_internal/components/data-display/Chip/Chip.helpers.js +3 -9
- package/dist/_internal/components/data-display/Chip/Chip.js +4 -2
- package/dist/_internal/components/data-display/Chip/Chip.metrics.js +32 -0
- package/dist/_internal/components/data-display/Chip/Chip.metrics.js.map +1 -0
- package/dist/_internal/components/data-display/Chip/Chip.styles.js +16 -0
- package/dist/_internal/components/data-display/Chip/Chip.styles.js.map +1 -0
- package/dist/_internal/components/data-display/DataGrid/DataGrid.js +3 -3
- package/dist/_internal/components/data-display/DataViews/DataViewsGrid.js +43 -43
- package/dist/_internal/components/data-display/DataViews/DataViewsTableBase.js +54 -54
- package/dist/_internal/components/data-display/DataViews/DeleteViewDialog.js +3 -3
- package/dist/_internal/components/data-display/DataViews/ManageViewsDialog.js +5 -5
- package/dist/_internal/components/data-display/DataViews/SaveViewModal.js +5 -5
- package/dist/_internal/components/data-display/DataViews/base-card.js +4 -3
- package/dist/_internal/components/data-display/DataViews/base-list-card-geometry.js +5 -4
- package/dist/_internal/components/data-display/DataViews/base-list-card-slots.js +1 -1
- package/dist/_internal/components/data-display/DataViews/base-list-card.js +7 -6
- package/dist/_internal/components/data-display/DataViews/card-surface.js +7 -2
- package/dist/_internal/components/data-display/DataViews/data-views-category-pill.js +15 -15
- 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 +16 -16
- 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 +40 -40
- package/dist/_internal/components/data-display/DataViews/data-views-inline-bar.js +20 -20
- package/dist/_internal/components/data-display/DataViews/data-views-more-fields.js +4 -4
- package/dist/_internal/components/data-display/DataViews/data-views-more-filters.js +7 -7
- package/dist/_internal/components/data-display/DataViews/data-views-pagination.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 +12 -12
- package/dist/_internal/components/data-display/DataViews/data-views-table-parts.js +13 -13
- package/dist/_internal/components/data-display/DataViews/data-views-toolbar.js +11 -11
- 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 +1 -1
- package/dist/_internal/components/data-display/DataViews/use-data-views-state.js +6 -6
- package/dist/_internal/components/data-display/DataViews/use-saved-views-controller.js +2 -2
- package/dist/_internal/components/data-display/EmptyState/EmptyState.js +2 -2
- package/dist/_internal/components/data-display/HoverCard/HoverCard.js +3 -3
- package/dist/_internal/components/data-display/LazyImage/LazyImage.js +6 -4
- package/dist/_internal/components/data-display/Lightbox/Lightbox.js +5 -5
- package/dist/_internal/components/data-display/LoadingState/LoadingState.js +5 -4
- package/dist/_internal/components/data-display/MapPreview/MapLayers.js +2 -2
- package/dist/_internal/components/data-display/MapPreview/MapPreview.js +4 -4
- package/dist/_internal/components/data-display/Progress/Progress.base.js +1 -0
- package/dist/_internal/components/data-display/Progress/Progress.base.js.map +1 -0
- package/dist/_internal/components/data-display/Progress/Progress.helpers.js +5 -1
- package/dist/_internal/components/data-display/Progress/Progress.js +8 -3
- package/dist/_internal/components/data-display/Progress/Progress.metrics.js +52 -0
- package/dist/_internal/components/data-display/Progress/Progress.metrics.js.map +1 -0
- package/dist/_internal/components/data-display/Progress/Progress.styles.js +6 -1
- 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/StatCard/StatCard.js +6 -4
- package/dist/_internal/components/data-display/Table/Table.js +3 -3
- package/dist/_internal/components/data-display/index.js +63 -56
- package/dist/_internal/components/feedback/ConfirmAction/ConfirmButton.js +3 -3
- package/dist/_internal/components/feedback/TutorialOverlay/TutorialOverlay.js +2 -2
- package/dist/_internal/components/feedback/index.js +8 -8
- package/dist/_internal/components/form/AddressAutocomplete/AddressAutocomplete.hooks.js +3 -3
- package/dist/_internal/components/form/AddressAutocomplete/AddressAutocomplete.js +7 -7
- package/dist/_internal/components/form/AddressAutocomplete/AddressAutocompleteField.js +3 -3
- package/dist/_internal/components/form/Autocomplete/Autocomplete.js +2 -2
- package/dist/_internal/components/form/Button/Button.js +2 -2
- package/dist/_internal/components/form/Calendar/Calendar.js +4 -4
- package/dist/_internal/components/form/Calendar/CalendarDayCell.js +2 -2
- package/dist/_internal/components/form/Calendar/CalendarMonth.js +3 -3
- package/dist/_internal/components/form/CategorySelect/CategoryPanel.js +5 -5
- package/dist/_internal/components/form/CategorySelect/CategoryPanelList.js +3 -3
- package/dist/_internal/components/form/CategorySelect/CategoryRows.js +2 -2
- package/dist/_internal/components/form/CategorySelect/CategorySelect.js +10 -10
- package/dist/_internal/components/form/CepField/CepField.js +3 -3
- package/dist/_internal/components/form/CodeEditor/CodeEditor.js +3 -3
- package/dist/_internal/components/form/DateRangePicker/DateRangePicker.js +7 -7
- package/dist/_internal/components/form/Input/Input.js +2 -2
- package/dist/_internal/components/form/Menubar/Menubar.js +2 -2
- package/dist/_internal/components/form/RichTextEditor/RichTextEditor.js +2 -2
- package/dist/_internal/components/form/index.js +28 -28
- package/dist/_internal/components/form/total-form/Fields/CategoryField.js +11 -11
- package/dist/_internal/components/form/total-form/Fields/CepField.js +4 -4
- package/dist/_internal/components/form/total-form/Fields/TextField.js +3 -3
- package/dist/_internal/components/form/total-form/Fields/index.js +21 -21
- package/dist/_internal/components/form/total-form/SubmitButton.js +3 -3
- package/dist/_internal/components/index.js +123 -116
- package/dist/_internal/components/layout/ScrollArea/ScrollArea.js +2 -2
- package/dist/_internal/components/layout/SettingsLayout/SettingsLayout.js +4 -4
- package/dist/_internal/components/layout/SettingsLayout/SettingsPanel.js +2 -2
- package/dist/_internal/components/layout/Skeleton/Skeleton.base.js +1 -0
- package/dist/_internal/components/layout/Skeleton/Skeleton.base.js.map +1 -0
- package/dist/_internal/components/layout/Skeleton/Skeleton.helpers.js +5 -3
- package/dist/_internal/components/layout/Skeleton/Skeleton.js +5 -3
- package/dist/_internal/components/layout/Skeleton/Skeleton.metrics.js +36 -0
- package/dist/_internal/components/layout/Skeleton/Skeleton.metrics.js.map +1 -0
- package/dist/_internal/components/layout/Skeleton/Skeleton.styles.js +2 -1
- package/dist/_internal/components/layout/index.js +16 -15
- package/dist/_internal/components/navigation/AppHeader/AppHeader.details.js +5 -5
- package/dist/_internal/components/navigation/NavigationMenu/NavigationMegaSection.js +2 -2
- package/dist/_internal/components/navigation/NavigationMenu/NavigationMenu.js +4 -4
- package/dist/_internal/components/navigation/NavigationMenu/NavigationStandardBody.js +2 -2
- package/dist/_internal/components/navigation/Pagination/Pagination.js +2 -2
- package/dist/_internal/components/navigation/Tabs/Tabs.js +2 -2
- package/dist/_internal/components/navigation/index.js +16 -16
- package/dist/_internal/components/utility/InstallPrompt/InstallPrompt.js +2 -2
- package/dist/_internal/components/utility/index.js +2 -2
- package/dist/_internal/icons/Icon.js +2 -2
- package/dist/_internal/icons/paths.generated.js +1 -1
- package/dist/_internal/platform/animation.js +31 -0
- package/dist/_internal/platform/animation.js.map +1 -0
- package/dist/_internal/platform/web-keys.js +10 -0
- package/dist/_internal/platform/web-keys.js.map +1 -0
- package/dist/_internal/social-login-button/social-login-button.js +3 -3
- package/dist/_internal/tokens/mui-type.js +2 -1
- package/dist/_internal/tokens/mui-type.js.map +1 -1
- package/dist/_internal/user-avatar/user-avatar.js +7 -5
- package/dist/charts.js +11 -11
- package/dist/{chunk-P7FQUGED.js → chunk-23FCBIUN.js} +8 -8
- package/dist/{chunk-SL4NFGOL.js → chunk-24BUCMQA.js} +4 -4
- package/dist/{chunk-4SXZSSVV.js → chunk-2EKALM6P.js} +3 -3
- package/dist/{chunk-ZRFRU545.js → chunk-2ZDTGI5V.js} +7 -7
- package/dist/{chunk-HR7YTBR7.js → chunk-3AOOI2NR.js} +4 -4
- package/dist/chunk-3ZVUNSFF.js +32 -0
- package/dist/chunk-3ZVUNSFF.js.map +1 -0
- package/dist/{chunk-KKYW3LU7.js → chunk-47UD6DZ4.js} +2 -2
- package/dist/{chunk-ZOUWHGV3.js → chunk-4MGFUPQT.js} +4 -4
- package/dist/{chunk-LYNJJV2X.js → chunk-4SQFO4GW.js} +58 -40
- package/dist/chunk-4SQFO4GW.js.map +1 -0
- package/dist/{chunk-4FRZDSRD.js → chunk-4WK2RTVY.js} +3 -3
- package/dist/{chunk-HAFE43QJ.js → chunk-5JEOLUWJ.js} +6 -2
- package/dist/chunk-5JEOLUWJ.js.map +1 -0
- package/dist/{chunk-LDE4ELB5.js → chunk-5ZF3VASA.js} +7 -7
- package/dist/{chunk-JE6RZ5L6.js → chunk-5ZOJLYD2.js} +4 -4
- package/dist/{chunk-MMZAGB64.js → chunk-6C5D6O3D.js} +4 -2
- package/dist/chunk-6C5D6O3D.js.map +1 -0
- package/dist/{chunk-E5ZHW4I5.js → chunk-6IUTT6BK.js} +3 -3
- package/dist/{chunk-WPR2HS5B.js → chunk-74EZ565M.js} +8 -8
- package/dist/{chunk-BVZVH3ZN.js → chunk-74OZ5KVR.js} +5 -5
- package/dist/{chunk-PMS3H3OO.js → chunk-76GZ55IC.js} +7 -7
- package/dist/{chunk-QIV73V2X.js → chunk-7BYFC2MR.js} +36 -28
- package/dist/chunk-7BYFC2MR.js.map +1 -0
- package/dist/{chunk-DLFOEXUP.js → chunk-7EESF76V.js} +2 -2
- package/dist/{chunk-HKZHEK3Z.js → chunk-7JWXLDRH.js} +3 -3
- package/dist/{chunk-OR7UH2ZQ.js → chunk-7P2HZLEG.js} +3 -3
- package/dist/{chunk-6DXYCXH4.js → chunk-7RZ4WOQW.js} +2 -2
- package/dist/{chunk-EMNGIYH6.js → chunk-7TZ6OC5T.js} +5 -5
- package/dist/{chunk-HXYXDQ7U.js → chunk-7WDPC46N.js} +4 -2
- package/dist/chunk-7WDPC46N.js.map +1 -0
- package/dist/{chunk-CDJPDZCA.js → chunk-AEGX66N7.js} +2 -2
- package/dist/{chunk-65DLYC4S.js → chunk-AVGTTWTE.js} +4 -4
- package/dist/{chunk-C6XESZ3R.js → chunk-B2A4DG77.js} +6 -6
- package/dist/{chunk-VOOPGAQO.js → chunk-B7BZAIHL.js} +2 -2
- package/dist/{chunk-DZN3JF5E.js → chunk-BBC4KT5G.js} +4 -4
- package/dist/chunk-BF4FYOAR.js +23 -0
- package/dist/chunk-BF4FYOAR.js.map +1 -0
- package/dist/{chunk-FWCUELBU.js → chunk-BILE3A7F.js} +2 -2
- package/dist/{chunk-UEJQQVP2.js → chunk-BLT5ZBVL.js} +4 -4
- package/dist/chunk-BRMGHMYB.js +45 -0
- package/dist/chunk-BRMGHMYB.js.map +1 -0
- package/dist/{chunk-ISSJNFJV.js → chunk-C52BELLW.js} +2 -2
- package/dist/{chunk-BPYPUEM5.js → chunk-CZJLWCEG.js} +2 -2
- package/dist/{chunk-WZUNBSS7.js → chunk-DVUPIVI2.js} +4 -4
- package/dist/chunk-E46PG577.js +78 -0
- package/dist/chunk-E46PG577.js.map +1 -0
- package/dist/{chunk-L6KEVPXN.js → chunk-E4FGKZID.js} +20 -9
- package/dist/chunk-E4FGKZID.js.map +1 -0
- package/dist/{chunk-EXJBPKGW.js → chunk-EGRFMPGD.js} +4 -4
- package/dist/{chunk-XFUNJYFT.js → chunk-EPNUVSNK.js} +7 -7
- package/dist/{chunk-H2EQVMU3.js → chunk-EX3PSZLV.js} +2 -2
- package/dist/{chunk-4Q7HWRR2.js → chunk-EZSEAYYT.js} +52 -72
- package/dist/chunk-EZSEAYYT.js.map +1 -0
- package/dist/{chunk-LIOVN5IM.js → chunk-F2DOTCF3.js} +2 -2
- package/dist/chunk-FAITHWIO.js +73 -0
- package/dist/chunk-FAITHWIO.js.map +1 -0
- package/dist/{chunk-64IEKEMQ.js → chunk-FGLV6BXQ.js} +4 -4
- package/dist/{chunk-L65LF6LN.js → chunk-FP4R47TM.js} +2 -2
- package/dist/{chunk-NQHOHQCY.js → chunk-FPWB5ILF.js} +16 -8
- package/dist/chunk-FPWB5ILF.js.map +1 -0
- package/dist/{chunk-7AR2R7TV.js → chunk-G5ZVD5IJ.js} +4 -4
- package/dist/{chunk-SHQWIDD5.js → chunk-GJQYM3PM.js} +4 -4
- package/dist/{chunk-7WL24VNI.js → chunk-HDNK7BAX.js} +5 -5
- package/dist/{chunk-X5MPHXG5.js → chunk-HEG7JIBM.js} +4 -4
- package/dist/{chunk-HKFMPEXJ.js → chunk-HI2OFZSZ.js} +17 -10
- package/dist/chunk-HI2OFZSZ.js.map +1 -0
- package/dist/{chunk-ZIOCRSHU.js → chunk-HSAH5QUQ.js} +3 -3
- package/dist/{chunk-B443IIQG.js → chunk-IE7ISTLQ.js} +4 -4
- package/dist/{chunk-NFHS77NE.js → chunk-IH4CX43Q.js} +2 -2
- package/dist/{chunk-72UYVJBQ.js → chunk-IJIT5HQP.js} +2 -2
- package/dist/{chunk-KPQAPQH6.js → chunk-J2KSG754.js} +10 -8
- package/dist/chunk-J2KSG754.js.map +1 -0
- package/dist/{chunk-AP4FLCLA.js → chunk-J54WH74M.js} +4 -4
- package/dist/{chunk-5HOJSVQH.js → chunk-JB7JE4QZ.js} +2 -2
- package/dist/{chunk-QJJUTBKZ.js → chunk-KQ74QU55.js} +2 -2
- package/dist/chunk-KU6VHNRV.js +68 -0
- package/dist/chunk-KU6VHNRV.js.map +1 -0
- package/dist/chunk-KVEHH4SA.js +85 -0
- package/dist/chunk-KVEHH4SA.js.map +1 -0
- package/dist/{chunk-YLDS5FOQ.js → chunk-KZSKI2R3.js} +2 -2
- package/dist/{chunk-IIOEQRXX.js → chunk-LAHDFBDE.js} +2 -2
- package/dist/{chunk-BUDXR3EV.js → chunk-LKVIZNUM.js} +5 -5
- package/dist/{chunk-OAXAF4VY.js → chunk-LMJBINWN.js} +12 -12
- package/dist/{chunk-SFAP5EH5.js → chunk-LUMF63BM.js} +4 -4
- package/dist/{chunk-KADJNWTQ.js → chunk-LZRURORY.js} +3 -3
- package/dist/{chunk-CLNTJM3F.js → chunk-M7OHXNLF.js} +2 -2
- package/dist/{chunk-UXQW6ZIN.js → chunk-MBYO2F4Y.js} +5 -5
- package/dist/{chunk-ZHEJLUCX.js → chunk-MHV5Y5MR.js} +30 -17
- package/dist/chunk-MHV5Y5MR.js.map +1 -0
- package/dist/{chunk-MCRIT46W.js → chunk-MY5VNNSP.js} +4 -4
- package/dist/{chunk-XELVDPKL.js → chunk-NFAKRI4S.js} +4 -4
- package/dist/{chunk-KSF7TLXH.js → chunk-NHSMLVNC.js} +6 -6
- package/dist/{chunk-ES2RN7YV.js → chunk-NRUYYGDZ.js} +2 -2
- package/dist/{chunk-ZGEBIC5X.js → chunk-OLVZ6TOV.js} +13 -9
- package/dist/chunk-OLVZ6TOV.js.map +1 -0
- package/dist/{chunk-MQUU2XZB.js → chunk-OQFSYMHJ.js} +2 -2
- package/dist/{chunk-M3RIC6JI.js → chunk-OQXOYHIV.js} +4 -4
- package/dist/{chunk-PC3ZFERM.js → chunk-PC5FFEIY.js} +2 -2
- package/dist/{chunk-SOHDPFOB.js → chunk-PHCSPHDH.js} +2 -2
- package/dist/{chunk-OZWQNFG6.js → chunk-PODGTNXS.js} +3 -3
- package/dist/{chunk-IPE5FFFD.js → chunk-PUBPZOQJ.js} +2 -2
- package/dist/{chunk-GBFGZJB5.js → chunk-Q4NOI2CR.js} +5 -5
- package/dist/{chunk-IRDGC7FK.js → chunk-QZWKC3AP.js} +13 -7
- package/dist/chunk-QZWKC3AP.js.map +1 -0
- package/dist/{chunk-GOWBYHYW.js → chunk-R6SBP5M5.js} +4 -4
- package/dist/{chunk-DTKMBI7B.js → chunk-R7MX5KPJ.js} +4 -4
- package/dist/{chunk-NECUCG2S.js → chunk-RQDN4BN5.js} +14 -14
- package/dist/{chunk-5SYD23V4.js → chunk-SKZHOWTS.js} +4 -4
- package/dist/{chunk-Y6KPZQPI.js → chunk-SOCKK67R.js} +4 -4
- package/dist/{chunk-GCJLMX63.js → chunk-VCTKJHXD.js} +2 -2
- package/dist/{chunk-QZPNQWS2.js → chunk-VEFDL77X.js} +2 -2
- package/dist/{chunk-WEH5TCPE.js → chunk-VJFH2AXT.js} +8 -8
- package/dist/{chunk-S7HRED4D.js → chunk-VLHGBFR6.js} +3 -3
- package/dist/{chunk-RLC46NIW.js → chunk-VMNSGE2G.js} +3 -1
- package/dist/chunk-VMNSGE2G.js.map +1 -0
- package/dist/{chunk-HP2ODXNA.js → chunk-VR5HDUBK.js} +2 -2
- package/dist/{chunk-RBGOGTT2.js → chunk-W2UTDN4T.js} +4 -4
- package/dist/{chunk-N4WANJI3.js → chunk-WBVHRLIS.js} +4 -4
- package/dist/{chunk-XXJRT6BP.js → chunk-WMALDOF5.js} +4 -4
- package/dist/{chunk-MHFJBNDP.js → chunk-WO52KYSU.js} +8 -8
- package/dist/{chunk-ZBOFBRZC.js → chunk-WX7VWW3W.js} +2 -2
- package/dist/{chunk-J4W4TQPC.js → chunk-X24P3ZYW.js} +6 -6
- package/dist/{chunk-X2J6MRJW.js → chunk-YFHIESMD.js} +2 -2
- package/dist/{chunk-72NOM3O2.js → chunk-YK2PETUP.js} +2 -2
- package/dist/{chunk-CRNQVWIT.js → chunk-Z4GWXTZV.js} +4 -4
- package/dist/{chunk-SG6VULKS.js → chunk-ZEBJT5JZ.js} +3 -3
- package/dist/chunk-ZEG2LNBY.js +68 -0
- package/dist/chunk-ZEG2LNBY.js.map +1 -0
- package/dist/{chunk-JZKOJZ6V.js → chunk-ZOW2CCMO.js} +26 -25
- package/dist/chunk-ZOW2CCMO.js.map +1 -0
- package/dist/{chunk-3HWL4AW4.js → chunk-ZTF5C2GA.js} +22 -10
- package/dist/chunk-ZTF5C2GA.js.map +1 -0
- package/dist/data-display/AsyncStateContainer.js +8 -7
- package/dist/data-display/Avatar.js +8 -2
- package/dist/data-display/Badge.js +12 -6
- package/dist/data-display/CardKit.js +7 -7
- package/dist/data-display/Carousel.js +2 -2
- package/dist/data-display/Chart.js +11 -11
- package/dist/data-display/Chip.js +4 -2
- package/dist/data-display/DataGrid.js +3 -3
- package/dist/data-display/DataViews.js +66 -65
- package/dist/data-display/EmptyState.js +2 -2
- package/dist/data-display/HoverCard.js +3 -3
- package/dist/data-display/LazyImage.js +6 -4
- package/dist/data-display/Lightbox.js +5 -5
- package/dist/data-display/LoadingState.js +5 -4
- package/dist/data-display/MapPreview.js +4 -4
- package/dist/data-display/Progress.js +8 -3
- package/dist/data-display/SectionOnboarding.js +3 -3
- package/dist/data-display/Sheet.js +2 -2
- package/dist/data-display/StatCard.js +6 -4
- package/dist/data-display/Table.js +3 -3
- package/dist/feedback/ConfirmAction.js +6 -6
- package/dist/feedback/TutorialOverlay.js +2 -2
- package/dist/form/AddressAutocomplete.js +7 -7
- package/dist/form/Autocomplete.js +2 -2
- package/dist/form/Button.js +2 -2
- package/dist/form/Calendar.js +4 -4
- package/dist/form/CategorySelect.js +10 -10
- package/dist/form/CepField.js +3 -3
- package/dist/form/CodeEditor.js +3 -3
- package/dist/form/DateRangePicker.js +7 -7
- package/dist/form/Input.js +2 -2
- package/dist/form/Menubar.js +2 -2
- package/dist/form/RichTextEditor.js +2 -2
- package/dist/form/total-form.js +30 -30
- package/dist/icons.js +2 -2
- package/dist/layout/ContentToolbar.js +10 -10
- package/dist/layout/ScrollArea.js +2 -2
- package/dist/layout/SettingsLayout.js +6 -6
- package/dist/layout/Skeleton.js +5 -3
- package/dist/native/chunks/{chunk-V4DQTC5L.js → chunk-HSIND52T.js} +3 -2
- package/dist/native/chunks/chunk-HSIND52T.js.map +1 -0
- package/dist/native/chunks/chunk-MLQIOKQZ.js +30 -0
- package/dist/native/chunks/chunk-MLQIOKQZ.js.map +1 -0
- package/dist/native/chunks/{chunk-YQGNMAJN.js → chunk-Q52IDAF2.js} +6 -4
- package/dist/native/chunks/chunk-Q52IDAF2.js.map +1 -0
- package/dist/native/data-display/Alert.js +7 -7
- package/dist/native/data-display/Avatar.js +451 -0
- package/dist/native/data-display/Avatar.js.map +1 -0
- package/dist/native/data-display/Badge.js +418 -0
- package/dist/native/data-display/Badge.js.map +1 -0
- package/dist/native/data-display/Chip.js +374 -0
- package/dist/native/data-display/Chip.js.map +1 -0
- package/dist/native/data-display/EmptyState.js +9 -9
- package/dist/native/data-display/ErrorState.js +9 -9
- package/dist/native/data-display/LoadingState.js +4 -4
- package/dist/native/data-display/Progress.js +432 -0
- package/dist/native/data-display/Progress.js.map +1 -0
- package/dist/native/icons.js +2 -2
- package/dist/native/layout/Skeleton.js +214 -0
- package/dist/native/layout/Skeleton.js.map +1 -0
- package/dist/navigation/AppHeader.js +9 -9
- package/dist/navigation/NavigationMenu.js +4 -4
- package/dist/navigation/Pagination.js +2 -2
- package/dist/navigation/Tabs.js +2 -2
- package/dist/social-login-button.js +3 -3
- package/dist/types/components/data-display/Avatar/Avatar.base.d.ts +87 -0
- package/dist/types/components/data-display/Avatar/Avatar.base.d.ts.map +1 -0
- package/dist/types/components/data-display/Avatar/Avatar.d.ts.map +1 -1
- package/dist/types/components/data-display/Avatar/Avatar.helpers.d.ts +37 -0
- package/dist/types/components/data-display/Avatar/Avatar.helpers.d.ts.map +1 -0
- package/dist/types/components/data-display/Avatar/Avatar.metrics.d.ts +113 -0
- package/dist/types/components/data-display/Avatar/Avatar.metrics.d.ts.map +1 -0
- package/dist/types/components/data-display/Avatar/Avatar.types.d.ts +4 -68
- package/dist/types/components/data-display/Avatar/Avatar.types.d.ts.map +1 -1
- package/dist/types/components/data-display/Avatar/Avatar.view.d.ts +2 -2
- package/dist/types/components/data-display/Avatar/Avatar.view.d.ts.map +1 -1
- package/dist/types/components/data-display/Avatar/index.d.ts +1 -1
- package/dist/types/components/data-display/Avatar/index.d.ts.map +1 -1
- package/dist/types/components/data-display/Badge/Badge.animations.d.ts.map +1 -1
- package/dist/types/components/data-display/Badge/Badge.base.d.ts +101 -0
- package/dist/types/components/data-display/Badge/Badge.base.d.ts.map +1 -0
- package/dist/types/components/data-display/Badge/Badge.d.ts.map +1 -1
- package/dist/types/components/data-display/Badge/Badge.helpers.d.ts +10 -4
- package/dist/types/components/data-display/Badge/Badge.helpers.d.ts.map +1 -1
- package/dist/types/components/data-display/Badge/Badge.metrics.d.ts +111 -0
- package/dist/types/components/data-display/Badge/Badge.metrics.d.ts.map +1 -0
- package/dist/types/components/data-display/Badge/Badge.styles.d.ts +1 -4
- package/dist/types/components/data-display/Badge/Badge.styles.d.ts.map +1 -1
- package/dist/types/components/data-display/Badge/Badge.types.d.ts +4 -81
- package/dist/types/components/data-display/Badge/Badge.types.d.ts.map +1 -1
- package/dist/types/components/data-display/Badge/Badge.variants.d.ts.map +1 -1
- package/dist/types/components/data-display/Badge/BadgeContent.d.ts.map +1 -1
- package/dist/types/components/data-display/Badge/index.d.ts +1 -1
- package/dist/types/components/data-display/Badge/index.d.ts.map +1 -1
- package/dist/types/components/data-display/Chip/Chip.base.d.ts +81 -0
- package/dist/types/components/data-display/Chip/Chip.base.d.ts.map +1 -0
- package/dist/types/components/data-display/Chip/Chip.d.ts.map +1 -1
- package/dist/types/components/data-display/Chip/Chip.helpers.d.ts +14 -28
- package/dist/types/components/data-display/Chip/Chip.helpers.d.ts.map +1 -1
- package/dist/types/components/data-display/Chip/Chip.metrics.d.ts +61 -0
- package/dist/types/components/data-display/Chip/Chip.metrics.d.ts.map +1 -0
- package/dist/types/components/data-display/Chip/Chip.styles.d.ts +30 -0
- package/dist/types/components/data-display/Chip/Chip.styles.d.ts.map +1 -0
- package/dist/types/components/data-display/Chip/Chip.types.d.ts +4 -67
- package/dist/types/components/data-display/Chip/Chip.types.d.ts.map +1 -1
- package/dist/types/components/data-display/Chip/index.d.ts +1 -1
- package/dist/types/components/data-display/Chip/index.d.ts.map +1 -1
- package/dist/types/components/data-display/Progress/Progress.base.d.ts +72 -0
- package/dist/types/components/data-display/Progress/Progress.base.d.ts.map +1 -0
- package/dist/types/components/data-display/Progress/Progress.d.ts.map +1 -1
- package/dist/types/components/data-display/Progress/Progress.helpers.d.ts +15 -3
- package/dist/types/components/data-display/Progress/Progress.helpers.d.ts.map +1 -1
- package/dist/types/components/data-display/Progress/Progress.metrics.d.ts +91 -0
- package/dist/types/components/data-display/Progress/Progress.metrics.d.ts.map +1 -0
- package/dist/types/components/data-display/Progress/Progress.styles.d.ts.map +1 -1
- package/dist/types/components/data-display/Progress/Progress.types.d.ts +4 -48
- package/dist/types/components/data-display/Progress/Progress.types.d.ts.map +1 -1
- package/dist/types/components/data-display/Progress/index.d.ts +1 -1
- package/dist/types/components/data-display/Progress/index.d.ts.map +1 -1
- package/dist/types/components/layout/Skeleton/Skeleton.base.d.ts +37 -0
- package/dist/types/components/layout/Skeleton/Skeleton.base.d.ts.map +1 -0
- package/dist/types/components/layout/Skeleton/Skeleton.d.ts.map +1 -1
- package/dist/types/components/layout/Skeleton/Skeleton.helpers.d.ts +13 -3
- package/dist/types/components/layout/Skeleton/Skeleton.helpers.d.ts.map +1 -1
- package/dist/types/components/layout/Skeleton/Skeleton.metrics.d.ts +68 -0
- package/dist/types/components/layout/Skeleton/Skeleton.metrics.d.ts.map +1 -0
- package/dist/types/components/layout/Skeleton/Skeleton.styles.d.ts +1 -1
- package/dist/types/components/layout/Skeleton/Skeleton.styles.d.ts.map +1 -1
- package/dist/types/components/layout/Skeleton/Skeleton.types.d.ts +5 -15
- package/dist/types/components/layout/Skeleton/Skeleton.types.d.ts.map +1 -1
- package/dist/types/components/layout/Skeleton/index.d.ts +1 -1
- package/dist/types/components/layout/Skeleton/index.d.ts.map +1 -1
- package/dist/types/icons/paths.generated.d.ts +2 -0
- package/dist/types/icons/paths.generated.d.ts.map +1 -1
- package/dist/types/platform/animation.d.ts +14 -0
- package/dist/types/platform/animation.d.ts.map +1 -0
- package/dist/types/platform/web-keys.d.ts +25 -0
- package/dist/types/platform/web-keys.d.ts.map +1 -0
- package/dist/types/tokens/mui-type.d.ts +1 -1
- package/dist/types/tokens/mui-type.d.ts.map +1 -1
- package/dist/types-native/components/data-display/Avatar/Avatar.base.d.ts +87 -0
- package/dist/types-native/components/data-display/Avatar/Avatar.base.d.ts.map +1 -0
- package/dist/types-native/components/data-display/Avatar/Avatar.helpers.d.ts +37 -0
- package/dist/types-native/components/data-display/Avatar/Avatar.helpers.d.ts.map +1 -0
- package/dist/types-native/components/data-display/Avatar/Avatar.look.native.d.ts +25 -0
- package/dist/types-native/components/data-display/Avatar/Avatar.look.native.d.ts.map +1 -0
- package/dist/types-native/components/data-display/Avatar/Avatar.metrics.d.ts +113 -0
- package/dist/types-native/components/data-display/Avatar/Avatar.metrics.d.ts.map +1 -0
- package/dist/types-native/components/data-display/Avatar/Avatar.native.d.ts +19 -0
- package/dist/types-native/components/data-display/Avatar/Avatar.native.d.ts.map +1 -0
- package/dist/types-native/components/data-display/Avatar/Avatar.parts.native.d.ts +69 -0
- package/dist/types-native/components/data-display/Avatar/Avatar.parts.native.d.ts.map +1 -0
- package/dist/types-native/components/data-display/Avatar/Avatar.types.native.d.ts +24 -0
- package/dist/types-native/components/data-display/Avatar/Avatar.types.native.d.ts.map +1 -0
- package/dist/types-native/components/data-display/Avatar/index.native.d.ts +3 -0
- package/dist/types-native/components/data-display/Avatar/index.native.d.ts.map +1 -0
- package/dist/types-native/components/data-display/Badge/Badge.base.d.ts +101 -0
- package/dist/types-native/components/data-display/Badge/Badge.base.d.ts.map +1 -0
- package/dist/types-native/components/data-display/Badge/Badge.helpers.d.ts +19 -0
- package/dist/types-native/components/data-display/Badge/Badge.helpers.d.ts.map +1 -0
- package/dist/types-native/components/data-display/Badge/Badge.look.native.d.ts +31 -0
- package/dist/types-native/components/data-display/Badge/Badge.look.native.d.ts.map +1 -0
- package/dist/types-native/components/data-display/Badge/Badge.metrics.d.ts +111 -0
- package/dist/types-native/components/data-display/Badge/Badge.metrics.d.ts.map +1 -0
- package/dist/types-native/components/data-display/Badge/Badge.native.d.ts +10 -0
- package/dist/types-native/components/data-display/Badge/Badge.native.d.ts.map +1 -0
- package/dist/types-native/components/data-display/Badge/Badge.types.native.d.ts +8 -0
- package/dist/types-native/components/data-display/Badge/Badge.types.native.d.ts.map +1 -0
- package/dist/types-native/components/data-display/Badge/BadgeContent.native.d.ts +20 -0
- package/dist/types-native/components/data-display/Badge/BadgeContent.native.d.ts.map +1 -0
- package/dist/types-native/components/data-display/Badge/index.native.d.ts +3 -0
- package/dist/types-native/components/data-display/Badge/index.native.d.ts.map +1 -0
- package/dist/types-native/components/data-display/Chip/Chip.base.d.ts +81 -0
- package/dist/types-native/components/data-display/Chip/Chip.base.d.ts.map +1 -0
- package/dist/types-native/components/data-display/Chip/Chip.helpers.d.ts +22 -0
- package/dist/types-native/components/data-display/Chip/Chip.helpers.d.ts.map +1 -0
- package/dist/types-native/components/data-display/Chip/Chip.look.native.d.ts +29 -0
- package/dist/types-native/components/data-display/Chip/Chip.look.native.d.ts.map +1 -0
- package/dist/types-native/components/data-display/Chip/Chip.metrics.d.ts +61 -0
- package/dist/types-native/components/data-display/Chip/Chip.metrics.d.ts.map +1 -0
- package/dist/types-native/components/data-display/Chip/Chip.native.d.ts +11 -0
- package/dist/types-native/components/data-display/Chip/Chip.native.d.ts.map +1 -0
- package/dist/types-native/components/data-display/Chip/Chip.types.native.d.ts +20 -0
- package/dist/types-native/components/data-display/Chip/Chip.types.native.d.ts.map +1 -0
- package/dist/types-native/components/data-display/Chip/index.native.d.ts +3 -0
- package/dist/types-native/components/data-display/Chip/index.native.d.ts.map +1 -0
- package/dist/types-native/components/data-display/Progress/Progress.base.d.ts +72 -0
- package/dist/types-native/components/data-display/Progress/Progress.base.d.ts.map +1 -0
- package/dist/types-native/components/data-display/Progress/Progress.helpers.d.ts +18 -0
- package/dist/types-native/components/data-display/Progress/Progress.helpers.d.ts.map +1 -0
- package/dist/types-native/components/data-display/Progress/Progress.look.native.d.ts +28 -0
- package/dist/types-native/components/data-display/Progress/Progress.look.native.d.ts.map +1 -0
- package/dist/types-native/components/data-display/Progress/Progress.metrics.d.ts +91 -0
- package/dist/types-native/components/data-display/Progress/Progress.metrics.d.ts.map +1 -0
- package/dist/types-native/components/data-display/Progress/Progress.native.d.ts +10 -0
- package/dist/types-native/components/data-display/Progress/Progress.native.d.ts.map +1 -0
- package/dist/types-native/components/data-display/Progress/Progress.types.native.d.ts +8 -0
- package/dist/types-native/components/data-display/Progress/Progress.types.native.d.ts.map +1 -0
- package/dist/types-native/components/data-display/Progress/index.native.d.ts +3 -0
- package/dist/types-native/components/data-display/Progress/index.native.d.ts.map +1 -0
- package/dist/types-native/components/layout/Skeleton/Skeleton.base.d.ts +37 -0
- package/dist/types-native/components/layout/Skeleton/Skeleton.base.d.ts.map +1 -0
- package/dist/types-native/components/layout/Skeleton/Skeleton.helpers.d.ts +16 -0
- package/dist/types-native/components/layout/Skeleton/Skeleton.helpers.d.ts.map +1 -0
- package/dist/types-native/components/layout/Skeleton/Skeleton.metrics.d.ts +68 -0
- package/dist/types-native/components/layout/Skeleton/Skeleton.metrics.d.ts.map +1 -0
- package/dist/types-native/components/layout/Skeleton/Skeleton.native.d.ts +38 -0
- package/dist/types-native/components/layout/Skeleton/Skeleton.native.d.ts.map +1 -0
- package/dist/types-native/components/layout/Skeleton/Skeleton.types.native.d.ts +8 -0
- package/dist/types-native/components/layout/Skeleton/Skeleton.types.native.d.ts.map +1 -0
- package/dist/types-native/components/layout/Skeleton/index.native.d.ts +3 -0
- package/dist/types-native/components/layout/Skeleton/index.native.d.ts.map +1 -0
- package/dist/types-native/icons/paths.generated.d.ts +2 -0
- package/dist/types-native/icons/paths.generated.d.ts.map +1 -1
- package/dist/types-native/platform/animation.d.ts +14 -0
- package/dist/types-native/platform/animation.d.ts.map +1 -0
- package/dist/types-native/platform/web-keys.d.ts +25 -0
- package/dist/types-native/platform/web-keys.d.ts.map +1 -0
- package/dist/types-native/tokens/mui-type.d.ts +1 -1
- package/dist/types-native/tokens/mui-type.d.ts.map +1 -1
- package/dist/user-avatar.js +7 -5
- package/dist/utility/InstallPrompt.js +2 -2
- package/package.json +21 -1
- package/src/components/data-display/Avatar/Avatar.base.ts +108 -0
- package/src/components/data-display/Avatar/Avatar.helpers.ts +54 -0
- package/src/components/data-display/Avatar/Avatar.look.native.ts +123 -0
- package/src/components/data-display/Avatar/Avatar.metrics.ts +111 -0
- package/src/components/data-display/Avatar/Avatar.native.tsx +190 -0
- package/src/components/data-display/Avatar/Avatar.parts.native.tsx +243 -0
- package/src/components/data-display/Avatar/Avatar.tsx +34 -36
- package/src/components/data-display/Avatar/Avatar.types.native.ts +39 -0
- package/src/components/data-display/Avatar/Avatar.types.ts +12 -81
- package/src/components/data-display/Avatar/Avatar.view.tsx +61 -41
- package/src/components/data-display/Avatar/NATIVE-NOTES.md +11 -0
- package/src/components/data-display/Avatar/index.native.ts +10 -0
- package/src/components/data-display/Avatar/index.ts +8 -1
- package/src/components/data-display/Badge/Badge.animations.ts +11 -9
- package/src/components/data-display/Badge/Badge.base.ts +138 -0
- package/src/components/data-display/Badge/Badge.helpers.ts +18 -7
- package/src/components/data-display/Badge/Badge.look.native.ts +174 -0
- package/src/components/data-display/Badge/Badge.metrics.ts +116 -0
- package/src/components/data-display/Badge/Badge.native.tsx +212 -0
- package/src/components/data-display/Badge/Badge.styles.ts +63 -74
- package/src/components/data-display/Badge/Badge.tsx +12 -6
- package/src/components/data-display/Badge/Badge.types.native.ts +16 -0
- package/src/components/data-display/Badge/Badge.types.ts +27 -113
- package/src/components/data-display/Badge/Badge.variants.ts +20 -9
- package/src/components/data-display/Badge/BadgeContent.native.tsx +78 -0
- package/src/components/data-display/Badge/BadgeContent.tsx +8 -8
- package/src/components/data-display/Badge/NATIVE-NOTES.md +11 -0
- package/src/components/data-display/Badge/index.native.ts +8 -0
- package/src/components/data-display/Badge/index.ts +7 -1
- package/src/components/data-display/Chip/Chip.base.ts +99 -0
- package/src/components/data-display/Chip/Chip.helpers.ts +49 -0
- package/src/components/data-display/Chip/Chip.look.native.ts +163 -0
- package/src/components/data-display/Chip/Chip.metrics.ts +102 -0
- package/src/components/data-display/Chip/Chip.native.tsx +269 -0
- package/src/components/data-display/Chip/{Chip.helpers.tsx → Chip.styles.tsx} +23 -51
- package/src/components/data-display/Chip/Chip.tsx +10 -11
- package/src/components/data-display/Chip/Chip.types.native.ts +28 -0
- package/src/components/data-display/Chip/Chip.types.ts +5 -84
- package/src/components/data-display/Chip/NATIVE-NOTES.md +10 -0
- package/src/components/data-display/Chip/chip.md +1 -1
- package/src/components/data-display/Chip/index.native.ts +8 -0
- package/src/components/data-display/Chip/index.ts +1 -1
- package/src/components/data-display/Progress/NATIVE-NOTES.md +10 -0
- package/src/components/data-display/Progress/Progress.base.ts +86 -0
- package/src/components/data-display/Progress/Progress.helpers.ts +29 -8
- package/src/components/data-display/Progress/Progress.look.native.ts +111 -0
- package/src/components/data-display/Progress/Progress.metrics.ts +101 -0
- package/src/components/data-display/Progress/Progress.native.tsx +387 -0
- package/src/components/data-display/Progress/Progress.styles.ts +31 -17
- package/src/components/data-display/Progress/Progress.tsx +7 -6
- package/src/components/data-display/Progress/Progress.types.native.ts +11 -0
- package/src/components/data-display/Progress/Progress.types.ts +6 -58
- package/src/components/data-display/Progress/index.native.ts +7 -0
- package/src/components/data-display/Progress/index.ts +6 -1
- package/src/components/layout/Skeleton/NATIVE-NOTES.md +8 -0
- package/src/components/layout/Skeleton/Skeleton.base.ts +37 -0
- package/src/components/layout/Skeleton/Skeleton.helpers.ts +24 -8
- package/src/components/layout/Skeleton/Skeleton.metrics.ts +81 -0
- package/src/components/layout/Skeleton/Skeleton.native.tsx +271 -0
- package/src/components/layout/Skeleton/Skeleton.styles.ts +25 -25
- package/src/components/layout/Skeleton/Skeleton.tsx +9 -5
- package/src/components/layout/Skeleton/Skeleton.types.native.ts +16 -0
- package/src/components/layout/Skeleton/Skeleton.types.ts +13 -16
- package/src/components/layout/Skeleton/index.native.ts +8 -0
- package/src/components/layout/Skeleton/index.ts +7 -1
- package/src/icons/glyphs.json +2 -0
- package/src/icons/paths.generated.ts +2 -0
- package/src/platform/animation.ts +53 -0
- package/src/platform/web-keys.ts +28 -0
- package/src/tokens/mui-type.ts +2 -1
- package/dist/chunk-3HWL4AW4.js.map +0 -1
- package/dist/chunk-4Q7HWRR2.js.map +0 -1
- package/dist/chunk-FS4X3VDA.js +0 -78
- package/dist/chunk-FS4X3VDA.js.map +0 -1
- package/dist/chunk-HAFE43QJ.js.map +0 -1
- package/dist/chunk-HKFMPEXJ.js.map +0 -1
- package/dist/chunk-HXYXDQ7U.js.map +0 -1
- package/dist/chunk-IRDGC7FK.js.map +0 -1
- package/dist/chunk-JZKOJZ6V.js.map +0 -1
- package/dist/chunk-KPQAPQH6.js.map +0 -1
- package/dist/chunk-L6KEVPXN.js.map +0 -1
- package/dist/chunk-LYNJJV2X.js.map +0 -1
- package/dist/chunk-MMZAGB64.js.map +0 -1
- package/dist/chunk-NQHOHQCY.js.map +0 -1
- package/dist/chunk-QIV73V2X.js.map +0 -1
- package/dist/chunk-RLC46NIW.js.map +0 -1
- package/dist/chunk-ZGEBIC5X.js.map +0 -1
- package/dist/chunk-ZHEJLUCX.js.map +0 -1
- package/dist/native/chunks/chunk-V4DQTC5L.js.map +0 -1
- package/dist/native/chunks/chunk-YQGNMAJN.js.map +0 -1
- /package/dist/{chunk-P7FQUGED.js.map → chunk-23FCBIUN.js.map} +0 -0
- /package/dist/{chunk-SL4NFGOL.js.map → chunk-24BUCMQA.js.map} +0 -0
- /package/dist/{chunk-4SXZSSVV.js.map → chunk-2EKALM6P.js.map} +0 -0
- /package/dist/{chunk-ZRFRU545.js.map → chunk-2ZDTGI5V.js.map} +0 -0
- /package/dist/{chunk-HR7YTBR7.js.map → chunk-3AOOI2NR.js.map} +0 -0
- /package/dist/{chunk-KKYW3LU7.js.map → chunk-47UD6DZ4.js.map} +0 -0
- /package/dist/{chunk-ZOUWHGV3.js.map → chunk-4MGFUPQT.js.map} +0 -0
- /package/dist/{chunk-4FRZDSRD.js.map → chunk-4WK2RTVY.js.map} +0 -0
- /package/dist/{chunk-LDE4ELB5.js.map → chunk-5ZF3VASA.js.map} +0 -0
- /package/dist/{chunk-JE6RZ5L6.js.map → chunk-5ZOJLYD2.js.map} +0 -0
- /package/dist/{chunk-E5ZHW4I5.js.map → chunk-6IUTT6BK.js.map} +0 -0
- /package/dist/{chunk-WPR2HS5B.js.map → chunk-74EZ565M.js.map} +0 -0
- /package/dist/{chunk-BVZVH3ZN.js.map → chunk-74OZ5KVR.js.map} +0 -0
- /package/dist/{chunk-PMS3H3OO.js.map → chunk-76GZ55IC.js.map} +0 -0
- /package/dist/{chunk-DLFOEXUP.js.map → chunk-7EESF76V.js.map} +0 -0
- /package/dist/{chunk-HKZHEK3Z.js.map → chunk-7JWXLDRH.js.map} +0 -0
- /package/dist/{chunk-OR7UH2ZQ.js.map → chunk-7P2HZLEG.js.map} +0 -0
- /package/dist/{chunk-6DXYCXH4.js.map → chunk-7RZ4WOQW.js.map} +0 -0
- /package/dist/{chunk-EMNGIYH6.js.map → chunk-7TZ6OC5T.js.map} +0 -0
- /package/dist/{chunk-CDJPDZCA.js.map → chunk-AEGX66N7.js.map} +0 -0
- /package/dist/{chunk-65DLYC4S.js.map → chunk-AVGTTWTE.js.map} +0 -0
- /package/dist/{chunk-C6XESZ3R.js.map → chunk-B2A4DG77.js.map} +0 -0
- /package/dist/{chunk-VOOPGAQO.js.map → chunk-B7BZAIHL.js.map} +0 -0
- /package/dist/{chunk-DZN3JF5E.js.map → chunk-BBC4KT5G.js.map} +0 -0
- /package/dist/{chunk-FWCUELBU.js.map → chunk-BILE3A7F.js.map} +0 -0
- /package/dist/{chunk-UEJQQVP2.js.map → chunk-BLT5ZBVL.js.map} +0 -0
- /package/dist/{chunk-ISSJNFJV.js.map → chunk-C52BELLW.js.map} +0 -0
- /package/dist/{chunk-BPYPUEM5.js.map → chunk-CZJLWCEG.js.map} +0 -0
- /package/dist/{chunk-WZUNBSS7.js.map → chunk-DVUPIVI2.js.map} +0 -0
- /package/dist/{chunk-EXJBPKGW.js.map → chunk-EGRFMPGD.js.map} +0 -0
- /package/dist/{chunk-XFUNJYFT.js.map → chunk-EPNUVSNK.js.map} +0 -0
- /package/dist/{chunk-H2EQVMU3.js.map → chunk-EX3PSZLV.js.map} +0 -0
- /package/dist/{chunk-LIOVN5IM.js.map → chunk-F2DOTCF3.js.map} +0 -0
- /package/dist/{chunk-64IEKEMQ.js.map → chunk-FGLV6BXQ.js.map} +0 -0
- /package/dist/{chunk-L65LF6LN.js.map → chunk-FP4R47TM.js.map} +0 -0
- /package/dist/{chunk-7AR2R7TV.js.map → chunk-G5ZVD5IJ.js.map} +0 -0
- /package/dist/{chunk-SHQWIDD5.js.map → chunk-GJQYM3PM.js.map} +0 -0
- /package/dist/{chunk-7WL24VNI.js.map → chunk-HDNK7BAX.js.map} +0 -0
- /package/dist/{chunk-X5MPHXG5.js.map → chunk-HEG7JIBM.js.map} +0 -0
- /package/dist/{chunk-ZIOCRSHU.js.map → chunk-HSAH5QUQ.js.map} +0 -0
- /package/dist/{chunk-B443IIQG.js.map → chunk-IE7ISTLQ.js.map} +0 -0
- /package/dist/{chunk-NFHS77NE.js.map → chunk-IH4CX43Q.js.map} +0 -0
- /package/dist/{chunk-72UYVJBQ.js.map → chunk-IJIT5HQP.js.map} +0 -0
- /package/dist/{chunk-AP4FLCLA.js.map → chunk-J54WH74M.js.map} +0 -0
- /package/dist/{chunk-5HOJSVQH.js.map → chunk-JB7JE4QZ.js.map} +0 -0
- /package/dist/{chunk-QJJUTBKZ.js.map → chunk-KQ74QU55.js.map} +0 -0
- /package/dist/{chunk-YLDS5FOQ.js.map → chunk-KZSKI2R3.js.map} +0 -0
- /package/dist/{chunk-IIOEQRXX.js.map → chunk-LAHDFBDE.js.map} +0 -0
- /package/dist/{chunk-BUDXR3EV.js.map → chunk-LKVIZNUM.js.map} +0 -0
- /package/dist/{chunk-OAXAF4VY.js.map → chunk-LMJBINWN.js.map} +0 -0
- /package/dist/{chunk-SFAP5EH5.js.map → chunk-LUMF63BM.js.map} +0 -0
- /package/dist/{chunk-KADJNWTQ.js.map → chunk-LZRURORY.js.map} +0 -0
- /package/dist/{chunk-CLNTJM3F.js.map → chunk-M7OHXNLF.js.map} +0 -0
- /package/dist/{chunk-UXQW6ZIN.js.map → chunk-MBYO2F4Y.js.map} +0 -0
- /package/dist/{chunk-MCRIT46W.js.map → chunk-MY5VNNSP.js.map} +0 -0
- /package/dist/{chunk-XELVDPKL.js.map → chunk-NFAKRI4S.js.map} +0 -0
- /package/dist/{chunk-KSF7TLXH.js.map → chunk-NHSMLVNC.js.map} +0 -0
- /package/dist/{chunk-ES2RN7YV.js.map → chunk-NRUYYGDZ.js.map} +0 -0
- /package/dist/{chunk-MQUU2XZB.js.map → chunk-OQFSYMHJ.js.map} +0 -0
- /package/dist/{chunk-M3RIC6JI.js.map → chunk-OQXOYHIV.js.map} +0 -0
- /package/dist/{chunk-PC3ZFERM.js.map → chunk-PC5FFEIY.js.map} +0 -0
- /package/dist/{chunk-SOHDPFOB.js.map → chunk-PHCSPHDH.js.map} +0 -0
- /package/dist/{chunk-OZWQNFG6.js.map → chunk-PODGTNXS.js.map} +0 -0
- /package/dist/{chunk-IPE5FFFD.js.map → chunk-PUBPZOQJ.js.map} +0 -0
- /package/dist/{chunk-GBFGZJB5.js.map → chunk-Q4NOI2CR.js.map} +0 -0
- /package/dist/{chunk-GOWBYHYW.js.map → chunk-R6SBP5M5.js.map} +0 -0
- /package/dist/{chunk-DTKMBI7B.js.map → chunk-R7MX5KPJ.js.map} +0 -0
- /package/dist/{chunk-NECUCG2S.js.map → chunk-RQDN4BN5.js.map} +0 -0
- /package/dist/{chunk-5SYD23V4.js.map → chunk-SKZHOWTS.js.map} +0 -0
- /package/dist/{chunk-Y6KPZQPI.js.map → chunk-SOCKK67R.js.map} +0 -0
- /package/dist/{chunk-GCJLMX63.js.map → chunk-VCTKJHXD.js.map} +0 -0
- /package/dist/{chunk-QZPNQWS2.js.map → chunk-VEFDL77X.js.map} +0 -0
- /package/dist/{chunk-WEH5TCPE.js.map → chunk-VJFH2AXT.js.map} +0 -0
- /package/dist/{chunk-S7HRED4D.js.map → chunk-VLHGBFR6.js.map} +0 -0
- /package/dist/{chunk-HP2ODXNA.js.map → chunk-VR5HDUBK.js.map} +0 -0
- /package/dist/{chunk-RBGOGTT2.js.map → chunk-W2UTDN4T.js.map} +0 -0
- /package/dist/{chunk-N4WANJI3.js.map → chunk-WBVHRLIS.js.map} +0 -0
- /package/dist/{chunk-XXJRT6BP.js.map → chunk-WMALDOF5.js.map} +0 -0
- /package/dist/{chunk-MHFJBNDP.js.map → chunk-WO52KYSU.js.map} +0 -0
- /package/dist/{chunk-ZBOFBRZC.js.map → chunk-WX7VWW3W.js.map} +0 -0
- /package/dist/{chunk-J4W4TQPC.js.map → chunk-X24P3ZYW.js.map} +0 -0
- /package/dist/{chunk-X2J6MRJW.js.map → chunk-YFHIESMD.js.map} +0 -0
- /package/dist/{chunk-72NOM3O2.js.map → chunk-YK2PETUP.js.map} +0 -0
- /package/dist/{chunk-CRNQVWIT.js.map → chunk-Z4GWXTZV.js.map} +0 -0
- /package/dist/{chunk-SG6VULKS.js.map → chunk-ZEBJT5JZ.js.map} +0 -0
|
@@ -6,9 +6,29 @@ import type { CSSObject, Theme } from '@mui/material/styles/index.js';
|
|
|
6
6
|
import React from 'react';
|
|
7
7
|
|
|
8
8
|
import { pulseAnimation, rotateAnimation, scaleInAnimation, shimmerAnimation } from './Avatar.animations';
|
|
9
|
-
import
|
|
9
|
+
import {
|
|
10
|
+
AVATAR_SIZES,
|
|
11
|
+
AVATAR_TRANSITION_EASING,
|
|
12
|
+
AVATAR_TRANSITION_MS,
|
|
13
|
+
ACTIVE_SCALE,
|
|
14
|
+
BORDER_HALO_ALPHA,
|
|
15
|
+
BORDER_WIDTH,
|
|
16
|
+
FADE_MS,
|
|
17
|
+
FOCUS_RING,
|
|
18
|
+
GLOW,
|
|
19
|
+
HOVER,
|
|
20
|
+
LOADING_OVERLAY,
|
|
21
|
+
PULSE,
|
|
22
|
+
ROUNDED_RADIUS_UNITS,
|
|
23
|
+
SCALE_IN_MS,
|
|
24
|
+
SHIMMER,
|
|
25
|
+
SPINNER,
|
|
26
|
+
STATUS_DOT,
|
|
27
|
+
} from './Avatar.metrics';
|
|
28
|
+
import type { AvatarSize, AvatarStatus, ContentType } from './Avatar.types';
|
|
29
|
+
import { px } from '../../../tokens/theme';
|
|
10
30
|
|
|
11
|
-
export type ContentType
|
|
31
|
+
export type { ContentType };
|
|
12
32
|
|
|
13
33
|
|
|
14
34
|
interface PaletteLike {
|
|
@@ -41,20 +61,20 @@ interface SizeStyle {
|
|
|
41
61
|
fontSize: string;
|
|
42
62
|
}
|
|
43
63
|
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
};
|
|
64
|
+
// Derived from the shared metrics, not restated: the native `Avatar` reads the
|
|
65
|
+
// same table, so the two renderers cannot disagree on a box.
|
|
66
|
+
const sizeMap: Record<AvatarSize, SizeStyle> = Object.fromEntries(
|
|
67
|
+
Object.entries(AVATAR_SIZES).map(([size, step]) => [
|
|
68
|
+
size,
|
|
69
|
+
{ width: step.box, height: step.box, fontSize: px(step.fontSize) },
|
|
70
|
+
]),
|
|
71
|
+
) as Record<AvatarSize, SizeStyle>;
|
|
53
72
|
|
|
54
|
-
|
|
55
|
-
};
|
|
73
|
+
const getSizeStyles = (size: AvatarSize): SizeStyle => sizeMap[size] || sizeMap.md;
|
|
56
74
|
|
|
57
75
|
const getStatusColor = (status: AvatarStatus, theme: Theme): string => {
|
|
76
|
+
// The same four decisions the native half reads out of `Avatar.metrics`,
|
|
77
|
+
// against MUI's `Theme` rather than the shared one.
|
|
58
78
|
const statusColorMap: Record<AvatarStatus, string> = {
|
|
59
79
|
online: theme.palette.success.main,
|
|
60
80
|
offline: theme.palette.grey[500],
|
|
@@ -70,12 +90,12 @@ const interactiveStyles = (interactive: boolean | undefined, main: string): CSSO
|
|
|
70
90
|
interactive
|
|
71
91
|
? {
|
|
72
92
|
'&:hover': {
|
|
73
|
-
transform:
|
|
74
|
-
boxShadow: `0
|
|
75
|
-
filter:
|
|
93
|
+
transform: `scale(${HOVER.scale}) translateY(-${HOVER.lift}px)`,
|
|
94
|
+
boxShadow: `0 ${HOVER.shadowY}px ${HOVER.shadowBlur}px ${alpha(main, HOVER.shadowAlpha)}`,
|
|
95
|
+
filter: `brightness(${HOVER.brightness})`,
|
|
76
96
|
zIndex: 10,
|
|
77
97
|
},
|
|
78
|
-
'&:active': { transform:
|
|
98
|
+
'&:active': { transform: `scale(${ACTIVE_SCALE})` },
|
|
79
99
|
}
|
|
80
100
|
: {};
|
|
81
101
|
|
|
@@ -85,19 +105,19 @@ const loadingStyles = (isLoading: boolean | undefined, main: string): CSSObject
|
|
|
85
105
|
? {
|
|
86
106
|
background: `linear-gradient(
|
|
87
107
|
90deg,
|
|
88
|
-
${alpha(main,
|
|
89
|
-
${alpha(main,
|
|
90
|
-
${alpha(main,
|
|
108
|
+
${alpha(main, SHIMMER.fromAlpha)},
|
|
109
|
+
${alpha(main, SHIMMER.toAlpha)},
|
|
110
|
+
${alpha(main, SHIMMER.fromAlpha)}
|
|
91
111
|
)`,
|
|
92
112
|
backgroundSize: '200% 100%',
|
|
93
|
-
animation: `${shimmerAnimation}
|
|
113
|
+
animation: `${shimmerAnimation} ${SHIMMER.durationMs / 1000}s ease-in-out infinite`,
|
|
94
114
|
}
|
|
95
115
|
: {};
|
|
96
116
|
|
|
97
117
|
/** Corner radius per shape variant (circle/status are round). */
|
|
98
118
|
const variantRadius = (variant: string | undefined, theme: Theme): CSSObject => {
|
|
99
119
|
if (variant === 'square') return { borderRadius: 0 };
|
|
100
|
-
if (variant === 'rounded') return { borderRadius: theme.spacing(
|
|
120
|
+
if (variant === 'rounded') return { borderRadius: theme.spacing(ROUNDED_RADIUS_UNITS) };
|
|
101
121
|
return { borderRadius: '50%' };
|
|
102
122
|
};
|
|
103
123
|
|
|
@@ -105,8 +125,8 @@ const variantRadius = (variant: string | undefined, theme: Theme): CSSObject =>
|
|
|
105
125
|
const borderedStyles = (bordered: boolean | undefined, theme: Theme): CSSObject =>
|
|
106
126
|
bordered
|
|
107
127
|
? {
|
|
108
|
-
border:
|
|
109
|
-
boxShadow: `0 0 0 1px ${alpha(theme.palette.divider,
|
|
128
|
+
border: `${BORDER_WIDTH}px solid ${theme.palette.background.paper}`,
|
|
129
|
+
boxShadow: `0 0 0 1px ${alpha(theme.palette.divider, BORDER_HALO_ALPHA)}`,
|
|
110
130
|
}
|
|
111
131
|
: {};
|
|
112
132
|
|
|
@@ -118,8 +138,8 @@ const glowPulseStyles = (
|
|
|
118
138
|
): CSSObject => {
|
|
119
139
|
const styles: CSSObject = {};
|
|
120
140
|
if (glow) {
|
|
121
|
-
styles.boxShadow = `0 0
|
|
122
|
-
styles.filter =
|
|
141
|
+
styles.boxShadow = `0 0 ${GLOW.blur}px ${GLOW.spread}px ${alpha(main, GLOW.alpha)} !important`;
|
|
142
|
+
styles.filter = `brightness(${GLOW.brightness})`;
|
|
123
143
|
}
|
|
124
144
|
if (pulse) {
|
|
125
145
|
styles.position = 'relative';
|
|
@@ -133,8 +153,8 @@ const glowPulseStyles = (
|
|
|
133
153
|
borderRadius: 'inherit',
|
|
134
154
|
transform: 'translate(-50%, -50%)',
|
|
135
155
|
backgroundColor: main,
|
|
136
|
-
opacity:
|
|
137
|
-
animation: `${pulseAnimation}
|
|
156
|
+
opacity: PULSE.alpha,
|
|
157
|
+
animation: `${pulseAnimation} ${PULSE.durationMs / 1000}s infinite`,
|
|
138
158
|
pointerEvents: 'none',
|
|
139
159
|
zIndex: -1,
|
|
140
160
|
};
|
|
@@ -184,10 +204,10 @@ const StyledAvatar = styled(MuiAvatar, {
|
|
|
184
204
|
const palette = getColorFromTheme(theme, customColor);
|
|
185
205
|
return {
|
|
186
206
|
...getSizeStyles(customSize),
|
|
187
|
-
transition:
|
|
207
|
+
transition: `all ${AVATAR_TRANSITION_MS / 1000}s ${AVATAR_TRANSITION_EASING}`,
|
|
188
208
|
position: 'relative',
|
|
189
209
|
overflow: 'visible',
|
|
190
|
-
animation: `${scaleInAnimation}
|
|
210
|
+
animation: `${scaleInAnimation} ${SCALE_IN_MS / 1000}s ease-out`,
|
|
191
211
|
cursor: interactive ? 'pointer' : 'default',
|
|
192
212
|
backgroundColor: hasError ? theme.palette.error.main : palette.main,
|
|
193
213
|
color: hasError ? theme.palette.error.contrastText : (palette.contrastText ?? '#fff'),
|
|
@@ -197,8 +217,8 @@ const StyledAvatar = styled(MuiAvatar, {
|
|
|
197
217
|
...borderedStyles(bordered, theme),
|
|
198
218
|
...glowPulseStyles(glow, pulse, palette.main),
|
|
199
219
|
'&:focus-visible': {
|
|
200
|
-
outline:
|
|
201
|
-
outlineOffset:
|
|
220
|
+
outline: `${FOCUS_RING.width}px solid ${alpha(palette.main, FOCUS_RING.alpha)}`,
|
|
221
|
+
outlineOffset: FOCUS_RING.offset,
|
|
202
222
|
},
|
|
203
223
|
};
|
|
204
224
|
},
|
|
@@ -216,15 +236,15 @@ const LoadingOverlay = styled('div')<{ size: AvatarSize }>(({ theme, size }) =>
|
|
|
216
236
|
display: 'flex',
|
|
217
237
|
alignItems: 'center',
|
|
218
238
|
justifyContent: 'center',
|
|
219
|
-
backgroundColor: alpha(theme.palette.background.paper,
|
|
220
|
-
backdropFilter:
|
|
239
|
+
backgroundColor: alpha(theme.palette.background.paper, LOADING_OVERLAY.paperAlpha),
|
|
240
|
+
backdropFilter: `blur(${LOADING_OVERLAY.blur}px)`,
|
|
221
241
|
'& .loading-spinner': {
|
|
222
|
-
width: sizeStyles.width *
|
|
223
|
-
height: sizeStyles.height *
|
|
224
|
-
border:
|
|
242
|
+
width: sizeStyles.width * SPINNER.scale,
|
|
243
|
+
height: sizeStyles.height * SPINNER.scale,
|
|
244
|
+
border: `${SPINNER.ringWidth}px solid ${alpha(theme.palette.primary.main, SPINNER.trackAlpha)}`,
|
|
225
245
|
borderTopColor: theme.palette.primary.main,
|
|
226
246
|
borderRadius: '50%',
|
|
227
|
-
animation: `${rotateAnimation}
|
|
247
|
+
animation: `${rotateAnimation} ${SPINNER.durationMs / 1000}s linear infinite`,
|
|
228
248
|
},
|
|
229
249
|
};
|
|
230
250
|
});
|
|
@@ -236,7 +256,7 @@ const StatusBadge = styled(Badge, {
|
|
|
236
256
|
avatarSize?: AvatarSize;
|
|
237
257
|
}>(({ theme, statusColor, avatarSize = 'md' }) => {
|
|
238
258
|
const sizeStyles = getSizeStyles(avatarSize);
|
|
239
|
-
const badgeSize = Math.max(
|
|
259
|
+
const badgeSize = Math.max(STATUS_DOT.min, sizeStyles.width * STATUS_DOT.scale);
|
|
240
260
|
|
|
241
261
|
return {
|
|
242
262
|
'& .MuiBadge-badge': {
|
|
@@ -245,7 +265,7 @@ const StatusBadge = styled(Badge, {
|
|
|
245
265
|
width: badgeSize,
|
|
246
266
|
height: badgeSize,
|
|
247
267
|
borderRadius: '50%',
|
|
248
|
-
border:
|
|
268
|
+
border: `${STATUS_DOT.borderWidth}px solid ${theme.palette.background.paper}`,
|
|
249
269
|
'&::after': {
|
|
250
270
|
position: 'absolute',
|
|
251
271
|
top: 0,
|
|
@@ -293,7 +313,7 @@ function AvatarSurface(props: AvatarViewProps): React.JSX.Element {
|
|
|
293
313
|
dataTestId ? `${dataTestId}-${suffix}` : undefined;
|
|
294
314
|
|
|
295
315
|
return (
|
|
296
|
-
<Fade in={props.mounted} timeout={
|
|
316
|
+
<Fade in={props.mounted} timeout={FADE_MS}>
|
|
297
317
|
<div style={{ position: 'relative', display: 'inline-block' }}>
|
|
298
318
|
<StyledAvatar
|
|
299
319
|
ref={props.forwardedRef}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
# Avatar on React Native
|
|
2
|
+
|
|
3
|
+
Known rendering gaps, one bullet each; `pnpm native:ledger` reads them.
|
|
4
|
+
|
|
5
|
+
- Hover has no touch equivalent: the interactive lift (`scale(1.1) translateY(-2px)`, the `0 8px 20px` shadow and the brightness), the `:active` squeeze and the `:focus-visible` ring are all web-only. The avatar still reports itself as a button and takes a tab stop.
|
|
6
|
+
- The shimmer that runs across a loading avatar is a moving gradient; React Native core has neither, so the box keeps its accent and only the overlay and its spinner say it is loading. `backdrop-filter: blur(2px)` behind that overlay has no equivalent either — the wash is the flat `alpha(paper, 0.7)`.
|
|
7
|
+
- `glow` paints the halo but not the `brightness(1.05)` filter that goes with it; React Native has no filters.
|
|
8
|
+
- `pulse` is a ring behind the avatar scaling out to 10px and fading, rather than MUI's growing `box-shadow` on an `::after` — the same colour, cadence and travel, drawn by a sibling.
|
|
9
|
+
- The status dot is a bordered circle placed at MUI's `overlap="circular"` inset; MUI's `Badge` additionally draws a `::after` ripple layer over it.
|
|
10
|
+
- `AvatarGroup` overlaps and counts exactly as the web does, but the web ALSO gives every child a paper ring through a `& > *` descendant rule. A native renderer cannot restyle children, so an avatar in a group takes `bordered` from its own prop.
|
|
11
|
+
- The default and broken-image glyphs are the house `Icon` at 24px, which is what MUI's `SvgIcon` draws them at here; the initials are set in the theme's own font rather than MUI's `Avatar` typography.
|
|
@@ -1,2 +1,9 @@
|
|
|
1
1
|
export { Avatar, AvatarGroup } from './Avatar';
|
|
2
|
-
export type {
|
|
2
|
+
export type {
|
|
3
|
+
AvatarBaseProps,
|
|
4
|
+
AvatarProps,
|
|
5
|
+
AvatarSize,
|
|
6
|
+
AvatarStatus,
|
|
7
|
+
AvatarVariant,
|
|
8
|
+
ContentType,
|
|
9
|
+
} from './Avatar.types';
|
|
@@ -1,13 +1,15 @@
|
|
|
1
1
|
import { keyframes } from '@mui/material/styles/index.js';
|
|
2
2
|
|
|
3
|
+
import { BOUNCE, FADE_IN_SCALE, GLOW_PULSE, PULSE } from './Badge.metrics';
|
|
4
|
+
|
|
3
5
|
export const pulseAnimation = keyframes`
|
|
4
6
|
0% {
|
|
5
7
|
transform: scale(1);
|
|
6
8
|
opacity: 1;
|
|
7
9
|
}
|
|
8
10
|
70% {
|
|
9
|
-
transform: scale(
|
|
10
|
-
opacity:
|
|
11
|
+
transform: scale(${PULSE.scale});
|
|
12
|
+
opacity: ${PULSE.opacity};
|
|
11
13
|
}
|
|
12
14
|
100% {
|
|
13
15
|
transform: scale(1);
|
|
@@ -21,10 +23,10 @@ export const bounceAnimation = keyframes`
|
|
|
21
23
|
transform: translateY(0) scale(1);
|
|
22
24
|
}
|
|
23
25
|
40% {
|
|
24
|
-
transform: translateY(
|
|
26
|
+
transform: translateY(-${BOUNCE.lift}px) scale(${BOUNCE.scale});
|
|
25
27
|
}
|
|
26
28
|
60% {
|
|
27
|
-
transform: translateY(
|
|
29
|
+
transform: translateY(-${BOUNCE.secondLift}px) scale(${BOUNCE.secondScale});
|
|
28
30
|
}
|
|
29
31
|
`;
|
|
30
32
|
|
|
@@ -42,10 +44,10 @@ export const shimmerAnimation = keyframes`
|
|
|
42
44
|
export const fadeInScaleAnimation = keyframes`
|
|
43
45
|
0% {
|
|
44
46
|
opacity: 0;
|
|
45
|
-
transform: scale(
|
|
47
|
+
transform: scale(${FADE_IN_SCALE.from});
|
|
46
48
|
}
|
|
47
49
|
50% {
|
|
48
|
-
transform: scale(
|
|
50
|
+
transform: scale(${FADE_IN_SCALE.overshoot});
|
|
49
51
|
}
|
|
50
52
|
100% {
|
|
51
53
|
opacity: 1;
|
|
@@ -56,12 +58,12 @@ export const fadeInScaleAnimation = keyframes`
|
|
|
56
58
|
// Define glow pulse animation
|
|
57
59
|
export const glowPulseAnimation = keyframes`
|
|
58
60
|
0% {
|
|
59
|
-
box-shadow: 0 0
|
|
61
|
+
box-shadow: 0 0 ${GLOW_PULSE.fromBlur}px ${GLOW_PULSE.fromSpread}px rgba(var(--glow-color), ${GLOW_PULSE.fromAlpha});
|
|
60
62
|
}
|
|
61
63
|
50% {
|
|
62
|
-
box-shadow: 0 0
|
|
64
|
+
box-shadow: 0 0 ${GLOW_PULSE.toBlur}px ${GLOW_PULSE.toSpread}px rgba(var(--glow-color), ${GLOW_PULSE.toAlpha});
|
|
63
65
|
}
|
|
64
66
|
100% {
|
|
65
|
-
box-shadow: 0 0
|
|
67
|
+
box-shadow: 0 0 ${GLOW_PULSE.fromBlur}px ${GLOW_PULSE.fromSpread}px rgba(var(--glow-color), ${GLOW_PULSE.fromAlpha});
|
|
66
68
|
}
|
|
67
69
|
`;
|
|
@@ -0,0 +1,138 @@
|
|
|
1
|
+
import type React from 'react';
|
|
2
|
+
|
|
3
|
+
import type { ColorValue, SizeValue } from '../../../tokens/vocabulary';
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* THE CONTRACT BOTH RENDERERS HONOUR — and nothing else.
|
|
7
|
+
*
|
|
8
|
+
* This file imports no MUI and no react-native, on purpose: it is in BOTH
|
|
9
|
+
* declaration outputs (`dist/types` and `dist/types-native`), and a native
|
|
10
|
+
* consumer has no `@mui/material` to resolve a type import against.
|
|
11
|
+
*/
|
|
12
|
+
export type BadgeVariant =
|
|
13
|
+
| 'default'
|
|
14
|
+
| 'dot'
|
|
15
|
+
| 'count'
|
|
16
|
+
| 'gradient'
|
|
17
|
+
| 'glass'
|
|
18
|
+
| 'outline'
|
|
19
|
+
| 'secondary'
|
|
20
|
+
| 'destructive'
|
|
21
|
+
| 'success'
|
|
22
|
+
| 'warning';
|
|
23
|
+
|
|
24
|
+
export type BadgeSize = SizeValue;
|
|
25
|
+
|
|
26
|
+
export type BadgePosition = 'top-right' | 'top-left' | 'bottom-right' | 'bottom-left';
|
|
27
|
+
|
|
28
|
+
export interface BadgeBaseProps {
|
|
29
|
+
/**
|
|
30
|
+
* The variant of the badge
|
|
31
|
+
*/
|
|
32
|
+
variant?: BadgeVariant;
|
|
33
|
+
|
|
34
|
+
/**
|
|
35
|
+
* The size of the badge
|
|
36
|
+
*/
|
|
37
|
+
size?: BadgeSize;
|
|
38
|
+
|
|
39
|
+
/**
|
|
40
|
+
* The color of the badge
|
|
41
|
+
*/
|
|
42
|
+
color?: ColorValue;
|
|
43
|
+
|
|
44
|
+
/**
|
|
45
|
+
* Whether the badge should have a glow effect
|
|
46
|
+
*/
|
|
47
|
+
glow?: boolean;
|
|
48
|
+
|
|
49
|
+
/**
|
|
50
|
+
* Whether the badge should have a pulse animation
|
|
51
|
+
*/
|
|
52
|
+
pulse?: boolean;
|
|
53
|
+
|
|
54
|
+
/**
|
|
55
|
+
* Whether to animate the badge on mount
|
|
56
|
+
*/
|
|
57
|
+
animate?: boolean;
|
|
58
|
+
|
|
59
|
+
/**
|
|
60
|
+
* Maximum count to display (shows "max+" when exceeded)
|
|
61
|
+
*/
|
|
62
|
+
max?: number;
|
|
63
|
+
|
|
64
|
+
/**
|
|
65
|
+
* Whether to show zero count
|
|
66
|
+
*/
|
|
67
|
+
showZero?: boolean;
|
|
68
|
+
|
|
69
|
+
/**
|
|
70
|
+
* Custom content for the badge
|
|
71
|
+
*/
|
|
72
|
+
content?: React.ReactNode;
|
|
73
|
+
|
|
74
|
+
/** MUI's own name for {@link BadgeBaseProps.content}; `content` wins. */
|
|
75
|
+
badgeContent?: React.ReactNode;
|
|
76
|
+
|
|
77
|
+
/**
|
|
78
|
+
* Position of the badge
|
|
79
|
+
*/
|
|
80
|
+
position?: BadgePosition;
|
|
81
|
+
|
|
82
|
+
/** Hides the badge while keeping what it is attached to. */
|
|
83
|
+
invisible?: boolean;
|
|
84
|
+
|
|
85
|
+
/**
|
|
86
|
+
* Accessibility label for screen readers
|
|
87
|
+
*/
|
|
88
|
+
'aria-label'?: string;
|
|
89
|
+
|
|
90
|
+
/**
|
|
91
|
+
* ARIA live region behavior
|
|
92
|
+
*/
|
|
93
|
+
'aria-live'?: 'off' | 'polite' | 'assertive';
|
|
94
|
+
|
|
95
|
+
/**
|
|
96
|
+
* Whether the live region should be atomic
|
|
97
|
+
*/
|
|
98
|
+
'aria-atomic'?: boolean;
|
|
99
|
+
|
|
100
|
+
/**
|
|
101
|
+
* Whether the badge should be closable
|
|
102
|
+
*/
|
|
103
|
+
closable?: boolean;
|
|
104
|
+
|
|
105
|
+
/**
|
|
106
|
+
* Callback when badge is closed
|
|
107
|
+
*/
|
|
108
|
+
onClose?: () => void;
|
|
109
|
+
|
|
110
|
+
/**
|
|
111
|
+
* Whether to show a shimmer effect
|
|
112
|
+
*/
|
|
113
|
+
shimmer?: boolean;
|
|
114
|
+
|
|
115
|
+
/**
|
|
116
|
+
* Whether to bounce on mount
|
|
117
|
+
*/
|
|
118
|
+
bounce?: boolean;
|
|
119
|
+
|
|
120
|
+
/**
|
|
121
|
+
* Custom icon element to display in the badge
|
|
122
|
+
*/
|
|
123
|
+
icon?: React.ReactNode;
|
|
124
|
+
|
|
125
|
+
/** What the badge is attached to. */
|
|
126
|
+
children?: React.ReactNode;
|
|
127
|
+
|
|
128
|
+
/**
|
|
129
|
+
* Custom test ID for testing
|
|
130
|
+
*/
|
|
131
|
+
'data-testid'?: string;
|
|
132
|
+
|
|
133
|
+
/** React Native's spelling of the same id. */
|
|
134
|
+
testID?: string;
|
|
135
|
+
|
|
136
|
+
/** The house spelling of the same id. */
|
|
137
|
+
dataTestId?: string;
|
|
138
|
+
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { ReactNode } from 'react';
|
|
2
2
|
|
|
3
|
-
import type {
|
|
3
|
+
import type { BadgeBaseProps } from './Badge.base';
|
|
4
4
|
|
|
5
5
|
type BadgeDefaultedKeys =
|
|
6
6
|
| 'variant'
|
|
@@ -16,9 +16,14 @@ type BadgeDefaultedKeys =
|
|
|
16
16
|
| 'position'
|
|
17
17
|
| 'closable';
|
|
18
18
|
|
|
19
|
-
|
|
19
|
+
/**
|
|
20
|
+
* Generic over the renderer's own props: the web and the native `Badge` carry
|
|
21
|
+
* different extras, and both come back out untouched.
|
|
22
|
+
*/
|
|
23
|
+
export type ResolvedBadgeProps<P extends BadgeBaseProps = BadgeBaseProps> = P &
|
|
24
|
+
Required<Pick<BadgeBaseProps, BadgeDefaultedKeys>>;
|
|
20
25
|
|
|
21
|
-
const BADGE_DEFAULTS: Pick<
|
|
26
|
+
const BADGE_DEFAULTS: Required<Pick<BadgeBaseProps, BadgeDefaultedKeys>> = {
|
|
22
27
|
variant: 'default',
|
|
23
28
|
size: 'md',
|
|
24
29
|
color: 'primary',
|
|
@@ -37,16 +42,16 @@ const BADGE_DEFAULTS: Pick<BadgeProps, BadgeDefaultedKeys> = {
|
|
|
37
42
|
// falls back to the default exactly as a destructuring default would. Applied as
|
|
38
43
|
// a merge rather than destructuring defaults, which would otherwise put twelve
|
|
39
44
|
// branches into the component's own complexity budget.
|
|
40
|
-
export const resolveBadgeProps = (props:
|
|
45
|
+
export const resolveBadgeProps = <P extends BadgeBaseProps>(props: P): ResolvedBadgeProps<P> =>
|
|
41
46
|
({
|
|
42
47
|
...BADGE_DEFAULTS,
|
|
43
48
|
...(Object.fromEntries(
|
|
44
49
|
Object.entries(props).filter(([, value]) => value !== undefined),
|
|
45
|
-
) as Partial<
|
|
46
|
-
}) as ResolvedBadgeProps
|
|
50
|
+
) as Partial<P>),
|
|
51
|
+
}) as ResolvedBadgeProps<P>;
|
|
47
52
|
|
|
48
53
|
// `content` supersedes the older `badgeContent` prop.
|
|
49
|
-
export const badgeContentOf = (props: Pick<
|
|
54
|
+
export const badgeContentOf = (props: Pick<BadgeBaseProps, 'content' | 'badgeContent'>): ReactNode => {
|
|
50
55
|
if (props.content !== undefined) return props.content;
|
|
51
56
|
if (props.badgeContent !== undefined) return props.badgeContent;
|
|
52
57
|
return null;
|
|
@@ -72,3 +77,9 @@ export const definedAria = (
|
|
|
72
77
|
string,
|
|
73
78
|
string | boolean
|
|
74
79
|
>;
|
|
80
|
+
|
|
81
|
+
/** `${dataTestId}-content`, or `badge-content` when the caller named nothing. */
|
|
82
|
+
export const makeBadgeTestId =
|
|
83
|
+
(dataTestId?: string) =>
|
|
84
|
+
(suffix: string): string =>
|
|
85
|
+
dataTestId ? `${dataTestId}-${suffix}` : `badge-${suffix}`;
|
|
@@ -0,0 +1,174 @@
|
|
|
1
|
+
import type { TextStyle, ViewStyle } from 'react-native';
|
|
2
|
+
|
|
3
|
+
import type { BadgePosition, BadgeSize, BadgeVariant } from './Badge.base';
|
|
4
|
+
import {
|
|
5
|
+
BADGE_BORDER_WIDTH,
|
|
6
|
+
BADGE_DESTRUCTIVE_FONT_WEIGHT,
|
|
7
|
+
BADGE_FONT_WEIGHT,
|
|
8
|
+
BADGE_LETTER_SPACING_EM,
|
|
9
|
+
BADGE_SIZES,
|
|
10
|
+
GLASS_BACKGROUND_ALPHA,
|
|
11
|
+
GLASS_BORDER_ALPHA,
|
|
12
|
+
GLOW,
|
|
13
|
+
OUTLINE_BORDER_WIDTH,
|
|
14
|
+
SECONDARY_BACKGROUND_ALPHA,
|
|
15
|
+
SECONDARY_BORDER_ALPHA,
|
|
16
|
+
badgeAnchor,
|
|
17
|
+
badgePalette,
|
|
18
|
+
type BadgeSizeMetrics,
|
|
19
|
+
} from './Badge.metrics';
|
|
20
|
+
import { alpha } from '../../../tokens/color';
|
|
21
|
+
import type { UiPaletteColor, UiTheme } from '../../../tokens/theme';
|
|
22
|
+
import type { ColorValue } from '../../../tokens/vocabulary';
|
|
23
|
+
|
|
24
|
+
export interface BadgePaint {
|
|
25
|
+
box: ViewStyle;
|
|
26
|
+
ink: string;
|
|
27
|
+
fontWeight: number;
|
|
28
|
+
/** `gradient` and `glass` shout; everything else is set as written. */
|
|
29
|
+
uppercase: boolean;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
/** The chip a variant paints, as React Native styles. */
|
|
33
|
+
function variantPaint(
|
|
34
|
+
theme: UiTheme,
|
|
35
|
+
variant: BadgeVariant,
|
|
36
|
+
accent: UiPaletteColor,
|
|
37
|
+
): BadgePaint {
|
|
38
|
+
const filled = (background: string, ink: string): BadgePaint => ({
|
|
39
|
+
box: { backgroundColor: background },
|
|
40
|
+
ink,
|
|
41
|
+
fontWeight: BADGE_FONT_WEIGHT,
|
|
42
|
+
uppercase: false,
|
|
43
|
+
});
|
|
44
|
+
switch (variant) {
|
|
45
|
+
case 'gradient':
|
|
46
|
+
// React Native core has no gradient fill: the 135° run takes its first stop.
|
|
47
|
+
return { ...filled(accent.main, '#fff'), uppercase: true };
|
|
48
|
+
case 'glass':
|
|
49
|
+
return {
|
|
50
|
+
box: {
|
|
51
|
+
backgroundColor: alpha(accent.main, GLASS_BACKGROUND_ALPHA),
|
|
52
|
+
borderWidth: 1,
|
|
53
|
+
borderColor: alpha(accent.main, GLASS_BORDER_ALPHA),
|
|
54
|
+
},
|
|
55
|
+
ink: accent.main,
|
|
56
|
+
fontWeight: BADGE_FONT_WEIGHT,
|
|
57
|
+
uppercase: true,
|
|
58
|
+
};
|
|
59
|
+
case 'outline':
|
|
60
|
+
return {
|
|
61
|
+
box: {
|
|
62
|
+
backgroundColor: 'transparent',
|
|
63
|
+
borderWidth: OUTLINE_BORDER_WIDTH,
|
|
64
|
+
borderColor: accent.main,
|
|
65
|
+
},
|
|
66
|
+
ink: accent.main,
|
|
67
|
+
fontWeight: BADGE_FONT_WEIGHT,
|
|
68
|
+
uppercase: false,
|
|
69
|
+
};
|
|
70
|
+
case 'secondary':
|
|
71
|
+
return {
|
|
72
|
+
box: {
|
|
73
|
+
backgroundColor: alpha(accent.main, SECONDARY_BACKGROUND_ALPHA),
|
|
74
|
+
borderWidth: 1,
|
|
75
|
+
borderColor: alpha(accent.main, SECONDARY_BORDER_ALPHA),
|
|
76
|
+
},
|
|
77
|
+
ink: accent.main,
|
|
78
|
+
fontWeight: BADGE_FONT_WEIGHT,
|
|
79
|
+
uppercase: false,
|
|
80
|
+
};
|
|
81
|
+
case 'destructive':
|
|
82
|
+
return {
|
|
83
|
+
...filled(theme.palette.danger.main, theme.palette.danger.contrastText),
|
|
84
|
+
fontWeight: BADGE_DESTRUCTIVE_FONT_WEIGHT,
|
|
85
|
+
};
|
|
86
|
+
case 'success':
|
|
87
|
+
return filled(theme.palette.success.main, theme.palette.success.contrastText);
|
|
88
|
+
case 'warning':
|
|
89
|
+
return filled(theme.palette.warning.main, theme.palette.warning.contrastText);
|
|
90
|
+
default:
|
|
91
|
+
return filled(accent.main, accent.contrastText || '#fff');
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
export interface BadgeBoxArgs {
|
|
96
|
+
variant: BadgeVariant;
|
|
97
|
+
size: BadgeSize;
|
|
98
|
+
color: ColorValue;
|
|
99
|
+
glow: boolean;
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
/**
|
|
103
|
+
* Where the chip hangs: MUI's `anchorOrigin` pins it to a corner and then
|
|
104
|
+
* `translate(±50%, ∓50%)` puts its CENTRE there. It is its own node so the
|
|
105
|
+
* chip's animations own `transform` outright — a React Native style array
|
|
106
|
+
* replaces that property rather than composing it, as CSS would.
|
|
107
|
+
*/
|
|
108
|
+
export function badgeAnchorStyle(position: BadgePosition): ViewStyle {
|
|
109
|
+
const anchor = badgeAnchor(position);
|
|
110
|
+
return {
|
|
111
|
+
position: 'absolute',
|
|
112
|
+
[anchor.vertical]: 0,
|
|
113
|
+
[anchor.horizontal]: 0,
|
|
114
|
+
transform: [
|
|
115
|
+
{ translateX: anchor.horizontal === 'right' ? '50%' : '-50%' },
|
|
116
|
+
{ translateY: anchor.vertical === 'top' ? '-50%' : '50%' },
|
|
117
|
+
],
|
|
118
|
+
};
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
/** The chip itself: MUI's paper ring, its size, and the variant's paint. */
|
|
122
|
+
export function badgeBoxStyle(theme: UiTheme, a: BadgeBoxArgs): ViewStyle {
|
|
123
|
+
const metrics = BADGE_SIZES[a.size];
|
|
124
|
+
const accent = badgePalette(theme, a.color);
|
|
125
|
+
const paint = variantPaint(theme, a.variant, accent);
|
|
126
|
+
const dot = a.variant === 'dot';
|
|
127
|
+
|
|
128
|
+
return {
|
|
129
|
+
flexDirection: 'row',
|
|
130
|
+
alignItems: 'center',
|
|
131
|
+
justifyContent: 'center',
|
|
132
|
+
borderWidth: BADGE_BORDER_WIDTH,
|
|
133
|
+
borderColor: theme.palette.background.paper,
|
|
134
|
+
...(dot
|
|
135
|
+
? {
|
|
136
|
+
width: metrics.dotSize,
|
|
137
|
+
height: metrics.dotSize,
|
|
138
|
+
minWidth: metrics.dotSize,
|
|
139
|
+
borderRadius: metrics.dotSize / 2,
|
|
140
|
+
backgroundColor: accent.main,
|
|
141
|
+
}
|
|
142
|
+
: {
|
|
143
|
+
minWidth: metrics.minWidth,
|
|
144
|
+
height: metrics.height,
|
|
145
|
+
paddingHorizontal: metrics.paddingHorizontal,
|
|
146
|
+
borderRadius: metrics.height / 2,
|
|
147
|
+
...paint.box,
|
|
148
|
+
}),
|
|
149
|
+
...(a.glow
|
|
150
|
+
? { boxShadow: `0 0 ${GLOW.blur}px ${GLOW.spread}px ${alpha(accent.main, GLOW.alpha)}` }
|
|
151
|
+
: {}),
|
|
152
|
+
};
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
/** The chip's own type: the size's step, semibold, tracked a little wider. */
|
|
156
|
+
export function badgeTextStyle(
|
|
157
|
+
theme: UiTheme,
|
|
158
|
+
variant: BadgeVariant,
|
|
159
|
+
size: BadgeSize,
|
|
160
|
+
color: ColorValue,
|
|
161
|
+
): TextStyle {
|
|
162
|
+
const metrics = BADGE_SIZES[size];
|
|
163
|
+
const paint = variantPaint(theme, variant, badgePalette(theme, color));
|
|
164
|
+
return {
|
|
165
|
+
fontFamily: theme.typography.fontFamily,
|
|
166
|
+
fontSize: metrics.fontSize,
|
|
167
|
+
fontWeight: String(paint.fontWeight) as TextStyle['fontWeight'],
|
|
168
|
+
letterSpacing: metrics.fontSize * BADGE_LETTER_SPACING_EM,
|
|
169
|
+
color: paint.ink,
|
|
170
|
+
...(paint.uppercase ? { textTransform: 'uppercase' } : {}),
|
|
171
|
+
};
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
export const badgeMetrics = (size: BadgeSize): BadgeSizeMetrics => BADGE_SIZES[size];
|