@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
|
@@ -0,0 +1,387 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import {
|
|
3
|
+
Animated,
|
|
4
|
+
Easing,
|
|
5
|
+
StyleSheet,
|
|
6
|
+
Text as RNText,
|
|
7
|
+
View,
|
|
8
|
+
type StyleProp,
|
|
9
|
+
type ViewProps,
|
|
10
|
+
type ViewStyle,
|
|
11
|
+
} from 'react-native';
|
|
12
|
+
import Svg, { Circle } from 'react-native-svg';
|
|
13
|
+
|
|
14
|
+
import { progressFraction, progressLabelText, resolveProgressProps } from './Progress.helpers';
|
|
15
|
+
import {
|
|
16
|
+
barStyle,
|
|
17
|
+
circularGlowStyle,
|
|
18
|
+
labelStyle,
|
|
19
|
+
segmentStyle,
|
|
20
|
+
trackStyle,
|
|
21
|
+
} from './Progress.look.native';
|
|
22
|
+
import {
|
|
23
|
+
CIRCULAR_INDETERMINATE,
|
|
24
|
+
CIRCULAR_ROTATION_DEG,
|
|
25
|
+
CIRCULAR_VIEWBOX,
|
|
26
|
+
LABEL_MARGIN_TOP_UNITS,
|
|
27
|
+
LINEAR_INDETERMINATE,
|
|
28
|
+
PROGRESS_SIZES,
|
|
29
|
+
PULSE,
|
|
30
|
+
SEGMENT_GAP_UNITS,
|
|
31
|
+
circularCircumference,
|
|
32
|
+
circularDashOffset,
|
|
33
|
+
progressPalette,
|
|
34
|
+
} from './Progress.metrics';
|
|
35
|
+
import type { ProgressProps, ProgressSize, ProgressVariant } from './Progress.types.native';
|
|
36
|
+
import { useLoopedProgress } from '../../../platform/animation';
|
|
37
|
+
import { useUiTheme } from '../../../provider/use-ui-theme.native';
|
|
38
|
+
import type { ColorValue } from '../../../tokens/vocabulary';
|
|
39
|
+
|
|
40
|
+
type ValueAria = Pick<ViewProps, 'aria-valuenow' | 'aria-valuemin' | 'aria-valuemax'>;
|
|
41
|
+
|
|
42
|
+
/** MUI names the value only when it knows it; an indeterminate bar reports none. */
|
|
43
|
+
const valueAria = (value: number | undefined): ValueAria =>
|
|
44
|
+
value === undefined
|
|
45
|
+
? {}
|
|
46
|
+
: { 'aria-valuenow': Math.round(value), 'aria-valuemin': 0, 'aria-valuemax': 100 };
|
|
47
|
+
|
|
48
|
+
/** MUI's `pulseAnimation`, as an opacity the caller can merge into a style. */
|
|
49
|
+
function usePulseStyle(enabled: boolean): { opacity: Animated.AnimatedInterpolation<number> } | null {
|
|
50
|
+
const progress = useLoopedProgress(enabled, {
|
|
51
|
+
durationMs: PULSE.durationMs,
|
|
52
|
+
easing: PULSE_EASING,
|
|
53
|
+
});
|
|
54
|
+
if (!enabled) return null;
|
|
55
|
+
return {
|
|
56
|
+
opacity: progress.interpolate({ inputRange: [0, 0.5, 1], outputRange: [1, PULSE.dip, 1] }),
|
|
57
|
+
};
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
const PULSE_EASING = Easing.inOut(Easing.ease);
|
|
61
|
+
|
|
62
|
+
interface ViewArgs {
|
|
63
|
+
size: ProgressSize;
|
|
64
|
+
color: ColorValue;
|
|
65
|
+
glow: boolean;
|
|
66
|
+
pulse: boolean;
|
|
67
|
+
showLabel: boolean;
|
|
68
|
+
displayValue: number;
|
|
69
|
+
displayLabel: string;
|
|
70
|
+
/** Absent means indeterminate — the bar animates rather than reporting progress. */
|
|
71
|
+
value?: number;
|
|
72
|
+
/** The component's own id; the parts derive theirs from it. */
|
|
73
|
+
testID: string;
|
|
74
|
+
/** The id the addressed element takes — the caller's `data-testid` when they gave one. */
|
|
75
|
+
elementTestID: string;
|
|
76
|
+
style?: StyleProp<ViewStyle>;
|
|
77
|
+
containerRef?: React.Ref<View>;
|
|
78
|
+
rest: ViewProps;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
function ProgressLabel({
|
|
82
|
+
size,
|
|
83
|
+
label,
|
|
84
|
+
testID,
|
|
85
|
+
muted = false,
|
|
86
|
+
spaced = false,
|
|
87
|
+
}: {
|
|
88
|
+
size: ProgressSize;
|
|
89
|
+
label: string;
|
|
90
|
+
testID: string;
|
|
91
|
+
muted?: boolean;
|
|
92
|
+
spaced?: boolean;
|
|
93
|
+
}): React.JSX.Element {
|
|
94
|
+
const theme = useUiTheme();
|
|
95
|
+
return (
|
|
96
|
+
<RNText
|
|
97
|
+
testID={testID}
|
|
98
|
+
style={[
|
|
99
|
+
labelStyle(theme, size, muted),
|
|
100
|
+
spaced ? { marginTop: theme.spacing(LABEL_MARGIN_TOP_UNITS) } : null,
|
|
101
|
+
]}
|
|
102
|
+
>
|
|
103
|
+
{label}
|
|
104
|
+
</RNText>
|
|
105
|
+
);
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
/**
|
|
109
|
+
* MUI's `bar1Indeterminate`: a third of the track crossing it every 2.1s.
|
|
110
|
+
* Two bars on the web, one here — `NATIVE-NOTES.md` records the difference.
|
|
111
|
+
*/
|
|
112
|
+
function useSweepStyle(enabled: boolean): Animated.WithAnimatedValue<ViewStyle> | null {
|
|
113
|
+
const width = `${LINEAR_INDETERMINATE.width * 100}%` as const;
|
|
114
|
+
const progress = useLoopedProgress(enabled, {
|
|
115
|
+
durationMs: LINEAR_INDETERMINATE.durationMs,
|
|
116
|
+
// `left` is a layout property, which the native driver cannot animate.
|
|
117
|
+
useNativeDriver: false,
|
|
118
|
+
});
|
|
119
|
+
if (!enabled) return null;
|
|
120
|
+
return {
|
|
121
|
+
position: 'absolute',
|
|
122
|
+
top: 0,
|
|
123
|
+
bottom: 0,
|
|
124
|
+
width,
|
|
125
|
+
left: progress.interpolate({ inputRange: [0, 1], outputRange: [`-${width}`, '100%'] }),
|
|
126
|
+
};
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
function LinearView({
|
|
130
|
+
variant,
|
|
131
|
+
size,
|
|
132
|
+
color,
|
|
133
|
+
glow,
|
|
134
|
+
pulse,
|
|
135
|
+
showLabel,
|
|
136
|
+
displayValue,
|
|
137
|
+
displayLabel,
|
|
138
|
+
value,
|
|
139
|
+
testID,
|
|
140
|
+
elementTestID,
|
|
141
|
+
style,
|
|
142
|
+
containerRef,
|
|
143
|
+
rest,
|
|
144
|
+
}: ViewArgs & { variant: ProgressVariant }): React.JSX.Element {
|
|
145
|
+
const theme = useUiTheme();
|
|
146
|
+
const pulseStyle = usePulseStyle(pulse);
|
|
147
|
+
const sweep = useSweepStyle(value === undefined);
|
|
148
|
+
|
|
149
|
+
return (
|
|
150
|
+
<View ref={containerRef} testID={testID} style={[styles.block, style]}>
|
|
151
|
+
<View
|
|
152
|
+
testID={elementTestID}
|
|
153
|
+
role="progressbar"
|
|
154
|
+
{...valueAria(value)}
|
|
155
|
+
style={trackStyle(theme, size, color)}
|
|
156
|
+
{...rest}
|
|
157
|
+
>
|
|
158
|
+
<Animated.View
|
|
159
|
+
style={[
|
|
160
|
+
barStyle(theme, { variant, size, color, glow }),
|
|
161
|
+
sweep ?? { width: `${progressFraction(displayValue)}%` },
|
|
162
|
+
pulseStyle,
|
|
163
|
+
]}
|
|
164
|
+
/>
|
|
165
|
+
</View>
|
|
166
|
+
{showLabel ? (
|
|
167
|
+
<ProgressLabel size={size} label={displayLabel} testID={`${testID}-label`} spaced />
|
|
168
|
+
) : null}
|
|
169
|
+
</View>
|
|
170
|
+
);
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
/** MUI's `circular-rotate`: one turn every 1.4s behind an arc that never closes. */
|
|
174
|
+
function useSpinStyle(enabled: boolean): Animated.WithAnimatedValue<ViewStyle> {
|
|
175
|
+
const progress = useLoopedProgress(enabled, {
|
|
176
|
+
durationMs: CIRCULAR_INDETERMINATE.rotationMs,
|
|
177
|
+
});
|
|
178
|
+
if (!enabled) {
|
|
179
|
+
return { transform: [{ rotate: `${CIRCULAR_ROTATION_DEG}deg` }] };
|
|
180
|
+
}
|
|
181
|
+
return {
|
|
182
|
+
transform: [
|
|
183
|
+
{ rotate: progress.interpolate({ inputRange: [0, 1], outputRange: ['0deg', '360deg'] }) },
|
|
184
|
+
],
|
|
185
|
+
};
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
function CircularDial({
|
|
189
|
+
diameter,
|
|
190
|
+
thickness,
|
|
191
|
+
stroke,
|
|
192
|
+
dashOffset,
|
|
193
|
+
}: {
|
|
194
|
+
diameter: number;
|
|
195
|
+
thickness: number;
|
|
196
|
+
stroke: string;
|
|
197
|
+
dashOffset: number;
|
|
198
|
+
}): React.JSX.Element {
|
|
199
|
+
const half = CIRCULAR_VIEWBOX / 2;
|
|
200
|
+
return (
|
|
201
|
+
<Svg
|
|
202
|
+
width={diameter}
|
|
203
|
+
height={diameter}
|
|
204
|
+
viewBox={`${half} ${half} ${CIRCULAR_VIEWBOX} ${CIRCULAR_VIEWBOX}`}
|
|
205
|
+
>
|
|
206
|
+
<Circle
|
|
207
|
+
cx={CIRCULAR_VIEWBOX}
|
|
208
|
+
cy={CIRCULAR_VIEWBOX}
|
|
209
|
+
r={(CIRCULAR_VIEWBOX - thickness) / 2}
|
|
210
|
+
fill="none"
|
|
211
|
+
stroke={stroke}
|
|
212
|
+
strokeWidth={thickness}
|
|
213
|
+
strokeDasharray={circularCircumference(thickness)}
|
|
214
|
+
strokeDashoffset={dashOffset}
|
|
215
|
+
/>
|
|
216
|
+
</Svg>
|
|
217
|
+
);
|
|
218
|
+
}
|
|
219
|
+
|
|
220
|
+
function CircularView({
|
|
221
|
+
size,
|
|
222
|
+
color,
|
|
223
|
+
glow,
|
|
224
|
+
pulse,
|
|
225
|
+
showLabel,
|
|
226
|
+
displayValue,
|
|
227
|
+
displayLabel,
|
|
228
|
+
value,
|
|
229
|
+
testID,
|
|
230
|
+
elementTestID,
|
|
231
|
+
style,
|
|
232
|
+
containerRef,
|
|
233
|
+
rest,
|
|
234
|
+
thickness,
|
|
235
|
+
circularSize,
|
|
236
|
+
}: ViewArgs & { thickness: number; circularSize?: number }): React.JSX.Element {
|
|
237
|
+
const theme = useUiTheme();
|
|
238
|
+
const indeterminate = value === undefined;
|
|
239
|
+
const pulseStyle = usePulseStyle(pulse);
|
|
240
|
+
const spin = useSpinStyle(indeterminate);
|
|
241
|
+
const diameter = circularSize || PROGRESS_SIZES[size].circularSize;
|
|
242
|
+
const box = { width: diameter, height: diameter };
|
|
243
|
+
|
|
244
|
+
return (
|
|
245
|
+
<View ref={containerRef} testID={testID} style={[styles.inline, style]}>
|
|
246
|
+
<Animated.View
|
|
247
|
+
testID={elementTestID}
|
|
248
|
+
role="progressbar"
|
|
249
|
+
{...valueAria(value)}
|
|
250
|
+
style={[box, glow ? circularGlowStyle(theme, color) : null, pulseStyle]}
|
|
251
|
+
{...rest}
|
|
252
|
+
>
|
|
253
|
+
<Animated.View style={[box, spin]}>
|
|
254
|
+
<CircularDial
|
|
255
|
+
diameter={diameter}
|
|
256
|
+
thickness={thickness}
|
|
257
|
+
stroke={progressPalette(theme, color).main}
|
|
258
|
+
dashOffset={
|
|
259
|
+
indeterminate
|
|
260
|
+
? circularCircumference(thickness) * (1 - CIRCULAR_INDETERMINATE.arc)
|
|
261
|
+
: circularDashOffset(displayValue, thickness)
|
|
262
|
+
}
|
|
263
|
+
/>
|
|
264
|
+
</Animated.View>
|
|
265
|
+
</Animated.View>
|
|
266
|
+
{showLabel && !indeterminate ? (
|
|
267
|
+
<View style={[StyleSheet.absoluteFill, styles.centre]}>
|
|
268
|
+
<ProgressLabel size={size} label={displayLabel} testID={`${testID}-label`} muted />
|
|
269
|
+
</View>
|
|
270
|
+
) : null}
|
|
271
|
+
</View>
|
|
272
|
+
);
|
|
273
|
+
}
|
|
274
|
+
|
|
275
|
+
function SegmentedView({
|
|
276
|
+
size,
|
|
277
|
+
color,
|
|
278
|
+
glow,
|
|
279
|
+
pulse,
|
|
280
|
+
showLabel,
|
|
281
|
+
displayValue,
|
|
282
|
+
displayLabel,
|
|
283
|
+
testID,
|
|
284
|
+
elementTestID,
|
|
285
|
+
style,
|
|
286
|
+
containerRef,
|
|
287
|
+
rest,
|
|
288
|
+
segments,
|
|
289
|
+
}: ViewArgs & { segments: number }): React.JSX.Element {
|
|
290
|
+
const theme = useUiTheme();
|
|
291
|
+
const pulseStyle = usePulseStyle(pulse);
|
|
292
|
+
const filled = Math.floor((progressFraction(displayValue) / 100) * segments);
|
|
293
|
+
|
|
294
|
+
return (
|
|
295
|
+
<View ref={containerRef} testID={elementTestID} style={[styles.block, style]} {...rest}>
|
|
296
|
+
<View
|
|
297
|
+
testID={`${testID}-segments-container`}
|
|
298
|
+
style={[styles.segments, { gap: theme.spacing(SEGMENT_GAP_UNITS) }]}
|
|
299
|
+
>
|
|
300
|
+
{Array.from({ length: segments }, (_, index) => (
|
|
301
|
+
<Animated.View
|
|
302
|
+
key={`segment-${index}`}
|
|
303
|
+
testID={`${testID}-segment-${index}`}
|
|
304
|
+
style={[
|
|
305
|
+
segmentStyle(theme, { size, color, filled: index < filled, glow }),
|
|
306
|
+
index < filled ? pulseStyle : null,
|
|
307
|
+
]}
|
|
308
|
+
/>
|
|
309
|
+
))}
|
|
310
|
+
</View>
|
|
311
|
+
{showLabel ? (
|
|
312
|
+
<ProgressLabel size={size} label={displayLabel} testID={`${testID}-label`} spaced />
|
|
313
|
+
) : null}
|
|
314
|
+
</View>
|
|
315
|
+
);
|
|
316
|
+
}
|
|
317
|
+
|
|
318
|
+
/**
|
|
319
|
+
* The native `Progress`: the same track, bar, dial and segments the MUI half
|
|
320
|
+
* draws, on `View`s and a `react-native-svg` arc.
|
|
321
|
+
*/
|
|
322
|
+
export const Progress = React.forwardRef<View, ProgressProps>((rawProps, ref) => {
|
|
323
|
+
const {
|
|
324
|
+
variant,
|
|
325
|
+
size,
|
|
326
|
+
color,
|
|
327
|
+
glow,
|
|
328
|
+
pulse,
|
|
329
|
+
showLabel,
|
|
330
|
+
label,
|
|
331
|
+
segments,
|
|
332
|
+
thickness,
|
|
333
|
+
circularSize,
|
|
334
|
+
value,
|
|
335
|
+
dataTestId,
|
|
336
|
+
testID,
|
|
337
|
+
style,
|
|
338
|
+
'data-testid': elementId,
|
|
339
|
+
...rest
|
|
340
|
+
} = resolveProgressProps(rawProps);
|
|
341
|
+
const displayValue = value || 0;
|
|
342
|
+
// `testID` is React Native's spelling of `dataTestId` and names the component;
|
|
343
|
+
// `data-testid` names the ELEMENT, which is where the web puts it.
|
|
344
|
+
const base = testID ?? dataTestId;
|
|
345
|
+
const shared: ViewArgs = {
|
|
346
|
+
size,
|
|
347
|
+
color,
|
|
348
|
+
glow,
|
|
349
|
+
pulse,
|
|
350
|
+
showLabel,
|
|
351
|
+
displayValue,
|
|
352
|
+
displayLabel: progressLabelText(label, showLabel, displayValue),
|
|
353
|
+
value,
|
|
354
|
+
testID: base,
|
|
355
|
+
elementTestID: base,
|
|
356
|
+
style,
|
|
357
|
+
containerRef: ref,
|
|
358
|
+
rest,
|
|
359
|
+
};
|
|
360
|
+
|
|
361
|
+
if (variant === 'circular') {
|
|
362
|
+
return (
|
|
363
|
+
<CircularView
|
|
364
|
+
{...shared}
|
|
365
|
+
elementTestID={elementId ?? `${base}-circular`}
|
|
366
|
+
thickness={thickness}
|
|
367
|
+
circularSize={circularSize}
|
|
368
|
+
/>
|
|
369
|
+
);
|
|
370
|
+
}
|
|
371
|
+
|
|
372
|
+
if (variant === 'segmented') {
|
|
373
|
+
return <SegmentedView {...shared} elementTestID={elementId ?? base} segments={segments} />;
|
|
374
|
+
}
|
|
375
|
+
|
|
376
|
+
return <LinearView {...shared} elementTestID={elementId ?? `${base}-linear`} variant={variant} />;
|
|
377
|
+
});
|
|
378
|
+
|
|
379
|
+
Progress.displayName = 'Progress';
|
|
380
|
+
|
|
381
|
+
const styles = StyleSheet.create({
|
|
382
|
+
block: { width: '100%' },
|
|
383
|
+
/** MUI's `display: inline-flex` on the circular wrapper. */
|
|
384
|
+
inline: { position: 'relative', alignSelf: 'flex-start' },
|
|
385
|
+
centre: { alignItems: 'center', justifyContent: 'center' },
|
|
386
|
+
segments: { flexDirection: 'row', width: '100%' },
|
|
387
|
+
});
|
|
@@ -1,15 +1,27 @@
|
|
|
1
1
|
import type { PaletteColor, CSSObject, Theme } from '@mui/material/styles/index.js';
|
|
2
2
|
import { alpha, keyframes } from '@mui/material/styles/index.js';
|
|
3
3
|
|
|
4
|
+
import {
|
|
5
|
+
BAR_GLOW,
|
|
6
|
+
CIRCULAR_GLOW,
|
|
7
|
+
GLASS_BAR_ALPHA,
|
|
8
|
+
GLASS_BAR_BORDER_ALPHA,
|
|
9
|
+
GLASS_BLUR_PX,
|
|
10
|
+
GLOW_BRIGHTNESS,
|
|
11
|
+
PROGRESS_SIZES,
|
|
12
|
+
PULSE,
|
|
13
|
+
} from './Progress.metrics';
|
|
4
14
|
import type { ProgressSize, ProgressVariant } from './Progress.types';
|
|
15
|
+
import { px } from '../../../tokens/theme';
|
|
5
16
|
|
|
6
|
-
// Define pulse animation
|
|
17
|
+
// Define pulse animation. The stops and the two seconds are the shared metrics'
|
|
18
|
+
// (`PULSE`), so the native `Progress` breathes on the same cadence.
|
|
7
19
|
export const pulseAnimation = keyframes`
|
|
8
20
|
0% {
|
|
9
21
|
opacity: 1;
|
|
10
22
|
}
|
|
11
23
|
50% {
|
|
12
|
-
opacity:
|
|
24
|
+
opacity: ${PULSE.dip};
|
|
13
25
|
}
|
|
14
26
|
100% {
|
|
15
27
|
opacity: 1;
|
|
@@ -41,13 +53,15 @@ export const getColorFromTheme = (theme: Theme, color: string): PaletteColor =>
|
|
|
41
53
|
return colorMap[color] || theme.palette.primary;
|
|
42
54
|
};
|
|
43
55
|
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
}
|
|
56
|
+
// Derived from the shared metrics, not restated: the native `Progress` reads
|
|
57
|
+
// the same table, so the two renderers cannot disagree on a size.
|
|
58
|
+
const SIZE_MAP: Record<ProgressSize, { height: number; circularSize: number; fontSize: string }> =
|
|
59
|
+
Object.fromEntries(
|
|
60
|
+
Object.entries(PROGRESS_SIZES).map(([size, step]) => [
|
|
61
|
+
size,
|
|
62
|
+
{ height: step.height, circularSize: step.circularSize, fontSize: px(step.fontSize) },
|
|
63
|
+
]),
|
|
64
|
+
) as Record<ProgressSize, { height: number; circularSize: number; fontSize: string }>;
|
|
51
65
|
|
|
52
66
|
export const getSizeStyles = (size?: ProgressSize) => SIZE_MAP[size as ProgressSize] || SIZE_MAP.md;
|
|
53
67
|
|
|
@@ -64,9 +78,9 @@ export const barVariantStyles = (
|
|
|
64
78
|
};
|
|
65
79
|
case 'glass':
|
|
66
80
|
return {
|
|
67
|
-
backgroundColor: alpha(colorPalette.main,
|
|
68
|
-
backdropFilter:
|
|
69
|
-
border: `1px solid ${alpha(colorPalette.main,
|
|
81
|
+
backgroundColor: alpha(colorPalette.main, GLASS_BAR_ALPHA),
|
|
82
|
+
backdropFilter: `blur(${GLASS_BLUR_PX}px)`,
|
|
83
|
+
border: `1px solid ${alpha(colorPalette.main, GLASS_BAR_BORDER_ALPHA)}`,
|
|
70
84
|
};
|
|
71
85
|
default:
|
|
72
86
|
return {};
|
|
@@ -81,11 +95,11 @@ export const barEmphasisStyles = (
|
|
|
81
95
|
pulse?: boolean,
|
|
82
96
|
): CSSObject => ({
|
|
83
97
|
...(glow && {
|
|
84
|
-
boxShadow: `0 0
|
|
85
|
-
filter:
|
|
98
|
+
boxShadow: `0 0 ${BAR_GLOW.blur}px ${BAR_GLOW.spread}px ${alpha(colorPalette.main, BAR_GLOW.alpha)}`,
|
|
99
|
+
filter: `brightness(${GLOW_BRIGHTNESS})`,
|
|
86
100
|
}),
|
|
87
101
|
...(pulse && {
|
|
88
|
-
animation: `${pulseAnimation}
|
|
102
|
+
animation: `${pulseAnimation} ${PULSE.durationMs / 1000}s infinite`,
|
|
89
103
|
}),
|
|
90
104
|
});
|
|
91
105
|
|
|
@@ -95,9 +109,9 @@ export const circularEmphasisStyles = (
|
|
|
95
109
|
pulse?: boolean,
|
|
96
110
|
): CSSObject => ({
|
|
97
111
|
...(glow && {
|
|
98
|
-
filter: `drop-shadow(0 0
|
|
112
|
+
filter: `drop-shadow(0 0 ${CIRCULAR_GLOW.blur}px ${alpha(colorPalette.main, CIRCULAR_GLOW.alpha)})`,
|
|
99
113
|
}),
|
|
100
114
|
...(pulse && {
|
|
101
|
-
animation: `${pulseAnimation}
|
|
115
|
+
animation: `${pulseAnimation} ${PULSE.durationMs / 1000}s infinite`,
|
|
102
116
|
}),
|
|
103
117
|
});
|
|
@@ -5,7 +5,7 @@ import Typography from '@mui/material/Typography/index.js';
|
|
|
5
5
|
import { alpha, styled, useTheme } from '@mui/material/styles/index.js';
|
|
6
6
|
import React from 'react';
|
|
7
7
|
|
|
8
|
-
import { resolveProgressProps } from './Progress.helpers';
|
|
8
|
+
import { progressLabelText, resolveProgressProps } from './Progress.helpers';
|
|
9
9
|
import {
|
|
10
10
|
barEmphasisStyles,
|
|
11
11
|
barVariantStyles,
|
|
@@ -265,9 +265,7 @@ export const Progress = React.forwardRef<HTMLDivElement, ProgressProps>(
|
|
|
265
265
|
circularSize,
|
|
266
266
|
value,
|
|
267
267
|
dataTestId,
|
|
268
|
-
|
|
269
|
-
// forwarded one below is the ref that matters.
|
|
270
|
-
ref: _ref,
|
|
268
|
+
testID,
|
|
271
269
|
...props
|
|
272
270
|
} = resolveProgressProps(rawProps);
|
|
273
271
|
const displayValue = value || 0;
|
|
@@ -278,9 +276,12 @@ export const Progress = React.forwardRef<HTMLDivElement, ProgressProps>(
|
|
|
278
276
|
pulse,
|
|
279
277
|
showLabel,
|
|
280
278
|
displayValue,
|
|
281
|
-
displayLabel: label
|
|
279
|
+
displayLabel: progressLabelText(label, showLabel, displayValue),
|
|
282
280
|
value,
|
|
283
|
-
|
|
281
|
+
// `testID` is React Native's spelling of the same id and names the
|
|
282
|
+
// component too; `data-testid` is left in `props`, on its way to the
|
|
283
|
+
// element the caller means to address, where it has always landed.
|
|
284
|
+
dataTestId: testID ?? dataTestId,
|
|
284
285
|
...props,
|
|
285
286
|
};
|
|
286
287
|
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { StyleProp, ViewProps, ViewStyle } from 'react-native';
|
|
2
|
+
|
|
3
|
+
import type { ProgressBaseProps } from './Progress.base';
|
|
4
|
+
|
|
5
|
+
export type { ProgressBaseProps, ProgressSize, ProgressVariant } from './Progress.base';
|
|
6
|
+
|
|
7
|
+
/** The native `Progress`: the shared contract, plus a `View`'s own props. */
|
|
8
|
+
export type ProgressProps = ProgressBaseProps &
|
|
9
|
+
Omit<ViewProps, keyof ProgressBaseProps | 'style'> & {
|
|
10
|
+
style?: StyleProp<ViewStyle>;
|
|
11
|
+
};
|
|
@@ -1,62 +1,10 @@
|
|
|
1
|
-
import type { ColorValue, SizeValue } from '../../../tokens/scales';
|
|
2
1
|
import type { LinearProgressProps } from '@mui/material/LinearProgress/index.js';
|
|
3
2
|
|
|
4
|
-
|
|
5
|
-
export type ProgressSize = SizeValue;
|
|
3
|
+
import type { ProgressBaseProps } from './Progress.base';
|
|
6
4
|
|
|
7
|
-
export
|
|
8
|
-
/**
|
|
9
|
-
* The variant of the progress
|
|
10
|
-
*/
|
|
11
|
-
variant?: ProgressVariant;
|
|
5
|
+
export type { ProgressBaseProps, ProgressSize, ProgressVariant } from './Progress.base';
|
|
12
6
|
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
/**
|
|
19
|
-
* The color of the progress
|
|
20
|
-
*/
|
|
21
|
-
color?: ColorValue;
|
|
22
|
-
|
|
23
|
-
/**
|
|
24
|
-
* Whether the progress should have a glow effect
|
|
25
|
-
*/
|
|
26
|
-
glow?: boolean;
|
|
27
|
-
|
|
28
|
-
/**
|
|
29
|
-
* Whether the progress should have a pulse animation
|
|
30
|
-
*/
|
|
31
|
-
pulse?: boolean;
|
|
32
|
-
|
|
33
|
-
/**
|
|
34
|
-
* Show percentage text
|
|
35
|
-
*/
|
|
36
|
-
showLabel?: boolean;
|
|
37
|
-
|
|
38
|
-
/**
|
|
39
|
-
* Custom label text
|
|
40
|
-
*/
|
|
41
|
-
label?: string;
|
|
42
|
-
|
|
43
|
-
/**
|
|
44
|
-
* Number of segments for segmented variant
|
|
45
|
-
*/
|
|
46
|
-
segments?: number;
|
|
47
|
-
|
|
48
|
-
/**
|
|
49
|
-
* Thickness for circular variant
|
|
50
|
-
*/
|
|
51
|
-
thickness?: number;
|
|
52
|
-
|
|
53
|
-
/**
|
|
54
|
-
* Size for circular variant
|
|
55
|
-
*/
|
|
56
|
-
circularSize?: number;
|
|
57
|
-
|
|
58
|
-
/**
|
|
59
|
-
* Test ID for testing purposes
|
|
60
|
-
*/
|
|
61
|
-
dataTestId?: string;
|
|
62
|
-
}
|
|
7
|
+
/** The web `Progress`: the shared contract, plus MUI's `LinearProgress` extras. */
|
|
8
|
+
export interface ProgressProps
|
|
9
|
+
extends ProgressBaseProps,
|
|
10
|
+
Omit<LinearProgressProps, 'variant' | 'color' | 'value'> {}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
# Skeleton on React Native
|
|
2
|
+
|
|
3
|
+
Known rendering gaps, one bullet each; `pnpm native:ledger` reads them.
|
|
4
|
+
|
|
5
|
+
- MUI's `wave` sweep and the `shimmer` overlay are gradient pseudo-elements travelling across the box; React Native core has neither, so both are drawn as the same wash (`action.hover` for the wave, `alpha(#fff, 0.3)` for the shimmer) fading in and out over the whole box on the web's own cadence — 1.6s linear after 0.5s for the wave, 2s for the shimmer.
|
|
6
|
+
- `glassmorphism` paints the 135° gradient's first stop (`alpha(paper, 0.8)`) flat and keeps the hairline and the `0 8px 32px 0 rgba(0, 0, 0, 0.1)` shadow, but not the 20px backdrop blur — React Native has no backdrop filter.
|
|
7
|
+
- The `text` variant is drawn at its FINAL height. MUI gives it a `1.2em` line box and squashes the box to 60% with `transform: scale(1, 0.6)`; React Native transforms do not change layout, so the two are multiplied out (11.52px at the theme's 16px body size) and the elliptical `4px/6.7px` radius the squash rounds off is drawn as the plain 4px it lands on.
|
|
8
|
+
- `width`, `height` and `borderRadius` accept a number or a percentage; any other CSS length (`10rem`, `calc(…)`) has no React Native equivalent and leaves the box to size itself from its content.
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* THE CONTRACT BOTH RENDERERS HONOUR — and nothing else.
|
|
3
|
+
*
|
|
4
|
+
* This file imports no MUI and no react-native, on purpose: it is in BOTH
|
|
5
|
+
* declaration outputs (`dist/types` and `dist/types-native`), and a native
|
|
6
|
+
* consumer has no `@mui/material` to resolve a type import against.
|
|
7
|
+
*/
|
|
8
|
+
export type SkeletonVariant = 'text' | 'circular' | 'rectangular' | 'wave';
|
|
9
|
+
export type SkeletonAnimation = 'pulse' | 'wave' | false;
|
|
10
|
+
export type SkeletonIntensity = 'low' | 'medium' | 'high';
|
|
11
|
+
|
|
12
|
+
/**
|
|
13
|
+
* The contract both renderers honour. `className` and a CSS `style` are the
|
|
14
|
+
* web's own and stay in `Skeleton.types.ts`; `style` on native is a
|
|
15
|
+
* `ViewStyle` and is declared in `Skeleton.types.native.ts`.
|
|
16
|
+
*/
|
|
17
|
+
export interface SkeletonBaseProps {
|
|
18
|
+
variant?: SkeletonVariant;
|
|
19
|
+
animation?: SkeletonAnimation;
|
|
20
|
+
width?: number | string;
|
|
21
|
+
height?: number | string;
|
|
22
|
+
count?: number;
|
|
23
|
+
/** Between instances, in SPACING UNITS — `theme.spacing(n)` on both sides. */
|
|
24
|
+
spacing?: number;
|
|
25
|
+
borderRadius?: number | string;
|
|
26
|
+
intensity?: SkeletonIntensity;
|
|
27
|
+
glassmorphism?: boolean;
|
|
28
|
+
shimmer?: boolean;
|
|
29
|
+
/**
|
|
30
|
+
* All three spellings of the same id: the web forwards `data-testid`, React
|
|
31
|
+
* Native calls it `testID`, and `dataTestId` is the house name. See
|
|
32
|
+
* `src/platform/test-id.ts`.
|
|
33
|
+
*/
|
|
34
|
+
testID?: string;
|
|
35
|
+
dataTestId?: string;
|
|
36
|
+
'data-testid'?: string;
|
|
37
|
+
}
|