@12-apps/ui 6.17.1 → 6.19.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 +102 -0
- package/components-catalog.md +31 -4
- package/components-guidelines.md +16 -1
- package/dist/_internal/components/data-display/Alert/Alert.base.js +1 -0
- package/dist/_internal/components/data-display/Alert/Alert.base.js.map +1 -0
- package/dist/_internal/components/data-display/Alert/Alert.helpers.js +16 -0
- package/dist/_internal/components/data-display/Alert/Alert.helpers.js.map +1 -0
- package/dist/_internal/components/data-display/Alert/Alert.js +9 -2
- package/dist/_internal/components/data-display/Alert/Alert.metrics.js +78 -0
- package/dist/_internal/components/data-display/Alert/Alert.metrics.js.map +1 -0
- package/dist/_internal/components/data-display/Alert/Alert.styles.js +7 -1
- package/dist/_internal/components/data-display/AsyncStateContainer/AsyncStateContainer.js +12 -5
- package/dist/_internal/components/data-display/Badge/Badge.js +2 -2
- package/dist/_internal/components/data-display/CardKit/CardKebab.js +10 -4
- package/dist/_internal/components/data-display/CardKit/card-actions-context.js +10 -3
- package/dist/_internal/components/data-display/CardKit/use-remove-confirm.js +17 -9
- package/dist/_internal/components/data-display/CardKit/use-row-confirm.js +11 -5
- package/dist/_internal/components/data-display/Carousel/Carousel.chrome.js +9 -4
- package/dist/_internal/components/data-display/Carousel/Carousel.js +12 -7
- package/dist/_internal/components/data-display/Carousel/Carousel.parts.js +8 -3
- package/dist/_internal/components/data-display/Carousel/Carousel.styles.js +8 -3
- package/dist/_internal/components/data-display/Chart/Chart.js +11 -6
- package/dist/_internal/components/data-display/Chart/SpecChart.js +14 -9
- package/dist/_internal/components/data-display/Chart/chart-context.js +9 -4
- package/dist/_internal/components/data-display/Chart/chart-internals.js +8 -3
- package/dist/_internal/components/data-display/Chart/chart-renderers.js +10 -5
- package/dist/_internal/components/data-display/DataGrid/DataGrid.js +2 -2
- package/dist/_internal/components/data-display/DataViews/DataViewsBoard.js +8 -2
- package/dist/_internal/components/data-display/DataViews/DataViewsGrid.js +45 -38
- package/dist/_internal/components/data-display/DataViews/DataViewsTableBase.js +65 -56
- package/dist/_internal/components/data-display/DataViews/DeleteViewDialog.js +12 -5
- package/dist/_internal/components/data-display/DataViews/ManageViewsDialog.js +17 -10
- package/dist/_internal/components/data-display/DataViews/SaveViewModal.js +14 -7
- package/dist/_internal/components/data-display/DataViews/base-card.js +8 -2
- package/dist/_internal/components/data-display/DataViews/base-list-card-geometry.js +11 -5
- package/dist/_internal/components/data-display/DataViews/base-list-card-slots.js +10 -4
- package/dist/_internal/components/data-display/DataViews/base-list-card.js +12 -6
- package/dist/_internal/components/data-display/DataViews/data-views-category-pill.js +1 -1
- package/dist/_internal/components/data-display/DataViews/data-views-columns-tab.js +8 -2
- package/dist/_internal/components/data-display/DataViews/data-views-columns.js +11 -5
- package/dist/_internal/components/data-display/DataViews/data-views-display-panel.js +15 -8
- package/dist/_internal/components/data-display/DataViews/data-views-display-tabs.js +8 -2
- package/dist/_internal/components/data-display/DataViews/data-views-empty.js +12 -5
- package/dist/_internal/components/data-display/DataViews/data-views-export.js +12 -5
- package/dist/_internal/components/data-display/DataViews/data-views-filter-panel.js +2 -2
- package/dist/_internal/components/data-display/DataViews/data-views-grid-bodies.js +18 -11
- package/dist/_internal/components/data-display/DataViews/data-views-grid-helpers.js +10 -4
- package/dist/_internal/components/data-display/DataViews/data-views-grid-parts.js +42 -35
- package/dist/_internal/components/data-display/DataViews/data-views-header-row.js +8 -2
- package/dist/_internal/components/data-display/DataViews/data-views-inline-bar.js +16 -9
- package/dist/_internal/components/data-display/DataViews/data-views-more-fields.js +9 -3
- package/dist/_internal/components/data-display/DataViews/data-views-more-filters.js +14 -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 +12 -5
- package/dist/_internal/components/data-display/DataViews/data-views-shell-toolbar.js +20 -13
- package/dist/_internal/components/data-display/DataViews/data-views-table-parts.js +25 -16
- package/dist/_internal/components/data-display/DataViews/data-views-toolbar.js +19 -12
- package/dist/_internal/components/data-display/DataViews/data-views-view-nav.js +12 -5
- package/dist/_internal/components/data-display/DataViews/list-card-rails.js +1 -1
- package/dist/_internal/components/data-display/DataViews/save-view-preview.js +8 -2
- package/dist/_internal/components/data-display/DataViews/use-data-views-state.js +13 -7
- package/dist/_internal/components/data-display/DescriptionItem/DescriptionItem.js +8 -2
- package/dist/_internal/components/data-display/EmptyState/EmptyState.base.js +1 -0
- package/dist/_internal/components/data-display/EmptyState/EmptyState.base.js.map +1 -0
- package/dist/_internal/components/data-display/EmptyState/EmptyState.helpers.js +10 -0
- package/dist/_internal/components/data-display/EmptyState/EmptyState.helpers.js.map +1 -0
- package/dist/_internal/components/data-display/EmptyState/EmptyState.js +4 -1
- package/dist/_internal/components/data-display/EmptyState/EmptyState.metrics.js +44 -0
- package/dist/_internal/components/data-display/EmptyState/EmptyState.metrics.js.map +1 -0
- package/dist/_internal/components/data-display/ErrorState/ErrorState.base.js +1 -0
- package/dist/_internal/components/data-display/ErrorState/ErrorState.base.js.map +1 -0
- package/dist/_internal/components/data-display/ErrorState/ErrorState.js +3 -1
- package/dist/_internal/components/data-display/ErrorState/ErrorState.metrics.js +32 -0
- package/dist/_internal/components/data-display/ErrorState/ErrorState.metrics.js.map +1 -0
- package/dist/_internal/components/data-display/HoverCard/HoverCard.js +2 -2
- package/dist/_internal/components/data-display/InteractiveTooltip/InteractiveTooltip.js +2 -2
- package/dist/_internal/components/data-display/Lightbox/Lightbox.js +6 -6
- package/dist/_internal/components/data-display/LoadingState/LoadingState.base.js +1 -0
- package/dist/_internal/components/data-display/LoadingState/LoadingState.base.js.map +1 -0
- package/dist/_internal/components/data-display/LoadingState/LoadingState.helpers.js +6 -2
- package/dist/_internal/components/data-display/LoadingState/LoadingState.js +6 -2
- package/dist/_internal/components/data-display/LoadingState/LoadingState.metrics.js +34 -0
- package/dist/_internal/components/data-display/LoadingState/LoadingState.metrics.js.map +1 -0
- 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/SectionOnboarding/SectionOnboarding.js +5 -2
- package/dist/_internal/components/data-display/Sheet/Sheet.body.js +8 -3
- package/dist/_internal/components/data-display/Sheet/Sheet.hooks.js +2 -2
- package/dist/_internal/components/data-display/Sheet/Sheet.js +12 -7
- package/dist/_internal/components/data-display/Sheet/Sheet.styles.js +8 -3
- package/dist/_internal/components/data-display/Table/Table.js +3 -3
- package/dist/_internal/components/data-display/index.js +100 -87
- package/dist/_internal/components/feedback/ConfirmAction/ConfirmButton.js +10 -4
- package/dist/_internal/components/feedback/index.js +25 -19
- package/dist/_internal/components/form/AddressAutocomplete/AddressAutocomplete.hooks.js +2 -2
- 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/Button/Button.base.js +1 -0
- package/dist/_internal/components/form/Button/Button.base.js.map +1 -0
- package/dist/_internal/components/form/Button/Button.helpers.js +1 -1
- package/dist/_internal/components/form/Button/Button.js +9 -3
- package/dist/_internal/components/form/Button/Button.metrics.js +47 -0
- package/dist/_internal/components/form/Button/Button.metrics.js.map +1 -0
- package/dist/_internal/components/form/Button/Button.styles.js +6 -1
- package/dist/_internal/components/form/Command/Command.js +9 -4
- package/dist/_internal/components/form/Command/Command.styles.js +8 -3
- package/dist/_internal/components/form/Label/Label.js +9 -4
- package/dist/_internal/components/form/Label/Label.styles.js +8 -3
- package/dist/_internal/components/form/Menubar/Menubar.item.js +9 -4
- package/dist/_internal/components/form/Menubar/Menubar.js +11 -6
- package/dist/_internal/components/form/Menubar/Menubar.styles.js +8 -3
- package/dist/_internal/components/form/Menubar/Menubar.toolbar.js +10 -5
- package/dist/_internal/components/form/index.js +80 -73
- package/dist/_internal/components/form/total-form/Fields/index.js +2 -2
- package/dist/_internal/components/form/total-form/SubmitButton.js +10 -4
- package/dist/_internal/components/index.js +286 -268
- package/dist/_internal/components/layout/Box/Box.base.js +8 -0
- package/dist/_internal/components/layout/Box/Box.base.js.map +1 -0
- package/dist/_internal/components/layout/Box/Box.js +22 -0
- package/dist/_internal/components/layout/Box/Box.js.map +1 -0
- package/dist/_internal/components/layout/Box/Box.types.js +8 -0
- package/dist/_internal/components/layout/Box/Box.types.js.map +1 -0
- package/dist/_internal/components/layout/Box/box-layout.js +11 -0
- package/dist/_internal/components/layout/Box/box-layout.js.map +1 -0
- package/dist/_internal/components/layout/Container/Container.base.js +1 -0
- package/dist/_internal/components/layout/Container/Container.base.js.map +1 -0
- package/dist/_internal/components/layout/Container/Container.js +3 -1
- package/dist/_internal/components/layout/Container/Container.metrics.js +26 -0
- package/dist/_internal/components/layout/Container/Container.metrics.js.map +1 -0
- 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/Spacer/Spacer.base.js +1 -0
- package/dist/_internal/components/layout/Spacer/Spacer.base.js.map +1 -0
- package/dist/_internal/components/layout/Spacer/Spacer.js +3 -1
- package/dist/_internal/components/layout/Spacer/Spacer.metrics.js +18 -0
- package/dist/_internal/components/layout/Spacer/Spacer.metrics.js.map +1 -0
- package/dist/_internal/components/layout/Stack/Stack.base.js +1 -0
- package/dist/_internal/components/layout/Stack/Stack.base.js.map +1 -0
- package/dist/_internal/components/layout/Stack/Stack.js +22 -0
- package/dist/_internal/components/layout/Stack/Stack.js.map +1 -0
- package/dist/_internal/components/layout/Stack/Stack.types.js +1 -0
- package/dist/_internal/components/layout/Stack/Stack.types.js.map +1 -0
- package/dist/_internal/components/layout/Stack/with-dividers.js +8 -0
- package/dist/_internal/components/layout/Stack/with-dividers.js.map +1 -0
- package/dist/_internal/components/layout/index.js +27 -24
- package/dist/_internal/components/navigation/AppHeader/AppHeader.details.js +18 -11
- package/dist/_internal/components/navigation/AppHeader/AppHeader.identity.js +8 -3
- package/dist/_internal/components/navigation/CommandPalette/CommandPalette.js +3 -3
- package/dist/_internal/components/navigation/NavigationMenu/NavigationMegaSection.js +3 -3
- package/dist/_internal/components/navigation/NavigationMenu/NavigationMenu.js +5 -5
- package/dist/_internal/components/navigation/NavigationMenu/NavigationMenuItem.js +2 -2
- package/dist/_internal/components/navigation/NavigationMenu/NavigationStandardBody.js +3 -3
- 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 +43 -36
- package/dist/_internal/components/typography/Heading/Heading.base.js +1 -0
- package/dist/_internal/components/typography/Heading/Heading.base.js.map +1 -0
- package/dist/_internal/components/typography/Heading/Heading.js +9 -3
- package/dist/_internal/components/typography/Heading/Heading.metrics.js +32 -0
- package/dist/_internal/components/typography/Heading/Heading.metrics.js.map +1 -0
- package/dist/_internal/components/typography/Heading/Heading.styles.js +7 -2
- package/dist/_internal/components/typography/Paragraph/Paragraph.base.js +1 -0
- package/dist/_internal/components/typography/Paragraph/Paragraph.base.js.map +1 -0
- package/dist/_internal/components/typography/Paragraph/Paragraph.js +7 -1
- package/dist/_internal/components/typography/Paragraph/Paragraph.metrics.js +24 -0
- package/dist/_internal/components/typography/Paragraph/Paragraph.metrics.js.map +1 -0
- package/dist/_internal/components/typography/Text/Text.base.js +1 -0
- package/dist/_internal/components/typography/Text/Text.base.js.map +1 -0
- package/dist/_internal/components/typography/Text/Text.js +7 -1
- package/dist/_internal/components/typography/Text/Text.metrics.js +34 -0
- package/dist/_internal/components/typography/Text/Text.metrics.js.map +1 -0
- package/dist/_internal/components/typography/index.js +15 -7
- package/dist/_internal/components/utility/InstallPrompt/InstallPrompt.js +2 -2
- package/dist/_internal/components/utility/index.js +26 -26
- package/dist/_internal/icons/Icon.js +21 -0
- package/dist/_internal/icons/Icon.js.map +1 -0
- package/dist/_internal/icons/Icon.types.js +10 -0
- package/dist/_internal/icons/Icon.types.js.map +1 -0
- package/dist/_internal/icons/icon-color.js +10 -0
- package/dist/_internal/icons/icon-color.js.map +1 -0
- package/dist/_internal/icons/paths.generated.js +10 -0
- package/dist/_internal/icons/paths.generated.js.map +1 -0
- package/dist/_internal/platform/aria.js +11 -0
- package/dist/_internal/platform/aria.js.map +1 -0
- package/dist/_internal/platform/test-id.js +12 -0
- package/dist/_internal/platform/test-id.js.map +1 -0
- package/dist/_internal/platform/text-children.js +37 -0
- package/dist/_internal/platform/text-children.js.map +1 -0
- package/dist/_internal/provider/UiProvider.js +17 -0
- package/dist/_internal/provider/UiProvider.js.map +1 -0
- package/dist/_internal/provider/UiProvider.types.js +8 -0
- package/dist/_internal/provider/UiProvider.types.js.map +1 -0
- package/dist/_internal/provider/mui-bridge.js +17 -0
- package/dist/_internal/provider/mui-bridge.js.map +1 -0
- package/dist/_internal/provider/ui-theme-context.js +9 -0
- package/dist/_internal/provider/ui-theme-context.js.map +1 -0
- package/dist/_internal/provider/use-ui-theme.js +16 -0
- package/dist/_internal/provider/use-ui-theme.js.map +1 -0
- package/dist/_internal/social-login-button/social-login-button.js +16 -8
- package/dist/_internal/tokens/color.js +26 -0
- package/dist/_internal/tokens/color.js.map +1 -0
- package/dist/_internal/tokens/css-units.js +10 -0
- package/dist/_internal/tokens/css-units.js.map +1 -0
- package/dist/_internal/tokens/heading-scale.js +10 -0
- package/dist/_internal/tokens/heading-scale.js.map +1 -0
- package/dist/_internal/tokens/mui-type.js +25 -0
- package/dist/_internal/tokens/mui-type.js.map +1 -0
- package/dist/_internal/tokens/theme.js +33 -0
- package/dist/_internal/tokens/theme.js.map +1 -0
- package/dist/_internal/tokens/typography.js +5 -3
- package/dist/_internal/tokens/vocabulary.js +22 -0
- package/dist/_internal/tokens/vocabulary.js.map +1 -0
- package/dist/_internal/user-avatar/user-avatar.js +12 -5
- package/dist/charts.js +20 -15
- package/dist/{chunk-VRHBJXZ7.js → chunk-2PCOC3PT.js} +62 -42
- package/dist/chunk-2PCOC3PT.js.map +1 -0
- package/dist/chunk-3N6EK6K5.js +57 -0
- package/dist/chunk-3N6EK6K5.js.map +1 -0
- package/dist/{chunk-77GA5YHQ.js → chunk-43NEBUV3.js} +2 -2
- package/dist/{chunk-FJHNNSD3.js → chunk-4FRZDSRD.js} +5 -5
- package/dist/chunk-4GGH6ZQ7.js +14 -0
- package/dist/chunk-4GGH6ZQ7.js.map +1 -0
- package/dist/{chunk-2PPWKCMW.js → chunk-4N4ENTF7.js} +2 -2
- package/dist/{chunk-GFBNUWT5.js → chunk-4SXZSSVV.js} +6 -6
- package/dist/{chunk-6U7NA74A.js → chunk-5HOJSVQH.js} +2 -2
- package/dist/{chunk-2XGM5PDA.js → chunk-624TFFLJ.js} +5 -3
- package/dist/{chunk-2XGM5PDA.js.map → chunk-624TFFLJ.js.map} +1 -1
- package/dist/chunk-6D5WEZ2L.js +219 -0
- package/dist/chunk-6D5WEZ2L.js.map +1 -0
- package/dist/{chunk-AX7UFG2U.js → chunk-6DXYCXH4.js} +3 -3
- package/dist/chunk-6JAIFIPW.js +111 -0
- package/dist/chunk-6JAIFIPW.js.map +1 -0
- package/dist/{chunk-X4X4CVWJ.js → chunk-6JZE4IIN.js} +2 -2
- package/dist/{chunk-HEDOL2RV.js → chunk-72UYVJBQ.js} +3 -3
- package/dist/{chunk-ZDWU52DJ.js → chunk-7AR2R7TV.js} +4 -4
- package/dist/{chunk-KVN3K4J3.js → chunk-7DFEKTT7.js} +12 -16
- package/dist/chunk-7DFEKTT7.js.map +1 -0
- package/dist/{chunk-B6IURHSZ.js → chunk-7DNQHMDO.js} +4 -4
- package/dist/chunk-7JXLGOM2.js +25 -0
- package/dist/chunk-7JXLGOM2.js.map +1 -0
- package/dist/chunk-7V6ZRQYW.js +90 -0
- package/dist/chunk-7V6ZRQYW.js.map +1 -0
- package/dist/{chunk-GT7C6TSM.js → chunk-7WL24VNI.js} +5 -5
- package/dist/chunk-7ZPUN7TV.js +29 -0
- package/dist/chunk-7ZPUN7TV.js.map +1 -0
- package/dist/chunk-AG66JBNH.js +21 -0
- package/dist/chunk-AG66JBNH.js.map +1 -0
- package/dist/{chunk-ELYLG4F7.js → chunk-AP4FLCLA.js} +5 -5
- package/dist/chunk-B2Y3BABA.js +136 -0
- package/dist/chunk-B2Y3BABA.js.map +1 -0
- package/dist/{chunk-IE7ISTLQ.js → chunk-B443IIQG.js} +4 -4
- package/dist/{chunk-WR6F6J43.js → chunk-BUDXR3EV.js} +3 -3
- package/dist/{chunk-MUAVYVDJ.js → chunk-BVZVH3ZN.js} +3 -3
- package/dist/{chunk-CBPQJAHX.js → chunk-C6XESZ3R.js} +5 -5
- package/dist/{chunk-RP3W6IQO.js → chunk-CPNSVIIB.js} +5 -5
- package/dist/{chunk-45OIUWGO.js → chunk-CRNQVWIT.js} +8 -8
- package/dist/{chunk-T4SM36XC.js → chunk-D7FJ2GAD.js} +2 -2
- package/dist/{chunk-G7CFUI4I.js → chunk-DLFOEXUP.js} +2 -2
- package/dist/{chunk-SCGVB7DS.js → chunk-DOADQW7I.js} +2 -2
- package/dist/{chunk-RIAIJTEW.js → chunk-DOMEYGTN.js} +2 -2
- package/dist/{chunk-7HPPUO2A.js → chunk-DQHC5P64.js} +3 -3
- package/dist/{chunk-6YLAVHV4.js → chunk-DTKMBI7B.js} +4 -4
- package/dist/{chunk-24LW52EU.js → chunk-DX527XPL.js} +2 -2
- package/dist/{chunk-BBC4KT5G.js → chunk-DZN3JF5E.js} +4 -4
- package/dist/{chunk-5ERH4OIK.js → chunk-E27Y7FF2.js} +92 -76
- package/dist/chunk-E27Y7FF2.js.map +1 -0
- package/dist/{chunk-3LO5JWTC.js → chunk-E5ZHW4I5.js} +4 -4
- package/dist/{chunk-CXA6UNFF.js → chunk-EMNGIYH6.js} +4 -4
- package/dist/{chunk-A4YWFX5C.js → chunk-ENNW5SKT.js} +2 -2
- package/dist/{chunk-EGRFMPGD.js → chunk-EXJBPKGW.js} +4 -4
- package/dist/{chunk-DWUMMMLR.js → chunk-FOMK3WPG.js} +2 -2
- package/dist/{chunk-7CA6GVBO.js → chunk-FZXKH2ZT.js} +3 -7
- package/dist/chunk-FZXKH2ZT.js.map +1 -0
- package/dist/{chunk-6CBYPMYQ.js → chunk-GBFGZJB5.js} +2 -2
- package/dist/chunk-H2EQVMU3.js +49 -0
- package/dist/chunk-H2EQVMU3.js.map +1 -0
- package/dist/{chunk-XSKVBGCZ.js → chunk-HKV4MQ2W.js} +2 -2
- package/dist/{chunk-DQIQKIEA.js → chunk-HKZHEK3Z.js} +3 -3
- package/dist/{chunk-VR5HDUBK.js → chunk-HP2ODXNA.js} +2 -2
- package/dist/{chunk-O6J4CKS5.js → chunk-IIOEQRXX.js} +30 -13
- package/dist/chunk-IIOEQRXX.js.map +1 -0
- package/dist/{chunk-4Y65Q3CR.js → chunk-ISSJNFJV.js} +3 -3
- package/dist/chunk-ITGG5OKP.js +86 -0
- package/dist/chunk-ITGG5OKP.js.map +1 -0
- package/dist/{chunk-X24P3ZYW.js → chunk-J4W4TQPC.js} +6 -6
- package/dist/chunk-J6UFAMIC.js +19 -0
- package/dist/chunk-J6UFAMIC.js.map +1 -0
- package/dist/{chunk-5ZOJLYD2.js → chunk-JE6RZ5L6.js} +4 -4
- package/dist/{chunk-NYUGX76C.js → chunk-JT6TERQL.js} +20 -17
- package/dist/chunk-JT6TERQL.js.map +1 -0
- package/dist/chunk-JZT5XP23.js +48 -0
- package/dist/chunk-JZT5XP23.js.map +1 -0
- package/dist/{chunk-6RFL7HGI.js → chunk-KADJNWTQ.js} +4 -4
- package/dist/{chunk-EB4BTKKY.js → chunk-KKYW3LU7.js} +4 -4
- package/dist/chunk-KLREH4X6.js +16 -0
- package/dist/chunk-KLREH4X6.js.map +1 -0
- package/dist/{chunk-RQ4EQ5FJ.js → chunk-L65LF6LN.js} +2 -2
- package/dist/{chunk-FH4VARZ7.js → chunk-L6KEVPXN.js} +7 -7
- package/dist/{chunk-SRMWCN5D.js → chunk-LDE4ELB5.js} +6 -6
- package/dist/{chunk-FF55LRSV.js → chunk-LIOVN5IM.js} +2 -2
- package/dist/{chunk-NBNLGTRB.js → chunk-LLABVZM3.js} +21 -29
- package/dist/chunk-LLABVZM3.js.map +1 -0
- package/dist/{chunk-KXNWDXR7.js → chunk-M2K7BPHX.js} +2 -2
- package/dist/{chunk-VVXRIPV5.js → chunk-MCRIT46W.js} +7 -7
- package/dist/{chunk-WLDK74RR.js → chunk-MSUSZLRE.js} +2 -2
- package/dist/chunk-MWFSIB6K.js +47 -0
- package/dist/chunk-MWFSIB6K.js.map +1 -0
- package/dist/chunk-N3QUEBNS.js +32 -0
- package/dist/chunk-N3QUEBNS.js.map +1 -0
- package/dist/chunk-N7MJ6CNC.js +30 -0
- package/dist/chunk-N7MJ6CNC.js.map +1 -0
- package/dist/{chunk-MD6T7MDT.js → chunk-NECUCG2S.js} +11 -11
- package/dist/{chunk-A3KY6NUA.js → chunk-NFHS77NE.js} +2 -2
- package/dist/{chunk-E67PUPFJ.js → chunk-NQC6H7GY.js} +73 -57
- package/dist/chunk-NQC6H7GY.js.map +1 -0
- package/dist/chunk-NQN5Z36J.js +182 -0
- package/dist/chunk-NQN5Z36J.js.map +1 -0
- package/dist/chunk-OCUVKI63.js +35 -0
- package/dist/chunk-OCUVKI63.js.map +1 -0
- package/dist/{chunk-REMK55JI.js → chunk-OLZTGVBT.js} +4 -4
- package/dist/{chunk-WME2F2YY.js → chunk-OR7UH2ZQ.js} +3 -3
- package/dist/{chunk-PKJKA4CU.js → chunk-OZWQNFG6.js} +6 -6
- package/dist/{chunk-23FCBIUN.js → chunk-P7FQUGED.js} +8 -8
- package/dist/{chunk-6TYSEAAT.js → chunk-PC3ZFERM.js} +4 -4
- package/dist/{chunk-T53L42XW.js → chunk-PMS3H3OO.js} +10 -10
- package/dist/{chunk-TCAB2ERD.js → chunk-PNYXXLPU.js} +2 -2
- package/dist/chunk-PT6TCWIW.js +13 -0
- package/dist/chunk-PT6TCWIW.js.map +1 -0
- package/dist/{chunk-QCIWROKG.js → chunk-PWR7K5OP.js} +17 -15
- package/dist/chunk-PWR7K5OP.js.map +1 -0
- package/dist/{chunk-EY4LPLIR.js → chunk-QJJUTBKZ.js} +3 -3
- package/dist/chunk-QKLGH3RZ.js +29 -0
- package/dist/chunk-QKLGH3RZ.js.map +1 -0
- package/dist/chunk-QLWBQQW7.js +18 -0
- package/dist/chunk-QLWBQQW7.js.map +1 -0
- package/dist/chunk-QWBQVQRG.js +18 -0
- package/dist/chunk-QWBQVQRG.js.map +1 -0
- package/dist/{chunk-VJKRJYZL.js → chunk-QZPNQWS2.js} +2 -2
- package/dist/{chunk-5QXSPLWU.js → chunk-R6SSXEK2.js} +2 -2
- package/dist/{chunk-W2UTDN4T.js → chunk-RBGOGTT2.js} +4 -4
- package/dist/chunk-RKCS6K36.js +48 -0
- package/dist/chunk-RKCS6K36.js.map +1 -0
- package/dist/chunk-RLC46NIW.js +47 -0
- package/dist/chunk-RLC46NIW.js.map +1 -0
- package/dist/{chunk-NR3J7VQL.js → chunk-RNCQ5KHQ.js} +2 -2
- package/dist/chunk-RTSK5OZT.js +15 -0
- package/dist/chunk-RTSK5OZT.js.map +1 -0
- package/dist/{chunk-7FOOLP5H.js → chunk-RXSGHPCR.js} +4 -4
- package/dist/{chunk-Z56IO7OV.js → chunk-RXVPUW7V.js} +2 -2
- package/dist/{chunk-JPDKRGYI.js → chunk-S7HRED4D.js} +3 -3
- package/dist/{chunk-5VVM2PPV.js → chunk-SG6VULKS.js} +3 -3
- package/dist/{chunk-IAQFQNBL.js → chunk-SL4NFGOL.js} +13 -7
- package/dist/chunk-SL4NFGOL.js.map +1 -0
- package/dist/{chunk-SLYZMJEL.js → chunk-SOHDPFOB.js} +3 -3
- package/dist/{chunk-FWL2N2KH.js → chunk-SX3V2DLV.js} +2 -2
- package/dist/{chunk-AUYC5K5K.js → chunk-TAMIZE4Q.js} +1 -1
- package/dist/chunk-TAMIZE4Q.js.map +1 -0
- package/dist/{chunk-3GOX75ZM.js → chunk-TF4TPLF2.js} +2 -2
- package/dist/{chunk-3DQP6OPC.js → chunk-THBT56JE.js} +2 -2
- package/dist/chunk-TLGGVE56.js +37 -0
- package/dist/chunk-TLGGVE56.js.map +1 -0
- package/dist/{chunk-RRX6ZTNX.js → chunk-UEJQQVP2.js} +4 -4
- package/dist/{chunk-K2T2CQSZ.js → chunk-UF27D35R.js} +2 -2
- package/dist/{chunk-7M5BACFQ.js → chunk-UXQW6ZIN.js} +45 -57
- package/dist/chunk-UXQW6ZIN.js.map +1 -0
- package/dist/chunk-V3PLFYKO.js +34 -0
- package/dist/chunk-V3PLFYKO.js.map +1 -0
- package/dist/{chunk-A2GGT4OC.js → chunk-V3SBJ3PB.js} +54 -30
- package/dist/chunk-V3SBJ3PB.js.map +1 -0
- package/dist/chunk-V5IOLAIS.js +22 -0
- package/dist/chunk-V5IOLAIS.js.map +1 -0
- package/dist/chunk-VJK5FBNK.js +46 -0
- package/dist/chunk-VJK5FBNK.js.map +1 -0
- package/dist/{chunk-N34YHFZW.js → chunk-W2YNUUVJ.js} +2 -2
- package/dist/{chunk-XULTDO56.js → chunk-WZUNBSS7.js} +2 -2
- package/dist/{chunk-3JYYPJFD.js → chunk-X2J6MRJW.js} +2 -2
- package/dist/chunk-X5D3PTWI.js +58 -0
- package/dist/chunk-X5D3PTWI.js.map +1 -0
- package/dist/{chunk-HEG7JIBM.js → chunk-X5MPHXG5.js} +4 -4
- package/dist/{chunk-3QGRQNTP.js → chunk-XELVDPKL.js} +3 -3
- package/dist/{chunk-EPNUVSNK.js → chunk-XFUNJYFT.js} +7 -7
- package/dist/{chunk-AVU6KU27.js → chunk-XXDXW6TX.js} +2 -2
- package/dist/{chunk-WMALDOF5.js → chunk-XXJRT6BP.js} +4 -4
- package/dist/chunk-XZTRZ3HO.js +7 -0
- package/dist/chunk-XZTRZ3HO.js.map +1 -0
- package/dist/{chunk-6HNEEJES.js → chunk-Y6KPZQPI.js} +6 -6
- package/dist/{chunk-COSJTD6Z.js → chunk-YLDS5FOQ.js} +2 -2
- package/dist/chunk-YMRI5QKG.js +134 -0
- package/dist/chunk-YMRI5QKG.js.map +1 -0
- package/dist/chunk-YSTHOE66.js +51 -0
- package/dist/chunk-YSTHOE66.js.map +1 -0
- package/dist/{chunk-HQJ75HHI.js → chunk-Z7JNCB5Q.js} +26 -13
- package/dist/chunk-Z7JNCB5Q.js.map +1 -0
- package/dist/{chunk-PMFW55F5.js → chunk-ZIOCRSHU.js} +4 -4
- package/dist/{chunk-WC3W36AM.js → chunk-ZOUWHGV3.js} +4 -4
- package/dist/{chunk-2ZDTGI5V.js → chunk-ZRFRU545.js} +7 -7
- package/dist/{chunk-DJORMYOV.js → chunk-ZU3SWR4I.js} +2 -2
- package/dist/data-display/Alert.js +9 -2
- package/dist/data-display/AsyncStateContainer.js +12 -5
- package/dist/data-display/Badge.js +2 -2
- package/dist/data-display/CardKit.js +18 -10
- package/dist/data-display/Carousel.js +12 -7
- package/dist/data-display/Chart.js +20 -15
- package/dist/data-display/DataGrid.js +2 -2
- package/dist/data-display/DataViews.js +77 -68
- package/dist/data-display/DescriptionItem.js +8 -2
- package/dist/data-display/EmptyState.js +4 -1
- package/dist/data-display/ErrorState.js +3 -1
- package/dist/data-display/HoverCard.js +2 -2
- package/dist/data-display/InteractiveTooltip.js +2 -2
- package/dist/data-display/Lightbox.js +6 -6
- package/dist/data-display/LoadingState.js +6 -2
- package/dist/data-display/MapPreview.js +4 -4
- package/dist/data-display/SectionOnboarding.js +5 -2
- package/dist/data-display/Sheet.js +12 -7
- package/dist/data-display/Table.js +3 -3
- package/dist/en-US.js +8 -8
- package/dist/feedback/ConfirmAction.js +13 -7
- package/dist/form/AddressAutocomplete.js +7 -7
- package/dist/form/Button.js +9 -3
- package/dist/form/Command.js +9 -4
- package/dist/form/Label.js +9 -4
- package/dist/form/Menubar.js +11 -6
- package/dist/form/total-form.js +12 -6
- package/dist/icons.js +31 -0
- package/dist/icons.js.map +1 -0
- package/dist/layout/Box.js +23 -0
- package/dist/layout/Box.js.map +1 -0
- package/dist/layout/Container.js +3 -1
- package/dist/layout/ContentToolbar.js +3 -3
- package/dist/layout/ScrollArea.js +2 -2
- package/dist/layout/SettingsLayout.js +6 -6
- package/dist/layout/Spacer.js +3 -1
- package/dist/layout/Stack.js +22 -0
- package/dist/layout/Stack.js.map +1 -0
- package/dist/locales.js +25 -25
- package/dist/native/chunks/chunk-4NK5ZQZ3.js +10 -0
- package/dist/native/chunks/chunk-4NK5ZQZ3.js.map +1 -0
- package/dist/native/chunks/chunk-5GJ5OG5R.js +36 -0
- package/dist/native/chunks/chunk-5GJ5OG5R.js.map +1 -0
- package/dist/native/chunks/chunk-5WLOVHKK.js +29 -0
- package/dist/native/chunks/chunk-5WLOVHKK.js.map +1 -0
- package/dist/native/chunks/chunk-EKKNUEA6.js +136 -0
- package/dist/native/chunks/chunk-EKKNUEA6.js.map +1 -0
- package/dist/native/chunks/chunk-M4DTJDWU.js +18 -0
- package/dist/native/chunks/chunk-M4DTJDWU.js.map +1 -0
- package/dist/native/chunks/chunk-P3PL4WBO.js +317 -0
- package/dist/native/chunks/chunk-P3PL4WBO.js.map +1 -0
- package/dist/native/chunks/chunk-UKCCYP52.js +318 -0
- package/dist/native/chunks/chunk-UKCCYP52.js.map +1 -0
- package/dist/native/chunks/chunk-V4DQTC5L.js +24 -0
- package/dist/native/chunks/chunk-V4DQTC5L.js.map +1 -0
- package/dist/native/chunks/chunk-YQGNMAJN.js +108 -0
- package/dist/native/chunks/chunk-YQGNMAJN.js.map +1 -0
- package/dist/native/chunks/chunk-YTHR4Y5P.js +21 -0
- package/dist/native/chunks/chunk-YTHR4Y5P.js.map +1 -0
- package/dist/native/data-display/Alert.js +372 -0
- package/dist/native/data-display/Alert.js.map +1 -0
- package/dist/native/data-display/EmptyState.js +293 -0
- package/dist/native/data-display/EmptyState.js.map +1 -0
- package/dist/native/data-display/ErrorState.js +188 -0
- package/dist/native/data-display/ErrorState.js.map +1 -0
- package/dist/native/data-display/LoadingState.js +205 -0
- package/dist/native/data-display/LoadingState.js.map +1 -0
- package/dist/native/form/Button.js +11 -0
- package/dist/native/form/Button.js.map +1 -0
- package/dist/native/icons.js +19 -0
- package/dist/native/icons.js.map +1 -0
- package/dist/native/layout/Box.js +12 -0
- package/dist/native/layout/Box.js.map +1 -0
- package/dist/native/layout/Container.js +87 -0
- package/dist/native/layout/Container.js.map +1 -0
- package/dist/native/layout/Spacer.js +80 -0
- package/dist/native/layout/Spacer.js.map +1 -0
- package/dist/native/layout/Stack.js +30 -0
- package/dist/native/layout/Stack.js.map +1 -0
- package/dist/native/provider.js +26 -0
- package/dist/native/provider.js.map +1 -0
- package/dist/native/tokens.js +65 -0
- package/dist/native/tokens.js.map +1 -0
- package/dist/native/typography/Heading.js +110 -0
- package/dist/native/typography/Heading.js.map +1 -0
- package/dist/native/typography/Paragraph.js +86 -0
- package/dist/native/typography/Paragraph.js.map +1 -0
- package/dist/native/typography/Text.js +131 -0
- package/dist/native/typography/Text.js.map +1 -0
- package/dist/navigation/AppHeader.js +23 -16
- package/dist/navigation/CommandPalette.js +3 -3
- package/dist/navigation/NavigationMenu.js +5 -5
- package/dist/navigation/Pagination.js +2 -2
- package/dist/navigation/Tabs.js +2 -2
- package/dist/provider.js +26 -0
- package/dist/provider.js.map +1 -0
- package/dist/pt-BR.js +8 -8
- package/dist/social-login-button.js +16 -8
- package/dist/tokens.js +59 -6
- package/dist/types/components/data-display/Alert/Alert.base.d.ts +92 -0
- package/dist/types/components/data-display/Alert/Alert.base.d.ts.map +1 -0
- package/dist/types/components/data-display/Alert/Alert.d.ts.map +1 -1
- package/dist/types/components/data-display/Alert/Alert.helpers.d.ts +23 -0
- package/dist/types/components/data-display/Alert/Alert.helpers.d.ts.map +1 -0
- package/dist/types/components/data-display/Alert/Alert.metrics.d.ts +181 -0
- package/dist/types/components/data-display/Alert/Alert.metrics.d.ts.map +1 -0
- package/dist/types/components/data-display/Alert/Alert.styles.d.ts +3 -10
- package/dist/types/components/data-display/Alert/Alert.styles.d.ts.map +1 -1
- package/dist/types/components/data-display/Alert/Alert.types.d.ts +5 -79
- package/dist/types/components/data-display/Alert/Alert.types.d.ts.map +1 -1
- package/dist/types/components/data-display/Alert/index.d.ts +1 -1
- package/dist/types/components/data-display/Alert/index.d.ts.map +1 -1
- package/dist/types/components/data-display/EmptyState/EmptyState.base.d.ts +51 -0
- package/dist/types/components/data-display/EmptyState/EmptyState.base.d.ts.map +1 -0
- package/dist/types/components/data-display/EmptyState/EmptyState.d.ts.map +1 -1
- package/dist/types/components/data-display/EmptyState/EmptyState.helpers.d.ts +13 -0
- package/dist/types/components/data-display/EmptyState/EmptyState.helpers.d.ts.map +1 -0
- package/dist/types/components/data-display/EmptyState/EmptyState.metrics.d.ts +57 -0
- package/dist/types/components/data-display/EmptyState/EmptyState.metrics.d.ts.map +1 -0
- package/dist/types/components/data-display/EmptyState/EmptyState.types.d.ts +3 -39
- package/dist/types/components/data-display/EmptyState/EmptyState.types.d.ts.map +1 -1
- package/dist/types/components/data-display/EmptyState/index.d.ts +1 -1
- package/dist/types/components/data-display/EmptyState/index.d.ts.map +1 -1
- package/dist/types/components/data-display/ErrorState/ErrorState.base.d.ts +43 -0
- package/dist/types/components/data-display/ErrorState/ErrorState.base.d.ts.map +1 -0
- package/dist/types/components/data-display/ErrorState/ErrorState.d.ts.map +1 -1
- package/dist/types/components/data-display/ErrorState/ErrorState.metrics.d.ts +37 -0
- package/dist/types/components/data-display/ErrorState/ErrorState.metrics.d.ts.map +1 -0
- package/dist/types/components/data-display/ErrorState/ErrorState.types.d.ts +3 -32
- package/dist/types/components/data-display/ErrorState/ErrorState.types.d.ts.map +1 -1
- package/dist/types/components/data-display/ErrorState/index.d.ts +1 -1
- package/dist/types/components/data-display/ErrorState/index.d.ts.map +1 -1
- package/dist/types/components/data-display/LoadingState/LoadingState.base.d.ts +37 -0
- package/dist/types/components/data-display/LoadingState/LoadingState.base.d.ts.map +1 -0
- package/dist/types/components/data-display/LoadingState/LoadingState.d.ts.map +1 -1
- package/dist/types/components/data-display/LoadingState/LoadingState.helpers.d.ts +12 -6
- package/dist/types/components/data-display/LoadingState/LoadingState.helpers.d.ts.map +1 -1
- package/dist/types/components/data-display/LoadingState/LoadingState.metrics.d.ts +43 -0
- package/dist/types/components/data-display/LoadingState/LoadingState.metrics.d.ts.map +1 -0
- package/dist/types/components/data-display/LoadingState/LoadingState.types.d.ts +3 -27
- package/dist/types/components/data-display/LoadingState/LoadingState.types.d.ts.map +1 -1
- package/dist/types/components/data-display/LoadingState/index.d.ts +1 -1
- package/dist/types/components/data-display/LoadingState/index.d.ts.map +1 -1
- package/dist/types/components/form/Button/Button.base.d.ts +65 -0
- package/dist/types/components/form/Button/Button.base.d.ts.map +1 -0
- package/dist/types/components/form/Button/Button.d.ts.map +1 -1
- package/dist/types/components/form/Button/Button.helpers.d.ts +7 -3
- package/dist/types/components/form/Button/Button.helpers.d.ts.map +1 -1
- package/dist/types/components/form/Button/Button.metrics.d.ts +52 -0
- package/dist/types/components/form/Button/Button.metrics.d.ts.map +1 -0
- package/dist/types/components/form/Button/Button.styles.d.ts.map +1 -1
- package/dist/types/components/form/Button/Button.types.d.ts +3 -46
- package/dist/types/components/form/Button/Button.types.d.ts.map +1 -1
- package/dist/types/components/form/Button/index.d.ts +1 -1
- package/dist/types/components/form/Button/index.d.ts.map +1 -1
- package/dist/types/components/layout/Box/Box.base.d.ts +60 -0
- package/dist/types/components/layout/Box/Box.base.d.ts.map +1 -0
- package/dist/types/components/layout/Box/Box.d.ts +10 -0
- package/dist/types/components/layout/Box/Box.d.ts.map +1 -0
- package/dist/types/components/layout/Box/Box.types.d.ts +11 -0
- package/dist/types/components/layout/Box/Box.types.d.ts.map +1 -0
- package/dist/types/components/layout/Box/box-layout.d.ts +42 -0
- package/dist/types/components/layout/Box/box-layout.d.ts.map +1 -0
- package/dist/types/components/layout/Box/index.d.ts +5 -0
- package/dist/types/components/layout/Box/index.d.ts.map +1 -0
- package/dist/types/components/layout/Container/Container.base.d.ts +31 -0
- package/dist/types/components/layout/Container/Container.base.d.ts.map +1 -0
- package/dist/types/components/layout/Container/Container.d.ts.map +1 -1
- package/dist/types/components/layout/Container/Container.metrics.d.ts +51 -0
- package/dist/types/components/layout/Container/Container.metrics.d.ts.map +1 -0
- package/dist/types/components/layout/Container/Container.types.d.ts +4 -8
- package/dist/types/components/layout/Container/Container.types.d.ts.map +1 -1
- package/dist/types/components/layout/Container/index.d.ts +1 -1
- package/dist/types/components/layout/Container/index.d.ts.map +1 -1
- package/dist/types/components/layout/Spacer/Spacer.base.d.ts +30 -0
- package/dist/types/components/layout/Spacer/Spacer.base.d.ts.map +1 -0
- package/dist/types/components/layout/Spacer/Spacer.d.ts.map +1 -1
- package/dist/types/components/layout/Spacer/Spacer.metrics.d.ts +36 -0
- package/dist/types/components/layout/Spacer/Spacer.metrics.d.ts.map +1 -0
- package/dist/types/components/layout/Spacer/Spacer.types.d.ts +4 -9
- package/dist/types/components/layout/Spacer/Spacer.types.d.ts.map +1 -1
- package/dist/types/components/layout/Spacer/index.d.ts +1 -1
- package/dist/types/components/layout/Spacer/index.d.ts.map +1 -1
- package/dist/types/components/layout/Stack/Stack.base.d.ts +13 -0
- package/dist/types/components/layout/Stack/Stack.base.d.ts.map +1 -0
- package/dist/types/components/layout/Stack/Stack.d.ts +4 -0
- package/dist/types/components/layout/Stack/Stack.d.ts.map +1 -0
- package/dist/types/components/layout/Stack/Stack.types.d.ts +5 -0
- package/dist/types/components/layout/Stack/Stack.types.d.ts.map +1 -0
- package/dist/types/components/layout/Stack/index.d.ts +3 -0
- package/dist/types/components/layout/Stack/index.d.ts.map +1 -0
- package/dist/types/components/layout/Stack/with-dividers.d.ts +4 -0
- package/dist/types/components/layout/Stack/with-dividers.d.ts.map +1 -0
- package/dist/types/components/typography/Heading/Heading.base.d.ts +52 -0
- package/dist/types/components/typography/Heading/Heading.base.d.ts.map +1 -0
- package/dist/types/components/typography/Heading/Heading.d.ts +9 -6
- package/dist/types/components/typography/Heading/Heading.d.ts.map +1 -1
- package/dist/types/components/typography/Heading/Heading.metrics.d.ts +52 -0
- package/dist/types/components/typography/Heading/Heading.metrics.d.ts.map +1 -0
- package/dist/types/components/typography/Heading/Heading.styles.d.ts.map +1 -1
- package/dist/types/components/typography/Heading/Heading.types.d.ts +8 -38
- package/dist/types/components/typography/Heading/Heading.types.d.ts.map +1 -1
- package/dist/types/components/typography/Heading/index.d.ts +1 -1
- package/dist/types/components/typography/Heading/index.d.ts.map +1 -1
- package/dist/types/components/typography/Paragraph/Paragraph.base.d.ts +23 -0
- package/dist/types/components/typography/Paragraph/Paragraph.base.d.ts.map +1 -0
- package/dist/types/components/typography/Paragraph/Paragraph.d.ts.map +1 -1
- package/dist/types/components/typography/Paragraph/Paragraph.metrics.d.ts +30 -0
- package/dist/types/components/typography/Paragraph/Paragraph.metrics.d.ts.map +1 -0
- package/dist/types/components/typography/Paragraph/Paragraph.types.d.ts +4 -7
- package/dist/types/components/typography/Paragraph/Paragraph.types.d.ts.map +1 -1
- package/dist/types/components/typography/Paragraph/index.d.ts +1 -1
- package/dist/types/components/typography/Paragraph/index.d.ts.map +1 -1
- package/dist/types/components/typography/Text/Text.base.d.ts +23 -0
- package/dist/types/components/typography/Text/Text.base.d.ts.map +1 -0
- package/dist/types/components/typography/Text/Text.d.ts.map +1 -1
- package/dist/types/components/typography/Text/Text.metrics.d.ts +29 -0
- package/dist/types/components/typography/Text/Text.metrics.d.ts.map +1 -0
- package/dist/types/components/typography/Text/Text.types.d.ts +3 -11
- package/dist/types/components/typography/Text/Text.types.d.ts.map +1 -1
- package/dist/types/components/typography/Text/index.d.ts +1 -1
- package/dist/types/components/typography/Text/index.d.ts.map +1 -1
- package/dist/types/icons/Icon.d.ts +13 -0
- package/dist/types/icons/Icon.d.ts.map +1 -0
- package/dist/types/icons/Icon.types.d.ts +30 -0
- package/dist/types/icons/Icon.types.d.ts.map +1 -0
- package/dist/types/icons/icon-color.d.ts +10 -0
- package/dist/types/icons/icon-color.d.ts.map +1 -0
- package/dist/types/icons/index.d.ts +6 -0
- package/dist/types/icons/index.d.ts.map +1 -0
- package/dist/types/icons/paths.generated.d.ts +43 -0
- package/dist/types/icons/paths.generated.d.ts.map +1 -0
- package/dist/types/platform/aria.d.ts +29 -0
- package/dist/types/platform/aria.d.ts.map +1 -0
- package/dist/types/platform/test-id.d.ts +21 -0
- package/dist/types/platform/test-id.d.ts.map +1 -0
- package/dist/types/platform/text-children.d.ts +6 -0
- package/dist/types/platform/text-children.d.ts.map +1 -0
- package/dist/types/provider/UiProvider.d.ts +15 -0
- package/dist/types/provider/UiProvider.d.ts.map +1 -0
- package/dist/types/provider/UiProvider.types.d.ts +17 -0
- package/dist/types/provider/UiProvider.types.d.ts.map +1 -0
- package/dist/types/provider/index.d.ts +5 -0
- package/dist/types/provider/index.d.ts.map +1 -0
- package/dist/types/provider/mui-bridge.d.ts +7 -0
- package/dist/types/provider/mui-bridge.d.ts.map +1 -0
- package/dist/types/provider/ui-theme-context.d.ts +12 -0
- package/dist/types/provider/ui-theme-context.d.ts.map +1 -0
- package/dist/types/provider/use-ui-theme.d.ts +11 -0
- package/dist/types/provider/use-ui-theme.d.ts.map +1 -0
- package/dist/types/tokens/color.d.ts +44 -0
- package/dist/types/tokens/color.d.ts.map +1 -0
- package/dist/types/tokens/css-units.d.ts +14 -0
- package/dist/types/tokens/css-units.d.ts.map +1 -0
- package/dist/types/tokens/heading-scale.d.ts +65 -0
- package/dist/types/tokens/heading-scale.d.ts.map +1 -0
- package/dist/types/tokens/mui-type.d.ts +42 -0
- package/dist/types/tokens/mui-type.d.ts.map +1 -0
- package/dist/types/tokens/scales.d.ts +9 -114
- package/dist/types/tokens/scales.d.ts.map +1 -1
- package/dist/types/tokens/theme.d.ts +166 -0
- package/dist/types/tokens/theme.d.ts.map +1 -0
- package/dist/types/tokens/typography.d.ts +6 -62
- package/dist/types/tokens/typography.d.ts.map +1 -1
- package/dist/types/tokens/vocabulary.d.ts +117 -0
- package/dist/types/tokens/vocabulary.d.ts.map +1 -0
- package/dist/types-native/components/data-display/Alert/Alert.base.d.ts +92 -0
- package/dist/types-native/components/data-display/Alert/Alert.base.d.ts.map +1 -0
- package/dist/types-native/components/data-display/Alert/Alert.helpers.d.ts +23 -0
- package/dist/types-native/components/data-display/Alert/Alert.helpers.d.ts.map +1 -0
- package/dist/types-native/components/data-display/Alert/Alert.look.native.d.ts +46 -0
- package/dist/types-native/components/data-display/Alert/Alert.look.native.d.ts.map +1 -0
- package/dist/types-native/components/data-display/Alert/Alert.metrics.d.ts +181 -0
- package/dist/types-native/components/data-display/Alert/Alert.metrics.d.ts.map +1 -0
- package/dist/types-native/components/data-display/Alert/Alert.native.d.ts +5 -0
- package/dist/types-native/components/data-display/Alert/Alert.native.d.ts.map +1 -0
- package/dist/types-native/components/data-display/Alert/Alert.types.native.d.ts +8 -0
- package/dist/types-native/components/data-display/Alert/Alert.types.native.d.ts.map +1 -0
- package/dist/types-native/components/data-display/Alert/index.native.d.ts +3 -0
- package/dist/types-native/components/data-display/Alert/index.native.d.ts.map +1 -0
- package/dist/types-native/components/data-display/EmptyState/EmptyState.base.d.ts +51 -0
- package/dist/types-native/components/data-display/EmptyState/EmptyState.base.d.ts.map +1 -0
- package/dist/types-native/components/data-display/EmptyState/EmptyState.helpers.d.ts +13 -0
- package/dist/types-native/components/data-display/EmptyState/EmptyState.helpers.d.ts.map +1 -0
- package/dist/types-native/components/data-display/EmptyState/EmptyState.metrics.d.ts +57 -0
- package/dist/types-native/components/data-display/EmptyState/EmptyState.metrics.d.ts.map +1 -0
- package/dist/types-native/components/data-display/EmptyState/EmptyState.native.d.ts +22 -0
- package/dist/types-native/components/data-display/EmptyState/EmptyState.native.d.ts.map +1 -0
- package/dist/types-native/components/data-display/EmptyState/EmptyState.types.native.d.ts +8 -0
- package/dist/types-native/components/data-display/EmptyState/EmptyState.types.native.d.ts.map +1 -0
- package/dist/types-native/components/data-display/EmptyState/index.native.d.ts +3 -0
- package/dist/types-native/components/data-display/EmptyState/index.native.d.ts.map +1 -0
- package/dist/types-native/components/data-display/ErrorState/ErrorState.base.d.ts +43 -0
- package/dist/types-native/components/data-display/ErrorState/ErrorState.base.d.ts.map +1 -0
- package/dist/types-native/components/data-display/ErrorState/ErrorState.metrics.d.ts +37 -0
- package/dist/types-native/components/data-display/ErrorState/ErrorState.metrics.d.ts.map +1 -0
- package/dist/types-native/components/data-display/ErrorState/ErrorState.native.d.ts +14 -0
- package/dist/types-native/components/data-display/ErrorState/ErrorState.native.d.ts.map +1 -0
- package/dist/types-native/components/data-display/ErrorState/ErrorState.types.native.d.ts +8 -0
- package/dist/types-native/components/data-display/ErrorState/ErrorState.types.native.d.ts.map +1 -0
- package/dist/types-native/components/data-display/ErrorState/index.native.d.ts +3 -0
- package/dist/types-native/components/data-display/ErrorState/index.native.d.ts.map +1 -0
- package/dist/types-native/components/data-display/LoadingState/LoadingState.base.d.ts +37 -0
- package/dist/types-native/components/data-display/LoadingState/LoadingState.base.d.ts.map +1 -0
- package/dist/types-native/components/data-display/LoadingState/LoadingState.helpers.d.ts +27 -0
- package/dist/types-native/components/data-display/LoadingState/LoadingState.helpers.d.ts.map +1 -0
- package/dist/types-native/components/data-display/LoadingState/LoadingState.metrics.d.ts +43 -0
- package/dist/types-native/components/data-display/LoadingState/LoadingState.metrics.d.ts.map +1 -0
- package/dist/types-native/components/data-display/LoadingState/LoadingState.native.d.ts +10 -0
- package/dist/types-native/components/data-display/LoadingState/LoadingState.native.d.ts.map +1 -0
- package/dist/types-native/components/data-display/LoadingState/LoadingState.types.native.d.ts +8 -0
- package/dist/types-native/components/data-display/LoadingState/LoadingState.types.native.d.ts.map +1 -0
- package/dist/types-native/components/data-display/LoadingState/index.native.d.ts +3 -0
- package/dist/types-native/components/data-display/LoadingState/index.native.d.ts.map +1 -0
- package/dist/types-native/components/form/Button/Button.base.d.ts +65 -0
- package/dist/types-native/components/form/Button/Button.base.d.ts.map +1 -0
- package/dist/types-native/components/form/Button/Button.helpers.d.ts +10 -0
- package/dist/types-native/components/form/Button/Button.helpers.d.ts.map +1 -0
- package/dist/types-native/components/form/Button/Button.metrics.d.ts +52 -0
- package/dist/types-native/components/form/Button/Button.metrics.d.ts.map +1 -0
- package/dist/types-native/components/form/Button/Button.native.d.ts +10 -0
- package/dist/types-native/components/form/Button/Button.native.d.ts.map +1 -0
- package/dist/types-native/components/form/Button/Button.types.native.d.ts +17 -0
- package/dist/types-native/components/form/Button/Button.types.native.d.ts.map +1 -0
- package/dist/types-native/components/form/Button/index.native.d.ts +3 -0
- package/dist/types-native/components/form/Button/index.native.d.ts.map +1 -0
- package/dist/types-native/components/layout/Box/Box.base.d.ts +60 -0
- package/dist/types-native/components/layout/Box/Box.base.d.ts.map +1 -0
- package/dist/types-native/components/layout/Box/Box.native.d.ts +7 -0
- package/dist/types-native/components/layout/Box/Box.native.d.ts.map +1 -0
- package/dist/types-native/components/layout/Box/Box.types.native.d.ts +9 -0
- package/dist/types-native/components/layout/Box/Box.types.native.d.ts.map +1 -0
- package/dist/types-native/components/layout/Box/box-layout.d.ts +42 -0
- package/dist/types-native/components/layout/Box/box-layout.d.ts.map +1 -0
- package/dist/types-native/components/layout/Box/index.native.d.ts +5 -0
- package/dist/types-native/components/layout/Box/index.native.d.ts.map +1 -0
- package/dist/types-native/components/layout/Container/Container.base.d.ts +31 -0
- package/dist/types-native/components/layout/Container/Container.base.d.ts.map +1 -0
- package/dist/types-native/components/layout/Container/Container.metrics.d.ts +51 -0
- package/dist/types-native/components/layout/Container/Container.metrics.d.ts.map +1 -0
- package/dist/types-native/components/layout/Container/Container.native.d.ts +30 -0
- package/dist/types-native/components/layout/Container/Container.native.d.ts.map +1 -0
- package/dist/types-native/components/layout/Container/Container.types.native.d.ts +8 -0
- package/dist/types-native/components/layout/Container/Container.types.native.d.ts.map +1 -0
- package/dist/types-native/components/layout/Container/index.native.d.ts +3 -0
- package/dist/types-native/components/layout/Container/index.native.d.ts.map +1 -0
- package/dist/types-native/components/layout/Spacer/Spacer.base.d.ts +30 -0
- package/dist/types-native/components/layout/Spacer/Spacer.base.d.ts.map +1 -0
- package/dist/types-native/components/layout/Spacer/Spacer.metrics.d.ts +36 -0
- package/dist/types-native/components/layout/Spacer/Spacer.metrics.d.ts.map +1 -0
- package/dist/types-native/components/layout/Spacer/Spacer.native.d.ts +21 -0
- package/dist/types-native/components/layout/Spacer/Spacer.native.d.ts.map +1 -0
- package/dist/types-native/components/layout/Spacer/Spacer.types.native.d.ts +8 -0
- package/dist/types-native/components/layout/Spacer/Spacer.types.native.d.ts.map +1 -0
- package/dist/types-native/components/layout/Spacer/index.native.d.ts +3 -0
- package/dist/types-native/components/layout/Spacer/index.native.d.ts.map +1 -0
- package/dist/types-native/components/layout/Stack/Stack.base.d.ts +13 -0
- package/dist/types-native/components/layout/Stack/Stack.base.d.ts.map +1 -0
- package/dist/types-native/components/layout/Stack/Stack.native.d.ts +4 -0
- package/dist/types-native/components/layout/Stack/Stack.native.d.ts.map +1 -0
- package/dist/types-native/components/layout/Stack/Stack.types.native.d.ts +5 -0
- package/dist/types-native/components/layout/Stack/Stack.types.native.d.ts.map +1 -0
- package/dist/types-native/components/layout/Stack/index.native.d.ts +3 -0
- package/dist/types-native/components/layout/Stack/index.native.d.ts.map +1 -0
- package/dist/types-native/components/layout/Stack/with-dividers.d.ts +4 -0
- package/dist/types-native/components/layout/Stack/with-dividers.d.ts.map +1 -0
- package/dist/types-native/components/typography/Heading/Heading.base.d.ts +52 -0
- package/dist/types-native/components/typography/Heading/Heading.base.d.ts.map +1 -0
- package/dist/types-native/components/typography/Heading/Heading.metrics.d.ts +52 -0
- package/dist/types-native/components/typography/Heading/Heading.metrics.d.ts.map +1 -0
- package/dist/types-native/components/typography/Heading/Heading.native.d.ts +30 -0
- package/dist/types-native/components/typography/Heading/Heading.native.d.ts.map +1 -0
- package/dist/types-native/components/typography/Heading/Heading.types.native.d.ts +14 -0
- package/dist/types-native/components/typography/Heading/Heading.types.native.d.ts.map +1 -0
- package/dist/types-native/components/typography/Heading/index.native.d.ts +3 -0
- package/dist/types-native/components/typography/Heading/index.native.d.ts.map +1 -0
- package/dist/types-native/components/typography/Paragraph/Paragraph.base.d.ts +23 -0
- package/dist/types-native/components/typography/Paragraph/Paragraph.base.d.ts.map +1 -0
- package/dist/types-native/components/typography/Paragraph/Paragraph.metrics.d.ts +30 -0
- package/dist/types-native/components/typography/Paragraph/Paragraph.metrics.d.ts.map +1 -0
- package/dist/types-native/components/typography/Paragraph/Paragraph.native.d.ts +23 -0
- package/dist/types-native/components/typography/Paragraph/Paragraph.native.d.ts.map +1 -0
- package/dist/types-native/components/typography/Paragraph/Paragraph.types.native.d.ts +14 -0
- package/dist/types-native/components/typography/Paragraph/Paragraph.types.native.d.ts.map +1 -0
- package/dist/types-native/components/typography/Paragraph/index.native.d.ts +3 -0
- package/dist/types-native/components/typography/Paragraph/index.native.d.ts.map +1 -0
- package/dist/types-native/components/typography/Text/Text.base.d.ts +23 -0
- package/dist/types-native/components/typography/Text/Text.base.d.ts.map +1 -0
- package/dist/types-native/components/typography/Text/Text.metrics.d.ts +29 -0
- package/dist/types-native/components/typography/Text/Text.metrics.d.ts.map +1 -0
- package/dist/types-native/components/typography/Text/Text.native.d.ts +25 -0
- package/dist/types-native/components/typography/Text/Text.native.d.ts.map +1 -0
- package/dist/types-native/components/typography/Text/Text.types.native.d.ts +8 -0
- package/dist/types-native/components/typography/Text/Text.types.native.d.ts.map +1 -0
- package/dist/types-native/components/typography/Text/index.native.d.ts +3 -0
- package/dist/types-native/components/typography/Text/index.native.d.ts.map +1 -0
- package/dist/types-native/icons/Icon.native.d.ts +15 -0
- package/dist/types-native/icons/Icon.native.d.ts.map +1 -0
- package/dist/types-native/icons/Icon.types.d.ts +30 -0
- package/dist/types-native/icons/Icon.types.d.ts.map +1 -0
- package/dist/types-native/icons/icon-color.d.ts +10 -0
- package/dist/types-native/icons/icon-color.d.ts.map +1 -0
- package/dist/types-native/icons/index.native.d.ts +6 -0
- package/dist/types-native/icons/index.native.d.ts.map +1 -0
- package/dist/types-native/icons/paths.generated.d.ts +43 -0
- package/dist/types-native/icons/paths.generated.d.ts.map +1 -0
- package/dist/types-native/platform/aria.d.ts +29 -0
- package/dist/types-native/platform/aria.d.ts.map +1 -0
- package/dist/types-native/platform/test-id.d.ts +21 -0
- package/dist/types-native/platform/test-id.d.ts.map +1 -0
- package/dist/types-native/platform/text-children.d.ts +6 -0
- package/dist/types-native/platform/text-children.d.ts.map +1 -0
- package/dist/types-native/provider/UiProvider.native.d.ts +8 -0
- package/dist/types-native/provider/UiProvider.native.d.ts.map +1 -0
- package/dist/types-native/provider/UiProvider.types.d.ts +17 -0
- package/dist/types-native/provider/UiProvider.types.d.ts.map +1 -0
- package/dist/types-native/provider/index.native.d.ts +4 -0
- package/dist/types-native/provider/index.native.d.ts.map +1 -0
- package/dist/types-native/provider/ui-theme-context.d.ts +12 -0
- package/dist/types-native/provider/ui-theme-context.d.ts.map +1 -0
- package/dist/types-native/provider/use-ui-theme.native.d.ts +4 -0
- package/dist/types-native/provider/use-ui-theme.native.d.ts.map +1 -0
- package/dist/types-native/tokens/color.d.ts +44 -0
- package/dist/types-native/tokens/color.d.ts.map +1 -0
- package/dist/types-native/tokens/css-units.d.ts +14 -0
- package/dist/types-native/tokens/css-units.d.ts.map +1 -0
- package/dist/types-native/tokens/heading-scale.d.ts +65 -0
- package/dist/types-native/tokens/heading-scale.d.ts.map +1 -0
- package/dist/types-native/tokens/index.native.d.ts +10 -0
- package/dist/types-native/tokens/index.native.d.ts.map +1 -0
- package/dist/types-native/tokens/mui-type.d.ts +42 -0
- package/dist/types-native/tokens/mui-type.d.ts.map +1 -0
- package/dist/types-native/tokens/theme.d.ts +166 -0
- package/dist/types-native/tokens/theme.d.ts.map +1 -0
- package/dist/types-native/tokens/vocabulary.d.ts +117 -0
- package/dist/types-native/tokens/vocabulary.d.ts.map +1 -0
- package/dist/typography/Heading.js +9 -3
- package/dist/typography/Paragraph.js +7 -1
- package/dist/typography/Text.js +7 -1
- package/dist/user-avatar.js +12 -5
- package/dist/utility/InstallPrompt.js +2 -2
- package/package.json +111 -7
- package/src/components/data-display/Alert/Alert.base.ts +105 -0
- package/src/components/data-display/Alert/Alert.helpers.ts +54 -0
- package/src/components/data-display/Alert/Alert.look.native.ts +131 -0
- package/src/components/data-display/Alert/Alert.metrics.ts +166 -0
- package/src/components/data-display/Alert/Alert.native.tsx +239 -0
- package/src/components/data-display/Alert/Alert.styles.tsx +162 -134
- package/src/components/data-display/Alert/Alert.tsx +136 -121
- package/src/components/data-display/Alert/Alert.types.native.ts +12 -0
- package/src/components/data-display/Alert/Alert.types.ts +7 -85
- package/src/components/data-display/Alert/NATIVE-NOTES.md +10 -0
- package/src/components/data-display/Alert/index.native.ts +2 -0
- package/src/components/data-display/Alert/index.ts +1 -1
- package/src/components/data-display/EmptyState/EmptyState.base.ts +54 -0
- package/src/components/data-display/EmptyState/EmptyState.helpers.ts +66 -0
- package/src/components/data-display/EmptyState/EmptyState.metrics.ts +54 -0
- package/src/components/data-display/EmptyState/EmptyState.native.tsx +277 -0
- package/src/components/data-display/EmptyState/EmptyState.tsx +42 -79
- package/src/components/data-display/EmptyState/EmptyState.types.native.ts +16 -0
- package/src/components/data-display/EmptyState/EmptyState.types.ts +11 -30
- package/src/components/data-display/EmptyState/NATIVE-NOTES.md +7 -0
- package/src/components/data-display/EmptyState/index.native.ts +8 -0
- package/src/components/data-display/EmptyState/index.ts +7 -1
- package/src/components/data-display/ErrorState/ErrorState.base.ts +51 -0
- package/src/components/data-display/ErrorState/ErrorState.metrics.ts +44 -0
- package/src/components/data-display/ErrorState/ErrorState.native.tsx +193 -0
- package/src/components/data-display/ErrorState/ErrorState.tsx +68 -53
- package/src/components/data-display/ErrorState/ErrorState.types.native.ts +11 -0
- package/src/components/data-display/ErrorState/ErrorState.types.ts +3 -38
- package/src/components/data-display/ErrorState/NATIVE-NOTES.md +6 -0
- package/src/components/data-display/ErrorState/index.native.ts +2 -0
- package/src/components/data-display/ErrorState/index.ts +1 -1
- package/src/components/data-display/LoadingState/LoadingState.base.ts +43 -0
- package/src/components/data-display/LoadingState/LoadingState.helpers.ts +27 -28
- package/src/components/data-display/LoadingState/LoadingState.metrics.ts +67 -0
- package/src/components/data-display/LoadingState/LoadingState.native.tsx +175 -0
- package/src/components/data-display/LoadingState/LoadingState.tsx +25 -11
- package/src/components/data-display/LoadingState/LoadingState.types.native.ts +11 -0
- package/src/components/data-display/LoadingState/LoadingState.types.ts +3 -31
- package/src/components/data-display/LoadingState/NATIVE-NOTES.md +7 -0
- package/src/components/data-display/LoadingState/index.native.ts +7 -0
- package/src/components/data-display/LoadingState/index.ts +6 -1
- package/src/components/form/Button/Button.base.ts +80 -0
- package/src/components/form/Button/Button.helpers.ts +12 -7
- package/src/components/form/Button/Button.metrics.ts +101 -0
- package/src/components/form/Button/Button.native.tsx +323 -0
- package/src/components/form/Button/Button.styles.ts +16 -16
- package/src/components/form/Button/Button.tsx +8 -5
- package/src/components/form/Button/Button.types.native.ts +27 -0
- package/src/components/form/Button/Button.types.ts +8 -58
- package/src/components/form/Button/index.native.ts +2 -0
- package/src/components/form/Button/index.ts +1 -1
- package/src/components/layout/Box/Box.base.ts +69 -0
- package/src/components/layout/Box/Box.md +46 -0
- package/src/components/layout/Box/Box.native.tsx +22 -0
- package/src/components/layout/Box/Box.tsx +56 -0
- package/src/components/layout/Box/Box.types.native.ts +21 -0
- package/src/components/layout/Box/Box.types.ts +22 -0
- package/src/components/layout/Box/box-layout.ts +144 -0
- package/src/components/layout/Box/index.native.ts +14 -0
- package/src/components/layout/Box/index.ts +14 -0
- package/src/components/layout/Container/Container.base.ts +32 -0
- package/src/components/layout/Container/Container.md +14 -0
- package/src/components/layout/Container/Container.metrics.ts +87 -0
- package/src/components/layout/Container/Container.native.tsx +71 -0
- package/src/components/layout/Container/Container.tsx +21 -30
- package/src/components/layout/Container/Container.types.native.ts +11 -0
- package/src/components/layout/Container/Container.types.ts +8 -9
- package/src/components/layout/Container/NATIVE-NOTES.md +5 -0
- package/src/components/layout/Container/index.native.ts +8 -0
- package/src/components/layout/Container/index.ts +7 -1
- package/src/components/layout/Spacer/Spacer.base.ts +32 -0
- package/src/components/layout/Spacer/Spacer.md +13 -1
- package/src/components/layout/Spacer/Spacer.metrics.ts +55 -0
- package/src/components/layout/Spacer/Spacer.native.tsx +68 -0
- package/src/components/layout/Spacer/Spacer.tsx +11 -41
- package/src/components/layout/Spacer/Spacer.types.native.ts +11 -0
- package/src/components/layout/Spacer/Spacer.types.ts +5 -9
- package/src/components/layout/Spacer/index.native.ts +2 -0
- package/src/components/layout/Spacer/index.ts +1 -1
- package/src/components/layout/Stack/Stack.base.ts +14 -0
- package/src/components/layout/Stack/Stack.md +19 -0
- package/src/components/layout/Stack/Stack.native.tsx +16 -0
- package/src/components/layout/Stack/Stack.tsx +15 -0
- package/src/components/layout/Stack/Stack.types.native.ts +6 -0
- package/src/components/layout/Stack/Stack.types.ts +6 -0
- package/src/components/layout/Stack/index.native.ts +2 -0
- package/src/components/layout/Stack/index.ts +2 -0
- package/src/components/layout/Stack/with-dividers.ts +15 -0
- package/src/components/typography/Heading/Heading.base.ts +55 -0
- package/src/components/typography/Heading/Heading.md +13 -0
- package/src/components/typography/Heading/Heading.metrics.ts +84 -0
- package/src/components/typography/Heading/Heading.native.tsx +105 -0
- package/src/components/typography/Heading/Heading.styles.ts +19 -21
- package/src/components/typography/Heading/Heading.tsx +26 -23
- package/src/components/typography/Heading/Heading.types.native.ts +17 -0
- package/src/components/typography/Heading/Heading.types.ts +11 -39
- package/src/components/typography/Heading/NATIVE-NOTES.md +3 -0
- package/src/components/typography/Heading/index.native.ts +2 -0
- package/src/components/typography/Heading/index.ts +1 -1
- package/src/components/typography/Paragraph/Paragraph.base.ts +25 -0
- package/src/components/typography/Paragraph/Paragraph.md +11 -0
- package/src/components/typography/Paragraph/Paragraph.metrics.ts +41 -0
- package/src/components/typography/Paragraph/Paragraph.native.tsx +100 -0
- package/src/components/typography/Paragraph/Paragraph.tsx +53 -30
- package/src/components/typography/Paragraph/Paragraph.types.native.ts +17 -0
- package/src/components/typography/Paragraph/Paragraph.types.ts +7 -8
- package/src/components/typography/Paragraph/index.native.ts +2 -0
- package/src/components/typography/Paragraph/index.ts +1 -1
- package/src/components/typography/Text/Text.base.ts +25 -0
- package/src/components/typography/Text/Text.metrics.ts +30 -0
- package/src/components/typography/Text/Text.native.tsx +149 -0
- package/src/components/typography/Text/Text.tsx +45 -27
- package/src/components/typography/Text/Text.types.native.ts +11 -0
- package/src/components/typography/Text/Text.types.ts +7 -12
- package/src/components/typography/Text/index.native.ts +2 -0
- package/src/components/typography/Text/index.ts +1 -1
- package/src/icons/Icon.md +28 -0
- package/src/icons/Icon.native.tsx +44 -0
- package/src/icons/Icon.tsx +47 -0
- package/src/icons/Icon.types.ts +40 -0
- package/src/icons/glyphs.json +39 -0
- package/src/icons/icon-color.ts +20 -0
- package/src/icons/index.native.ts +5 -0
- package/src/icons/index.ts +5 -0
- package/src/icons/paths.generated.ts +51 -0
- package/src/platform/aria.ts +32 -0
- package/src/platform/test-id.ts +34 -0
- package/src/platform/text-children.tsx +68 -0
- package/src/provider/UiProvider.native.tsx +13 -0
- package/src/provider/UiProvider.tsx +22 -0
- package/src/provider/UiProvider.types.ts +20 -0
- package/src/provider/index.native.ts +3 -0
- package/src/provider/index.ts +4 -0
- package/src/provider/mui-bridge.ts +141 -0
- package/src/provider/ui-theme-context.ts +13 -0
- package/src/provider/use-ui-theme.native.ts +9 -0
- package/src/provider/use-ui-theme.ts +18 -0
- package/src/tokens/color.ts +163 -0
- package/src/tokens/css-units.ts +28 -0
- package/src/tokens/heading-scale.ts +87 -0
- package/src/tokens/index.native.ts +9 -0
- package/src/tokens/mui-type.ts +64 -0
- package/src/tokens/scales.ts +11 -186
- package/src/tokens/theme.ts +334 -0
- package/src/tokens/typography.ts +6 -83
- package/src/tokens/vocabulary.ts +189 -0
- package/dist/chunk-5ERH4OIK.js.map +0 -1
- package/dist/chunk-7CA6GVBO.js.map +0 -1
- package/dist/chunk-7M5BACFQ.js.map +0 -1
- package/dist/chunk-A2GGT4OC.js.map +0 -1
- package/dist/chunk-AUYC5K5K.js.map +0 -1
- package/dist/chunk-C6AZDXEE.js +0 -207
- package/dist/chunk-C6AZDXEE.js.map +0 -1
- package/dist/chunk-DTO7GKLA.js +0 -65
- package/dist/chunk-DTO7GKLA.js.map +0 -1
- package/dist/chunk-E67PUPFJ.js.map +0 -1
- package/dist/chunk-HQJ75HHI.js.map +0 -1
- package/dist/chunk-I6PZVHIT.js +0 -46
- package/dist/chunk-I6PZVHIT.js.map +0 -1
- package/dist/chunk-IAQFQNBL.js.map +0 -1
- package/dist/chunk-KVN3K4J3.js.map +0 -1
- package/dist/chunk-NBNLGTRB.js.map +0 -1
- package/dist/chunk-NYUGX76C.js.map +0 -1
- package/dist/chunk-O6J4CKS5.js.map +0 -1
- package/dist/chunk-QCIWROKG.js.map +0 -1
- package/dist/chunk-VRHBJXZ7.js.map +0 -1
- /package/dist/{chunk-77GA5YHQ.js.map → chunk-43NEBUV3.js.map} +0 -0
- /package/dist/{chunk-FJHNNSD3.js.map → chunk-4FRZDSRD.js.map} +0 -0
- /package/dist/{chunk-2PPWKCMW.js.map → chunk-4N4ENTF7.js.map} +0 -0
- /package/dist/{chunk-GFBNUWT5.js.map → chunk-4SXZSSVV.js.map} +0 -0
- /package/dist/{chunk-6U7NA74A.js.map → chunk-5HOJSVQH.js.map} +0 -0
- /package/dist/{chunk-AX7UFG2U.js.map → chunk-6DXYCXH4.js.map} +0 -0
- /package/dist/{chunk-X4X4CVWJ.js.map → chunk-6JZE4IIN.js.map} +0 -0
- /package/dist/{chunk-HEDOL2RV.js.map → chunk-72UYVJBQ.js.map} +0 -0
- /package/dist/{chunk-ZDWU52DJ.js.map → chunk-7AR2R7TV.js.map} +0 -0
- /package/dist/{chunk-B6IURHSZ.js.map → chunk-7DNQHMDO.js.map} +0 -0
- /package/dist/{chunk-GT7C6TSM.js.map → chunk-7WL24VNI.js.map} +0 -0
- /package/dist/{chunk-ELYLG4F7.js.map → chunk-AP4FLCLA.js.map} +0 -0
- /package/dist/{chunk-IE7ISTLQ.js.map → chunk-B443IIQG.js.map} +0 -0
- /package/dist/{chunk-WR6F6J43.js.map → chunk-BUDXR3EV.js.map} +0 -0
- /package/dist/{chunk-MUAVYVDJ.js.map → chunk-BVZVH3ZN.js.map} +0 -0
- /package/dist/{chunk-CBPQJAHX.js.map → chunk-C6XESZ3R.js.map} +0 -0
- /package/dist/{chunk-RP3W6IQO.js.map → chunk-CPNSVIIB.js.map} +0 -0
- /package/dist/{chunk-45OIUWGO.js.map → chunk-CRNQVWIT.js.map} +0 -0
- /package/dist/{chunk-T4SM36XC.js.map → chunk-D7FJ2GAD.js.map} +0 -0
- /package/dist/{chunk-G7CFUI4I.js.map → chunk-DLFOEXUP.js.map} +0 -0
- /package/dist/{chunk-SCGVB7DS.js.map → chunk-DOADQW7I.js.map} +0 -0
- /package/dist/{chunk-RIAIJTEW.js.map → chunk-DOMEYGTN.js.map} +0 -0
- /package/dist/{chunk-7HPPUO2A.js.map → chunk-DQHC5P64.js.map} +0 -0
- /package/dist/{chunk-6YLAVHV4.js.map → chunk-DTKMBI7B.js.map} +0 -0
- /package/dist/{chunk-24LW52EU.js.map → chunk-DX527XPL.js.map} +0 -0
- /package/dist/{chunk-BBC4KT5G.js.map → chunk-DZN3JF5E.js.map} +0 -0
- /package/dist/{chunk-3LO5JWTC.js.map → chunk-E5ZHW4I5.js.map} +0 -0
- /package/dist/{chunk-CXA6UNFF.js.map → chunk-EMNGIYH6.js.map} +0 -0
- /package/dist/{chunk-A4YWFX5C.js.map → chunk-ENNW5SKT.js.map} +0 -0
- /package/dist/{chunk-EGRFMPGD.js.map → chunk-EXJBPKGW.js.map} +0 -0
- /package/dist/{chunk-DWUMMMLR.js.map → chunk-FOMK3WPG.js.map} +0 -0
- /package/dist/{chunk-6CBYPMYQ.js.map → chunk-GBFGZJB5.js.map} +0 -0
- /package/dist/{chunk-XSKVBGCZ.js.map → chunk-HKV4MQ2W.js.map} +0 -0
- /package/dist/{chunk-DQIQKIEA.js.map → chunk-HKZHEK3Z.js.map} +0 -0
- /package/dist/{chunk-VR5HDUBK.js.map → chunk-HP2ODXNA.js.map} +0 -0
- /package/dist/{chunk-4Y65Q3CR.js.map → chunk-ISSJNFJV.js.map} +0 -0
- /package/dist/{chunk-X24P3ZYW.js.map → chunk-J4W4TQPC.js.map} +0 -0
- /package/dist/{chunk-5ZOJLYD2.js.map → chunk-JE6RZ5L6.js.map} +0 -0
- /package/dist/{chunk-6RFL7HGI.js.map → chunk-KADJNWTQ.js.map} +0 -0
- /package/dist/{chunk-EB4BTKKY.js.map → chunk-KKYW3LU7.js.map} +0 -0
- /package/dist/{chunk-RQ4EQ5FJ.js.map → chunk-L65LF6LN.js.map} +0 -0
- /package/dist/{chunk-FH4VARZ7.js.map → chunk-L6KEVPXN.js.map} +0 -0
- /package/dist/{chunk-SRMWCN5D.js.map → chunk-LDE4ELB5.js.map} +0 -0
- /package/dist/{chunk-FF55LRSV.js.map → chunk-LIOVN5IM.js.map} +0 -0
- /package/dist/{chunk-KXNWDXR7.js.map → chunk-M2K7BPHX.js.map} +0 -0
- /package/dist/{chunk-VVXRIPV5.js.map → chunk-MCRIT46W.js.map} +0 -0
- /package/dist/{chunk-WLDK74RR.js.map → chunk-MSUSZLRE.js.map} +0 -0
- /package/dist/{chunk-MD6T7MDT.js.map → chunk-NECUCG2S.js.map} +0 -0
- /package/dist/{chunk-A3KY6NUA.js.map → chunk-NFHS77NE.js.map} +0 -0
- /package/dist/{chunk-REMK55JI.js.map → chunk-OLZTGVBT.js.map} +0 -0
- /package/dist/{chunk-WME2F2YY.js.map → chunk-OR7UH2ZQ.js.map} +0 -0
- /package/dist/{chunk-PKJKA4CU.js.map → chunk-OZWQNFG6.js.map} +0 -0
- /package/dist/{chunk-23FCBIUN.js.map → chunk-P7FQUGED.js.map} +0 -0
- /package/dist/{chunk-6TYSEAAT.js.map → chunk-PC3ZFERM.js.map} +0 -0
- /package/dist/{chunk-T53L42XW.js.map → chunk-PMS3H3OO.js.map} +0 -0
- /package/dist/{chunk-TCAB2ERD.js.map → chunk-PNYXXLPU.js.map} +0 -0
- /package/dist/{chunk-EY4LPLIR.js.map → chunk-QJJUTBKZ.js.map} +0 -0
- /package/dist/{chunk-VJKRJYZL.js.map → chunk-QZPNQWS2.js.map} +0 -0
- /package/dist/{chunk-5QXSPLWU.js.map → chunk-R6SSXEK2.js.map} +0 -0
- /package/dist/{chunk-W2UTDN4T.js.map → chunk-RBGOGTT2.js.map} +0 -0
- /package/dist/{chunk-NR3J7VQL.js.map → chunk-RNCQ5KHQ.js.map} +0 -0
- /package/dist/{chunk-7FOOLP5H.js.map → chunk-RXSGHPCR.js.map} +0 -0
- /package/dist/{chunk-Z56IO7OV.js.map → chunk-RXVPUW7V.js.map} +0 -0
- /package/dist/{chunk-JPDKRGYI.js.map → chunk-S7HRED4D.js.map} +0 -0
- /package/dist/{chunk-5VVM2PPV.js.map → chunk-SG6VULKS.js.map} +0 -0
- /package/dist/{chunk-SLYZMJEL.js.map → chunk-SOHDPFOB.js.map} +0 -0
- /package/dist/{chunk-FWL2N2KH.js.map → chunk-SX3V2DLV.js.map} +0 -0
- /package/dist/{chunk-3GOX75ZM.js.map → chunk-TF4TPLF2.js.map} +0 -0
- /package/dist/{chunk-3DQP6OPC.js.map → chunk-THBT56JE.js.map} +0 -0
- /package/dist/{chunk-RRX6ZTNX.js.map → chunk-UEJQQVP2.js.map} +0 -0
- /package/dist/{chunk-K2T2CQSZ.js.map → chunk-UF27D35R.js.map} +0 -0
- /package/dist/{chunk-N34YHFZW.js.map → chunk-W2YNUUVJ.js.map} +0 -0
- /package/dist/{chunk-XULTDO56.js.map → chunk-WZUNBSS7.js.map} +0 -0
- /package/dist/{chunk-3JYYPJFD.js.map → chunk-X2J6MRJW.js.map} +0 -0
- /package/dist/{chunk-HEG7JIBM.js.map → chunk-X5MPHXG5.js.map} +0 -0
- /package/dist/{chunk-3QGRQNTP.js.map → chunk-XELVDPKL.js.map} +0 -0
- /package/dist/{chunk-EPNUVSNK.js.map → chunk-XFUNJYFT.js.map} +0 -0
- /package/dist/{chunk-AVU6KU27.js.map → chunk-XXDXW6TX.js.map} +0 -0
- /package/dist/{chunk-WMALDOF5.js.map → chunk-XXJRT6BP.js.map} +0 -0
- /package/dist/{chunk-6HNEEJES.js.map → chunk-Y6KPZQPI.js.map} +0 -0
- /package/dist/{chunk-COSJTD6Z.js.map → chunk-YLDS5FOQ.js.map} +0 -0
- /package/dist/{chunk-PMFW55F5.js.map → chunk-ZIOCRSHU.js.map} +0 -0
- /package/dist/{chunk-WC3W36AM.js.map → chunk-ZOUWHGV3.js.map} +0 -0
- /package/dist/{chunk-2ZDTGI5V.js.map → chunk-ZRFRU545.js.map} +0 -0
- /package/dist/{chunk-DJORMYOV.js.map → chunk-ZU3SWR4I.js.map} +0 -0
|
@@ -0,0 +1,277 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import {
|
|
3
|
+
Linking,
|
|
4
|
+
Platform,
|
|
5
|
+
StyleSheet,
|
|
6
|
+
Text as RNText,
|
|
7
|
+
useWindowDimensions,
|
|
8
|
+
View,
|
|
9
|
+
type TextStyle,
|
|
10
|
+
type ViewStyle,
|
|
11
|
+
} from 'react-native';
|
|
12
|
+
|
|
13
|
+
import { type ActionSpec, actionsOf, makeTestId } from './EmptyState.helpers';
|
|
14
|
+
import {
|
|
15
|
+
ACTION_BUTTON,
|
|
16
|
+
ACTION_MIN_WIDTH,
|
|
17
|
+
ACTIONS_GAP_UNITS,
|
|
18
|
+
ACTIONS_MARGIN_TOP_UNITS,
|
|
19
|
+
ACTIONS_ROW_FROM,
|
|
20
|
+
CONTENT_GAP_UNITS,
|
|
21
|
+
DESCRIPTION_LINE_HEIGHT,
|
|
22
|
+
DESCRIPTION_MAX_WIDTH,
|
|
23
|
+
EMPTY_STATE_GAP_UNITS,
|
|
24
|
+
EMPTY_STATE_MIN_HEIGHT,
|
|
25
|
+
EMPTY_STATE_PADDING_UNITS,
|
|
26
|
+
EXTERNAL_LINK_MARK,
|
|
27
|
+
HELP_LINK_MARGIN_TOP_UNITS,
|
|
28
|
+
illustrationMaxWidth,
|
|
29
|
+
illustrationOpacity,
|
|
30
|
+
MUI_CONTAINED_SHADOW,
|
|
31
|
+
TITLE_MAX_WIDTH,
|
|
32
|
+
} from './EmptyState.metrics';
|
|
33
|
+
import type { EmptyStateHelpLink, EmptyStateProps, EmptyStateVariant } from './EmptyState.types.native';
|
|
34
|
+
import { Icon } from '../../../icons/Icon.native';
|
|
35
|
+
import { webAria } from '../../../platform/aria';
|
|
36
|
+
import { resolveTestId, withoutTestIdProps } from '../../../platform/test-id';
|
|
37
|
+
import { useUiTheme } from '../../../provider/use-ui-theme.native';
|
|
38
|
+
import { alpha } from '../../../tokens/color';
|
|
39
|
+
import { MUI_FONT_WEIGHT_MEDIUM, MUI_TYPE, muiTypeStyle } from '../../../tokens/mui-type';
|
|
40
|
+
import type { UiTheme } from '../../../tokens/theme';
|
|
41
|
+
import { Button } from '../../form/Button/Button.native';
|
|
42
|
+
|
|
43
|
+
/** MUI's `h6` as an `h3`, medium weight, in the body ink, wrapping at 400px. */
|
|
44
|
+
export function titleStyle(theme: UiTheme): TextStyle {
|
|
45
|
+
return {
|
|
46
|
+
...muiTypeStyle(theme, 'h6'),
|
|
47
|
+
fontWeight: `${MUI_FONT_WEIGHT_MEDIUM}`,
|
|
48
|
+
color: theme.palette.text.primary,
|
|
49
|
+
maxWidth: TITLE_MAX_WIDTH,
|
|
50
|
+
textAlign: 'center',
|
|
51
|
+
};
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
/** MUI's `body2` on a 1.6 line height, muted, wrapping at 480px. */
|
|
55
|
+
export function descriptionStyle(theme: UiTheme): TextStyle {
|
|
56
|
+
return {
|
|
57
|
+
...muiTypeStyle(theme, 'body2'),
|
|
58
|
+
lineHeight: MUI_TYPE.body2.fontSize * DESCRIPTION_LINE_HEIGHT,
|
|
59
|
+
color: theme.palette.text.secondary,
|
|
60
|
+
maxWidth: DESCRIPTION_MAX_WIDTH,
|
|
61
|
+
textAlign: 'center',
|
|
62
|
+
};
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
/** The web `Link` inherits the page's `body1`; primary ink, no underline until hovered. */
|
|
66
|
+
export function helpLinkStyle(theme: UiTheme): TextStyle {
|
|
67
|
+
return {
|
|
68
|
+
...muiTypeStyle(theme, 'body1'),
|
|
69
|
+
color: theme.palette.primary.main,
|
|
70
|
+
textDecorationLine: 'none',
|
|
71
|
+
marginTop: theme.spacing(HELP_LINK_MARGIN_TOP_UNITS),
|
|
72
|
+
textAlign: 'center',
|
|
73
|
+
};
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
export function illustrationStyle(variant: EmptyStateVariant): ViewStyle {
|
|
77
|
+
return {
|
|
78
|
+
maxWidth: illustrationMaxWidth(variant),
|
|
79
|
+
width: '100%',
|
|
80
|
+
opacity: illustrationOpacity(variant),
|
|
81
|
+
display: variant === 'minimal' ? 'none' : 'flex',
|
|
82
|
+
};
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
/**
|
|
86
|
+
* The web actions are MUI's medium contained/outlined buttons; the house
|
|
87
|
+
* `Button` is sized to them here. The shadow needs the button's overflow
|
|
88
|
+
* visible — a view clips its own shadow otherwise.
|
|
89
|
+
*/
|
|
90
|
+
export function actionStyle(theme: UiTheme, variant: ActionSpec['variant']): ViewStyle {
|
|
91
|
+
const padding = ACTION_BUTTON[variant];
|
|
92
|
+
return {
|
|
93
|
+
minWidth: ACTION_MIN_WIDTH,
|
|
94
|
+
borderRadius: theme.radius.md,
|
|
95
|
+
paddingVertical: padding.paddingVertical,
|
|
96
|
+
paddingHorizontal: padding.paddingHorizontal,
|
|
97
|
+
...(variant === 'contained'
|
|
98
|
+
? { boxShadow: MUI_CONTAINED_SHADOW, overflow: 'visible' }
|
|
99
|
+
: { borderColor: alpha(theme.palette.primary.main, ACTION_BUTTON.outlinedBorderAlpha) }),
|
|
100
|
+
};
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
/** MUI's `sm` breakpoint decides the action row's axis: a row from 600px up, a column below. */
|
|
104
|
+
export const actionsDirection = (windowWidth: number): 'row' | 'column' =>
|
|
105
|
+
windowWidth >= ACTIONS_ROW_FROM ? 'row' : 'column';
|
|
106
|
+
|
|
107
|
+
/** react-native-web's anchor props for a `Text`, which React Native's `TextProps` do not declare. */
|
|
108
|
+
function anchorProps(href: string, external: boolean): object {
|
|
109
|
+
if (Platform.OS !== 'web') return {};
|
|
110
|
+
return { href, hrefAttrs: external ? { target: '_blank', rel: 'noopener noreferrer' } : undefined };
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
function ActionButton({ spec, testID }: { spec: ActionSpec; testID: string }): React.JSX.Element {
|
|
114
|
+
const theme = useUiTheme();
|
|
115
|
+
const contained = spec.variant === 'contained';
|
|
116
|
+
const glyph = spec.icon ? (
|
|
117
|
+
<Icon
|
|
118
|
+
name={spec.icon}
|
|
119
|
+
size={ACTION_BUTTON.iconSize}
|
|
120
|
+
color={contained ? theme.palette.primary.contrastText : 'primary'}
|
|
121
|
+
/>
|
|
122
|
+
) : undefined;
|
|
123
|
+
return (
|
|
124
|
+
<Button
|
|
125
|
+
variant={contained ? 'solid' : 'outline'}
|
|
126
|
+
color="primary"
|
|
127
|
+
size="sm"
|
|
128
|
+
icon={glyph}
|
|
129
|
+
onClick={spec.onClick}
|
|
130
|
+
testID={testID}
|
|
131
|
+
style={actionStyle(theme, spec.variant)}
|
|
132
|
+
>
|
|
133
|
+
{spec.label}
|
|
134
|
+
</Button>
|
|
135
|
+
);
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
function Actions({ specs, testId }: { specs: ActionSpec[]; testId: (suffix: string) => string }): React.JSX.Element {
|
|
139
|
+
const theme = useUiTheme();
|
|
140
|
+
const { width } = useWindowDimensions();
|
|
141
|
+
return (
|
|
142
|
+
<View
|
|
143
|
+
style={[
|
|
144
|
+
styles.actions,
|
|
145
|
+
{
|
|
146
|
+
flexDirection: actionsDirection(width),
|
|
147
|
+
gap: theme.spacing(ACTIONS_GAP_UNITS),
|
|
148
|
+
marginTop: theme.spacing(ACTIONS_MARGIN_TOP_UNITS),
|
|
149
|
+
},
|
|
150
|
+
]}
|
|
151
|
+
>
|
|
152
|
+
{specs.map((spec) => (
|
|
153
|
+
<ActionButton key={spec.key} spec={spec} testID={testId(spec.key)} />
|
|
154
|
+
))}
|
|
155
|
+
</View>
|
|
156
|
+
);
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
function HelpLink({ helpLink, testId }: { helpLink: EmptyStateHelpLink; testId: string }): React.JSX.Element {
|
|
160
|
+
const theme = useUiTheme();
|
|
161
|
+
const external = helpLink.external === true;
|
|
162
|
+
// On the web the anchor navigates by itself; a device has no anchor and opens the URL.
|
|
163
|
+
const open = Platform.OS === 'web' ? undefined : () => void Linking.openURL(helpLink.href);
|
|
164
|
+
return (
|
|
165
|
+
<RNText role="link" testID={testId} style={helpLinkStyle(theme)} onPress={open} {...anchorProps(helpLink.href, external)}>
|
|
166
|
+
{helpLink.label}
|
|
167
|
+
{external ? EXTERNAL_LINK_MARK : null}
|
|
168
|
+
</RNText>
|
|
169
|
+
);
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
interface ContentProps {
|
|
173
|
+
title: string;
|
|
174
|
+
description?: string;
|
|
175
|
+
titleId: string;
|
|
176
|
+
testId: (suffix: string) => string;
|
|
177
|
+
actions: ActionSpec[];
|
|
178
|
+
showActions: boolean;
|
|
179
|
+
helpLink?: EmptyStateHelpLink;
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
function Content({ title, description, titleId, testId, actions, showActions, helpLink }: ContentProps): React.JSX.Element {
|
|
183
|
+
const theme = useUiTheme();
|
|
184
|
+
return (
|
|
185
|
+
<View style={[styles.content, { gap: theme.spacing(CONTENT_GAP_UNITS) }]}>
|
|
186
|
+
<RNText id={titleId} role="heading" {...webAria({ 'aria-level': 3 })} testID={testId('title')} style={titleStyle(theme)}>
|
|
187
|
+
{title}
|
|
188
|
+
</RNText>
|
|
189
|
+
|
|
190
|
+
{description ? (
|
|
191
|
+
<RNText testID={testId('description')} style={descriptionStyle(theme)}>
|
|
192
|
+
{description}
|
|
193
|
+
</RNText>
|
|
194
|
+
) : null}
|
|
195
|
+
|
|
196
|
+
{showActions ? <Actions specs={actions} testId={testId} /> : null}
|
|
197
|
+
|
|
198
|
+
{helpLink ? <HelpLink helpLink={helpLink} testId={testId('help-link')} /> : null}
|
|
199
|
+
</View>
|
|
200
|
+
);
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
export const EmptyState: React.FC<EmptyStateProps> = React.memo(function EmptyState(props) {
|
|
204
|
+
const {
|
|
205
|
+
variant = 'default',
|
|
206
|
+
title,
|
|
207
|
+
description,
|
|
208
|
+
illustration,
|
|
209
|
+
helpLink,
|
|
210
|
+
refreshLabel = 'Refresh',
|
|
211
|
+
createLabel = 'Create New',
|
|
212
|
+
primaryAction: _primary,
|
|
213
|
+
secondaryAction: _secondary,
|
|
214
|
+
onCreate: _onCreate,
|
|
215
|
+
onRefresh: _onRefresh,
|
|
216
|
+
style,
|
|
217
|
+
...others
|
|
218
|
+
} = props;
|
|
219
|
+
const theme = useUiTheme();
|
|
220
|
+
const titleId = React.useId();
|
|
221
|
+
const dataTestId = resolveTestId(others);
|
|
222
|
+
const testId = makeTestId(dataTestId);
|
|
223
|
+
const rest = withoutTestIdProps(others);
|
|
224
|
+
|
|
225
|
+
const actions = actionsOf(props, refreshLabel, createLabel);
|
|
226
|
+
// The `action` variant reserves the action row even when nothing fills it.
|
|
227
|
+
const showActions = variant === 'action' || actions.length > 0;
|
|
228
|
+
|
|
229
|
+
return (
|
|
230
|
+
<View
|
|
231
|
+
role="region"
|
|
232
|
+
aria-labelledby={titleId}
|
|
233
|
+
testID={dataTestId || 'empty-state'}
|
|
234
|
+
style={[
|
|
235
|
+
styles.root,
|
|
236
|
+
{
|
|
237
|
+
padding: theme.spacing(EMPTY_STATE_PADDING_UNITS),
|
|
238
|
+
minHeight: EMPTY_STATE_MIN_HEIGHT,
|
|
239
|
+
gap: theme.spacing(EMPTY_STATE_GAP_UNITS),
|
|
240
|
+
},
|
|
241
|
+
style,
|
|
242
|
+
]}
|
|
243
|
+
{...rest}
|
|
244
|
+
>
|
|
245
|
+
{illustration ? (
|
|
246
|
+
<View testID={testId('icon')} style={illustrationStyle(variant)}>
|
|
247
|
+
{illustration}
|
|
248
|
+
</View>
|
|
249
|
+
) : null}
|
|
250
|
+
|
|
251
|
+
<Content
|
|
252
|
+
title={title}
|
|
253
|
+
description={description}
|
|
254
|
+
titleId={titleId}
|
|
255
|
+
testId={testId}
|
|
256
|
+
actions={actions}
|
|
257
|
+
showActions={showActions}
|
|
258
|
+
helpLink={helpLink}
|
|
259
|
+
/>
|
|
260
|
+
</View>
|
|
261
|
+
);
|
|
262
|
+
});
|
|
263
|
+
|
|
264
|
+
EmptyState.displayName = 'EmptyState';
|
|
265
|
+
|
|
266
|
+
const styles = StyleSheet.create({
|
|
267
|
+
root: {
|
|
268
|
+
alignItems: 'center',
|
|
269
|
+
justifyContent: 'center',
|
|
270
|
+
},
|
|
271
|
+
content: {
|
|
272
|
+
alignItems: 'center',
|
|
273
|
+
},
|
|
274
|
+
actions: {
|
|
275
|
+
alignItems: 'center',
|
|
276
|
+
},
|
|
277
|
+
});
|
|
@@ -8,69 +8,30 @@ import Typography from '@mui/material/Typography/index.js';
|
|
|
8
8
|
import { useTheme } from '@mui/material/styles/index.js';
|
|
9
9
|
import React from 'react';
|
|
10
10
|
|
|
11
|
-
import type
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
const { primaryAction, secondaryAction, onCreate, onRefresh } = props;
|
|
36
|
-
const specs: ActionSpec[] = [];
|
|
37
|
-
|
|
38
|
-
if (primaryAction) {
|
|
39
|
-
specs.push({
|
|
40
|
-
key: 'primary-action',
|
|
41
|
-
variant: 'contained',
|
|
42
|
-
onClick: primaryAction.onClick,
|
|
43
|
-
label: primaryAction.label,
|
|
44
|
-
});
|
|
45
|
-
}
|
|
46
|
-
if (onCreate) {
|
|
47
|
-
specs.push({
|
|
48
|
-
key: 'create-button',
|
|
49
|
-
variant: 'contained',
|
|
50
|
-
onClick: onCreate,
|
|
51
|
-
label: createLabel,
|
|
52
|
-
icon: <AddIcon />,
|
|
53
|
-
});
|
|
54
|
-
}
|
|
55
|
-
if (secondaryAction) {
|
|
56
|
-
specs.push({
|
|
57
|
-
key: 'secondary-action',
|
|
58
|
-
variant: 'outlined',
|
|
59
|
-
onClick: secondaryAction.onClick,
|
|
60
|
-
label: secondaryAction.label,
|
|
61
|
-
});
|
|
62
|
-
}
|
|
63
|
-
if (onRefresh) {
|
|
64
|
-
specs.push({
|
|
65
|
-
key: 'refresh-button',
|
|
66
|
-
variant: 'outlined',
|
|
67
|
-
onClick: onRefresh,
|
|
68
|
-
label: refreshLabel,
|
|
69
|
-
icon: <RefreshIcon />,
|
|
70
|
-
});
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
return specs;
|
|
11
|
+
import { type ActionIconName, type ActionSpec, actionsOf, makeTestId } from './EmptyState.helpers';
|
|
12
|
+
import {
|
|
13
|
+
ACTION_MIN_WIDTH,
|
|
14
|
+
ACTIONS_GAP_UNITS,
|
|
15
|
+
ACTIONS_MARGIN_TOP_UNITS,
|
|
16
|
+
CONTENT_GAP_UNITS,
|
|
17
|
+
DESCRIPTION_LINE_HEIGHT,
|
|
18
|
+
DESCRIPTION_MAX_WIDTH,
|
|
19
|
+
EMPTY_STATE_GAP_UNITS,
|
|
20
|
+
EMPTY_STATE_MIN_HEIGHT,
|
|
21
|
+
EMPTY_STATE_PADDING_UNITS,
|
|
22
|
+
EXTERNAL_LINK_MARK,
|
|
23
|
+
HELP_LINK_MARGIN_TOP_UNITS,
|
|
24
|
+
illustrationMaxWidth,
|
|
25
|
+
illustrationOpacity,
|
|
26
|
+
TITLE_MAX_WIDTH,
|
|
27
|
+
} from './EmptyState.metrics';
|
|
28
|
+
import type { EmptyStateProps, EmptyStateVariant } from './EmptyState.types';
|
|
29
|
+
import { resolveTestId } from '../../../platform/test-id';
|
|
30
|
+
|
|
31
|
+
/** The shared action list names its glyph; the web draws it with MUI's icon. */
|
|
32
|
+
const ACTION_ICONS: Record<ActionIconName, React.ReactNode> = {
|
|
33
|
+
Add: <AddIcon />,
|
|
34
|
+
Refresh: <RefreshIcon />,
|
|
74
35
|
};
|
|
75
36
|
|
|
76
37
|
const Illustration: React.FC<{
|
|
@@ -81,10 +42,10 @@ const Illustration: React.FC<{
|
|
|
81
42
|
<Box
|
|
82
43
|
data-testid={testId}
|
|
83
44
|
sx={{
|
|
84
|
-
maxWidth: variant
|
|
45
|
+
maxWidth: illustrationMaxWidth(variant),
|
|
85
46
|
width: '100%',
|
|
86
47
|
height: 'auto',
|
|
87
|
-
opacity: variant
|
|
48
|
+
opacity: illustrationOpacity(variant),
|
|
88
49
|
display: variant === 'minimal' ? 'none' : 'block',
|
|
89
50
|
}}
|
|
90
51
|
>
|
|
@@ -101,18 +62,18 @@ const Actions: React.FC<{
|
|
|
101
62
|
return (
|
|
102
63
|
<Stack
|
|
103
64
|
direction={{ xs: 'column', sm: 'row' }}
|
|
104
|
-
spacing={
|
|
65
|
+
spacing={ACTIONS_GAP_UNITS}
|
|
105
66
|
alignItems="center"
|
|
106
|
-
sx={{ mt: theme.spacing(
|
|
67
|
+
sx={{ mt: theme.spacing(ACTIONS_MARGIN_TOP_UNITS) }}
|
|
107
68
|
>
|
|
108
69
|
{specs.map((spec) => (
|
|
109
70
|
<Button
|
|
110
71
|
key={spec.key}
|
|
111
72
|
variant={spec.variant}
|
|
112
73
|
onClick={spec.onClick}
|
|
113
|
-
startIcon={spec.icon}
|
|
74
|
+
startIcon={spec.icon && ACTION_ICONS[spec.icon]}
|
|
114
75
|
data-testid={testId(spec.key)}
|
|
115
|
-
sx={{ minWidth:
|
|
76
|
+
sx={{ minWidth: ACTION_MIN_WIDTH }}
|
|
116
77
|
>
|
|
117
78
|
{spec.label}
|
|
118
79
|
</Button>
|
|
@@ -134,7 +95,7 @@ const HelpLink: React.FC<{
|
|
|
134
95
|
rel={helpLink.external ? 'noopener noreferrer' : undefined}
|
|
135
96
|
data-testid={testId}
|
|
136
97
|
sx={{
|
|
137
|
-
mt: theme.spacing(
|
|
98
|
+
mt: theme.spacing(HELP_LINK_MARGIN_TOP_UNITS),
|
|
138
99
|
color: theme.palette.primary.main,
|
|
139
100
|
textDecoration: 'none',
|
|
140
101
|
'&:hover': {
|
|
@@ -143,7 +104,7 @@ const HelpLink: React.FC<{
|
|
|
143
104
|
}}
|
|
144
105
|
>
|
|
145
106
|
{helpLink.label}
|
|
146
|
-
{helpLink.external &&
|
|
107
|
+
{helpLink.external && EXTERNAL_LINK_MARK}
|
|
147
108
|
</Link>
|
|
148
109
|
);
|
|
149
110
|
};
|
|
@@ -160,7 +121,7 @@ const Content: React.FC<{
|
|
|
160
121
|
const theme = useTheme();
|
|
161
122
|
|
|
162
123
|
return (
|
|
163
|
-
<Stack spacing={
|
|
124
|
+
<Stack spacing={CONTENT_GAP_UNITS} alignItems="center">
|
|
164
125
|
<Typography
|
|
165
126
|
id={titleId}
|
|
166
127
|
variant="h6"
|
|
@@ -169,7 +130,7 @@ const Content: React.FC<{
|
|
|
169
130
|
sx={{
|
|
170
131
|
fontWeight: theme.typography.fontWeightMedium,
|
|
171
132
|
color: theme.palette.text.primary,
|
|
172
|
-
maxWidth:
|
|
133
|
+
maxWidth: TITLE_MAX_WIDTH,
|
|
173
134
|
}}
|
|
174
135
|
>
|
|
175
136
|
{title}
|
|
@@ -181,8 +142,8 @@ const Content: React.FC<{
|
|
|
181
142
|
color="text.secondary"
|
|
182
143
|
data-testid={testId('description')}
|
|
183
144
|
sx={{
|
|
184
|
-
maxWidth:
|
|
185
|
-
lineHeight:
|
|
145
|
+
maxWidth: DESCRIPTION_MAX_WIDTH,
|
|
146
|
+
lineHeight: DESCRIPTION_LINE_HEIGHT,
|
|
186
147
|
}}
|
|
187
148
|
>
|
|
188
149
|
{description}
|
|
@@ -206,10 +167,12 @@ export const EmptyState: React.FC<EmptyStateProps> = React.memo((props) => {
|
|
|
206
167
|
refreshLabel = 'Refresh',
|
|
207
168
|
createLabel = 'Create New',
|
|
208
169
|
className,
|
|
209
|
-
dataTestId,
|
|
210
170
|
} = props;
|
|
211
171
|
const theme = useTheme();
|
|
212
172
|
const titleId = React.useId();
|
|
173
|
+
// `dataTestId` is the documented spelling; `testID`, the shared contract's
|
|
174
|
+
// other one, resolves to the same id.
|
|
175
|
+
const dataTestId = resolveTestId(props);
|
|
213
176
|
const testId = makeTestId(dataTestId);
|
|
214
177
|
|
|
215
178
|
const actions = actionsOf(props, refreshLabel, createLabel);
|
|
@@ -228,9 +191,9 @@ export const EmptyState: React.FC<EmptyStateProps> = React.memo((props) => {
|
|
|
228
191
|
alignItems: 'center',
|
|
229
192
|
justifyContent: 'center',
|
|
230
193
|
textAlign: 'center',
|
|
231
|
-
padding: theme.spacing(
|
|
232
|
-
minHeight:
|
|
233
|
-
gap: theme.spacing(
|
|
194
|
+
padding: theme.spacing(EMPTY_STATE_PADDING_UNITS),
|
|
195
|
+
minHeight: EMPTY_STATE_MIN_HEIGHT,
|
|
196
|
+
gap: theme.spacing(EMPTY_STATE_GAP_UNITS),
|
|
234
197
|
}}
|
|
235
198
|
>
|
|
236
199
|
{/* Illustration */}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { StyleProp, ViewProps, ViewStyle } from 'react-native';
|
|
2
|
+
|
|
3
|
+
import type { EmptyStateBaseProps } from './EmptyState.base';
|
|
4
|
+
|
|
5
|
+
export type {
|
|
6
|
+
EmptyStateAction,
|
|
7
|
+
EmptyStateBaseProps,
|
|
8
|
+
EmptyStateHelpLink,
|
|
9
|
+
EmptyStateVariant,
|
|
10
|
+
} from './EmptyState.base';
|
|
11
|
+
|
|
12
|
+
/** The native `EmptyState`: the shared contract, plus a `View`'s own props. */
|
|
13
|
+
export type EmptyStateProps = EmptyStateBaseProps &
|
|
14
|
+
Omit<ViewProps, keyof EmptyStateBaseProps | 'style'> & {
|
|
15
|
+
style?: StyleProp<ViewStyle>;
|
|
16
|
+
};
|
|
@@ -1,31 +1,12 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
* Displays a refresh button in the action area when provided
|
|
12
|
-
*/
|
|
13
|
-
onRefresh?: () => void;
|
|
14
|
-
/**
|
|
15
|
-
* Custom label for the refresh button
|
|
16
|
-
* @default 'Refresh'
|
|
17
|
-
*/
|
|
18
|
-
refreshLabel?: string;
|
|
19
|
-
/**
|
|
20
|
-
* Callback for the create/add new button
|
|
21
|
-
* Displays a create button in the action area when provided
|
|
22
|
-
*/
|
|
23
|
-
onCreate?: () => void;
|
|
24
|
-
/**
|
|
25
|
-
* Custom label for the create button
|
|
26
|
-
* @default 'Create New'
|
|
27
|
-
*/
|
|
28
|
-
createLabel?: string;
|
|
1
|
+
import type { EmptyStateBaseProps } from './EmptyState.base';
|
|
2
|
+
|
|
3
|
+
export type {
|
|
4
|
+
EmptyStateAction,
|
|
5
|
+
EmptyStateBaseProps,
|
|
6
|
+
EmptyStateHelpLink,
|
|
7
|
+
EmptyStateVariant,
|
|
8
|
+
} from './EmptyState.base';
|
|
9
|
+
|
|
10
|
+
export interface EmptyStateProps extends EmptyStateBaseProps {
|
|
29
11
|
className?: string;
|
|
30
|
-
|
|
31
|
-
}
|
|
12
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
# EmptyState on React Native
|
|
2
|
+
|
|
3
|
+
Known rendering gaps, one bullet each; `pnpm native:ledger` reads them.
|
|
4
|
+
|
|
5
|
+
- The actions are house `Button`s (solid/outline, `sm`) sized to MUI's medium contained and outlined buttons — same padding, 14px type, radius, half-alpha border, elevation-2 shadow, 20px icon and 120px floor; MUI additionally uppercases the label and sets the icon 8px from the label where the house button sets 4.
|
|
6
|
+
- The help link opens through `Linking.openURL` on a device; `target`/`rel` are web-only and reach the DOM through react-native-web's anchor.
|
|
7
|
+
- Title, description and link are set in MUI's default `h6`/`body2`/`body1` numbers; a host that re-themes MUI's typography variants moves the web only.
|
|
@@ -1,2 +1,8 @@
|
|
|
1
1
|
export { default, EmptyState } from './EmptyState';
|
|
2
|
-
export type {
|
|
2
|
+
export type {
|
|
3
|
+
EmptyStateAction,
|
|
4
|
+
EmptyStateBaseProps,
|
|
5
|
+
EmptyStateHelpLink,
|
|
6
|
+
EmptyStateProps,
|
|
7
|
+
EmptyStateVariant,
|
|
8
|
+
} from './EmptyState.types';
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import type * as React from 'react';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* THE CONTRACT BOTH RENDERERS HONOUR — and nothing else.
|
|
5
|
+
*
|
|
6
|
+
* Imports no MUI and no react-native, on purpose: it ships in both
|
|
7
|
+
* declaration outputs. `onRetry` takes no event on either side, so it lives
|
|
8
|
+
* here; the web adds `className`, the native side a `View`'s own props.
|
|
9
|
+
*/
|
|
10
|
+
export type ErrorStateSeverity = 'error' | 'warning';
|
|
11
|
+
|
|
12
|
+
export interface ErrorStateBaseProps {
|
|
13
|
+
/**
|
|
14
|
+
* The error message to display
|
|
15
|
+
*/
|
|
16
|
+
message: string;
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
* Optional title for the error state
|
|
20
|
+
*/
|
|
21
|
+
title?: string;
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
* Callback function when retry button is clicked
|
|
25
|
+
*/
|
|
26
|
+
onRetry?: () => void;
|
|
27
|
+
|
|
28
|
+
/**
|
|
29
|
+
* Custom label for the retry button
|
|
30
|
+
* @default 'Retry'
|
|
31
|
+
*/
|
|
32
|
+
retryLabel?: string;
|
|
33
|
+
|
|
34
|
+
/**
|
|
35
|
+
* Visual severity of the error
|
|
36
|
+
* @default 'error'
|
|
37
|
+
*/
|
|
38
|
+
severity?: ErrorStateSeverity;
|
|
39
|
+
|
|
40
|
+
/**
|
|
41
|
+
* Optional custom icon to display
|
|
42
|
+
*/
|
|
43
|
+
icon?: React.ReactNode;
|
|
44
|
+
|
|
45
|
+
/**
|
|
46
|
+
* Test ID for component testing
|
|
47
|
+
*/
|
|
48
|
+
dataTestId?: string;
|
|
49
|
+
|
|
50
|
+
testID?: string;
|
|
51
|
+
}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import type { ErrorStateSeverity } from './ErrorState.base';
|
|
2
|
+
import type { UiPaletteColor, UiTheme } from '../../../tokens/theme';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* THE NUMBERS BOTH `ErrorState` RENDERERS DRAW WITH.
|
|
6
|
+
*
|
|
7
|
+
* `ErrorState.tsx` (MUI) and `ErrorState.native.tsx` (React Native) read this
|
|
8
|
+
* one table. Spacing is in SPACING UNITS where the web writes
|
|
9
|
+
* `theme.spacing(n)`; everything else is px or a ratio.
|
|
10
|
+
*/
|
|
11
|
+
|
|
12
|
+
/** The region: a centred column, `theme.spacing(6)` of padding, at least 200px tall, its parts 16px apart. */
|
|
13
|
+
export const ERROR_STATE_PADDING_UNITS = 6;
|
|
14
|
+
export const ERROR_STATE_MIN_HEIGHT = 200;
|
|
15
|
+
export const ERROR_STATE_GAP_UNITS = 2;
|
|
16
|
+
|
|
17
|
+
/** The glyph sits in an 80px disc of the severity's `light` shade at 0.9 opacity. */
|
|
18
|
+
export const ERROR_ICON_BOX = 80;
|
|
19
|
+
export const ERROR_ICON_BOX_OPACITY = 0.9;
|
|
20
|
+
export const ERROR_ICON_SIZE = 48;
|
|
21
|
+
|
|
22
|
+
/** Title and message are 8px apart; the message wraps at 400px on a 1.6 line height. */
|
|
23
|
+
export const ERROR_TEXT_GAP_UNITS = 1;
|
|
24
|
+
export const ERROR_MESSAGE_MAX_WIDTH = 400;
|
|
25
|
+
export const ERROR_MESSAGE_LINE_HEIGHT = 1.6;
|
|
26
|
+
|
|
27
|
+
/** The retry button: 8px below the text, no narrower than 120px. */
|
|
28
|
+
export const RETRY_MARGIN_TOP_UNITS = 1;
|
|
29
|
+
export const RETRY_MIN_WIDTH = 120;
|
|
30
|
+
/**
|
|
31
|
+
* The web retry IS MUI's medium outlined `Button`: 5px 15px inside its 1px
|
|
32
|
+
* border, 14px type, the theme's radius, a 20px start icon. The native side
|
|
33
|
+
* sizes the house `Button` to these.
|
|
34
|
+
*/
|
|
35
|
+
export const RETRY_BUTTON = {
|
|
36
|
+
paddingVertical: 5,
|
|
37
|
+
paddingHorizontal: 15,
|
|
38
|
+
iconSize: 20,
|
|
39
|
+
} as const;
|
|
40
|
+
|
|
41
|
+
/** `error` is MUI's name for the `danger` slot; `warning` is its own. */
|
|
42
|
+
export function errorStatePalette(theme: UiTheme, severity: ErrorStateSeverity): UiPaletteColor {
|
|
43
|
+
return severity === 'error' ? theme.palette.danger : theme.palette.warning;
|
|
44
|
+
}
|