@12-apps/ui 6.19.0 → 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 +7 -2
- 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 +125 -118
- package/dist/_internal/components/layout/Container/Container.js +2 -2
- package/dist/_internal/components/layout/Container/Container.metrics.js +3 -1
- 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 +18 -17
- 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-LLABVZM3.js → chunk-HEK4LQT6.js} +13 -7
- package/dist/chunk-HEK4LQT6.js.map +1 -0
- 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-JZT5XP23.js → chunk-YBVKLJAL.js} +8 -3
- package/dist/{chunk-JZT5XP23.js.map → chunk-YBVKLJAL.js.map} +1 -1
- 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/Container.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/Container.js +7 -1
- package/dist/native/layout/Container.js.map +1 -1
- 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/Container/Container.d.ts.map +1 -1
- package/dist/types/components/layout/Container/Container.metrics.d.ts +17 -11
- package/dist/types/components/layout/Container/Container.metrics.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/Container/Container.metrics.d.ts +17 -11
- package/dist/types-native/components/layout/Container/Container.metrics.d.ts.map +1 -1
- package/dist/types-native/components/layout/Container/Container.native.d.ts +2 -2
- package/dist/types-native/components/layout/Container/Container.native.d.ts.map +1 -1
- 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/Container/Container.metrics.ts +27 -13
- package/src/components/layout/Container/Container.native.tsx +4 -2
- package/src/components/layout/Container/Container.tsx +10 -4
- package/src/components/layout/Container/NATIVE-NOTES.md +0 -2
- 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-LLABVZM3.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
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { type DimensionValue, type ViewStyle } from 'react-native';
|
|
3
|
+
import type { SkeletonIntensity, SkeletonProps, SkeletonVariant } from './Skeleton.types.native';
|
|
4
|
+
import type { UiTheme } from '../../../tokens/theme';
|
|
5
|
+
/**
|
|
6
|
+
* A width or a height, as React Native accepts one. The web takes any CSS
|
|
7
|
+
* length; here a number is dp and a percentage is a percentage — anything else
|
|
8
|
+
* (`10rem`, `calc(...)`) has no equivalent and sizes the box from its content,
|
|
9
|
+
* which `NATIVE-NOTES.md` records.
|
|
10
|
+
*/
|
|
11
|
+
export declare function dimension(value: number | string | undefined): DimensionValue | undefined;
|
|
12
|
+
/** The tint the web writes: the body ink at the intensity's alpha, white in dark mode. */
|
|
13
|
+
export declare const skeletonTint: (theme: UiTheme, intensity: SkeletonIntensity) => string;
|
|
14
|
+
/**
|
|
15
|
+
* The `text` variant's height. MUI gives it a `1.2em` line box and squashes the
|
|
16
|
+
* whole box to 60%; React Native's transforms do not change layout, so the two
|
|
17
|
+
* are multiplied out into the height the web actually shows.
|
|
18
|
+
*/
|
|
19
|
+
export declare function textBoxHeight(theme: UiTheme, height: number | string | undefined): DimensionValue | undefined;
|
|
20
|
+
interface SkeletonBoxStyleArgs {
|
|
21
|
+
variant: SkeletonVariant;
|
|
22
|
+
intensity: SkeletonIntensity;
|
|
23
|
+
width?: number | string;
|
|
24
|
+
height?: number | string;
|
|
25
|
+
borderRadius?: number | string;
|
|
26
|
+
glassmorphism: boolean;
|
|
27
|
+
/** A box with a wash sliding over it clips, as MUI's `wave` and the shimmer do. */
|
|
28
|
+
clipped: boolean;
|
|
29
|
+
}
|
|
30
|
+
/** The box the web paints, in absolute numbers. */
|
|
31
|
+
export declare function skeletonBoxStyle(theme: UiTheme, a: SkeletonBoxStyleArgs): ViewStyle;
|
|
32
|
+
/**
|
|
33
|
+
* The native `Skeleton`: the same box, the same tint and the same default
|
|
34
|
+
* dimensions the MUI half draws, on a `View`.
|
|
35
|
+
*/
|
|
36
|
+
export declare const Skeleton: React.FC<SkeletonProps>;
|
|
37
|
+
export {};
|
|
38
|
+
//# sourceMappingURL=Skeleton.native.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Skeleton.native.d.ts","sourceRoot":"","sources":["../../../../../src/components/layout/Skeleton/Skeleton.native.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAKL,KAAK,cAAc,EAGnB,KAAK,SAAS,EACf,MAAM,cAAc,CAAC;AAkBtB,OAAO,KAAK,EAEV,iBAAiB,EACjB,aAAa,EACb,eAAe,EAChB,MAAM,yBAAyB,CAAC;AAKjC,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;AAMrD;;;;;GAKG;AACH,wBAAgB,SAAS,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,GAAG,cAAc,GAAG,SAAS,CAGxF;AAED,0FAA0F;AAC1F,eAAO,MAAM,YAAY,GAAI,OAAO,OAAO,EAAE,WAAW,iBAAiB,KAAG,MAIzE,CAAC;AAQJ;;;;GAIG;AACH,wBAAgB,aAAa,CAC3B,KAAK,EAAE,OAAO,EACd,MAAM,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,GAClC,cAAc,GAAG,SAAS,CAI5B;AAiBD,UAAU,oBAAoB;IAC5B,OAAO,EAAE,eAAe,CAAC;IACzB,SAAS,EAAE,iBAAiB,CAAC;IAC7B,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACxB,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACzB,YAAY,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAC/B,aAAa,EAAE,OAAO,CAAC;IACvB,mFAAmF;IACnF,OAAO,EAAE,OAAO,CAAC;CAClB;AAED,mDAAmD;AACnD,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,OAAO,EAAE,CAAC,EAAE,oBAAoB,GAAG,SAAS,CAWnF;AAmGD;;;GAGG;AACH,eAAO,MAAM,QAAQ,EAAE,KAAK,CAAC,EAAE,CAAC,aAAa,CA6C3C,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { StyleProp, ViewProps, ViewStyle } from 'react-native';
|
|
2
|
+
import type { SkeletonBaseProps } from './Skeleton.base';
|
|
3
|
+
export type { SkeletonAnimation, SkeletonBaseProps, SkeletonIntensity, SkeletonVariant, } from './Skeleton.base';
|
|
4
|
+
/** The native `Skeleton`: the shared contract, plus a `View`'s own props. */
|
|
5
|
+
export type SkeletonProps = SkeletonBaseProps & Omit<ViewProps, keyof SkeletonBaseProps | 'style'> & {
|
|
6
|
+
style?: StyleProp<ViewStyle>;
|
|
7
|
+
};
|
|
8
|
+
//# sourceMappingURL=Skeleton.types.native.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Skeleton.types.native.d.ts","sourceRoot":"","sources":["../../../../../src/components/layout/Skeleton/Skeleton.types.native.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAEpE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AAEzD,YAAY,EACV,iBAAiB,EACjB,iBAAiB,EACjB,iBAAiB,EACjB,eAAe,GAChB,MAAM,iBAAiB,CAAC;AAEzB,6EAA6E;AAC7E,MAAM,MAAM,aAAa,GAAG,iBAAiB,GAC3C,IAAI,CAAC,SAAS,EAAE,MAAM,iBAAiB,GAAG,OAAO,CAAC,GAAG;IACnD,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;CAC9B,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.native.d.ts","sourceRoot":"","sources":["../../../../../src/components/layout/Skeleton/index.native.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAC7C,YAAY,EACV,iBAAiB,EACjB,iBAAiB,EACjB,iBAAiB,EACjB,aAAa,EACb,eAAe,GAChB,MAAM,yBAAyB,CAAC"}
|
|
@@ -5,6 +5,8 @@ export declare const ICON_PATHS: {
|
|
|
5
5
|
readonly ArrowDownward: readonly ["m20 12-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8z"];
|
|
6
6
|
readonly ArrowForward: readonly ["m12 4-1.41 1.41L16.17 11H4v2h12.17l-5.58 5.59L12 20l8-8z"];
|
|
7
7
|
readonly ArrowUpward: readonly ["m4 12 1.41 1.41L11 7.83V20h2V7.83l5.58 5.59L20 12l-8-8z"];
|
|
8
|
+
readonly BrokenImage: readonly ["M21 5v6.59l-3-3.01-4 4.01-4-4-4 4-3-3.01V5c0-1.1.9-2 2-2h14c1.1 0 2 .9 2 2m-3 6.42 3 3.01V19c0 1.1-.9 2-2 2H5c-1.1 0-2-.9-2-2v-6.58l3 2.99 4-4 4 4z"];
|
|
9
|
+
readonly Cancel: readonly ["M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2m5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12z"];
|
|
8
10
|
readonly Check: readonly ["M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"];
|
|
9
11
|
readonly CheckCircle: readonly ["M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m-2 15-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8z"];
|
|
10
12
|
readonly ChevronLeft: readonly ["M15.41 7.41 14 6l-6 6 6 6 1.41-1.41L10.83 12z"];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"paths.generated.d.ts","sourceRoot":"","sources":["../../../src/icons/paths.generated.ts"],"names":[],"mappings":"AAOA,mDAAmD;AACnD,eAAO,MAAM,UAAU
|
|
1
|
+
{"version":3,"file":"paths.generated.d.ts","sourceRoot":"","sources":["../../../src/icons/paths.generated.ts"],"names":[],"mappings":"AAOA,mDAAmD;AACnD,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAwCb,CAAC;AAEX,MAAM,MAAM,QAAQ,GAAG,MAAM,OAAO,UAAU,CAAC;AAE/C,eAAO,MAAM,UAAU,EAA8B,SAAS,QAAQ,EAAE,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { Animated } from 'react-native';
|
|
2
|
+
export interface LoopOptions {
|
|
3
|
+
durationMs: number;
|
|
4
|
+
/** The CSS animation's delay, run once before the first lap. */
|
|
5
|
+
delayMs?: number;
|
|
6
|
+
easing?: (value: number) => number;
|
|
7
|
+
/**
|
|
8
|
+
* Layout properties (`left`, `width`, `height`) cannot be driven natively;
|
|
9
|
+
* `opacity` and `transform` can. Defaults to native everywhere but the web.
|
|
10
|
+
*/
|
|
11
|
+
useNativeDriver?: boolean;
|
|
12
|
+
}
|
|
13
|
+
export declare function useLoopedProgress(enabled: boolean, options: LoopOptions): Animated.Value;
|
|
14
|
+
//# sourceMappingURL=animation.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"animation.d.ts","sourceRoot":"","sources":["../../../src/platform/animation.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAoB,MAAM,cAAc,CAAC;AAiB1D,MAAM,WAAW,WAAW;IAC1B,UAAU,EAAE,MAAM,CAAC;IACnB,gEAAgE;IAChE,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,MAAM,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,MAAM,CAAC;IACnC;;;OAGG;IACH,eAAe,CAAC,EAAE,OAAO,CAAC;CAC3B;AAED,wBAAgB,iBAAiB,CAAC,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,WAAW,GAAG,QAAQ,CAAC,KAAK,CAsBxF"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* KEY EVENTS REACT NATIVE DOES NOT DECLARE.
|
|
3
|
+
*
|
|
4
|
+
* There is no `onKeyDown` on React Native's `ViewProps` or `PressableProps`,
|
|
5
|
+
* because there is no keyboard behind a `View` on a device. react-native-web
|
|
6
|
+
* DOES forward one to the DOM, and a component that stands in for a native
|
|
7
|
+
* control — a chip that removes on Delete, a listbox option that activates on
|
|
8
|
+
* Space — carries those conventions as part of its contract on the web.
|
|
9
|
+
*
|
|
10
|
+
* `webKeyDown` spreads the handler onto a react-native element without that
|
|
11
|
+
* element's props type having to know it, the way `./aria.ts` does for the
|
|
12
|
+
* `aria-*` attributes React Native leaves out. On a device it is simply never
|
|
13
|
+
* called, which is the honest outcome: the gesture is the input there.
|
|
14
|
+
*
|
|
15
|
+
* The event is typed structurally rather than as a DOM `KeyboardEvent`, because
|
|
16
|
+
* the native type program is checked WITHOUT the DOM lib.
|
|
17
|
+
*/
|
|
18
|
+
export interface WebKeyEvent {
|
|
19
|
+
key: string;
|
|
20
|
+
preventDefault: () => void;
|
|
21
|
+
}
|
|
22
|
+
export type WebKeyHandler = (event: WebKeyEvent) => void;
|
|
23
|
+
/** `{ onKeyDown }` as something JSX can spread onto a react-native element. */
|
|
24
|
+
export declare function webKeyDown(handler: WebKeyHandler | undefined): object;
|
|
25
|
+
//# sourceMappingURL=web-keys.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"web-keys.d.ts","sourceRoot":"","sources":["../../../src/platform/web-keys.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AACH,MAAM,WAAW,WAAW;IAC1B,GAAG,EAAE,MAAM,CAAC;IACZ,cAAc,EAAE,MAAM,IAAI,CAAC;CAC5B;AAED,MAAM,MAAM,aAAa,GAAG,CAAC,KAAK,EAAE,WAAW,KAAK,IAAI,CAAC;AAEzD,+EAA+E;AAC/E,wBAAgB,UAAU,CAAC,OAAO,EAAE,aAAa,GAAG,SAAS,GAAG,MAAM,CAErE"}
|
|
@@ -14,7 +14,7 @@ import type { UiTheme } from './theme';
|
|
|
14
14
|
* halves and not these; each component that reads this records that as a
|
|
15
15
|
* known gap in its `NATIVE-NOTES.md`.
|
|
16
16
|
*/
|
|
17
|
-
export type MuiTypeVariantName = 'h6' | 'body1' | 'body2';
|
|
17
|
+
export type MuiTypeVariantName = 'h6' | 'body1' | 'body2' | 'caption';
|
|
18
18
|
export interface MuiTypeVariant {
|
|
19
19
|
fontSize: number;
|
|
20
20
|
lineHeight: number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mui-type.d.ts","sourceRoot":"","sources":["../../../src/tokens/mui-type.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,SAAS,CAAC;AAEvC;;;;;;;;;;;;;;GAcG;AACH,MAAM,MAAM,kBAAkB,GAAG,IAAI,GAAG,OAAO,GAAG,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"mui-type.d.ts","sourceRoot":"","sources":["../../../src/tokens/mui-type.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,SAAS,CAAC;AAEvC;;;;;;;;;;;;;;GAcG;AACH,MAAM,MAAM,kBAAkB,GAAG,IAAI,GAAG,OAAO,GAAG,OAAO,GAAG,SAAS,CAAC;AAEtE,MAAM,WAAW,cAAc;IAC7B,QAAQ,EAAE,MAAM,CAAC;IACjB,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,GAAG,GAAG,GAAG,CAAC;IACtB,eAAe,EAAE,MAAM,CAAC;CACzB;AAED,eAAO,MAAM,QAAQ,EAAE,MAAM,CAAC,kBAAkB,EAAE,cAAc,CAK/D,CAAC;AAEF,yFAAyF;AACzF,eAAO,MAAM,sBAAsB,MAAM,CAAC;AAE1C,mGAAmG;AACnG,MAAM,WAAW,YAAY;IAC3B,UAAU,EAAE,MAAM,GAAG,SAAS,CAAC;IAC/B,QAAQ,EAAE,MAAM,CAAC;IACjB,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,GAAG,cAAc,CAAC,YAAY,CAAC,EAAE,CAAC;IAC9C,aAAa,EAAE,MAAM,CAAC;CACvB;AAED;;;;;GAKG;AACH,wBAAgB,YAAY,CAC1B,KAAK,EAAE,IAAI,CAAC,OAAO,EAAE,YAAY,CAAC,EAClC,OAAO,EAAE,kBAAkB,EAC3B,QAAQ,GAAE,MAAmC,GAC5C,YAAY,CASd"}
|
package/dist/user-avatar.js
CHANGED
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
UserAvatar,
|
|
3
3
|
UserMenu
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-7JWXLDRH.js";
|
|
5
5
|
import "./chunk-UDQSIRAP.js";
|
|
6
|
-
import "./chunk-
|
|
7
|
-
import "./chunk-
|
|
6
|
+
import "./chunk-7BYFC2MR.js";
|
|
7
|
+
import "./chunk-3ZVUNSFF.js";
|
|
8
|
+
import "./chunk-4SQFO4GW.js";
|
|
9
|
+
import "./chunk-FAITHWIO.js";
|
|
8
10
|
import "./chunk-XRMZMBE3.js";
|
|
9
11
|
import "./chunk-VUHLNYAE.js";
|
|
10
12
|
import "./chunk-2GSIEDGN.js";
|
|
@@ -12,10 +14,10 @@ import "./chunk-D2IASECY.js";
|
|
|
12
14
|
import "./chunk-VMF3UXM4.js";
|
|
13
15
|
import "./chunk-RI5JZLZL.js";
|
|
14
16
|
import "./chunk-BA4RHQ3B.js";
|
|
15
|
-
import "./chunk-
|
|
16
|
-
import "./chunk-TAMIZE4Q.js";
|
|
17
|
+
import "./chunk-24BUCMQA.js";
|
|
17
18
|
import "./chunk-JT6TERQL.js";
|
|
18
19
|
import "./chunk-ITGG5OKP.js";
|
|
20
|
+
import "./chunk-TAMIZE4Q.js";
|
|
19
21
|
import "./chunk-2PCOC3PT.js";
|
|
20
22
|
import "./chunk-V3PLFYKO.js";
|
|
21
23
|
import "./chunk-QLWBQQW7.js";
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import "../chunk-3QQVEYOR.js";
|
|
2
2
|
import {
|
|
3
3
|
InstallPrompt
|
|
4
|
-
} from "../chunk-
|
|
4
|
+
} from "../chunk-5ZOJLYD2.js";
|
|
5
|
+
import "../chunk-GY62N32G.js";
|
|
5
6
|
import {
|
|
6
7
|
usePwaInstall
|
|
7
8
|
} from "../chunk-5GMHJ7Y5.js";
|
|
@@ -13,7 +14,6 @@ import {
|
|
|
13
14
|
readPwaInstallStash,
|
|
14
15
|
resetPwaInstallStash
|
|
15
16
|
} from "../chunk-UUL44SUX.js";
|
|
16
|
-
import "../chunk-GY62N32G.js";
|
|
17
17
|
import "../chunk-PZ5AY32C.js";
|
|
18
18
|
export {
|
|
19
19
|
InstallPrompt,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@12-apps/ui",
|
|
3
|
-
"version": "6.
|
|
3
|
+
"version": "6.20.0",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"packageManager": "pnpm@10.34.5",
|
|
6
6
|
"type": "module",
|
|
@@ -149,10 +149,18 @@
|
|
|
149
149
|
"default": "./dist/data-display/AlertDialog.js"
|
|
150
150
|
},
|
|
151
151
|
"./data-display/Avatar": {
|
|
152
|
+
"react-native": {
|
|
153
|
+
"types": "./dist/types-native/components/data-display/Avatar/index.native.d.ts",
|
|
154
|
+
"default": "./dist/native/data-display/Avatar.js"
|
|
155
|
+
},
|
|
152
156
|
"types": "./dist/types/components/data-display/Avatar/index.d.ts",
|
|
153
157
|
"default": "./dist/data-display/Avatar.js"
|
|
154
158
|
},
|
|
155
159
|
"./data-display/Badge": {
|
|
160
|
+
"react-native": {
|
|
161
|
+
"types": "./dist/types-native/components/data-display/Badge/index.native.d.ts",
|
|
162
|
+
"default": "./dist/native/data-display/Badge.js"
|
|
163
|
+
},
|
|
156
164
|
"types": "./dist/types/components/data-display/Badge/index.d.ts",
|
|
157
165
|
"default": "./dist/data-display/Badge.js"
|
|
158
166
|
},
|
|
@@ -169,6 +177,10 @@
|
|
|
169
177
|
"default": "./dist/data-display/Chart.js"
|
|
170
178
|
},
|
|
171
179
|
"./data-display/Chip": {
|
|
180
|
+
"react-native": {
|
|
181
|
+
"types": "./dist/types-native/components/data-display/Chip/index.native.d.ts",
|
|
182
|
+
"default": "./dist/native/data-display/Chip.js"
|
|
183
|
+
},
|
|
172
184
|
"types": "./dist/types/components/data-display/Chip/index.d.ts",
|
|
173
185
|
"default": "./dist/data-display/Chip.js"
|
|
174
186
|
},
|
|
@@ -225,6 +237,10 @@
|
|
|
225
237
|
"default": "./dist/data-display/Popover.js"
|
|
226
238
|
},
|
|
227
239
|
"./data-display/Progress": {
|
|
240
|
+
"react-native": {
|
|
241
|
+
"types": "./dist/types-native/components/data-display/Progress/index.native.d.ts",
|
|
242
|
+
"default": "./dist/native/data-display/Progress.js"
|
|
243
|
+
},
|
|
228
244
|
"types": "./dist/types/components/data-display/Progress/index.d.ts",
|
|
229
245
|
"default": "./dist/data-display/Progress.js"
|
|
230
246
|
},
|
|
@@ -493,6 +509,10 @@
|
|
|
493
509
|
"default": "./dist/layout/Sidebar.js"
|
|
494
510
|
},
|
|
495
511
|
"./layout/Skeleton": {
|
|
512
|
+
"react-native": {
|
|
513
|
+
"types": "./dist/types-native/components/layout/Skeleton/index.native.d.ts",
|
|
514
|
+
"default": "./dist/native/layout/Skeleton.js"
|
|
515
|
+
},
|
|
496
516
|
"types": "./dist/types/components/layout/Skeleton/index.d.ts",
|
|
497
517
|
"default": "./dist/layout/Skeleton.js"
|
|
498
518
|
},
|
|
@@ -0,0 +1,108 @@
|
|
|
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
|
+
|
|
13
|
+
/**
|
|
14
|
+
* The house scale, EXTENDED by one stop rather than replacing it.
|
|
15
|
+
*
|
|
16
|
+
* `xxl` is real — an avatar is the one component with a portrait size above the
|
|
17
|
+
* scale's top — so it is added to `SizeValue` instead of the union being
|
|
18
|
+
* rewritten by hand. Spelling all six out again is how the copy drifts.
|
|
19
|
+
*/
|
|
20
|
+
export type AvatarSize = SizeValue | 'xxl';
|
|
21
|
+
export type AvatarVariant = 'circle' | 'square' | 'rounded' | 'status';
|
|
22
|
+
export type AvatarStatus = 'online' | 'offline' | 'away' | 'busy';
|
|
23
|
+
|
|
24
|
+
/** Which of the four content sources won, and therefore which slot id it takes. */
|
|
25
|
+
export type ContentType = 'children' | 'fallback' | 'icon' | 'default';
|
|
26
|
+
|
|
27
|
+
export interface AvatarBaseProps {
|
|
28
|
+
/**
|
|
29
|
+
* The variant of the avatar
|
|
30
|
+
*/
|
|
31
|
+
variant?: AvatarVariant;
|
|
32
|
+
|
|
33
|
+
/**
|
|
34
|
+
* The size of the avatar
|
|
35
|
+
*/
|
|
36
|
+
size?: AvatarSize;
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* Whether the avatar should have a glow effect
|
|
40
|
+
*/
|
|
41
|
+
glow?: boolean;
|
|
42
|
+
|
|
43
|
+
/**
|
|
44
|
+
* Whether the avatar should have a pulse animation
|
|
45
|
+
*/
|
|
46
|
+
pulse?: boolean;
|
|
47
|
+
|
|
48
|
+
/**
|
|
49
|
+
* Status indicator (only applies when variant is 'status')
|
|
50
|
+
*/
|
|
51
|
+
status?: AvatarStatus;
|
|
52
|
+
|
|
53
|
+
/**
|
|
54
|
+
* Fallback text when no src is provided (typically initials)
|
|
55
|
+
*/
|
|
56
|
+
fallback?: string;
|
|
57
|
+
|
|
58
|
+
/**
|
|
59
|
+
* Custom icon to display
|
|
60
|
+
*/
|
|
61
|
+
icon?: React.ReactNode;
|
|
62
|
+
|
|
63
|
+
/**
|
|
64
|
+
* Whether to show a border around the avatar
|
|
65
|
+
*/
|
|
66
|
+
bordered?: boolean;
|
|
67
|
+
|
|
68
|
+
/**
|
|
69
|
+
* Color of the avatar background when no image is provided
|
|
70
|
+
*/
|
|
71
|
+
color?: ColorValue;
|
|
72
|
+
|
|
73
|
+
/**
|
|
74
|
+
* Whether the avatar is in a loading state
|
|
75
|
+
*/
|
|
76
|
+
loading?: boolean;
|
|
77
|
+
|
|
78
|
+
/**
|
|
79
|
+
* Whether the avatar should be interactive (show hover effects)
|
|
80
|
+
*/
|
|
81
|
+
interactive?: boolean;
|
|
82
|
+
|
|
83
|
+
/**
|
|
84
|
+
* Whether to show fallback content on image error
|
|
85
|
+
*/
|
|
86
|
+
showFallbackOnError?: boolean;
|
|
87
|
+
|
|
88
|
+
/**
|
|
89
|
+
* Animation delay in milliseconds
|
|
90
|
+
*/
|
|
91
|
+
animationDelay?: number;
|
|
92
|
+
|
|
93
|
+
/** The portrait itself. */
|
|
94
|
+
src?: string;
|
|
95
|
+
|
|
96
|
+
/** The portrait's description, and the avatar's accessible name. */
|
|
97
|
+
alt?: string;
|
|
98
|
+
|
|
99
|
+
children?: React.ReactNode;
|
|
100
|
+
|
|
101
|
+
/**
|
|
102
|
+
* Test ID for automated testing
|
|
103
|
+
*/
|
|
104
|
+
dataTestId?: string;
|
|
105
|
+
|
|
106
|
+
/** React Native's spelling of {@link AvatarBaseProps.dataTestId}. */
|
|
107
|
+
testID?: string;
|
|
108
|
+
}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import type { AvatarBaseProps, ContentType } from './Avatar.base';
|
|
2
|
+
|
|
3
|
+
/** Applied via a single spread so no per-field default inflates cyclomatic complexity. */
|
|
4
|
+
export const AVATAR_DEFAULTS = {
|
|
5
|
+
variant: 'circle',
|
|
6
|
+
size: 'md',
|
|
7
|
+
glow: false,
|
|
8
|
+
pulse: false,
|
|
9
|
+
bordered: false,
|
|
10
|
+
color: 'primary',
|
|
11
|
+
loading: false,
|
|
12
|
+
interactive: false,
|
|
13
|
+
showFallbackOnError: true,
|
|
14
|
+
animationDelay: 0,
|
|
15
|
+
} satisfies Partial<AvatarBaseProps>;
|
|
16
|
+
|
|
17
|
+
/** What wins the middle of the avatar. `broken` is the icon slot's error glyph. */
|
|
18
|
+
export type AvatarContentPick = ContentType | 'broken';
|
|
19
|
+
|
|
20
|
+
export interface AvatarContentArgs {
|
|
21
|
+
hasChildren: boolean;
|
|
22
|
+
hasFallback: boolean;
|
|
23
|
+
hasIcon: boolean;
|
|
24
|
+
imageError: boolean;
|
|
25
|
+
showFallbackOnError: boolean;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
/**
|
|
29
|
+
* Pick what renders inside the avatar. On an image error (with fallback
|
|
30
|
+
* enabled) the fallback/icon/broken-image wins; otherwise children → fallback →
|
|
31
|
+
* icon → the default person glyph.
|
|
32
|
+
*
|
|
33
|
+
* The DECISION is shared; each renderer builds its own node from it, because
|
|
34
|
+
* the two draw a glyph with different things.
|
|
35
|
+
*/
|
|
36
|
+
export function pickAvatarContent(a: AvatarContentArgs): AvatarContentPick {
|
|
37
|
+
if (a.imageError && a.showFallbackOnError) {
|
|
38
|
+
if (a.hasFallback) return 'fallback';
|
|
39
|
+
return a.hasIcon ? 'icon' : 'broken';
|
|
40
|
+
}
|
|
41
|
+
if (a.hasChildren) return 'children';
|
|
42
|
+
if (a.hasFallback) return 'fallback';
|
|
43
|
+
return a.hasIcon ? 'icon' : 'default';
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
/** The slot id a pick takes; the broken-image glyph shares the icon slot's. */
|
|
47
|
+
export const contentTypeOf = (pick: AvatarContentPick): ContentType =>
|
|
48
|
+
pick === 'broken' ? 'icon' : pick;
|
|
49
|
+
|
|
50
|
+
/** `${dataTestId}-loading`, or nothing at all when the caller named nothing. */
|
|
51
|
+
export const avatarTestId =
|
|
52
|
+
(dataTestId?: string) =>
|
|
53
|
+
(suffix: string): string | undefined =>
|
|
54
|
+
dataTestId ? `${dataTestId}-${suffix}` : undefined;
|
|
@@ -0,0 +1,123 @@
|
|
|
1
|
+
import type { TextStyle, ViewStyle } from 'react-native';
|
|
2
|
+
|
|
3
|
+
import type { AvatarSize, AvatarVariant } from './Avatar.base';
|
|
4
|
+
import {
|
|
5
|
+
AVATAR_SIZES,
|
|
6
|
+
BORDER_HALO_ALPHA,
|
|
7
|
+
BORDER_WIDTH,
|
|
8
|
+
GLOW,
|
|
9
|
+
LOADING_OVERLAY,
|
|
10
|
+
ROUNDED_RADIUS_UNITS,
|
|
11
|
+
SPINNER,
|
|
12
|
+
STATUS_DOT,
|
|
13
|
+
avatarAccent,
|
|
14
|
+
} from './Avatar.metrics';
|
|
15
|
+
import { alpha } from '../../../tokens/color';
|
|
16
|
+
import type { UiTheme } from '../../../tokens/theme';
|
|
17
|
+
import type { ColorValue } from '../../../tokens/vocabulary';
|
|
18
|
+
|
|
19
|
+
/** `square` is sharp, `rounded` takes a spacing unit, `circle` and `status` are round. */
|
|
20
|
+
export function avatarRadius(theme: UiTheme, variant: AvatarVariant, box: number): number {
|
|
21
|
+
if (variant === 'square') return 0;
|
|
22
|
+
if (variant === 'rounded') return theme.spacing(ROUNDED_RADIUS_UNITS);
|
|
23
|
+
return box / 2;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
export interface AvatarSurfaceArgs {
|
|
27
|
+
variant: AvatarVariant;
|
|
28
|
+
size: AvatarSize;
|
|
29
|
+
color: ColorValue;
|
|
30
|
+
glow: boolean;
|
|
31
|
+
bordered: boolean;
|
|
32
|
+
interactive: boolean;
|
|
33
|
+
hasError: boolean;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
/** The avatar box: MUI's square, its radius, the accent behind the initials. */
|
|
37
|
+
export function avatarSurfaceStyle(theme: UiTheme, a: AvatarSurfaceArgs): ViewStyle {
|
|
38
|
+
const { box } = AVATAR_SIZES[a.size];
|
|
39
|
+
const accent = avatarAccent(theme, a.color);
|
|
40
|
+
return {
|
|
41
|
+
width: box,
|
|
42
|
+
height: box,
|
|
43
|
+
borderRadius: avatarRadius(theme, a.variant, box),
|
|
44
|
+
alignItems: 'center',
|
|
45
|
+
justifyContent: 'center',
|
|
46
|
+
overflow: 'hidden',
|
|
47
|
+
backgroundColor: a.hasError ? theme.palette.danger.main : accent.main,
|
|
48
|
+
cursor: a.interactive ? 'pointer' : 'auto',
|
|
49
|
+
...(a.bordered
|
|
50
|
+
? {
|
|
51
|
+
borderWidth: BORDER_WIDTH,
|
|
52
|
+
borderColor: theme.palette.background.paper,
|
|
53
|
+
boxShadow: `0 0 0 1px ${alpha(theme.palette.divider, BORDER_HALO_ALPHA)}`,
|
|
54
|
+
}
|
|
55
|
+
: {}),
|
|
56
|
+
...(a.glow
|
|
57
|
+
? { boxShadow: `0 0 ${GLOW.blur}px ${GLOW.spread}px ${alpha(accent.main, GLOW.alpha)}` }
|
|
58
|
+
: {}),
|
|
59
|
+
};
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
/** The initials, in the accent's contrast ink at the size's own step. */
|
|
63
|
+
export function avatarTextStyle(
|
|
64
|
+
theme: UiTheme,
|
|
65
|
+
size: AvatarSize,
|
|
66
|
+
color: ColorValue,
|
|
67
|
+
hasError: boolean,
|
|
68
|
+
): TextStyle {
|
|
69
|
+
const accent = avatarAccent(theme, color);
|
|
70
|
+
return {
|
|
71
|
+
fontFamily: theme.typography.fontFamily,
|
|
72
|
+
fontSize: AVATAR_SIZES[size].fontSize,
|
|
73
|
+
textAlign: 'center',
|
|
74
|
+
color: hasError ? theme.palette.danger.contrastText : accent.contrastText,
|
|
75
|
+
};
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
/** The wash over a loading avatar, and the ring spinning in it. */
|
|
79
|
+
export function avatarLoadingStyle(theme: UiTheme, size: AvatarSize, radius: number): ViewStyle {
|
|
80
|
+
const { box } = AVATAR_SIZES[size];
|
|
81
|
+
return {
|
|
82
|
+
position: 'absolute',
|
|
83
|
+
top: 0,
|
|
84
|
+
left: 0,
|
|
85
|
+
width: box,
|
|
86
|
+
height: box,
|
|
87
|
+
borderRadius: radius,
|
|
88
|
+
alignItems: 'center',
|
|
89
|
+
justifyContent: 'center',
|
|
90
|
+
backgroundColor: alpha(theme.palette.background.paper, LOADING_OVERLAY.paperAlpha),
|
|
91
|
+
};
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
export function avatarSpinnerStyle(theme: UiTheme, size: AvatarSize): ViewStyle {
|
|
95
|
+
const ring = AVATAR_SIZES[size].box * SPINNER.scale;
|
|
96
|
+
return {
|
|
97
|
+
width: ring,
|
|
98
|
+
height: ring,
|
|
99
|
+
borderRadius: ring / 2,
|
|
100
|
+
borderWidth: SPINNER.ringWidth,
|
|
101
|
+
borderColor: alpha(theme.palette.primary.main, SPINNER.trackAlpha),
|
|
102
|
+
borderTopColor: theme.palette.primary.main,
|
|
103
|
+
};
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
/** MUI's `Badge` dot, anchored bottom-right of a circular avatar. */
|
|
107
|
+
export function avatarStatusDotStyle(theme: UiTheme, size: AvatarSize, color: string): ViewStyle {
|
|
108
|
+
const { box } = AVATAR_SIZES[size];
|
|
109
|
+
const dot = Math.max(STATUS_DOT.min, box * STATUS_DOT.scale);
|
|
110
|
+
// MUI's `overlap="circular"` puts the dot's centre 14% in from the corner.
|
|
111
|
+
const inset = box * STATUS_DOT.anchor - dot / 2;
|
|
112
|
+
return {
|
|
113
|
+
position: 'absolute',
|
|
114
|
+
right: inset,
|
|
115
|
+
bottom: inset,
|
|
116
|
+
width: dot,
|
|
117
|
+
height: dot,
|
|
118
|
+
borderRadius: dot / 2,
|
|
119
|
+
backgroundColor: color,
|
|
120
|
+
borderWidth: STATUS_DOT.borderWidth,
|
|
121
|
+
borderColor: theme.palette.background.paper,
|
|
122
|
+
};
|
|
123
|
+
}
|
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
import type { AvatarSize, AvatarStatus } from './Avatar.base';
|
|
2
|
+
import type { UiTheme } from '../../../tokens/theme';
|
|
3
|
+
import type { ColorValue } from '../../../tokens/vocabulary';
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* THE NUMBERS BOTH `Avatar` RENDERERS DRAW WITH.
|
|
7
|
+
*
|
|
8
|
+
* `Avatar.view.tsx` (web, emotion over MUI's `Avatar` and `Badge`) and
|
|
9
|
+
* `Avatar.native.tsx` (React Native) read this one table: the six boxes and
|
|
10
|
+
* their type, the status dot, the glow, the shimmer and the spinner. The web
|
|
11
|
+
* turns the px into rem; native uses the numbers.
|
|
12
|
+
*/
|
|
13
|
+
export interface AvatarSizeMetrics {
|
|
14
|
+
/** The square the portrait fills, in px. */
|
|
15
|
+
box: number;
|
|
16
|
+
/** The initials' type size, in px. */
|
|
17
|
+
fontSize: number;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
export const AVATAR_SIZES: Record<AvatarSize, AvatarSizeMetrics> = {
|
|
21
|
+
xs: { box: 24, fontSize: 12 },
|
|
22
|
+
sm: { box: 32, fontSize: 14 },
|
|
23
|
+
md: { box: 40, fontSize: 16 },
|
|
24
|
+
lg: { box: 48, fontSize: 18 },
|
|
25
|
+
xl: { box: 64, fontSize: 24 },
|
|
26
|
+
xxl: { box: 80, fontSize: 32 },
|
|
27
|
+
};
|
|
28
|
+
|
|
29
|
+
/** `rounded` takes one spacing unit; `circle` and `status` are round. */
|
|
30
|
+
export const ROUNDED_RADIUS_UNITS = 1;
|
|
31
|
+
|
|
32
|
+
/** The paper ring an avatar takes inside a group, and the hairline outside it. */
|
|
33
|
+
export const BORDER_WIDTH = 2;
|
|
34
|
+
export const BORDER_HALO_ALPHA = 0.2;
|
|
35
|
+
|
|
36
|
+
/** `glow`: a 20px halo at five pixels of spread, and a brightness lift. */
|
|
37
|
+
export const GLOW = { blur: 20, spread: 5, alpha: 0.4, brightness: 1.05 } as const;
|
|
38
|
+
|
|
39
|
+
/** `pulse`: the `::after` ring, from nothing to 10px while it fades out. */
|
|
40
|
+
export const PULSE = { durationMs: 2000, alpha: 0.3, spread: 10 } as const;
|
|
41
|
+
|
|
42
|
+
/** The shimmer that runs across a loading avatar. */
|
|
43
|
+
export const SHIMMER = { durationMs: 1500, fromAlpha: 0.6, toAlpha: 0.8 } as const;
|
|
44
|
+
|
|
45
|
+
/** The overlay over a loading avatar, and the ring spinning in it. */
|
|
46
|
+
export const LOADING_OVERLAY = { paperAlpha: 0.7, blur: 2 } as const;
|
|
47
|
+
export const SPINNER = {
|
|
48
|
+
/** A share of the avatar's box. */
|
|
49
|
+
scale: 0.4,
|
|
50
|
+
ringWidth: 2,
|
|
51
|
+
trackAlpha: 0.3,
|
|
52
|
+
durationMs: 800,
|
|
53
|
+
} as const;
|
|
54
|
+
|
|
55
|
+
/**
|
|
56
|
+
* The status dot: a fifth of the box, never below 8px, inside a paper ring.
|
|
57
|
+
* `anchor` is MUI's `overlap="circular"` inset — the dot's CENTRE sits 14% of
|
|
58
|
+
* the box in from the bottom-right corner.
|
|
59
|
+
*/
|
|
60
|
+
export const STATUS_DOT = { scale: 0.2, min: 8, borderWidth: 2, anchor: 0.14 } as const;
|
|
61
|
+
|
|
62
|
+
/**
|
|
63
|
+
* The default and broken-image glyphs are ordinary `SvgIcon`s here, not MUI's
|
|
64
|
+
* own `.MuiAvatar-fallback` (which is 75% of the box): this component passes
|
|
65
|
+
* them as CHILDREN, so they render at the icon default whatever the box is.
|
|
66
|
+
*/
|
|
67
|
+
export const GLYPH_SIZE = 24;
|
|
68
|
+
|
|
69
|
+
/** MUI's `Fade` timeout on mount, and the scale-in behind it. */
|
|
70
|
+
export const FADE_MS = 300;
|
|
71
|
+
export const SCALE_IN_MS = 300;
|
|
72
|
+
|
|
73
|
+
/** `transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1)`. */
|
|
74
|
+
export const AVATAR_TRANSITION_MS = 300;
|
|
75
|
+
export const AVATAR_TRANSITION_EASING = 'cubic-bezier(0.4, 0, 0.2, 1)';
|
|
76
|
+
|
|
77
|
+
/** The interactive lift, which is a `:hover` on the web. */
|
|
78
|
+
export const HOVER = { scale: 1.1, lift: 2, shadowY: 8, shadowBlur: 20, shadowAlpha: 0.3, brightness: 1.1 } as const;
|
|
79
|
+
export const ACTIVE_SCALE = 1.05;
|
|
80
|
+
|
|
81
|
+
/** The focus ring `:focus-visible` draws. */
|
|
82
|
+
export const FOCUS_RING = { width: 3, offset: 2, alpha: 0.5 } as const;
|
|
83
|
+
|
|
84
|
+
/** An avatar group's default overlap, in px, and its hover lift. */
|
|
85
|
+
export const GROUP_OVERLAP = 8;
|
|
86
|
+
export const GROUP_MAX = 4;
|
|
87
|
+
export const GROUP_HOVER = { scale: 1.1, lift: 4 } as const;
|
|
88
|
+
|
|
89
|
+
/** The dot's colour per status. `offline` is the ramp, the rest are semantic. */
|
|
90
|
+
export function statusColor(theme: UiTheme, status: AvatarStatus): string {
|
|
91
|
+
if (status === 'online') return theme.palette.success.main;
|
|
92
|
+
if (status === 'away') return theme.palette.warning.main;
|
|
93
|
+
if (status === 'busy') return theme.palette.danger.main;
|
|
94
|
+
return theme.palette.grey[500];
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
export interface AvatarAccent {
|
|
98
|
+
main: string;
|
|
99
|
+
contrastText: string;
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
/**
|
|
103
|
+
* The accent behind the initials. `danger`, NOT `error` — the web map was keyed
|
|
104
|
+
* on MUI's word while the prop took the house one, so `danger` matched nothing
|
|
105
|
+
* and fell through to primary: a red avatar rendering blue, silently.
|
|
106
|
+
*/
|
|
107
|
+
export function avatarAccent(theme: UiTheme, color: ColorValue): AvatarAccent {
|
|
108
|
+
if (color === 'neutral') return { main: theme.palette.grey[700], contrastText: '#fff' };
|
|
109
|
+
const accent = theme.palette[color];
|
|
110
|
+
return { main: accent.main, contrastText: accent.contrastText || '#fff' };
|
|
111
|
+
}
|