@ankhorage/zora 15.0.0 → 16.0.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/CHANGELOG.md +6 -0
- package/README.md +1 -1
- package/dist/constants.d.ts +5 -0
- package/dist/constants.d.ts.map +1 -1
- package/dist/constants.js +5 -0
- package/dist/constants.js.map +1 -1
- package/dist/features/accordion/accordionItemMeta.d.ts +1 -1
- package/dist/features/bottom-sheet/bottomSheetMeta.d.ts +1 -1
- package/dist/features/button/utils/resolveButtonThemeRecipe.d.ts +1 -1
- package/dist/features/card/cardMeta.d.ts +1 -1
- package/dist/features/card/mediaCardMeta.d.ts +1 -1
- package/dist/features/card/postCardMeta.d.ts +1 -1
- package/dist/features/dialog/adapters/inbound/Dialog.d.ts +5 -0
- package/dist/features/dialog/adapters/inbound/Dialog.d.ts.map +1 -0
- package/dist/features/dialog/adapters/inbound/Dialog.js +45 -0
- package/dist/features/dialog/adapters/inbound/Dialog.js.map +1 -0
- package/dist/features/dialog/dialogMeta.d.ts +87 -0
- package/dist/features/dialog/dialogMeta.d.ts.map +1 -0
- package/dist/features/dialog/dialogMeta.js +59 -0
- package/dist/features/dialog/dialogMeta.js.map +1 -0
- package/dist/features/dialog/public.d.ts +3 -0
- package/dist/features/dialog/public.d.ts.map +1 -0
- package/dist/features/dialog/public.js +2 -0
- package/dist/features/dialog/public.js.map +1 -0
- package/dist/features/form/formFieldMeta.d.ts +1 -1
- package/dist/features/form/formFieldMeta.d.ts.map +1 -1
- package/dist/features/form/formFieldMeta.js +8 -1
- package/dist/features/form/formFieldMeta.js.map +1 -1
- package/dist/features/form/radio/utils/resolveRadioGroupThemeRecipe.d.ts +1 -1
- package/dist/features/form/search-input/adapters/inbound/SearchInput.d.ts +4 -0
- package/dist/features/form/search-input/adapters/inbound/SearchInput.d.ts.map +1 -0
- package/dist/{components/search-bar/SearchBar.js → features/form/search-input/adapters/inbound/SearchInput.js} +8 -10
- package/dist/features/form/search-input/adapters/inbound/SearchInput.js.map +1 -0
- package/dist/features/form/search-input/public.d.ts +3 -0
- package/dist/features/form/search-input/public.d.ts.map +1 -0
- package/dist/features/form/search-input/public.js +2 -0
- package/dist/features/form/search-input/public.js.map +1 -0
- package/dist/features/form/search-input/searchInputMeta.d.ts +126 -0
- package/dist/features/form/search-input/searchInputMeta.d.ts.map +1 -0
- package/dist/features/form/search-input/searchInputMeta.js +67 -0
- package/dist/features/form/search-input/searchInputMeta.js.map +1 -0
- package/dist/features/gradient/gradientMeta.d.ts +1 -1
- package/dist/features/keyboard-avoiding-view/keyboardAvoidingViewMeta.d.ts +1 -1
- package/dist/features/layout/boxMeta.d.ts +1 -1
- package/dist/features/layout/containerMeta.d.ts +1 -1
- package/dist/features/layout/gridMeta.d.ts +1 -1
- package/dist/features/layout/stackMeta.d.ts +1 -1
- package/dist/features/list/flatListMeta.d.ts +1 -1
- package/dist/features/list/sectionListMeta.d.ts +1 -1
- package/dist/features/pagination/adapters/inbound/Pagination.d.ts +5 -0
- package/dist/features/pagination/adapters/inbound/Pagination.d.ts.map +1 -0
- package/dist/features/pagination/adapters/inbound/Pagination.js +43 -0
- package/dist/features/pagination/adapters/inbound/Pagination.js.map +1 -0
- package/dist/features/pagination/paginationMeta.d.ts +118 -0
- package/dist/features/pagination/paginationMeta.d.ts.map +1 -0
- package/dist/features/pagination/paginationMeta.js +53 -0
- package/dist/features/pagination/paginationMeta.js.map +1 -0
- package/dist/features/pagination/public.d.ts +3 -0
- package/dist/features/pagination/public.d.ts.map +1 -0
- package/dist/features/pagination/public.js +2 -0
- package/dist/features/pagination/public.js.map +1 -0
- package/dist/features/pagination/utils/resolvePaginationPage.d.ts +3 -0
- package/dist/features/pagination/utils/resolvePaginationPage.d.ts.map +1 -0
- package/dist/features/pagination/utils/resolvePaginationPage.js +7 -0
- package/dist/features/pagination/utils/resolvePaginationPage.js.map +1 -0
- package/dist/features/pagination/utils/resolvePaginationState.d.ts +17 -0
- package/dist/features/pagination/utils/resolvePaginationState.d.ts.map +1 -0
- package/dist/features/pagination/utils/resolvePaginationState.js +34 -0
- package/dist/features/pagination/utils/resolvePaginationState.js.map +1 -0
- package/dist/features/rating/adapters/inbound/Rating.d.ts +4 -0
- package/dist/features/rating/adapters/inbound/Rating.d.ts.map +1 -0
- package/dist/features/rating/adapters/inbound/Rating.js +49 -0
- package/dist/features/rating/adapters/inbound/Rating.js.map +1 -0
- package/dist/features/rating/public.d.ts +3 -0
- package/dist/features/rating/public.d.ts.map +1 -0
- package/dist/features/rating/public.js +2 -0
- package/dist/features/rating/public.js.map +1 -0
- package/dist/features/rating/ratingMeta.d.ts +57 -0
- package/dist/features/rating/ratingMeta.d.ts.map +1 -0
- package/dist/features/rating/ratingMeta.js +43 -0
- package/dist/features/rating/ratingMeta.js.map +1 -0
- package/dist/features/rating/utils/resolveRatingSegments.d.ts +9 -0
- package/dist/features/rating/utils/resolveRatingSegments.d.ts.map +1 -0
- package/dist/features/rating/utils/resolveRatingSegments.js +14 -0
- package/dist/features/rating/utils/resolveRatingSegments.js.map +1 -0
- package/dist/features/surface/surfaceMeta.d.ts +1 -1
- package/dist/features/tabs/adapters/inbound/Tab.d.ts +5 -0
- package/dist/features/tabs/adapters/inbound/Tab.d.ts.map +1 -0
- package/dist/features/tabs/adapters/inbound/Tab.js +14 -0
- package/dist/features/tabs/adapters/inbound/Tab.js.map +1 -0
- package/dist/features/tabs/adapters/inbound/TabList.d.ts +4 -0
- package/dist/features/tabs/adapters/inbound/TabList.d.ts.map +1 -0
- package/dist/features/tabs/adapters/inbound/TabList.js +9 -0
- package/dist/features/tabs/adapters/inbound/TabList.js.map +1 -0
- package/dist/features/tabs/adapters/inbound/TabPanel.d.ts +4 -0
- package/dist/features/tabs/adapters/inbound/TabPanel.d.ts.map +1 -0
- package/dist/features/tabs/adapters/inbound/TabPanel.js +11 -0
- package/dist/features/tabs/adapters/inbound/TabPanel.js.map +1 -0
- package/dist/features/tabs/adapters/inbound/Tabs.d.ts +4 -0
- package/dist/features/tabs/adapters/inbound/Tabs.d.ts.map +1 -0
- package/dist/features/tabs/adapters/inbound/Tabs.js +12 -0
- package/dist/features/tabs/adapters/inbound/Tabs.js.map +1 -0
- package/dist/features/tabs/composition/TabsInteractionPolicyContext.d.ts +3 -0
- package/dist/features/tabs/composition/TabsInteractionPolicyContext.d.ts.map +1 -0
- package/dist/features/tabs/composition/TabsInteractionPolicyContext.js +3 -0
- package/dist/features/tabs/composition/TabsInteractionPolicyContext.js.map +1 -0
- package/dist/features/tabs/public.d.ts +6 -0
- package/dist/features/tabs/public.d.ts.map +1 -0
- package/dist/features/tabs/public.js +5 -0
- package/dist/features/tabs/public.js.map +1 -0
- package/dist/features/tabs/tabListMeta.d.ts +9 -0
- package/dist/features/tabs/tabListMeta.d.ts.map +1 -0
- package/dist/features/tabs/tabListMeta.js +9 -0
- package/dist/features/tabs/tabListMeta.js.map +1 -0
- package/dist/features/tabs/tabMeta.d.ts +32 -0
- package/dist/features/tabs/tabMeta.d.ts.map +1 -0
- package/dist/features/tabs/tabMeta.js +14 -0
- package/dist/features/tabs/tabMeta.js.map +1 -0
- package/dist/features/tabs/tabPanelMeta.d.ts +15 -0
- package/dist/features/tabs/tabPanelMeta.d.ts.map +1 -0
- package/dist/features/tabs/tabPanelMeta.js +12 -0
- package/dist/features/tabs/tabPanelMeta.js.map +1 -0
- package/dist/features/tabs/tabsMeta.d.ts +58 -0
- package/dist/features/tabs/tabsMeta.d.ts.map +1 -0
- package/dist/features/tabs/tabsMeta.js +40 -0
- package/dist/features/tabs/tabsMeta.js.map +1 -0
- package/dist/features/toolbar/adapters/inbound/Toolbar.d.ts +4 -0
- package/dist/features/toolbar/adapters/inbound/Toolbar.d.ts.map +1 -0
- package/dist/features/toolbar/adapters/inbound/Toolbar.js +14 -0
- package/dist/features/toolbar/adapters/inbound/Toolbar.js.map +1 -0
- package/dist/features/toolbar/public.d.ts +3 -0
- package/dist/features/toolbar/public.d.ts.map +1 -0
- package/dist/features/toolbar/public.js +2 -0
- package/dist/features/toolbar/public.js.map +1 -0
- package/dist/features/toolbar/toolbarMeta.d.ts +29 -0
- package/dist/features/toolbar/toolbarMeta.d.ts.map +1 -0
- package/dist/features/toolbar/toolbarMeta.js +22 -0
- package/dist/features/toolbar/toolbarMeta.js.map +1 -0
- package/dist/features/typography/utils/resolveHeadingThemeRecipe.d.ts +1 -1
- package/dist/features/typography/utils/resolveTextThemeRecipe.d.ts +1 -1
- package/dist/features/uploader/adapters/inbound/Uploader.d.ts.map +1 -1
- package/dist/features/uploader/adapters/inbound/Uploader.js +3 -3
- package/dist/features/uploader/adapters/inbound/Uploader.js.map +1 -1
- package/dist/index.d.ts +6 -12
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +6 -6
- package/dist/index.js.map +1 -1
- package/dist/layout/screen/meta.d.ts +1 -1
- package/dist/layout/screen-section/meta.d.ts +1 -1
- package/dist/metadata/allowedChildren.d.ts +3 -3
- package/dist/metadata/allowedChildren.d.ts.map +1 -1
- package/dist/metadata/allowedChildren.js +6 -0
- package/dist/metadata/allowedChildren.js.map +1 -1
- package/dist/metadata/bindableComponentMeta.d.ts +2 -2
- package/dist/metadata/componentMeta.d.ts.map +1 -1
- package/dist/metadata/componentMeta.js +14 -9
- package/dist/metadata/componentMeta.js.map +1 -1
- package/dist/patterns/confirm-dialog/ConfirmDialog.js +3 -3
- package/dist/patterns/confirm-dialog/ConfirmDialog.js.map +1 -1
- package/dist/patterns/message-bubble/meta.d.ts +1 -1
- package/dist/patterns/notice/meta.d.ts +1 -1
- package/dist/patterns/panel/meta.d.ts +1 -1
- package/dist/patterns/reader/meta.d.ts +2 -2
- package/dist/patterns/scanner/meta.d.ts +2 -2
- package/dist/patterns/theme-composer/ThemeComposer.d.ts.map +1 -1
- package/dist/patterns/theme-composer/ThemeComposer.js +3 -3
- package/dist/patterns/theme-composer/ThemeComposer.js.map +1 -1
- package/dist/registry.d.ts.map +1 -1
- package/dist/registry.js +11 -9
- package/dist/registry.js.map +1 -1
- package/dist/types/dialog.d.ts +14 -0
- package/dist/types/dialog.d.ts.map +1 -0
- package/dist/types/dialog.js +2 -0
- package/dist/types/dialog.js.map +1 -0
- package/dist/types/pagination.d.ts +16 -0
- package/dist/types/pagination.d.ts.map +1 -0
- package/dist/types/pagination.js +2 -0
- package/dist/types/pagination.js.map +1 -0
- package/dist/types/rating.d.ts +9 -0
- package/dist/types/rating.d.ts.map +1 -0
- package/dist/types/rating.js +2 -0
- package/dist/types/rating.js.map +1 -0
- package/dist/types/search-input.d.ts +14 -0
- package/dist/types/search-input.d.ts.map +1 -0
- package/dist/types/search-input.js +2 -0
- package/dist/types/search-input.js.map +1 -0
- package/dist/types/tabs.d.ts +21 -0
- package/dist/types/tabs.d.ts.map +1 -0
- package/dist/types/tabs.js +2 -0
- package/dist/types/tabs.js.map +1 -0
- package/dist/types/toolbar.d.ts +8 -0
- package/dist/types/toolbar.d.ts.map +1 -0
- package/dist/types/toolbar.js +2 -0
- package/dist/types/toolbar.js.map +1 -0
- package/package.json +1 -1
- package/src/audit.test.ts +8 -47
- package/src/constants.ts +5 -0
- package/src/featureManifest.test.ts +31 -2
- package/src/features/dialog/adapters/inbound/Dialog.tsx +70 -0
- package/src/features/dialog/dialogMeta.ts +60 -0
- package/src/features/dialog/public.ts +2 -0
- package/src/features/form/formFieldMeta.ts +8 -1
- package/src/{components/search-bar/SearchBar.tsx → features/form/search-input/adapters/inbound/SearchInput.tsx} +10 -15
- package/src/features/form/search-input/public.ts +2 -0
- package/src/features/form/search-input/searchInputMeta.ts +68 -0
- package/src/features/pagination/adapters/inbound/Pagination.tsx +116 -0
- package/src/features/pagination/paginationMeta.ts +54 -0
- package/src/features/pagination/public.ts +2 -0
- package/src/features/pagination/utils/resolvePaginationPage.ts +6 -0
- package/src/features/pagination/utils/resolvePaginationState.test.ts +29 -0
- package/src/features/pagination/utils/resolvePaginationState.ts +70 -0
- package/src/features/rating/adapters/inbound/Rating.tsx +70 -0
- package/src/features/rating/public.ts +2 -0
- package/src/features/rating/ratingMeta.ts +44 -0
- package/src/features/rating/utils/resolveRatingSegments.test.ts +20 -0
- package/src/features/rating/utils/resolveRatingSegments.ts +19 -0
- package/src/features/tabs/adapters/inbound/Tab.tsx +26 -0
- package/src/features/tabs/adapters/inbound/TabList.tsx +18 -0
- package/src/features/tabs/adapters/inbound/TabPanel.tsx +23 -0
- package/src/features/tabs/adapters/inbound/Tabs.tsx +23 -0
- package/src/features/tabs/composition/TabsInteractionPolicyContext.ts +4 -0
- package/src/features/tabs/public.ts +5 -0
- package/src/features/tabs/tabListMeta.ts +10 -0
- package/src/features/tabs/tabMeta.ts +15 -0
- package/src/features/tabs/tabPanelMeta.ts +13 -0
- package/src/features/tabs/tabsMeta.ts +41 -0
- package/src/features/toolbar/adapters/inbound/Toolbar.tsx +31 -0
- package/src/features/toolbar/public.ts +2 -0
- package/src/features/toolbar/toolbarMeta.ts +24 -0
- package/src/{components → features/typography}/contentFallback.test.ts +2 -8
- package/src/features/uploader/adapters/inbound/Uploader.tsx +3 -3
- package/src/index.ts +15 -12
- package/src/metadata/allowedChildren.ts +6 -0
- package/src/metadata/componentMeta.test.ts +18 -1
- package/src/metadata/componentMeta.ts +14 -9
- package/src/patterns/confirm-dialog/ConfirmDialog.tsx +3 -3
- package/src/patterns/theme-composer/ThemeComposer.tsx +6 -7
- package/src/registry.ts +11 -9
- package/src/showcaseCoverage.test.ts +6 -3
- package/src/theme/themeScopeStructure.test.ts +16 -11
- package/src/types/dialog.ts +15 -0
- package/src/{components/pagination/types.ts → types/pagination.ts} +5 -8
- package/src/types/rating.ts +9 -0
- package/src/types/search-input.ts +14 -0
- package/src/types/tabs.ts +25 -0
- package/src/types/toolbar.ts +9 -0
- package/dist/components/modal/Modal.d.ts +0 -7
- package/dist/components/modal/Modal.d.ts.map +0 -1
- package/dist/components/modal/Modal.js +0 -39
- package/dist/components/modal/Modal.js.map +0 -1
- package/dist/components/modal/index.d.ts +0 -3
- package/dist/components/modal/index.d.ts.map +0 -1
- package/dist/components/modal/index.js +0 -2
- package/dist/components/modal/index.js.map +0 -1
- package/dist/components/modal/meta.d.ts +0 -9
- package/dist/components/modal/meta.d.ts.map +0 -1
- package/dist/components/modal/meta.js +0 -9
- package/dist/components/modal/meta.js.map +0 -1
- package/dist/components/modal/types.d.ts +0 -12
- package/dist/components/modal/types.d.ts.map +0 -1
- package/dist/components/modal/types.js +0 -2
- package/dist/components/modal/types.js.map +0 -1
- package/dist/components/pagination/Pagination.d.ts +0 -7
- package/dist/components/pagination/Pagination.d.ts.map +0 -1
- package/dist/components/pagination/Pagination.js +0 -96
- package/dist/components/pagination/Pagination.js.map +0 -1
- package/dist/components/pagination/index.d.ts +0 -3
- package/dist/components/pagination/index.d.ts.map +0 -1
- package/dist/components/pagination/index.js +0 -2
- package/dist/components/pagination/index.js.map +0 -1
- package/dist/components/pagination/meta.d.ts +0 -9
- package/dist/components/pagination/meta.d.ts.map +0 -1
- package/dist/components/pagination/meta.js +0 -9
- package/dist/components/pagination/meta.js.map +0 -1
- package/dist/components/pagination/types.d.ts +0 -18
- package/dist/components/pagination/types.d.ts.map +0 -1
- package/dist/components/pagination/types.js +0 -2
- package/dist/components/pagination/types.js.map +0 -1
- package/dist/components/rating/Rating.d.ts +0 -7
- package/dist/components/rating/Rating.d.ts.map +0 -1
- package/dist/components/rating/Rating.js +0 -26
- package/dist/components/rating/Rating.js.map +0 -1
- package/dist/components/rating/index.d.ts +0 -3
- package/dist/components/rating/index.d.ts.map +0 -1
- package/dist/components/rating/index.js +0 -2
- package/dist/components/rating/index.js.map +0 -1
- package/dist/components/rating/meta.d.ts +0 -9
- package/dist/components/rating/meta.d.ts.map +0 -1
- package/dist/components/rating/meta.js +0 -9
- package/dist/components/rating/meta.js.map +0 -1
- package/dist/components/rating/resolveRatingSegments.d.ts +0 -7
- package/dist/components/rating/resolveRatingSegments.d.ts.map +0 -1
- package/dist/components/rating/resolveRatingSegments.js +0 -22
- package/dist/components/rating/resolveRatingSegments.js.map +0 -1
- package/dist/components/rating/types.d.ts +0 -11
- package/dist/components/rating/types.d.ts.map +0 -1
- package/dist/components/rating/types.js +0 -26
- package/dist/components/rating/types.js.map +0 -1
- package/dist/components/search-bar/SearchBar.d.ts +0 -7
- package/dist/components/search-bar/SearchBar.d.ts.map +0 -1
- package/dist/components/search-bar/SearchBar.js.map +0 -1
- package/dist/components/search-bar/index.d.ts +0 -3
- package/dist/components/search-bar/index.d.ts.map +0 -1
- package/dist/components/search-bar/index.js +0 -2
- package/dist/components/search-bar/index.js.map +0 -1
- package/dist/components/search-bar/meta.d.ts +0 -9
- package/dist/components/search-bar/meta.d.ts.map +0 -1
- package/dist/components/search-bar/meta.js +0 -9
- package/dist/components/search-bar/meta.js.map +0 -1
- package/dist/components/search-bar/types.d.ts +0 -14
- package/dist/components/search-bar/types.d.ts.map +0 -1
- package/dist/components/search-bar/types.js +0 -2
- package/dist/components/search-bar/types.js.map +0 -1
- package/dist/components/tabs/Tabs.d.ts +0 -9
- package/dist/components/tabs/Tabs.d.ts.map +0 -1
- package/dist/components/tabs/Tabs.js +0 -59
- package/dist/components/tabs/Tabs.js.map +0 -1
- package/dist/components/tabs/index.d.ts +0 -3
- package/dist/components/tabs/index.d.ts.map +0 -1
- package/dist/components/tabs/index.js +0 -3
- package/dist/components/tabs/index.js.map +0 -1
- package/dist/components/tabs/meta.d.ts +0 -9
- package/dist/components/tabs/meta.d.ts.map +0 -1
- package/dist/components/tabs/meta.js +0 -9
- package/dist/components/tabs/meta.js.map +0 -1
- package/dist/components/tabs/types.d.ts +0 -22
- package/dist/components/tabs/types.d.ts.map +0 -1
- package/dist/components/tabs/types.js +0 -2
- package/dist/components/tabs/types.js.map +0 -1
- package/dist/components/toolbar/Toolbar.d.ts +0 -9
- package/dist/components/toolbar/Toolbar.d.ts.map +0 -1
- package/dist/components/toolbar/Toolbar.js +0 -26
- package/dist/components/toolbar/Toolbar.js.map +0 -1
- package/dist/components/toolbar/ToolbarAction.d.ts +0 -9
- package/dist/components/toolbar/ToolbarAction.d.ts.map +0 -1
- package/dist/components/toolbar/ToolbarAction.js +0 -13
- package/dist/components/toolbar/ToolbarAction.js.map +0 -1
- package/dist/components/toolbar/index.d.ts +0 -4
- package/dist/components/toolbar/index.d.ts.map +0 -1
- package/dist/components/toolbar/index.js +0 -4
- package/dist/components/toolbar/index.js.map +0 -1
- package/dist/components/toolbar/meta.d.ts +0 -17
- package/dist/components/toolbar/meta.d.ts.map +0 -1
- package/dist/components/toolbar/meta.js +0 -17
- package/dist/components/toolbar/meta.js.map +0 -1
- package/dist/components/toolbar/types.d.ts +0 -18
- package/dist/components/toolbar/types.d.ts.map +0 -1
- package/dist/components/toolbar/types.js +0 -2
- package/dist/components/toolbar/types.js.map +0 -1
- package/src/components/modal/Modal.tsx +0 -63
- package/src/components/modal/index.ts +0 -2
- package/src/components/modal/meta.ts +0 -10
- package/src/components/modal/types.ts +0 -16
- package/src/components/pagination/Pagination.tsx +0 -199
- package/src/components/pagination/index.ts +0 -2
- package/src/components/pagination/meta.ts +0 -10
- package/src/components/rating/Rating.tsx +0 -42
- package/src/components/rating/index.ts +0 -2
- package/src/components/rating/meta.ts +0 -10
- package/src/components/rating/resolveRatingSegments.test.ts +0 -60
- package/src/components/rating/resolveRatingSegments.ts +0 -34
- package/src/components/rating/types.ts +0 -37
- package/src/components/search-bar/index.ts +0 -2
- package/src/components/search-bar/meta.ts +0 -10
- package/src/components/search-bar/types.ts +0 -14
- package/src/components/tabs/Tabs.tsx +0 -129
- package/src/components/tabs/index.ts +0 -2
- package/src/components/tabs/meta.ts +0 -10
- package/src/components/tabs/types.ts +0 -25
- package/src/components/toolbar/Toolbar.tsx +0 -48
- package/src/components/toolbar/ToolbarAction.tsx +0 -28
- package/src/components/toolbar/index.ts +0 -3
- package/src/components/toolbar/meta.ts +0 -19
- package/src/components/toolbar/types.ts +0 -21
|
@@ -1,9 +1,3 @@
|
|
|
1
|
-
import { modalMeta } from '../components/modal/meta';
|
|
2
|
-
import { paginationMeta } from '../components/pagination/meta';
|
|
3
|
-
import { ratingMeta } from '../components/rating/meta';
|
|
4
|
-
import { searchBarMeta } from '../components/search-bar/meta';
|
|
5
|
-
import { tabsMeta } from '../components/tabs/meta';
|
|
6
|
-
import { toolbarActionMeta, toolbarMeta } from '../components/toolbar/meta';
|
|
7
1
|
import { accordionItemMeta } from '../features/accordion/accordionItemMeta';
|
|
8
2
|
import { accordionMeta } from '../features/accordion/accordionMeta';
|
|
9
3
|
import { activityIndicatorMeta } from '../features/activity-indicator/activityIndicatorMeta';
|
|
@@ -31,6 +25,7 @@ import { chipGroupMeta } from '../features/chip/chipGroupMeta';
|
|
|
31
25
|
import { chipMeta } from '../features/chip/chipMeta';
|
|
32
26
|
import { dataTableMeta } from '../features/data-table/dataTableMeta';
|
|
33
27
|
import { datePickerMeta } from '../features/date-picker/datePickerMeta';
|
|
28
|
+
import { dialogMeta } from '../features/dialog/dialogMeta';
|
|
34
29
|
import { emptyStateMeta } from '../features/empty-state/emptyStateMeta';
|
|
35
30
|
import { checkboxGroupMeta, checkboxMeta } from '../features/form/checkbox/checkboxMeta';
|
|
36
31
|
import { formActionsMeta } from '../features/form/formActionsMeta';
|
|
@@ -38,6 +33,7 @@ import { formErrorMeta } from '../features/form/formErrorMeta';
|
|
|
38
33
|
import { formFieldMeta } from '../features/form/formFieldMeta';
|
|
39
34
|
import { formMeta } from '../features/form/formMeta';
|
|
40
35
|
import { radioGroupMeta, radioMeta } from '../features/form/radio/radioMeta';
|
|
36
|
+
import { searchInputMeta } from '../features/form/search-input/searchInputMeta';
|
|
41
37
|
import { selectMeta } from '../features/form/select/selectMeta';
|
|
42
38
|
import { textInputMeta } from '../features/form/text-input/textInputMeta';
|
|
43
39
|
import { gradientMeta } from '../features/gradient/gradientMeta';
|
|
@@ -54,8 +50,10 @@ import { stackMeta } from '../features/layout/stackMeta';
|
|
|
54
50
|
import { flatListMeta } from '../features/list/flatListMeta';
|
|
55
51
|
import { sectionListMeta } from '../features/list/sectionListMeta';
|
|
56
52
|
import { missingElementMeta } from '../features/missing-element/missingElementMeta';
|
|
53
|
+
import { paginationMeta } from '../features/pagination/paginationMeta';
|
|
57
54
|
import { popoverMenuMeta } from '../features/popover-menu/popoverMenuMeta';
|
|
58
55
|
import { progressMeta, progressRingMeta } from '../features/progress/progressMeta';
|
|
56
|
+
import { ratingMeta } from '../features/rating/ratingMeta';
|
|
59
57
|
import {
|
|
60
58
|
skeletonCardMeta,
|
|
61
59
|
skeletonListMeta,
|
|
@@ -63,9 +61,14 @@ import {
|
|
|
63
61
|
skeletonTextMeta,
|
|
64
62
|
} from '../features/skeleton/skeletonMeta';
|
|
65
63
|
import { surfaceMeta } from '../features/surface/surfaceMeta';
|
|
64
|
+
import { tabListMeta } from '../features/tabs/tabListMeta';
|
|
65
|
+
import { tabMeta } from '../features/tabs/tabMeta';
|
|
66
|
+
import { tabPanelMeta } from '../features/tabs/tabPanelMeta';
|
|
67
|
+
import { tabsMeta } from '../features/tabs/tabsMeta';
|
|
66
68
|
import { timePickerMeta } from '../features/time-picker/timePickerMeta';
|
|
67
69
|
import { toastMeta } from '../features/toast/toastMeta';
|
|
68
70
|
import { toastProviderMeta } from '../features/toast/toastProviderMeta';
|
|
71
|
+
import { toolbarMeta } from '../features/toolbar/toolbarMeta';
|
|
69
72
|
import { headingMeta } from '../features/typography/headingMeta';
|
|
70
73
|
import { textMeta } from '../features/typography/textMeta';
|
|
71
74
|
import { uploaderMeta } from '../features/uploader/uploaderMeta';
|
|
@@ -128,6 +131,7 @@ export const ZORA_COMPONENT_META: ZoraComponentMetaRegistry = finalizeFeatureMet
|
|
|
128
131
|
ChipGroup: chipGroupMeta,
|
|
129
132
|
DataTable: dataTableMeta,
|
|
130
133
|
DatePicker: datePickerMeta,
|
|
134
|
+
Dialog: dialogMeta,
|
|
131
135
|
Form: formMeta,
|
|
132
136
|
FormActions: formActionsMeta,
|
|
133
137
|
FormError: formErrorMeta,
|
|
@@ -141,7 +145,6 @@ export const ZORA_COMPONENT_META: ZoraComponentMetaRegistry = finalizeFeatureMet
|
|
|
141
145
|
TextInput: textInputMeta,
|
|
142
146
|
MediaCard: mediaCardMeta,
|
|
143
147
|
MetricCard: metricCardMeta,
|
|
144
|
-
Modal: modalMeta,
|
|
145
148
|
Pagination: paginationMeta,
|
|
146
149
|
PopoverMenu: popoverMenuMeta,
|
|
147
150
|
Progress: progressMeta,
|
|
@@ -149,19 +152,21 @@ export const ZORA_COMPONENT_META: ZoraComponentMetaRegistry = finalizeFeatureMet
|
|
|
149
152
|
Radio: radioMeta,
|
|
150
153
|
RadioGroup: radioGroupMeta,
|
|
151
154
|
Rating: ratingMeta,
|
|
152
|
-
|
|
155
|
+
SearchInput: searchInputMeta,
|
|
153
156
|
Select: selectMeta,
|
|
154
157
|
Skeleton: skeletonMeta,
|
|
155
158
|
SkeletonCard: skeletonCardMeta,
|
|
156
159
|
SkeletonList: skeletonListMeta,
|
|
157
160
|
SkeletonText: skeletonTextMeta,
|
|
161
|
+
Tab: tabMeta,
|
|
162
|
+
TabList: tabListMeta,
|
|
163
|
+
TabPanel: tabPanelMeta,
|
|
158
164
|
Tabs: tabsMeta,
|
|
159
165
|
Text: textMeta,
|
|
160
166
|
TimePicker: timePickerMeta,
|
|
161
167
|
Toast: toastMeta,
|
|
162
168
|
ToastProvider: toastProviderMeta,
|
|
163
169
|
Toolbar: toolbarMeta,
|
|
164
|
-
ToolbarAction: toolbarActionMeta,
|
|
165
170
|
Uploader: uploaderMeta,
|
|
166
171
|
BottomSheet: bottomSheetMeta,
|
|
167
172
|
FlatList: flatListMeta,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
|
|
3
|
-
import { Modal } from '../../components/modal';
|
|
4
3
|
import { Button } from '../../features/button/public';
|
|
4
|
+
import { Dialog } from '../../features/dialog/public';
|
|
5
5
|
import { Stack } from '../../features/layout/public';
|
|
6
6
|
import { withZoraThemeScope } from '../../theme/withZoraThemeScope';
|
|
7
7
|
import type { ConfirmDialogProps } from './types';
|
|
@@ -25,7 +25,7 @@ function ConfirmDialogInner({
|
|
|
25
25
|
interactionPolicy,
|
|
26
26
|
}: ConfirmDialogProps) {
|
|
27
27
|
return (
|
|
28
|
-
<
|
|
28
|
+
<Dialog
|
|
29
29
|
closeOnBackdrop={closeOnBackdrop}
|
|
30
30
|
description={description}
|
|
31
31
|
interactionPolicy={interactionPolicy}
|
|
@@ -57,7 +57,7 @@ function ConfirmDialogInner({
|
|
|
57
57
|
width="narrow"
|
|
58
58
|
>
|
|
59
59
|
{children}
|
|
60
|
-
</
|
|
60
|
+
</Dialog>
|
|
61
61
|
);
|
|
62
62
|
}
|
|
63
63
|
|
|
@@ -3,10 +3,10 @@ import type { AppCategory } from '@ankhorage/contracts';
|
|
|
3
3
|
import { APP_CATEGORIES } from '@ankhorage/contracts';
|
|
4
4
|
import React from 'react';
|
|
5
5
|
|
|
6
|
-
import { Tabs } from '../../components/tabs';
|
|
7
6
|
import { Badge } from '../../features/badge/public';
|
|
8
7
|
import { Button } from '../../features/button/public';
|
|
9
8
|
import { Card } from '../../features/card/public';
|
|
9
|
+
import { ChipGroup } from '../../features/chip/public';
|
|
10
10
|
import { Select } from '../../features/form/select/public';
|
|
11
11
|
import { TextInput } from '../../features/form/text-input/public';
|
|
12
12
|
import { Box, Stack } from '../../features/layout/public';
|
|
@@ -48,7 +48,7 @@ function formatAppCategoryLabel(category: AppCategory): string {
|
|
|
48
48
|
|
|
49
49
|
const HARMONY_OPTIONS = COLOR_HARMONIES.map((h) => ({ value: h, label: h }));
|
|
50
50
|
|
|
51
|
-
const
|
|
51
|
+
const MODE_OPTIONS = [
|
|
52
52
|
{ value: 'light' as ZoraThemeMode, label: 'Light' },
|
|
53
53
|
{ value: 'dark' as ZoraThemeMode, label: 'Dark' },
|
|
54
54
|
];
|
|
@@ -230,12 +230,11 @@ function ThemeComposerInner({
|
|
|
230
230
|
|
|
231
231
|
{/* Section: Mode */}
|
|
232
232
|
<Card title="Mode" description="Switch between light and dark presentation.">
|
|
233
|
-
<
|
|
233
|
+
<ChipGroup
|
|
234
234
|
value={activeMode}
|
|
235
|
-
items={
|
|
236
|
-
onValueChange={(
|
|
237
|
-
|
|
238
|
-
testID={testID ? `${testID}-mode-tabs` : undefined}
|
|
235
|
+
items={MODE_OPTIONS}
|
|
236
|
+
onValueChange={(nextMode) => onModeChange?.(nextMode)}
|
|
237
|
+
testID={testID ? `${testID}-mode` : undefined}
|
|
239
238
|
/>
|
|
240
239
|
</Card>
|
|
241
240
|
|
package/src/registry.ts
CHANGED
|
@@ -1,12 +1,6 @@
|
|
|
1
1
|
import type { InteractionPolicyProps } from '@ankhorage/surface';
|
|
2
2
|
import type React from 'react';
|
|
3
3
|
|
|
4
|
-
import { Modal } from './components/modal';
|
|
5
|
-
import { Pagination } from './components/pagination';
|
|
6
|
-
import { Rating } from './components/rating';
|
|
7
|
-
import { SearchBar } from './components/search-bar';
|
|
8
|
-
import { Tabs } from './components/tabs';
|
|
9
|
-
import { Toolbar, ToolbarAction } from './components/toolbar';
|
|
10
4
|
import { Accordion, AccordionItem } from './features/accordion/public';
|
|
11
5
|
import { ActivityIndicator } from './features/activity-indicator/public';
|
|
12
6
|
import { AppBar } from './features/app-bar/public';
|
|
@@ -35,10 +29,12 @@ import { Chip } from './features/chip/public';
|
|
|
35
29
|
import { ChipGroup } from './features/chip/public';
|
|
36
30
|
import { DataTable } from './features/data-table/public';
|
|
37
31
|
import { DatePicker } from './features/date-picker/public';
|
|
32
|
+
import { Dialog } from './features/dialog/public';
|
|
38
33
|
import { EmptyState } from './features/empty-state/public';
|
|
39
34
|
import { Checkbox, CheckboxGroup } from './features/form/checkbox/public';
|
|
40
35
|
import { Form, FormActions, FormError, FormField } from './features/form/public';
|
|
41
36
|
import { Radio, RadioGroup } from './features/form/radio/public';
|
|
37
|
+
import { SearchInput } from './features/form/search-input/public';
|
|
42
38
|
import { Select } from './features/form/select/public';
|
|
43
39
|
import { TextInput } from './features/form/text-input/public';
|
|
44
40
|
import { Gradient } from './features/gradient/public';
|
|
@@ -50,12 +46,16 @@ import { Box, Container, Divider, Grid, Stack } from './features/layout/public';
|
|
|
50
46
|
import { ContentRail } from './features/layout/public';
|
|
51
47
|
import { FlatList, SectionList } from './features/list/public';
|
|
52
48
|
import { MissingElement } from './features/missing-element/public';
|
|
49
|
+
import { Pagination } from './features/pagination/public';
|
|
53
50
|
import { PopoverMenu } from './features/popover-menu/public';
|
|
54
51
|
import { Progress, ProgressRing } from './features/progress/public';
|
|
52
|
+
import { Rating } from './features/rating/public';
|
|
55
53
|
import { Skeleton, SkeletonCard, SkeletonList, SkeletonText } from './features/skeleton/public';
|
|
56
54
|
import { Surface } from './features/surface/public';
|
|
55
|
+
import { Tab, TabList, TabPanel, Tabs } from './features/tabs/public';
|
|
57
56
|
import { TimePicker } from './features/time-picker/public';
|
|
58
57
|
import { Toast } from './features/toast/public';
|
|
58
|
+
import { Toolbar } from './features/toolbar/public';
|
|
59
59
|
import { Heading } from './features/typography/public';
|
|
60
60
|
import { Text } from './features/typography/public';
|
|
61
61
|
import { Uploader } from './features/uploader/public';
|
|
@@ -130,6 +130,7 @@ const _ZORA_COMPONENT_REGISTRY = {
|
|
|
130
130
|
ChipGroup,
|
|
131
131
|
DataTable,
|
|
132
132
|
DatePicker,
|
|
133
|
+
Dialog,
|
|
133
134
|
Form,
|
|
134
135
|
FormActions,
|
|
135
136
|
FormError,
|
|
@@ -143,7 +144,6 @@ const _ZORA_COMPONENT_REGISTRY = {
|
|
|
143
144
|
TextInput,
|
|
144
145
|
MediaCard,
|
|
145
146
|
MetricCard,
|
|
146
|
-
Modal,
|
|
147
147
|
Pagination,
|
|
148
148
|
PopoverMenu,
|
|
149
149
|
Progress,
|
|
@@ -151,18 +151,20 @@ const _ZORA_COMPONENT_REGISTRY = {
|
|
|
151
151
|
Radio,
|
|
152
152
|
RadioGroup,
|
|
153
153
|
Rating,
|
|
154
|
-
|
|
154
|
+
SearchInput,
|
|
155
155
|
Select,
|
|
156
156
|
Skeleton,
|
|
157
157
|
SkeletonCard,
|
|
158
158
|
SkeletonList,
|
|
159
159
|
SkeletonText,
|
|
160
|
+
Tab,
|
|
161
|
+
TabList,
|
|
162
|
+
TabPanel,
|
|
160
163
|
Tabs,
|
|
161
164
|
Text,
|
|
162
165
|
TimePicker,
|
|
163
166
|
Toast,
|
|
164
167
|
Toolbar,
|
|
165
|
-
ToolbarAction,
|
|
166
168
|
Uploader,
|
|
167
169
|
BottomSheet,
|
|
168
170
|
FlatList,
|
|
@@ -30,6 +30,7 @@ const REQUIRED_SHOWCASE_COVERAGE = {
|
|
|
30
30
|
'CheckboxGroup',
|
|
31
31
|
'Chip',
|
|
32
32
|
'ChipGroup',
|
|
33
|
+
'Dialog',
|
|
33
34
|
'Form',
|
|
34
35
|
'FormActions',
|
|
35
36
|
'FormError',
|
|
@@ -42,18 +43,20 @@ const REQUIRED_SHOWCASE_COVERAGE = {
|
|
|
42
43
|
'TextInput',
|
|
43
44
|
'MediaCard',
|
|
44
45
|
'MetricCard',
|
|
45
|
-
'
|
|
46
|
+
'Pagination',
|
|
46
47
|
'Progress',
|
|
47
48
|
'ProgressRing',
|
|
48
49
|
'Radio',
|
|
49
50
|
'RadioGroup',
|
|
50
51
|
'Rating',
|
|
51
|
-
'
|
|
52
|
+
'SearchInput',
|
|
52
53
|
'Select',
|
|
54
|
+
'Tab',
|
|
55
|
+
'TabList',
|
|
56
|
+
'TabPanel',
|
|
53
57
|
'Tabs',
|
|
54
58
|
'Text',
|
|
55
59
|
'Toolbar',
|
|
56
|
-
'ToolbarAction',
|
|
57
60
|
],
|
|
58
61
|
foundation: [
|
|
59
62
|
'Box',
|
|
@@ -44,7 +44,6 @@ const themeScopeSource = readSource('ZoraThemeScope.tsx');
|
|
|
44
44
|
const hocSource = readSource('withZoraThemeScope.tsx');
|
|
45
45
|
|
|
46
46
|
const scopeGuardDirs = [
|
|
47
|
-
join(srcDir, 'components'),
|
|
48
47
|
join(srcDir, 'patterns'),
|
|
49
48
|
join(srcDir, 'layout'),
|
|
50
49
|
join(srcDir, 'foundation'),
|
|
@@ -68,31 +67,35 @@ const scopedComponentFiles = [
|
|
|
68
67
|
join(srcDir, 'features', 'card', 'adapters', 'inbound', 'MetricCard.tsx'),
|
|
69
68
|
join(srcDir, 'features', 'date-picker', 'adapters', 'inbound', 'DatePicker.native.tsx'),
|
|
70
69
|
join(srcDir, 'features', 'date-picker', 'adapters', 'inbound', 'DatePicker.web.tsx'),
|
|
70
|
+
join(srcDir, 'features', 'dialog', 'adapters', 'inbound', 'Dialog.tsx'),
|
|
71
71
|
join(srcDir, 'features', 'form', 'checkbox', 'adapters', 'inbound', 'Checkbox.tsx'),
|
|
72
72
|
join(srcDir, 'features', 'form', 'checkbox', 'adapters', 'inbound', 'CheckboxGroup.tsx'),
|
|
73
73
|
join(srcDir, 'features', 'form', 'adapters', 'inbound', 'Form.tsx'),
|
|
74
74
|
join(srcDir, 'features', 'form', 'adapters', 'inbound', 'FormActions.tsx'),
|
|
75
75
|
join(srcDir, 'features', 'form', 'adapters', 'inbound', 'FormError.tsx'),
|
|
76
76
|
join(srcDir, 'features', 'form', 'adapters', 'inbound', 'FormField.tsx'),
|
|
77
|
+
join(srcDir, 'features', 'form', 'search-input', 'adapters', 'inbound', 'SearchInput.tsx'),
|
|
77
78
|
join(srcDir, 'features', 'form', 'select', 'adapters', 'inbound', 'Select.native.tsx'),
|
|
78
79
|
join(srcDir, 'features', 'form', 'select', 'adapters', 'inbound', 'Select.web.tsx'),
|
|
79
80
|
join(srcDir, 'features', 'typography', 'adapters', 'inbound', 'Heading.tsx'),
|
|
80
81
|
join(srcDir, 'features', 'icon', 'adapters', 'inbound', 'Icon.tsx'),
|
|
81
82
|
join(srcDir, 'features', 'button', 'adapters', 'inbound', 'IconButton.tsx'),
|
|
82
83
|
join(srcDir, 'features', 'form', 'text-input', 'adapters', 'inbound', 'TextInput.tsx'),
|
|
83
|
-
join(srcDir, '
|
|
84
|
+
join(srcDir, 'features', 'pagination', 'adapters', 'inbound', 'Pagination.tsx'),
|
|
84
85
|
join(srcDir, 'features', 'popover-menu', 'adapters', 'inbound', 'PopoverMenu.tsx'),
|
|
85
86
|
join(srcDir, 'features', 'progress', 'adapters', 'inbound', 'Progress.tsx'),
|
|
86
87
|
join(srcDir, 'features', 'form', 'radio', 'adapters', 'inbound', 'Radio.tsx'),
|
|
87
88
|
join(srcDir, 'features', 'form', 'radio', 'adapters', 'inbound', 'RadioGroup.tsx'),
|
|
88
|
-
join(srcDir, '
|
|
89
|
-
join(srcDir, '
|
|
89
|
+
join(srcDir, 'features', 'rating', 'adapters', 'inbound', 'Rating.tsx'),
|
|
90
|
+
join(srcDir, 'features', 'tabs', 'adapters', 'inbound', 'Tab.tsx'),
|
|
91
|
+
join(srcDir, 'features', 'tabs', 'adapters', 'inbound', 'TabList.tsx'),
|
|
92
|
+
join(srcDir, 'features', 'tabs', 'adapters', 'inbound', 'TabPanel.tsx'),
|
|
93
|
+
join(srcDir, 'features', 'tabs', 'adapters', 'inbound', 'Tabs.tsx'),
|
|
90
94
|
join(srcDir, 'features', 'time-picker', 'adapters', 'inbound', 'TimePicker.native.tsx'),
|
|
91
95
|
join(srcDir, 'features', 'time-picker', 'adapters', 'inbound', 'TimePicker.web.tsx'),
|
|
92
96
|
join(srcDir, 'features', 'toast', 'adapters', 'inbound', 'Toast.tsx'),
|
|
97
|
+
join(srcDir, 'features', 'toolbar', 'adapters', 'inbound', 'Toolbar.tsx'),
|
|
93
98
|
join(srcDir, 'features', 'typography', 'adapters', 'inbound', 'Text.tsx'),
|
|
94
|
-
join(srcDir, 'components', 'toolbar', 'Toolbar.tsx'),
|
|
95
|
-
join(srcDir, 'components', 'toolbar', 'ToolbarAction.tsx'),
|
|
96
99
|
|
|
97
100
|
join(srcDir, 'layout', 'app-shell', 'AppShell.tsx'),
|
|
98
101
|
join(srcDir, 'layout', 'screen', 'Screen.tsx'),
|
|
@@ -148,22 +151,24 @@ const scopedPropTypeFiles = [
|
|
|
148
151
|
join(srcDir, 'types', 'metric-card.ts'),
|
|
149
152
|
join(srcDir, 'types', 'checkbox.ts'),
|
|
150
153
|
join(srcDir, 'types', 'date-picker.ts'),
|
|
154
|
+
join(srcDir, 'types', 'dialog.ts'),
|
|
151
155
|
join(srcDir, 'types', 'form.ts'),
|
|
152
156
|
join(srcDir, 'types', 'heading.ts'),
|
|
153
157
|
join(srcDir, 'types', 'icon.ts'),
|
|
154
158
|
join(srcDir, 'types', 'icon-button.ts'),
|
|
155
|
-
join(srcDir, 'types', '
|
|
156
|
-
join(srcDir, 'components', 'modal', 'types.ts'),
|
|
159
|
+
join(srcDir, 'types', 'pagination.ts'),
|
|
157
160
|
join(srcDir, 'types', 'popover-menu.ts'),
|
|
158
161
|
join(srcDir, 'types', 'progress.ts'),
|
|
159
162
|
join(srcDir, 'types', 'radio.ts'),
|
|
160
|
-
join(srcDir, '
|
|
163
|
+
join(srcDir, 'types', 'rating.ts'),
|
|
164
|
+
join(srcDir, 'types', 'search-input.ts'),
|
|
161
165
|
join(srcDir, 'types', 'select.ts'),
|
|
162
|
-
join(srcDir, '
|
|
166
|
+
join(srcDir, 'types', 'tabs.ts'),
|
|
167
|
+
join(srcDir, 'types', 'text-input.ts'),
|
|
163
168
|
join(srcDir, 'types', 'text.ts'),
|
|
164
169
|
join(srcDir, 'types', 'time-picker.ts'),
|
|
165
170
|
join(srcDir, 'types', 'toast.ts'),
|
|
166
|
-
join(srcDir, '
|
|
171
|
+
join(srcDir, 'types', 'toolbar.ts'),
|
|
167
172
|
|
|
168
173
|
join(srcDir, 'layout', 'app-shell', 'types.ts'),
|
|
169
174
|
join(srcDir, 'layout', 'screen', 'types.ts'),
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type React from 'react';
|
|
2
|
+
|
|
3
|
+
import type { ZoraContentWidth } from '../internal/recipes';
|
|
4
|
+
import type { ZoraBaseProps } from '../theme/ZoraBaseProps';
|
|
5
|
+
|
|
6
|
+
export interface DialogProps extends ZoraBaseProps {
|
|
7
|
+
visible: boolean;
|
|
8
|
+
onDismiss?: () => void;
|
|
9
|
+
closeOnBackdrop?: boolean;
|
|
10
|
+
children?: React.ReactNode;
|
|
11
|
+
title?: React.ReactNode;
|
|
12
|
+
description?: React.ReactNode;
|
|
13
|
+
footer?: React.ReactNode;
|
|
14
|
+
width?: ZoraContentWidth;
|
|
15
|
+
}
|
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
import type
|
|
2
|
-
|
|
3
|
-
import type { ZoraBaseProps } from '../../theme/ZoraBaseProps';
|
|
1
|
+
import type { ZoraBaseProps } from '../theme/ZoraBaseProps';
|
|
4
2
|
|
|
5
3
|
export interface PaginationProps extends ZoraBaseProps {
|
|
6
4
|
page: number;
|
|
@@ -10,10 +8,9 @@ export interface PaginationProps extends ZoraBaseProps {
|
|
|
10
8
|
siblingCount?: number;
|
|
11
9
|
boundaryCount?: number;
|
|
12
10
|
showFirstLast?: boolean;
|
|
13
|
-
previousLabel?:
|
|
14
|
-
nextLabel?:
|
|
15
|
-
firstLabel?:
|
|
16
|
-
lastLabel?:
|
|
11
|
+
previousLabel?: string;
|
|
12
|
+
nextLabel?: string;
|
|
13
|
+
firstLabel?: string;
|
|
14
|
+
lastLabel?: string;
|
|
17
15
|
compact?: boolean;
|
|
18
|
-
testID?: string;
|
|
19
16
|
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { ZoraColor, ZoraControlSize } from '../internal/recipes';
|
|
2
|
+
import type { ZoraBaseProps } from '../theme/ZoraBaseProps';
|
|
3
|
+
|
|
4
|
+
export interface RatingProps extends ZoraBaseProps {
|
|
5
|
+
value: number;
|
|
6
|
+
max?: number;
|
|
7
|
+
color?: ZoraColor;
|
|
8
|
+
size?: ZoraControlSize;
|
|
9
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { ZoraControlSize } from '../internal/recipes';
|
|
2
|
+
import type { ZoraBaseProps } from '../theme/ZoraBaseProps';
|
|
3
|
+
|
|
4
|
+
export interface SearchInputProps extends ZoraBaseProps {
|
|
5
|
+
value?: string;
|
|
6
|
+
onValueChange?: (value: string) => void;
|
|
7
|
+
placeholder?: string;
|
|
8
|
+
onSubmit?: (value: string) => void;
|
|
9
|
+
onClear?: () => void;
|
|
10
|
+
clearable?: boolean;
|
|
11
|
+
size?: ZoraControlSize;
|
|
12
|
+
disabled?: boolean;
|
|
13
|
+
readOnly?: boolean;
|
|
14
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import type React from 'react';
|
|
2
|
+
|
|
3
|
+
import type { ZoraBaseProps } from '../theme/ZoraBaseProps';
|
|
4
|
+
|
|
5
|
+
export interface TabsProps extends ZoraBaseProps {
|
|
6
|
+
children?: React.ReactNode;
|
|
7
|
+
value?: string;
|
|
8
|
+
defaultValue?: string;
|
|
9
|
+
onValueChange?: (value: string) => void;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
export interface TabListProps extends ZoraBaseProps {
|
|
13
|
+
children?: React.ReactNode;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
export interface TabProps extends ZoraBaseProps {
|
|
17
|
+
value: string;
|
|
18
|
+
label: string;
|
|
19
|
+
disabled?: boolean;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
export interface TabPanelProps extends ZoraBaseProps {
|
|
23
|
+
value: string;
|
|
24
|
+
children?: React.ReactNode;
|
|
25
|
+
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Modal.d.ts","sourceRoot":"","sources":["../../../src/components/modal/Modal.tsx"],"names":[],"mappings":"AACA,OAAO,KAAyC,MAAM,OAAO,CAAC;AAO9D,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAmD1C;;GAEG;AACH,eAAO,MAAM,KAAK,kDAAiC,CAAC"}
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
import { Modal as SurfaceModal } from '@ankhorage/surface';
|
|
2
|
-
import React, { useCallback, useEffect, useRef } from 'react';
|
|
3
|
-
import { Box, Stack } from '../../features/layout/public';
|
|
4
|
-
import { Heading } from '../../features/typography/public';
|
|
5
|
-
import { Text } from '../../features/typography/public';
|
|
6
|
-
import { resolveDialogWidth } from '../../internal/recipes';
|
|
7
|
-
import { withZoraThemeScope } from '../../theme/withZoraThemeScope';
|
|
8
|
-
function useStableCallback(callback) {
|
|
9
|
-
const callbackRef = useRef(callback);
|
|
10
|
-
useEffect(() => {
|
|
11
|
-
callbackRef.current = callback;
|
|
12
|
-
}, [callback]);
|
|
13
|
-
return useCallback(() => {
|
|
14
|
-
callbackRef.current?.();
|
|
15
|
-
}, []);
|
|
16
|
-
}
|
|
17
|
-
function ModalInner({ themeId: _themeId, mode: _mode, children, title, description, footer, width = 'default', onDismiss, interactionPolicy, ...props }) {
|
|
18
|
-
const hasHeader = title != null || description != null;
|
|
19
|
-
const stableOnDismiss = useStableCallback(onDismiss);
|
|
20
|
-
return (<SurfaceModal {...props} onDismiss={stableOnDismiss} interactionPolicy={interactionPolicy}>
|
|
21
|
-
<Box maxWidth={resolveDialogWidth(width)} style={{ alignSelf: 'center', width: '100%' }}>
|
|
22
|
-
<Stack gap="m">
|
|
23
|
-
{hasHeader ? (<Stack gap="xs">
|
|
24
|
-
{title ? <Heading level={3}>{title}</Heading> : null}
|
|
25
|
-
{description ? (<Text emphasis="muted" variant="bodySmall">
|
|
26
|
-
{description}
|
|
27
|
-
</Text>) : null}
|
|
28
|
-
</Stack>) : null}
|
|
29
|
-
{children ? <Box>{children}</Box> : null}
|
|
30
|
-
{footer ? <Box pt="xs">{footer}</Box> : null}
|
|
31
|
-
</Stack>
|
|
32
|
-
</Box>
|
|
33
|
-
</SurfaceModal>);
|
|
34
|
-
}
|
|
35
|
-
/***
|
|
36
|
-
* Modal dialog surface with header/content/footer slots.
|
|
37
|
-
*/
|
|
38
|
-
export const Modal = withZoraThemeScope(ModalInner);
|
|
39
|
-
//# sourceMappingURL=Modal.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Modal.js","sourceRoot":"","sources":["../../../src/components/modal/Modal.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,IAAI,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAC3D,OAAO,KAAK,EAAE,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,OAAO,CAAC;AAE9D,OAAO,EAAE,GAAG,EAAE,KAAK,EAAE,MAAM,8BAA8B,CAAC;AAC1D,OAAO,EAAE,OAAO,EAAE,MAAM,kCAAkC,CAAC;AAC3D,OAAO,EAAE,IAAI,EAAE,MAAM,kCAAkC,CAAC;AACxD,OAAO,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAC;AAC5D,OAAO,EAAE,kBAAkB,EAAE,MAAM,gCAAgC,CAAC;AAGpE,SAAS,iBAAiB,CAAC,QAAkC;IAC3D,MAAM,WAAW,GAAG,MAAM,CAAC,QAAQ,CAAC,CAAC;IAErC,SAAS,CAAC,GAAG,EAAE;QACb,WAAW,CAAC,OAAO,GAAG,QAAQ,CAAC;IACjC,CAAC,EAAE,CAAC,QAAQ,CAAC,CAAC,CAAC;IAEf,OAAO,WAAW,CAAC,GAAG,EAAE;QACtB,WAAW,CAAC,OAAO,EAAE,EAAE,CAAC;IAC1B,CAAC,EAAE,EAAE,CAAC,CAAC;AACT,CAAC;AAED,SAAS,UAAU,CAAC,EAClB,OAAO,EAAE,QAAQ,EACjB,IAAI,EAAE,KAAK,EACX,QAAQ,EACR,KAAK,EACL,WAAW,EACX,MAAM,EACN,KAAK,GAAG,SAAS,EACjB,SAAS,EACT,iBAAiB,EACjB,GAAG,KAAK,EACG;IACX,MAAM,SAAS,GAAG,KAAK,IAAI,IAAI,IAAI,WAAW,IAAI,IAAI,CAAC;IACvD,MAAM,eAAe,GAAG,iBAAiB,CAAC,SAAS,CAAC,CAAC;IAErD,OAAO,CACL,CAAC,YAAY,CAAC,IAAI,KAAK,CAAC,CAAC,SAAS,CAAC,CAAC,eAAe,CAAC,CAAC,iBAAiB,CAAC,CAAC,iBAAiB,CAAC,CACxF;MAAA,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC,kBAAkB,CAAC,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,EAAE,SAAS,EAAE,QAAQ,EAAE,KAAK,EAAE,MAAM,EAAE,CAAC,CACtF;QAAA,CAAC,KAAK,CAAC,GAAG,CAAC,GAAG,CACZ;UAAA,CAAC,SAAS,CAAC,CAAC,CAAC,CACX,CAAC,KAAK,CAAC,GAAG,CAAC,IAAI,CACb;cAAA,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,IAAI,CACpD;cAAA,CAAC,WAAW,CAAC,CAAC,CAAC,CACb,CAAC,IAAI,CAAC,QAAQ,CAAC,OAAO,CAAC,OAAO,CAAC,WAAW,CACxC;kBAAA,CAAC,WAAW,CACd;gBAAA,EAAE,IAAI,CAAC,CACR,CAAC,CAAC,CAAC,IAAI,CACV;YAAA,EAAE,KAAK,CAAC,CACT,CAAC,CAAC,CAAC,IAAI,CACR;UAAA,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,QAAQ,CAAC,EAAE,GAAG,CAAC,CAAC,CAAC,CAAC,IAAI,CACxC;UAAA,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,EAAE,CAAC,IAAI,CAAC,CAAC,MAAM,CAAC,EAAE,GAAG,CAAC,CAAC,CAAC,CAAC,IAAI,CAC9C;QAAA,EAAE,KAAK,CACT;MAAA,EAAE,GAAG,CACP;IAAA,EAAE,YAAY,CAAC,CAChB,CAAC;AACJ,CAAC;AAED;;GAEG;AACH,MAAM,CAAC,MAAM,KAAK,GAAG,kBAAkB,CAAC,UAAU,CAAC,CAAC","sourcesContent":["import { Modal as SurfaceModal } from '@ankhorage/surface';\nimport React, { useCallback, useEffect, useRef } from 'react';\n\nimport { Box, Stack } from '../../features/layout/public';\nimport { Heading } from '../../features/typography/public';\nimport { Text } from '../../features/typography/public';\nimport { resolveDialogWidth } from '../../internal/recipes';\nimport { withZoraThemeScope } from '../../theme/withZoraThemeScope';\nimport type { ModalProps } from './types';\n\nfunction useStableCallback(callback: (() => void) | undefined): (() => void) | undefined {\n const callbackRef = useRef(callback);\n\n useEffect(() => {\n callbackRef.current = callback;\n }, [callback]);\n\n return useCallback(() => {\n callbackRef.current?.();\n }, []);\n}\n\nfunction ModalInner({\n themeId: _themeId,\n mode: _mode,\n children,\n title,\n description,\n footer,\n width = 'default',\n onDismiss,\n interactionPolicy,\n ...props\n}: ModalProps) {\n const hasHeader = title != null || description != null;\n const stableOnDismiss = useStableCallback(onDismiss);\n\n return (\n <SurfaceModal {...props} onDismiss={stableOnDismiss} interactionPolicy={interactionPolicy}>\n <Box maxWidth={resolveDialogWidth(width)} style={{ alignSelf: 'center', width: '100%' }}>\n <Stack gap=\"m\">\n {hasHeader ? (\n <Stack gap=\"xs\">\n {title ? <Heading level={3}>{title}</Heading> : null}\n {description ? (\n <Text emphasis=\"muted\" variant=\"bodySmall\">\n {description}\n </Text>\n ) : null}\n </Stack>\n ) : null}\n {children ? <Box>{children}</Box> : null}\n {footer ? <Box pt=\"xs\">{footer}</Box> : null}\n </Stack>\n </Box>\n </SurfaceModal>\n );\n}\n\n/***\n * Modal dialog surface with header/content/footer slots.\n */\nexport const Modal = withZoraThemeScope(ModalInner);\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/modal/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,YAAY,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/modal/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC","sourcesContent":["export { Modal } from './Modal';\nexport type { ModalProps } from './types';\n"]}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
export declare const modalMeta: {
|
|
2
|
-
readonly name: "Modal";
|
|
3
|
-
readonly category: "component";
|
|
4
|
-
readonly directManifestNode: false;
|
|
5
|
-
readonly allowedChildren: readonly [];
|
|
6
|
-
readonly note: "Overlay component; not represented as a manifest node in v1.";
|
|
7
|
-
readonly props: {};
|
|
8
|
-
};
|
|
9
|
-
//# sourceMappingURL=meta.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"meta.d.ts","sourceRoot":"","sources":["../../../src/components/modal/meta.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,SAAS;;;;;;;CAOgB,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"meta.js","sourceRoot":"","sources":["../../../src/components/modal/meta.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,SAAS,GAAG;IACvB,IAAI,EAAE,OAAO;IACb,QAAQ,EAAE,WAAW;IACrB,kBAAkB,EAAE,KAAK;IACzB,eAAe,EAAE,EAAE;IACnB,IAAI,EAAE,8DAA8D;IACpE,KAAK,EAAE,EAAE;CAC2B,CAAC","sourcesContent":["import type { ZoraComponentMeta } from '../../metadata';\n\nexport const modalMeta = {\n name: 'Modal',\n category: 'component',\n directManifestNode: false,\n allowedChildren: [],\n note: 'Overlay component; not represented as a manifest node in v1.',\n props: {},\n} as const satisfies ZoraComponentMeta;\n"]}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import type { ModalProps as SurfaceModalProps } from '@ankhorage/surface';
|
|
2
|
-
import type React from 'react';
|
|
3
|
-
import type { ZoraContentWidth } from '../../internal/recipes';
|
|
4
|
-
import type { ZoraBaseProps } from '../../theme/ZoraBaseProps';
|
|
5
|
-
export interface ModalProps extends ZoraBaseProps, Pick<Omit<SurfaceModalProps, 'mode' | 'themeId'>, 'closeOnBackdrop' | 'onDismiss' | 'visible'> {
|
|
6
|
-
children?: React.ReactNode;
|
|
7
|
-
title?: React.ReactNode;
|
|
8
|
-
description?: React.ReactNode;
|
|
9
|
-
footer?: React.ReactNode;
|
|
10
|
-
width?: ZoraContentWidth;
|
|
11
|
-
}
|
|
12
|
-
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/modal/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,IAAI,iBAAiB,EAAE,MAAM,oBAAoB,CAAC;AAC1E,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAC/D,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAE/D,MAAM,WAAW,UACf,SACE,aAAa,EACb,IAAI,CAAC,IAAI,CAAC,iBAAiB,EAAE,MAAM,GAAG,SAAS,CAAC,EAAE,iBAAiB,GAAG,WAAW,GAAG,SAAS,CAAC;IAChG,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,KAAK,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACxB,WAAW,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC9B,MAAM,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACzB,KAAK,CAAC,EAAE,gBAAgB,CAAC;CAC1B"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/components/modal/types.ts"],"names":[],"mappings":"","sourcesContent":["import type { ModalProps as SurfaceModalProps } from '@ankhorage/surface';\nimport type React from 'react';\n\nimport type { ZoraContentWidth } from '../../internal/recipes';\nimport type { ZoraBaseProps } from '../../theme/ZoraBaseProps';\n\nexport interface ModalProps\n extends\n ZoraBaseProps,\n Pick<Omit<SurfaceModalProps, 'mode' | 'themeId'>, 'closeOnBackdrop' | 'onDismiss' | 'visible'> {\n children?: React.ReactNode;\n title?: React.ReactNode;\n description?: React.ReactNode;\n footer?: React.ReactNode;\n width?: ZoraContentWidth;\n}\n"]}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import type { PaginationProps } from './types';
|
|
3
|
-
/***
|
|
4
|
-
* Pagination control for navigating between pages of results.
|
|
5
|
-
*/
|
|
6
|
-
export declare const Pagination: (props: PaginationProps) => React.ReactElement | null;
|
|
7
|
-
//# sourceMappingURL=Pagination.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Pagination.d.ts","sourceRoot":"","sources":["../../../src/components/pagination/Pagination.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAM1B,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AA6L/C;;GAEG;AACH,eAAO,MAAM,UAAU,uDAAsC,CAAC"}
|