@react-navigation/elements 2.0.0-rc.9 → 2.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/lib/commonjs/{Background.cjs → Background.js} +1 -1
- package/lib/commonjs/{Button.cjs → Button.js} +3 -3
- package/lib/commonjs/Header/{Header.cjs → Header.js} +114 -42
- package/lib/commonjs/Header/Header.js.map +1 -0
- package/lib/commonjs/Header/{HeaderBackButton.cjs → HeaderBackButton.js} +45 -58
- package/lib/commonjs/Header/HeaderBackButton.js.map +1 -0
- package/lib/commonjs/Header/{HeaderBackContext.cjs → HeaderBackContext.js} +2 -2
- package/lib/commonjs/Header/{HeaderBackground.cjs → HeaderBackground.js} +1 -1
- package/lib/commonjs/Header/{HeaderButton.cjs → HeaderButton.js} +2 -2
- package/lib/commonjs/Header/{HeaderHeightContext.cjs → HeaderHeightContext.js} +2 -2
- package/lib/commonjs/Header/HeaderIcon.js +44 -0
- package/lib/commonjs/Header/HeaderIcon.js.map +1 -0
- package/lib/commonjs/Header/HeaderSearchBar.js +267 -0
- package/lib/commonjs/Header/HeaderSearchBar.js.map +1 -0
- package/lib/commonjs/Header/{HeaderShownContext.cjs → HeaderShownContext.js} +2 -2
- package/lib/commonjs/Header/{HeaderTitle.cjs → HeaderTitle.js} +1 -1
- package/lib/commonjs/Header/{getDefaultHeaderHeight.cjs → getDefaultHeaderHeight.js} +1 -1
- package/lib/commonjs/Header/{getHeaderTitle.cjs → getHeaderTitle.js} +1 -1
- package/lib/commonjs/Header/{useHeaderHeight.cjs → useHeaderHeight.js} +2 -2
- package/lib/commonjs/Label/{Label.cjs → Label.js} +2 -2
- package/lib/commonjs/Label/{getLabel.cjs → getLabel.js} +1 -1
- package/lib/commonjs/{MaskedView.android.cjs → MaskedView.android.js} +2 -2
- package/lib/commonjs/{MaskedView.ios.cjs → MaskedView.ios.js} +2 -2
- package/lib/commonjs/{MaskedView.cjs → MaskedView.js} +1 -1
- package/lib/commonjs/{MaskedViewNative.cjs → MaskedViewNative.js} +1 -1
- package/lib/commonjs/{MissingIcon.cjs → MissingIcon.js} +3 -2
- package/lib/commonjs/MissingIcon.js.map +1 -0
- package/lib/commonjs/{PlatformPressable.cjs → PlatformPressable.js} +16 -15
- package/lib/commonjs/PlatformPressable.js.map +1 -0
- package/lib/commonjs/{ResourceSavingView.cjs → ResourceSavingView.js} +1 -1
- package/lib/commonjs/{SafeAreaProviderCompat.cjs → SafeAreaProviderCompat.js} +3 -1
- package/lib/commonjs/{SafeAreaProviderCompat.cjs.map → SafeAreaProviderCompat.js.map} +1 -1
- package/lib/commonjs/{Screen.cjs → Screen.js} +22 -20
- package/lib/commonjs/Screen.js.map +1 -0
- package/lib/commonjs/{Text.cjs → Text.js} +3 -1
- package/lib/commonjs/Text.js.map +1 -0
- package/lib/commonjs/assets/back-icon-mask.png +0 -0
- package/lib/commonjs/assets/back-icon@4x.ios.png +0 -0
- package/lib/commonjs/assets/clear-icon.png +0 -0
- package/lib/commonjs/assets/clear-icon@1x.png +0 -0
- package/lib/commonjs/assets/clear-icon@2x.png +0 -0
- package/lib/commonjs/assets/clear-icon@3x.png +0 -0
- package/lib/commonjs/assets/clear-icon@4x.png +0 -0
- package/lib/commonjs/assets/close-icon.png +0 -0
- package/lib/commonjs/assets/close-icon@1x.png +0 -0
- package/lib/commonjs/assets/close-icon@2x.png +0 -0
- package/lib/commonjs/assets/close-icon@3x.png +0 -0
- package/lib/commonjs/assets/close-icon@4x.png +0 -0
- package/lib/commonjs/assets/search-icon.png +0 -0
- package/lib/commonjs/assets/search-icon@1x.android.png +0 -0
- package/lib/commonjs/assets/search-icon@1x.ios.png +0 -0
- package/lib/commonjs/assets/search-icon@2x.android.png +0 -0
- package/lib/commonjs/assets/search-icon@2x.ios.png +0 -0
- package/lib/commonjs/assets/search-icon@3x.android.png +0 -0
- package/lib/commonjs/assets/search-icon@3x.ios.png +0 -0
- package/lib/commonjs/assets/search-icon@4x.android.png +0 -0
- package/lib/commonjs/assets/search-icon@4x.ios.png +0 -0
- package/lib/commonjs/{getDefaultSidebarWidth.cjs → getDefaultSidebarWidth.js} +1 -1
- package/lib/commonjs/{getNamedContext.cjs → getNamedContext.js} +1 -1
- package/lib/commonjs/{index.cjs → index.js} +28 -25
- package/lib/commonjs/index.js.map +1 -0
- package/lib/commonjs/package.json +1 -0
- package/lib/commonjs/{types.cjs → types.js} +1 -1
- package/lib/module/{Background.mjs → Background.js} +3 -1
- package/lib/module/Background.js.map +1 -0
- package/lib/module/{Button.mjs → Button.js} +5 -3
- package/lib/module/Button.js.map +1 -0
- package/lib/module/Header/{Header.mjs → Header.js} +116 -43
- package/lib/module/Header/Header.js.map +1 -0
- package/lib/module/Header/{HeaderBackButton.mjs → HeaderBackButton.js} +47 -58
- package/lib/module/Header/HeaderBackButton.js.map +1 -0
- package/lib/module/Header/HeaderBackContext.js +5 -0
- package/lib/module/Header/HeaderBackContext.js.map +1 -0
- package/lib/module/Header/{HeaderBackground.mjs → HeaderBackground.js} +3 -1
- package/lib/module/Header/HeaderBackground.js.map +1 -0
- package/lib/module/Header/{HeaderButton.mjs → HeaderButton.js} +4 -2
- package/lib/module/Header/HeaderButton.js.map +1 -0
- package/lib/module/Header/HeaderHeightContext.js +5 -0
- package/lib/module/Header/HeaderHeightContext.js.map +1 -0
- package/lib/module/Header/HeaderIcon.js +39 -0
- package/lib/module/Header/HeaderIcon.js.map +1 -0
- package/lib/module/Header/HeaderSearchBar.js +260 -0
- package/lib/module/Header/HeaderSearchBar.js.map +1 -0
- package/lib/module/Header/HeaderShownContext.js +5 -0
- package/lib/module/Header/{HeaderShownContext.mjs.map → HeaderShownContext.js.map} +1 -1
- package/lib/module/Header/{HeaderTitle.mjs → HeaderTitle.js} +3 -1
- package/lib/module/Header/HeaderTitle.js.map +1 -0
- package/lib/module/Header/{getDefaultHeaderHeight.mjs → getDefaultHeaderHeight.js} +3 -1
- package/lib/module/Header/getDefaultHeaderHeight.js.map +1 -0
- package/lib/module/Header/{getHeaderTitle.mjs → getHeaderTitle.js} +3 -1
- package/lib/module/Header/getHeaderTitle.js.map +1 -0
- package/lib/module/Header/{useHeaderHeight.mjs → useHeaderHeight.js} +4 -2
- package/lib/module/Header/useHeaderHeight.js.map +1 -0
- package/lib/module/Label/{Label.mjs → Label.js} +4 -2
- package/lib/module/Label/Label.js.map +1 -0
- package/lib/module/Label/{getLabel.mjs → getLabel.js} +3 -1
- package/lib/module/Label/getLabel.js.map +1 -0
- package/lib/module/MaskedView.android.js +4 -0
- package/lib/module/MaskedView.android.js.map +1 -0
- package/lib/module/MaskedView.ios.js +4 -0
- package/lib/module/MaskedView.ios.js.map +1 -0
- package/lib/module/{MaskedView.mjs → MaskedView.js} +3 -1
- package/lib/module/MaskedView.js.map +1 -0
- package/lib/module/{MaskedViewNative.mjs → MaskedViewNative.js} +3 -1
- package/lib/module/MaskedViewNative.js.map +1 -0
- package/lib/module/{MissingIcon.mjs → MissingIcon.js} +5 -2
- package/lib/module/MissingIcon.js.map +1 -0
- package/lib/module/{PlatformPressable.mjs → PlatformPressable.js} +18 -15
- package/lib/module/PlatformPressable.js.map +1 -0
- package/lib/module/{ResourceSavingView.mjs → ResourceSavingView.js} +3 -1
- package/lib/module/ResourceSavingView.js.map +1 -0
- package/lib/module/{SafeAreaProviderCompat.mjs → SafeAreaProviderCompat.js} +5 -1
- package/lib/module/SafeAreaProviderCompat.js.map +1 -0
- package/lib/module/{Screen.mjs → Screen.js} +24 -20
- package/lib/module/Screen.js.map +1 -0
- package/lib/module/{Text.mjs → Text.js} +4 -1
- package/lib/module/Text.js.map +1 -0
- package/lib/module/assets/back-icon-mask.png +0 -0
- package/lib/module/assets/back-icon@4x.ios.png +0 -0
- package/lib/module/assets/clear-icon.png +0 -0
- package/lib/module/assets/clear-icon@1x.png +0 -0
- package/lib/module/assets/clear-icon@2x.png +0 -0
- package/lib/module/assets/clear-icon@3x.png +0 -0
- package/lib/module/assets/clear-icon@4x.png +0 -0
- package/lib/module/assets/close-icon.png +0 -0
- package/lib/module/assets/close-icon@1x.png +0 -0
- package/lib/module/assets/close-icon@2x.png +0 -0
- package/lib/module/assets/close-icon@3x.png +0 -0
- package/lib/module/assets/close-icon@4x.png +0 -0
- package/lib/module/assets/search-icon.png +0 -0
- package/lib/module/assets/search-icon@1x.android.png +0 -0
- package/lib/module/assets/search-icon@1x.ios.png +0 -0
- package/lib/module/assets/search-icon@2x.android.png +0 -0
- package/lib/module/assets/search-icon@2x.ios.png +0 -0
- package/lib/module/assets/search-icon@3x.android.png +0 -0
- package/lib/module/assets/search-icon@3x.ios.png +0 -0
- package/lib/module/assets/search-icon@4x.android.png +0 -0
- package/lib/module/assets/search-icon@4x.ios.png +0 -0
- package/lib/module/{getDefaultSidebarWidth.mjs → getDefaultSidebarWidth.js} +3 -1
- package/lib/module/getDefaultSidebarWidth.js.map +1 -0
- package/lib/module/{getNamedContext.mjs → getNamedContext.js} +3 -1
- package/lib/module/getNamedContext.js.map +1 -0
- package/lib/module/index.js +32 -0
- package/lib/module/index.js.map +1 -0
- package/lib/module/package.json +1 -0
- package/lib/module/types.js +4 -0
- package/lib/typescript/commonjs/package.json +1 -0
- package/lib/typescript/commonjs/src/Background.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/Button.d.ts.map +1 -0
- package/lib/typescript/{src → commonjs/src}/Header/Header.d.ts +13 -0
- package/lib/typescript/commonjs/src/Header/Header.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/Header/HeaderBackButton.d.ts +3 -0
- package/lib/typescript/commonjs/src/Header/HeaderBackButton.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/Header/HeaderBackContext.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/Header/HeaderBackground.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/Header/HeaderButton.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/Header/HeaderHeightContext.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/Header/HeaderIcon.d.ts +5 -0
- package/lib/typescript/commonjs/src/Header/HeaderIcon.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/Header/HeaderSearchBar.d.ts +10 -0
- package/lib/typescript/commonjs/src/Header/HeaderSearchBar.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/Header/HeaderShownContext.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/Header/HeaderTitle.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/Header/getDefaultHeaderHeight.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/Header/getHeaderTitle.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/Header/useHeaderHeight.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/Label/Label.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/Label/getLabel.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/MaskedView.android.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/MaskedView.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/MaskedView.ios.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/MaskedViewNative.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/MissingIcon.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/PlatformPressable.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/ResourceSavingView.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/SafeAreaProviderCompat.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/Screen.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/Text.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/getDefaultSidebarWidth.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/getNamedContext.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/index.d.ts.map +1 -0
- package/lib/typescript/{src → commonjs/src}/types.d.ts +73 -10
- package/lib/typescript/commonjs/src/types.d.ts.map +1 -0
- package/lib/typescript/commonjs/tsconfig.build.tsbuildinfo +1 -0
- package/lib/typescript/module/package.json +1 -0
- package/lib/typescript/module/src/Background.d.ts +9 -0
- package/lib/typescript/module/src/Background.d.ts.map +1 -0
- package/lib/typescript/module/src/Button.d.ts +13 -0
- package/lib/typescript/module/src/Button.d.ts.map +1 -0
- package/lib/typescript/module/src/Header/Header.d.ts +31 -0
- package/lib/typescript/module/src/Header/Header.d.ts.map +1 -0
- package/lib/typescript/module/src/Header/HeaderBackButton.d.ts +3 -0
- package/lib/typescript/module/src/Header/HeaderBackButton.d.ts.map +1 -0
- package/lib/typescript/module/src/Header/HeaderBackContext.d.ts +5 -0
- package/lib/typescript/module/src/Header/HeaderBackContext.d.ts.map +1 -0
- package/lib/typescript/module/src/Header/HeaderBackground.d.ts +9 -0
- package/lib/typescript/module/src/Header/HeaderBackground.d.ts.map +1 -0
- package/lib/typescript/module/src/Header/HeaderButton.d.ts +3 -0
- package/lib/typescript/module/src/Header/HeaderButton.d.ts.map +1 -0
- package/lib/typescript/module/src/Header/HeaderHeightContext.d.ts +2 -0
- package/lib/typescript/module/src/Header/HeaderHeightContext.d.ts.map +1 -0
- package/lib/typescript/module/src/Header/HeaderIcon.d.ts +5 -0
- package/lib/typescript/module/src/Header/HeaderIcon.d.ts.map +1 -0
- package/lib/typescript/module/src/Header/HeaderSearchBar.d.ts +10 -0
- package/lib/typescript/module/src/Header/HeaderSearchBar.d.ts.map +1 -0
- package/lib/typescript/module/src/Header/HeaderShownContext.d.ts +2 -0
- package/lib/typescript/module/src/Header/HeaderShownContext.d.ts.map +1 -0
- package/lib/typescript/module/src/Header/HeaderTitle.d.ts +9 -0
- package/lib/typescript/module/src/Header/HeaderTitle.d.ts.map +1 -0
- package/lib/typescript/module/src/Header/getDefaultHeaderHeight.d.ts +3 -0
- package/lib/typescript/module/src/Header/getDefaultHeaderHeight.d.ts.map +1 -0
- package/lib/typescript/module/src/Header/getHeaderTitle.d.ts +6 -0
- package/lib/typescript/module/src/Header/getHeaderTitle.d.ts.map +1 -0
- package/lib/typescript/module/src/Header/useHeaderHeight.d.ts +2 -0
- package/lib/typescript/module/src/Header/useHeaderHeight.d.ts.map +1 -0
- package/lib/typescript/module/src/Label/Label.d.ts +9 -0
- package/lib/typescript/module/src/Label/Label.d.ts.map +1 -0
- package/lib/typescript/module/src/Label/getLabel.d.ts +5 -0
- package/lib/typescript/module/src/Label/getLabel.d.ts.map +1 -0
- package/lib/typescript/module/src/MaskedView.android.d.ts +2 -0
- package/lib/typescript/module/src/MaskedView.android.d.ts.map +1 -0
- package/lib/typescript/module/src/MaskedView.d.ts +11 -0
- package/lib/typescript/module/src/MaskedView.d.ts.map +1 -0
- package/lib/typescript/module/src/MaskedView.ios.d.ts +2 -0
- package/lib/typescript/module/src/MaskedView.ios.d.ts.map +1 -0
- package/lib/typescript/module/src/MaskedViewNative.d.ts +11 -0
- package/lib/typescript/module/src/MaskedViewNative.d.ts.map +1 -0
- package/lib/typescript/module/src/MissingIcon.d.ts +9 -0
- package/lib/typescript/module/src/MissingIcon.d.ts.map +1 -0
- package/lib/typescript/module/src/PlatformPressable.d.ts +21 -0
- package/lib/typescript/module/src/PlatformPressable.d.ts.map +1 -0
- package/lib/typescript/module/src/ResourceSavingView.d.ts +10 -0
- package/lib/typescript/module/src/ResourceSavingView.d.ts.map +1 -0
- package/lib/typescript/module/src/SafeAreaProviderCompat.d.ts +13 -0
- package/lib/typescript/module/src/SafeAreaProviderCompat.d.ts.map +1 -0
- package/lib/typescript/module/src/Screen.d.ts +18 -0
- package/lib/typescript/module/src/Screen.d.ts.map +1 -0
- package/lib/typescript/module/src/Text.d.ts +3 -0
- package/lib/typescript/module/src/Text.d.ts.map +1 -0
- package/lib/typescript/module/src/getDefaultSidebarWidth.d.ts +4 -0
- package/lib/typescript/module/src/getDefaultSidebarWidth.d.ts.map +1 -0
- package/lib/typescript/module/src/getNamedContext.d.ts +6 -0
- package/lib/typescript/module/src/getNamedContext.d.ts.map +1 -0
- package/lib/typescript/module/src/index.d.ts +25 -0
- package/lib/typescript/module/src/index.d.ts.map +1 -0
- package/lib/typescript/module/src/types.d.ts +289 -0
- package/lib/typescript/module/src/types.d.ts.map +1 -0
- package/lib/typescript/module/tsconfig.build.tsbuildinfo +1 -0
- package/package.json +27 -14
- package/src/Header/Header.tsx +157 -60
- package/src/Header/HeaderBackButton.tsx +83 -79
- package/src/Header/HeaderIcon.tsx +36 -0
- package/src/Header/HeaderSearchBar.tsx +283 -0
- package/src/MissingIcon.tsx +3 -1
- package/src/PlatformPressable.tsx +20 -13
- package/src/SafeAreaProviderCompat.tsx +2 -1
- package/src/Screen.tsx +19 -14
- package/src/Text.tsx +1 -0
- package/src/assets/back-icon-mask.png +0 -0
- package/src/assets/back-icon@4x.ios.png +0 -0
- package/src/assets/clear-icon.png +0 -0
- package/src/assets/clear-icon@1x.png +0 -0
- package/src/assets/clear-icon@2x.png +0 -0
- package/src/assets/clear-icon@3x.png +0 -0
- package/src/assets/clear-icon@4x.png +0 -0
- package/src/assets/close-icon.png +0 -0
- package/src/assets/close-icon@1x.png +0 -0
- package/src/assets/close-icon@2x.png +0 -0
- package/src/assets/close-icon@3x.png +0 -0
- package/src/assets/close-icon@4x.png +0 -0
- package/src/assets/search-icon.png +0 -0
- package/src/assets/search-icon@1x.android.png +0 -0
- package/src/assets/search-icon@1x.ios.png +0 -0
- package/src/assets/search-icon@2x.android.png +0 -0
- package/src/assets/search-icon@2x.ios.png +0 -0
- package/src/assets/search-icon@3x.android.png +0 -0
- package/src/assets/search-icon@3x.ios.png +0 -0
- package/src/assets/search-icon@4x.android.png +0 -0
- package/src/assets/search-icon@4x.ios.png +0 -0
- package/src/index.tsx +10 -1
- package/src/types.tsx +77 -10
- package/lib/commonjs/Header/Header.cjs.map +0 -1
- package/lib/commonjs/Header/HeaderBackButton.cjs.map +0 -1
- package/lib/commonjs/MissingIcon.cjs.map +0 -1
- package/lib/commonjs/PlatformPressable.cjs.map +0 -1
- package/lib/commonjs/Screen.cjs.map +0 -1
- package/lib/commonjs/Text.cjs.map +0 -1
- package/lib/commonjs/index.cjs.map +0 -1
- package/lib/module/Background.mjs.map +0 -1
- package/lib/module/Button.mjs.map +0 -1
- package/lib/module/Header/Header.mjs.map +0 -1
- package/lib/module/Header/HeaderBackButton.mjs.map +0 -1
- package/lib/module/Header/HeaderBackContext.mjs +0 -3
- package/lib/module/Header/HeaderBackContext.mjs.map +0 -1
- package/lib/module/Header/HeaderBackground.mjs.map +0 -1
- package/lib/module/Header/HeaderButton.mjs.map +0 -1
- package/lib/module/Header/HeaderHeightContext.mjs +0 -3
- package/lib/module/Header/HeaderHeightContext.mjs.map +0 -1
- package/lib/module/Header/HeaderShownContext.mjs +0 -3
- package/lib/module/Header/HeaderTitle.mjs.map +0 -1
- package/lib/module/Header/getDefaultHeaderHeight.mjs.map +0 -1
- package/lib/module/Header/getHeaderTitle.mjs.map +0 -1
- package/lib/module/Header/useHeaderHeight.mjs.map +0 -1
- package/lib/module/Label/Label.mjs.map +0 -1
- package/lib/module/Label/getLabel.mjs.map +0 -1
- package/lib/module/MaskedView.android.mjs +0 -2
- package/lib/module/MaskedView.android.mjs.map +0 -1
- package/lib/module/MaskedView.ios.mjs +0 -2
- package/lib/module/MaskedView.ios.mjs.map +0 -1
- package/lib/module/MaskedView.mjs.map +0 -1
- package/lib/module/MaskedViewNative.mjs.map +0 -1
- package/lib/module/MissingIcon.mjs.map +0 -1
- package/lib/module/PlatformPressable.mjs.map +0 -1
- package/lib/module/ResourceSavingView.mjs.map +0 -1
- package/lib/module/SafeAreaProviderCompat.mjs.map +0 -1
- package/lib/module/Screen.mjs.map +0 -1
- package/lib/module/Text.mjs.map +0 -1
- package/lib/module/getDefaultSidebarWidth.mjs.map +0 -1
- package/lib/module/getNamedContext.mjs.map +0 -1
- package/lib/module/index.mjs +0 -27
- package/lib/module/index.mjs.map +0 -1
- package/lib/module/types.mjs +0 -2
- package/lib/typescript/src/Background.d.ts.map +0 -1
- package/lib/typescript/src/Button.d.ts.map +0 -1
- package/lib/typescript/src/Header/Header.d.ts.map +0 -1
- package/lib/typescript/src/Header/HeaderBackButton.d.ts +0 -3
- package/lib/typescript/src/Header/HeaderBackButton.d.ts.map +0 -1
- package/lib/typescript/src/Header/HeaderBackContext.d.ts.map +0 -1
- package/lib/typescript/src/Header/HeaderBackground.d.ts.map +0 -1
- package/lib/typescript/src/Header/HeaderButton.d.ts.map +0 -1
- package/lib/typescript/src/Header/HeaderHeightContext.d.ts.map +0 -1
- package/lib/typescript/src/Header/HeaderShownContext.d.ts.map +0 -1
- package/lib/typescript/src/Header/HeaderTitle.d.ts.map +0 -1
- package/lib/typescript/src/Header/getDefaultHeaderHeight.d.ts.map +0 -1
- package/lib/typescript/src/Header/getHeaderTitle.d.ts.map +0 -1
- package/lib/typescript/src/Header/useHeaderHeight.d.ts.map +0 -1
- package/lib/typescript/src/Label/Label.d.ts.map +0 -1
- package/lib/typescript/src/Label/getLabel.d.ts.map +0 -1
- package/lib/typescript/src/MaskedView.android.d.ts.map +0 -1
- package/lib/typescript/src/MaskedView.d.ts.map +0 -1
- package/lib/typescript/src/MaskedView.ios.d.ts.map +0 -1
- package/lib/typescript/src/MaskedViewNative.d.ts.map +0 -1
- package/lib/typescript/src/MissingIcon.d.ts.map +0 -1
- package/lib/typescript/src/PlatformPressable.d.ts.map +0 -1
- package/lib/typescript/src/ResourceSavingView.d.ts.map +0 -1
- package/lib/typescript/src/SafeAreaProviderCompat.d.ts.map +0 -1
- package/lib/typescript/src/Screen.d.ts.map +0 -1
- package/lib/typescript/src/Text.d.ts.map +0 -1
- package/lib/typescript/src/getDefaultSidebarWidth.d.ts.map +0 -1
- package/lib/typescript/src/getNamedContext.d.ts.map +0 -1
- package/lib/typescript/src/index.d.ts.map +0 -1
- package/lib/typescript/src/types.d.ts.map +0 -1
- /package/lib/commonjs/{Background.cjs.map → Background.js.map} +0 -0
- /package/lib/commonjs/{Button.cjs.map → Button.js.map} +0 -0
- /package/lib/commonjs/Header/{HeaderBackContext.cjs.map → HeaderBackContext.js.map} +0 -0
- /package/lib/commonjs/Header/{HeaderBackground.cjs.map → HeaderBackground.js.map} +0 -0
- /package/lib/commonjs/Header/{HeaderButton.cjs.map → HeaderButton.js.map} +0 -0
- /package/lib/commonjs/Header/{HeaderHeightContext.cjs.map → HeaderHeightContext.js.map} +0 -0
- /package/lib/commonjs/Header/{HeaderShownContext.cjs.map → HeaderShownContext.js.map} +0 -0
- /package/lib/commonjs/Header/{HeaderTitle.cjs.map → HeaderTitle.js.map} +0 -0
- /package/lib/commonjs/Header/{getDefaultHeaderHeight.cjs.map → getDefaultHeaderHeight.js.map} +0 -0
- /package/lib/commonjs/Header/{getHeaderTitle.cjs.map → getHeaderTitle.js.map} +0 -0
- /package/lib/commonjs/Header/{useHeaderHeight.cjs.map → useHeaderHeight.js.map} +0 -0
- /package/lib/commonjs/Label/{Label.cjs.map → Label.js.map} +0 -0
- /package/lib/commonjs/Label/{getLabel.cjs.map → getLabel.js.map} +0 -0
- /package/lib/commonjs/{MaskedView.android.cjs.map → MaskedView.android.js.map} +0 -0
- /package/lib/commonjs/{MaskedView.ios.cjs.map → MaskedView.ios.js.map} +0 -0
- /package/lib/commonjs/{MaskedView.cjs.map → MaskedView.js.map} +0 -0
- /package/lib/commonjs/{MaskedViewNative.cjs.map → MaskedViewNative.js.map} +0 -0
- /package/lib/commonjs/{ResourceSavingView.cjs.map → ResourceSavingView.js.map} +0 -0
- /package/lib/commonjs/{getDefaultSidebarWidth.cjs.map → getDefaultSidebarWidth.js.map} +0 -0
- /package/lib/commonjs/{getNamedContext.cjs.map → getNamedContext.js.map} +0 -0
- /package/lib/commonjs/{types.cjs.map → types.js.map} +0 -0
- /package/lib/module/{types.mjs.map → types.js.map} +0 -0
- /package/lib/typescript/{src → commonjs/src}/Background.d.ts +0 -0
- /package/lib/typescript/{src → commonjs/src}/Button.d.ts +0 -0
- /package/lib/typescript/{src → commonjs/src}/Header/HeaderBackContext.d.ts +0 -0
- /package/lib/typescript/{src → commonjs/src}/Header/HeaderBackground.d.ts +0 -0
- /package/lib/typescript/{src → commonjs/src}/Header/HeaderButton.d.ts +0 -0
- /package/lib/typescript/{src → commonjs/src}/Header/HeaderHeightContext.d.ts +0 -0
- /package/lib/typescript/{src → commonjs/src}/Header/HeaderShownContext.d.ts +0 -0
- /package/lib/typescript/{src → commonjs/src}/Header/HeaderTitle.d.ts +0 -0
- /package/lib/typescript/{src → commonjs/src}/Header/getDefaultHeaderHeight.d.ts +0 -0
- /package/lib/typescript/{src → commonjs/src}/Header/getHeaderTitle.d.ts +0 -0
- /package/lib/typescript/{src → commonjs/src}/Header/useHeaderHeight.d.ts +0 -0
- /package/lib/typescript/{src → commonjs/src}/Label/Label.d.ts +0 -0
- /package/lib/typescript/{src → commonjs/src}/Label/getLabel.d.ts +0 -0
- /package/lib/typescript/{src → commonjs/src}/MaskedView.android.d.ts +0 -0
- /package/lib/typescript/{src → commonjs/src}/MaskedView.d.ts +0 -0
- /package/lib/typescript/{src → commonjs/src}/MaskedView.ios.d.ts +0 -0
- /package/lib/typescript/{src → commonjs/src}/MaskedViewNative.d.ts +0 -0
- /package/lib/typescript/{src → commonjs/src}/MissingIcon.d.ts +0 -0
- /package/lib/typescript/{src → commonjs/src}/PlatformPressable.d.ts +0 -0
- /package/lib/typescript/{src → commonjs/src}/ResourceSavingView.d.ts +0 -0
- /package/lib/typescript/{src → commonjs/src}/SafeAreaProviderCompat.d.ts +0 -0
- /package/lib/typescript/{src → commonjs/src}/Screen.d.ts +0 -0
- /package/lib/typescript/{src → commonjs/src}/Text.d.ts +0 -0
- /package/lib/typescript/{src → commonjs/src}/getDefaultSidebarWidth.d.ts +0 -0
- /package/lib/typescript/{src → commonjs/src}/getNamedContext.d.ts +0 -0
- /package/lib/typescript/{src → commonjs/src}/index.d.ts +0 -0
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { Animated, type StyleProp, type ViewStyle } from 'react-native';
|
|
2
|
+
import type { HeaderOptions } from '../types';
|
|
3
|
+
type Props = HeaderOptions['headerSearchBarOptions'] & {
|
|
4
|
+
visible: boolean;
|
|
5
|
+
onClose: () => void;
|
|
6
|
+
style?: Animated.WithAnimatedValue<StyleProp<ViewStyle>>;
|
|
7
|
+
};
|
|
8
|
+
export declare function HeaderSearchBar({ visible, inputType, autoFocus, placeholder, cancelButtonText, onChangeText, onClose, style, ...rest }: Props): import("react/jsx-runtime").JSX.Element | null;
|
|
9
|
+
export {};
|
|
10
|
+
//# sourceMappingURL=HeaderSearchBar.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"HeaderSearchBar.d.ts","sourceRoot":"","sources":["../../../../../src/Header/HeaderSearchBar.tsx"],"names":[],"mappings":"AAGA,OAAO,EACL,QAAQ,EAGR,KAAK,SAAS,EAId,KAAK,SAAS,EACf,MAAM,cAAc,CAAC;AAOtB,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAI9C,KAAK,KAAK,GAAG,aAAa,CAAC,wBAAwB,CAAC,GAAG;IACrD,OAAO,EAAE,OAAO,CAAC;IACjB,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,KAAK,CAAC,EAAE,QAAQ,CAAC,iBAAiB,CAAC,SAAS,CAAC,SAAS,CAAC,CAAC,CAAC;CAC1D,CAAC;AASF,wBAAgB,eAAe,CAAC,EAC9B,OAAO,EACP,SAAS,EACT,SAAgB,EAChB,WAAsB,EACtB,gBAA2B,EAC3B,YAAY,EACZ,OAAO,EACP,KAAK,EACL,GAAG,IAAI,EACR,EAAE,KAAK,kDAqKP"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"HeaderShownContext.d.ts","sourceRoot":"","sources":["../../../../../src/Header/HeaderShownContext.tsx"],"names":[],"mappings":"AAEA,eAAO,MAAM,kBAAkB,kCAA+C,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Animated, type StyleProp, type TextProps, type TextStyle } from 'react-native';
|
|
2
|
+
type Props = Omit<TextProps, 'style'> & {
|
|
3
|
+
tintColor?: string;
|
|
4
|
+
children?: string;
|
|
5
|
+
style?: Animated.WithAnimatedValue<StyleProp<TextStyle>>;
|
|
6
|
+
};
|
|
7
|
+
export declare function HeaderTitle({ tintColor, style, ...rest }: Props): import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export {};
|
|
9
|
+
//# sourceMappingURL=HeaderTitle.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"HeaderTitle.d.ts","sourceRoot":"","sources":["../../../../../src/Header/HeaderTitle.tsx"],"names":[],"mappings":"AACA,OAAO,EACL,QAAQ,EAER,KAAK,SAAS,EAEd,KAAK,SAAS,EACd,KAAK,SAAS,EACf,MAAM,cAAc,CAAC;AAEtB,KAAK,KAAK,GAAG,IAAI,CAAC,SAAS,EAAE,OAAO,CAAC,GAAG;IACtC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,KAAK,CAAC,EAAE,QAAQ,CAAC,iBAAiB,CAAC,SAAS,CAAC,SAAS,CAAC,CAAC,CAAC;CAC1D,CAAC;AAEF,wBAAgB,WAAW,CAAC,EAAE,SAAS,EAAE,KAAK,EAAE,GAAG,IAAI,EAAE,EAAE,KAAK,2CAiB/D"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getDefaultHeaderHeight.d.ts","sourceRoot":"","sources":["../../../../../src/Header/getDefaultHeaderHeight.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAEvC,wBAAgB,sBAAsB,CACpC,MAAM,EAAE,MAAM,EACd,iBAAiB,EAAE,OAAO,EAC1B,QAAQ,EAAE,MAAM,GACf,MAAM,CAkCR"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getHeaderTitle.d.ts","sourceRoot":"","sources":["../../../../../src/Header/getHeaderTitle.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAE9C,wBAAgB,cAAc,CAC5B,OAAO,EAAE;IAAE,KAAK,CAAC,EAAE,MAAM,CAAC;IAAC,WAAW,CAAC,EAAE,aAAa,CAAC,aAAa,CAAC,CAAA;CAAE,EACvE,QAAQ,EAAE,MAAM,GACf,MAAM,CAMR"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useHeaderHeight.d.ts","sourceRoot":"","sources":["../../../../../src/Header/useHeaderHeight.tsx"],"names":[],"mappings":"AAIA,wBAAgB,eAAe,WAU9B"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { type StyleProp, type TextProps, type TextStyle } from 'react-native';
|
|
2
|
+
type Props = Omit<TextProps, 'style'> & {
|
|
3
|
+
tintColor?: string;
|
|
4
|
+
children?: string;
|
|
5
|
+
style?: StyleProp<TextStyle>;
|
|
6
|
+
};
|
|
7
|
+
export declare function Label({ tintColor, style, ...rest }: Props): import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export {};
|
|
9
|
+
//# sourceMappingURL=Label.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Label.d.ts","sourceRoot":"","sources":["../../../../../src/Label/Label.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,SAAS,EAEd,KAAK,SAAS,EACd,KAAK,SAAS,EACf,MAAM,cAAc,CAAC;AAItB,KAAK,KAAK,GAAG,IAAI,CAAC,SAAS,EAAE,OAAO,CAAC,GAAG;IACtC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;CAC9B,CAAC;AAEF,wBAAgB,KAAK,CAAC,EAAE,SAAS,EAAE,KAAK,EAAE,GAAG,IAAI,EAAE,EAAE,KAAK,2CAQzD"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getLabel.d.ts","sourceRoot":"","sources":["../../../../../src/Label/getLabel.tsx"],"names":[],"mappings":"AAAA,wBAAgB,QAAQ,CACtB,OAAO,EAAE;IAAE,KAAK,CAAC,EAAE,MAAM,CAAC;IAAC,KAAK,CAAC,EAAE,MAAM,CAAA;CAAE,EAC3C,QAAQ,EAAE,MAAM,GACf,MAAM,CAMR"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MaskedView.android.d.ts","sourceRoot":"","sources":["../../../../src/MaskedView.android.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Use a stub for MaskedView on all Platforms that don't support it.
|
|
3
|
+
*/
|
|
4
|
+
import type * as React from 'react';
|
|
5
|
+
type Props = {
|
|
6
|
+
maskElement: React.ReactElement;
|
|
7
|
+
children: React.ReactElement;
|
|
8
|
+
};
|
|
9
|
+
export declare function MaskedView({ children }: Props): React.ReactElement<any, string | React.JSXElementConstructor<any>>;
|
|
10
|
+
export {};
|
|
11
|
+
//# sourceMappingURL=MaskedView.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MaskedView.d.ts","sourceRoot":"","sources":["../../../../src/MaskedView.tsx"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,KAAK,KAAK,KAAK,MAAM,OAAO,CAAC;AAEpC,KAAK,KAAK,GAAG;IACX,WAAW,EAAE,KAAK,CAAC,YAAY,CAAC;IAChC,QAAQ,EAAE,KAAK,CAAC,YAAY,CAAC;CAC9B,CAAC;AAEF,wBAAgB,UAAU,CAAC,EAAE,QAAQ,EAAE,EAAE,KAAK,sEAE7C"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MaskedView.ios.d.ts","sourceRoot":"","sources":["../../../../src/MaskedView.ios.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The native MaskedView that we explicitly re-export for supported platforms: Android, iOS.
|
|
3
|
+
*/
|
|
4
|
+
import * as React from 'react';
|
|
5
|
+
type MaskedViewType = typeof import('@react-native-masked-view/masked-view').default;
|
|
6
|
+
type Props = React.ComponentProps<MaskedViewType> & {
|
|
7
|
+
children: React.ReactElement;
|
|
8
|
+
};
|
|
9
|
+
export declare function MaskedView({ children, ...rest }: Props): import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
export {};
|
|
11
|
+
//# sourceMappingURL=MaskedViewNative.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MaskedViewNative.d.ts","sourceRoot":"","sources":["../../../../src/MaskedViewNative.tsx"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,KAAK,cAAc,GACjB,cAAc,uCAAuC,EAAE,OAAO,CAAC;AAEjE,KAAK,KAAK,GAAG,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC,GAAG;IAClD,QAAQ,EAAE,KAAK,CAAC,YAAY,CAAC;CAC9B,CAAC;AAgBF,wBAAgB,UAAU,CAAC,EAAE,QAAQ,EAAE,GAAG,IAAI,EAAE,EAAE,KAAK,2CAMtD"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { type StyleProp, type TextStyle } from 'react-native';
|
|
2
|
+
type Props = {
|
|
3
|
+
color?: string;
|
|
4
|
+
size?: number;
|
|
5
|
+
style?: StyleProp<TextStyle>;
|
|
6
|
+
};
|
|
7
|
+
export declare function MissingIcon({ color, size, style }: Props): import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export {};
|
|
9
|
+
//# sourceMappingURL=MissingIcon.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MissingIcon.d.ts","sourceRoot":"","sources":["../../../../src/MissingIcon.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,SAAS,EAAc,KAAK,SAAS,EAAE,MAAM,cAAc,CAAC;AAI1E,KAAK,KAAK,GAAG;IACX,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;CAC9B,CAAC;AAEF,wBAAgB,WAAW,CAAC,EAAE,KAAK,EAAE,IAAI,EAAE,KAAK,EAAE,EAAE,KAAK,2CAExD"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { Animated, type PressableProps, type StyleProp, type ViewStyle } from 'react-native';
|
|
3
|
+
type HoverEffectProps = {
|
|
4
|
+
color?: string;
|
|
5
|
+
hoverOpacity?: number;
|
|
6
|
+
activeOpacity?: number;
|
|
7
|
+
};
|
|
8
|
+
export type Props = Omit<PressableProps, 'style'> & {
|
|
9
|
+
pressColor?: string;
|
|
10
|
+
pressOpacity?: number;
|
|
11
|
+
hoverEffect?: HoverEffectProps;
|
|
12
|
+
style?: Animated.WithAnimatedValue<StyleProp<ViewStyle>>;
|
|
13
|
+
href?: string;
|
|
14
|
+
children: React.ReactNode;
|
|
15
|
+
};
|
|
16
|
+
/**
|
|
17
|
+
* PlatformPressable provides an abstraction on top of Pressable to handle platform differences.
|
|
18
|
+
*/
|
|
19
|
+
export declare function PlatformPressable({ disabled, onPress, onPressIn, onPressOut, android_ripple, pressColor, pressOpacity, hoverEffect, style, children, ...rest }: Props): import("react/jsx-runtime").JSX.Element;
|
|
20
|
+
export {};
|
|
21
|
+
//# sourceMappingURL=PlatformPressable.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PlatformPressable.d.ts","sourceRoot":"","sources":["../../../../src/PlatformPressable.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EACL,QAAQ,EAKR,KAAK,cAAc,EACnB,KAAK,SAAS,EACd,KAAK,SAAS,EACf,MAAM,cAAc,CAAC;AAEtB,KAAK,gBAAgB,GAAG;IACtB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB,CAAC;AAEF,MAAM,MAAM,KAAK,GAAG,IAAI,CAAC,cAAc,EAAE,OAAO,CAAC,GAAG;IAClD,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,WAAW,CAAC,EAAE,gBAAgB,CAAC;IAC/B,KAAK,CAAC,EAAE,QAAQ,CAAC,iBAAiB,CAAC,SAAS,CAAC,SAAS,CAAC,CAAC,CAAC;IACzD,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B,CAAC;AAQF;;GAEG;AACH,wBAAgB,iBAAiB,CAAC,EAChC,QAAQ,EACR,OAAO,EACP,SAAS,EACT,UAAU,EACV,cAAc,EACd,UAAU,EACV,YAAkB,EAClB,WAAW,EACX,KAAK,EACL,QAAQ,EACR,GAAG,IAAI,EACR,EAAE,KAAK,2CAsFP"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { type StyleProp, type ViewStyle } from 'react-native';
|
|
3
|
+
type Props = {
|
|
4
|
+
visible: boolean;
|
|
5
|
+
children: React.ReactNode;
|
|
6
|
+
style?: StyleProp<ViewStyle>;
|
|
7
|
+
};
|
|
8
|
+
export declare function ResourceSavingView({ visible, children, style, ...rest }: Props): import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export {};
|
|
10
|
+
//# sourceMappingURL=ResourceSavingView.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ResourceSavingView.d.ts","sourceRoot":"","sources":["../../../../src/ResourceSavingView.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAEL,KAAK,SAAS,EAGd,KAAK,SAAS,EACf,MAAM,cAAc,CAAC;AAEtB,KAAK,KAAK,GAAG;IACX,OAAO,EAAE,OAAO,CAAC;IACjB,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;CAC9B,CAAC;AAIF,wBAAgB,kBAAkB,CAAC,EACjC,OAAO,EACP,QAAQ,EACR,KAAK,EACL,GAAG,IAAI,EACR,EAAE,KAAK,2CAuCP"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { type StyleProp, type ViewStyle } from 'react-native';
|
|
3
|
+
import { type Metrics } from 'react-native-safe-area-context';
|
|
4
|
+
type Props = {
|
|
5
|
+
children: React.ReactNode;
|
|
6
|
+
style?: StyleProp<ViewStyle>;
|
|
7
|
+
};
|
|
8
|
+
export declare function SafeAreaProviderCompat({ children, style }: Props): import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export declare namespace SafeAreaProviderCompat {
|
|
10
|
+
var initialMetrics: Metrics;
|
|
11
|
+
}
|
|
12
|
+
export {};
|
|
13
|
+
//# sourceMappingURL=SafeAreaProviderCompat.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SafeAreaProviderCompat.d.ts","sourceRoot":"","sources":["../../../../src/SafeAreaProviderCompat.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAGL,KAAK,SAAS,EAGd,KAAK,SAAS,EACf,MAAM,cAAc,CAAC;AACtB,OAAO,EAEL,KAAK,OAAO,EAIb,MAAM,gCAAgC,CAAC;AAExC,KAAK,KAAK,GAAG;IACX,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;CAC9B,CAAC;AAeF,wBAAgB,sBAAsB,CAAC,EAAE,QAAQ,EAAE,KAAK,EAAE,EAAE,KAAK,2CAuBhE;yBAvBe,sBAAsB"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { type NavigationProp, type ParamListBase, type RouteProp } from '@react-navigation/native';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
import { Animated, type StyleProp, type ViewStyle } from 'react-native';
|
|
4
|
+
type Props = {
|
|
5
|
+
focused: boolean;
|
|
6
|
+
modal?: boolean;
|
|
7
|
+
navigation: NavigationProp<ParamListBase>;
|
|
8
|
+
route: RouteProp<ParamListBase>;
|
|
9
|
+
header: React.ReactNode;
|
|
10
|
+
headerShown?: boolean;
|
|
11
|
+
headerStatusBarHeight?: number;
|
|
12
|
+
headerTransparent?: boolean;
|
|
13
|
+
style?: Animated.WithAnimatedValue<StyleProp<ViewStyle>>;
|
|
14
|
+
children: React.ReactNode;
|
|
15
|
+
};
|
|
16
|
+
export declare function Screen(props: Props): import("react/jsx-runtime").JSX.Element;
|
|
17
|
+
export {};
|
|
18
|
+
//# sourceMappingURL=Screen.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Screen.d.ts","sourceRoot":"","sources":["../../../../src/Screen.tsx"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,cAAc,EAEnB,KAAK,aAAa,EAClB,KAAK,SAAS,EACf,MAAM,0BAA0B,CAAC;AAClC,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EACL,QAAQ,EACR,KAAK,SAAS,EAGd,KAAK,SAAS,EACf,MAAM,cAAc,CAAC;AAWtB,KAAK,KAAK,GAAG;IACX,OAAO,EAAE,OAAO,CAAC;IACjB,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,UAAU,EAAE,cAAc,CAAC,aAAa,CAAC,CAAC;IAC1C,KAAK,EAAE,SAAS,CAAC,aAAa,CAAC,CAAC;IAChC,MAAM,EAAE,KAAK,CAAC,SAAS,CAAC;IACxB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,qBAAqB,CAAC,EAAE,MAAM,CAAC;IAC/B,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,KAAK,CAAC,EAAE,QAAQ,CAAC,iBAAiB,CAAC,SAAS,CAAC,SAAS,CAAC,CAAC,CAAC;IACzD,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B,CAAC;AAEF,wBAAgB,MAAM,CAAC,KAAK,EAAE,KAAK,2CAkElC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Text.d.ts","sourceRoot":"","sources":["../../../../src/Text.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAsB,KAAK,SAAS,EAAE,MAAM,cAAc,CAAC;AAElE,wBAAgB,IAAI,CAAC,EAAE,KAAK,EAAE,GAAG,IAAI,EAAE,EAAE,SAAS,2CASjD"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getDefaultSidebarWidth.d.ts","sourceRoot":"","sources":["../../../../src/getDefaultSidebarWidth.tsx"],"names":[],"mappings":"AAGA,eAAO,MAAM,sBAAsB,cAAe;IAAE,KAAK,EAAE,MAAM,CAAA;CAAE,WAWlE,CAAC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
declare global {
|
|
3
|
+
var __react_navigation__elements_contexts: Map<string, React.Context<any>>;
|
|
4
|
+
}
|
|
5
|
+
export declare function getNamedContext<T>(name: string, initialValue: T): React.Context<T>;
|
|
6
|
+
//# sourceMappingURL=getNamedContext.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getNamedContext.d.ts","sourceRoot":"","sources":["../../../../src/getNamedContext.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAI/B,OAAO,CAAC,MAAM,CAAC;IAEb,IAAI,qCAAqC,EAAE,GAAG,CAAC,MAAM,EAAE,KAAK,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC;CAC5E;AAMD,wBAAgB,eAAe,CAAC,CAAC,EAC/B,IAAI,EAAE,MAAM,EACZ,YAAY,EAAE,CAAC,GACd,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,CAalB"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
export { Background } from './Background';
|
|
2
|
+
export { Button } from './Button';
|
|
3
|
+
export { getDefaultSidebarWidth } from './getDefaultSidebarWidth';
|
|
4
|
+
export { getDefaultHeaderHeight } from './Header/getDefaultHeaderHeight';
|
|
5
|
+
export { getHeaderTitle } from './Header/getHeaderTitle';
|
|
6
|
+
export { Header } from './Header/Header';
|
|
7
|
+
export { HeaderBackButton } from './Header/HeaderBackButton';
|
|
8
|
+
export { HeaderBackContext } from './Header/HeaderBackContext';
|
|
9
|
+
export { HeaderBackground } from './Header/HeaderBackground';
|
|
10
|
+
export { HeaderButton } from './Header/HeaderButton';
|
|
11
|
+
export { HeaderHeightContext } from './Header/HeaderHeightContext';
|
|
12
|
+
export { HeaderShownContext } from './Header/HeaderShownContext';
|
|
13
|
+
export { HeaderTitle } from './Header/HeaderTitle';
|
|
14
|
+
export { useHeaderHeight } from './Header/useHeaderHeight';
|
|
15
|
+
export { getLabel } from './Label/getLabel';
|
|
16
|
+
export { Label } from './Label/Label';
|
|
17
|
+
export { MissingIcon } from './MissingIcon';
|
|
18
|
+
export { PlatformPressable } from './PlatformPressable';
|
|
19
|
+
export { ResourceSavingView } from './ResourceSavingView';
|
|
20
|
+
export { SafeAreaProviderCompat } from './SafeAreaProviderCompat';
|
|
21
|
+
export { Screen } from './Screen';
|
|
22
|
+
export { Text } from './Text';
|
|
23
|
+
export declare const Assets: any[];
|
|
24
|
+
export * from './types';
|
|
25
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/index.t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1,289 @@
|
|
|
1
|
+
import type { Animated, LayoutChangeEvent, StyleProp, TextInputProps, TextStyle, ViewStyle } from 'react-native';
|
|
2
|
+
export type HeaderBackButtonDisplayMode = 'default' | 'generic' | 'minimal';
|
|
3
|
+
export type Layout = {
|
|
4
|
+
width: number;
|
|
5
|
+
height: number;
|
|
6
|
+
};
|
|
7
|
+
type HeaderSearchBarOptions = {
|
|
8
|
+
/**
|
|
9
|
+
* The auto-capitalization behavior
|
|
10
|
+
*/
|
|
11
|
+
autoCapitalize?: 'none' | 'words' | 'sentences' | 'characters';
|
|
12
|
+
/**
|
|
13
|
+
* Automatically focuses search input on mount
|
|
14
|
+
*/
|
|
15
|
+
autoFocus?: boolean;
|
|
16
|
+
/**
|
|
17
|
+
* The text to be used instead of default `Cancel` button text
|
|
18
|
+
*
|
|
19
|
+
* @platform ios
|
|
20
|
+
*/
|
|
21
|
+
cancelButtonText?: string;
|
|
22
|
+
/**
|
|
23
|
+
* Sets type of the input. Defaults to `text`.
|
|
24
|
+
*/
|
|
25
|
+
inputType?: 'text' | 'phone' | 'number' | 'email';
|
|
26
|
+
/**
|
|
27
|
+
* A callback that gets called when search input has lost focus
|
|
28
|
+
*/
|
|
29
|
+
onBlur?: TextInputProps['onBlur'];
|
|
30
|
+
/**
|
|
31
|
+
* A callback that gets called when the text changes.
|
|
32
|
+
* It receives the current text value of the search input.
|
|
33
|
+
*/
|
|
34
|
+
onChangeText?: TextInputProps['onChange'];
|
|
35
|
+
/**
|
|
36
|
+
* A callback that gets called when search input is closed
|
|
37
|
+
*/
|
|
38
|
+
onClose?: () => void;
|
|
39
|
+
/**
|
|
40
|
+
* A callback that gets called when search input has received focus
|
|
41
|
+
*/
|
|
42
|
+
onFocus?: TextInputProps['onFocus'];
|
|
43
|
+
/**
|
|
44
|
+
* Text displayed when search field is empty
|
|
45
|
+
*/
|
|
46
|
+
placeholder?: string;
|
|
47
|
+
};
|
|
48
|
+
export type HeaderOptions = {
|
|
49
|
+
/**
|
|
50
|
+
* String or a function that returns a React Element to be used by the header.
|
|
51
|
+
* Defaults to screen `title` or route name.
|
|
52
|
+
*
|
|
53
|
+
* It receives `allowFontScaling`, `tintColor`, `style` and `children` in the options object as an argument.
|
|
54
|
+
* The title string is passed in `children`.
|
|
55
|
+
*/
|
|
56
|
+
headerTitle?: string | ((props: HeaderTitleProps) => React.ReactNode);
|
|
57
|
+
/**
|
|
58
|
+
* How to align the the header title.
|
|
59
|
+
* Defaults to `center` on iOS and `left` on Android.
|
|
60
|
+
*/
|
|
61
|
+
headerTitleAlign?: 'left' | 'center';
|
|
62
|
+
/**
|
|
63
|
+
* Style object for the title component.
|
|
64
|
+
*/
|
|
65
|
+
headerTitleStyle?: Animated.WithAnimatedValue<StyleProp<TextStyle>>;
|
|
66
|
+
/**
|
|
67
|
+
* Style object for the container of the `headerTitle` element.
|
|
68
|
+
*/
|
|
69
|
+
headerTitleContainerStyle?: Animated.WithAnimatedValue<StyleProp<ViewStyle>>;
|
|
70
|
+
/**
|
|
71
|
+
* Whether header title font should scale to respect Text Size accessibility settings. Defaults to `false`.
|
|
72
|
+
*/
|
|
73
|
+
headerTitleAllowFontScaling?: boolean;
|
|
74
|
+
/**
|
|
75
|
+
* Options to render a search bar.
|
|
76
|
+
*/
|
|
77
|
+
headerSearchBarOptions?: HeaderSearchBarOptions;
|
|
78
|
+
/**
|
|
79
|
+
* Function which returns a React Element to display on the left side of the header.
|
|
80
|
+
*/
|
|
81
|
+
headerLeft?: (props: HeaderBackButtonProps & {
|
|
82
|
+
/**
|
|
83
|
+
* Whether it's possible to navigate back.
|
|
84
|
+
*/
|
|
85
|
+
canGoBack?: boolean;
|
|
86
|
+
}) => React.ReactNode;
|
|
87
|
+
/**
|
|
88
|
+
* How the back button displays icon and title.
|
|
89
|
+
*
|
|
90
|
+
* Supported values:
|
|
91
|
+
* - "default" - Displays one of the following depending on the available space: previous screen's title, truncated title (e.g. 'Back') or no title (only icon).
|
|
92
|
+
* - "generic" – Displays one of the following depending on the available space: truncated title (e.g. 'Back') or no title (only icon).
|
|
93
|
+
* - "minimal" – Always displays only the icon without a title.
|
|
94
|
+
*
|
|
95
|
+
* Defaults to "default" on iOS, and "minimal" on other platforms.
|
|
96
|
+
*/
|
|
97
|
+
headerBackButtonDisplayMode?: HeaderBackButtonDisplayMode;
|
|
98
|
+
/**
|
|
99
|
+
* Style object for header back title. Supported properties:
|
|
100
|
+
* - fontFamily
|
|
101
|
+
* - fontSize
|
|
102
|
+
*/
|
|
103
|
+
headerBackTitleStyle?: StyleProp<{
|
|
104
|
+
fontFamily?: string;
|
|
105
|
+
fontSize?: number;
|
|
106
|
+
}>;
|
|
107
|
+
/**
|
|
108
|
+
* Style object for the container of the `headerLeft` element`.
|
|
109
|
+
*/
|
|
110
|
+
headerLeftContainerStyle?: Animated.WithAnimatedValue<StyleProp<ViewStyle>>;
|
|
111
|
+
/**
|
|
112
|
+
* Function which returns a React Element to display on the right side of the header.
|
|
113
|
+
*/
|
|
114
|
+
headerRight?: (props: {
|
|
115
|
+
tintColor?: string;
|
|
116
|
+
pressColor?: string;
|
|
117
|
+
pressOpacity?: number;
|
|
118
|
+
canGoBack: boolean;
|
|
119
|
+
}) => React.ReactNode;
|
|
120
|
+
/**
|
|
121
|
+
* Style object for the container of the `headerRight` element.
|
|
122
|
+
*/
|
|
123
|
+
headerRightContainerStyle?: Animated.WithAnimatedValue<StyleProp<ViewStyle>>;
|
|
124
|
+
/**
|
|
125
|
+
* Color for material ripple (Android >= 5.0 only).
|
|
126
|
+
*/
|
|
127
|
+
headerPressColor?: string;
|
|
128
|
+
/**
|
|
129
|
+
* Color for material ripple (Android >= 5.0 only).
|
|
130
|
+
*/
|
|
131
|
+
headerPressOpacity?: number;
|
|
132
|
+
/**
|
|
133
|
+
* Tint color for the header.
|
|
134
|
+
*/
|
|
135
|
+
headerTintColor?: string;
|
|
136
|
+
/**
|
|
137
|
+
* Function which returns a React Element to render as the background of the header.
|
|
138
|
+
* This is useful for using backgrounds such as an image, a gradient, blur effect etc.
|
|
139
|
+
* You can use this with `headerTransparent` to render a blur view, for example, to create a translucent header.
|
|
140
|
+
*/
|
|
141
|
+
headerBackground?: (props: {
|
|
142
|
+
style: Animated.WithAnimatedValue<StyleProp<ViewStyle>>;
|
|
143
|
+
}) => React.ReactNode;
|
|
144
|
+
/**
|
|
145
|
+
* Style object for the container of the `headerBackground` element.
|
|
146
|
+
*/
|
|
147
|
+
headerBackgroundContainerStyle?: Animated.WithAnimatedValue<StyleProp<ViewStyle>>;
|
|
148
|
+
/**
|
|
149
|
+
* Defaults to `false`. If `true`, the header will not have a background unless you explicitly provide it with `headerBackground`.
|
|
150
|
+
* The header will also float over the screen so that it overlaps the content underneath.
|
|
151
|
+
* This is useful if you want to render a semi-transparent header or a blurred background.
|
|
152
|
+
*/
|
|
153
|
+
headerTransparent?: boolean;
|
|
154
|
+
/**
|
|
155
|
+
* Style object for the header. You can specify a custom background color here, for example.
|
|
156
|
+
*/
|
|
157
|
+
headerStyle?: Animated.WithAnimatedValue<StyleProp<ViewStyle>>;
|
|
158
|
+
/**
|
|
159
|
+
* Whether to hide the elevation shadow (Android) or the bottom border (iOS) on the header.
|
|
160
|
+
*
|
|
161
|
+
* This is a short-hand for the following styles:
|
|
162
|
+
*
|
|
163
|
+
* ```js
|
|
164
|
+
* {
|
|
165
|
+
* elevation: 0,
|
|
166
|
+
* shadowOpacity: 0,
|
|
167
|
+
* borderBottomWidth: 0,
|
|
168
|
+
* }
|
|
169
|
+
* ```
|
|
170
|
+
*
|
|
171
|
+
* If the above styles are specified in `headerStyle` along with `headerShadowVisible: false`,
|
|
172
|
+
* then `headerShadowVisible: false` will take precedence.
|
|
173
|
+
*/
|
|
174
|
+
headerShadowVisible?: boolean;
|
|
175
|
+
/**
|
|
176
|
+
* Extra padding to add at the top of header to account for translucent status bar.
|
|
177
|
+
* By default, it uses the top value from the safe area insets of the device.
|
|
178
|
+
* Pass 0 or a custom value to disable the default behaviour, and customize the height.
|
|
179
|
+
*/
|
|
180
|
+
headerStatusBarHeight?: number;
|
|
181
|
+
};
|
|
182
|
+
export type HeaderTitleProps = {
|
|
183
|
+
/**
|
|
184
|
+
* The title text of the header.
|
|
185
|
+
*/
|
|
186
|
+
children: string;
|
|
187
|
+
/**
|
|
188
|
+
* Whether title font should scale to respect Text Size accessibility settings.
|
|
189
|
+
*/
|
|
190
|
+
allowFontScaling?: boolean;
|
|
191
|
+
/**
|
|
192
|
+
* Tint color for the header.
|
|
193
|
+
*/
|
|
194
|
+
tintColor?: string;
|
|
195
|
+
/**
|
|
196
|
+
* Callback to trigger when the size of the title element changes.
|
|
197
|
+
*/
|
|
198
|
+
onLayout?: (e: LayoutChangeEvent) => void;
|
|
199
|
+
/**
|
|
200
|
+
* Style object for the title element.
|
|
201
|
+
*/
|
|
202
|
+
style?: Animated.WithAnimatedValue<StyleProp<TextStyle>>;
|
|
203
|
+
};
|
|
204
|
+
export type HeaderButtonProps = {
|
|
205
|
+
/**
|
|
206
|
+
* Callback to call when the button is pressed.
|
|
207
|
+
*/
|
|
208
|
+
onPress?: () => void;
|
|
209
|
+
/**
|
|
210
|
+
* The `href` to use for the anchor tag on web
|
|
211
|
+
*/
|
|
212
|
+
href?: string;
|
|
213
|
+
/**
|
|
214
|
+
* Whether the button is disabled.
|
|
215
|
+
*/
|
|
216
|
+
disabled?: boolean;
|
|
217
|
+
/**
|
|
218
|
+
* Accessibility label for the button for screen readers.
|
|
219
|
+
*/
|
|
220
|
+
accessibilityLabel?: string;
|
|
221
|
+
/**
|
|
222
|
+
* ID to locate this button in tests.
|
|
223
|
+
*/
|
|
224
|
+
testID?: string;
|
|
225
|
+
/**
|
|
226
|
+
* Tint color for the header button.
|
|
227
|
+
*/
|
|
228
|
+
tintColor?: string;
|
|
229
|
+
/**
|
|
230
|
+
* Color for material ripple (Android >= 5.0 only).
|
|
231
|
+
*/
|
|
232
|
+
pressColor?: string;
|
|
233
|
+
/**
|
|
234
|
+
* Opacity when the button is pressed, used when ripple is not supported.
|
|
235
|
+
*/
|
|
236
|
+
pressOpacity?: number;
|
|
237
|
+
/**
|
|
238
|
+
* Style object for the button.
|
|
239
|
+
*/
|
|
240
|
+
style?: StyleProp<ViewStyle>;
|
|
241
|
+
/**
|
|
242
|
+
* Content to render for the button. Usually the icon.
|
|
243
|
+
*/
|
|
244
|
+
children: React.ReactNode;
|
|
245
|
+
};
|
|
246
|
+
export type HeaderBackButtonProps = Omit<HeaderButtonProps, 'children'> & {
|
|
247
|
+
/**
|
|
248
|
+
* Function which returns a React Element to display custom image in header's back button.
|
|
249
|
+
*/
|
|
250
|
+
backImage?: (props: {
|
|
251
|
+
tintColor: string;
|
|
252
|
+
}) => React.ReactNode;
|
|
253
|
+
/**
|
|
254
|
+
* Label text for the button. Usually the title of the previous screen.
|
|
255
|
+
* By default, this is only shown on iOS.
|
|
256
|
+
*/
|
|
257
|
+
label?: string;
|
|
258
|
+
/**
|
|
259
|
+
* Label text to show when there isn't enough space for the full label.
|
|
260
|
+
*/
|
|
261
|
+
truncatedLabel?: string;
|
|
262
|
+
/**
|
|
263
|
+
* Whether the label text is visible.
|
|
264
|
+
* Defaults to `true` on iOS and `false` on Android.
|
|
265
|
+
*/
|
|
266
|
+
displayMode?: HeaderBackButtonDisplayMode;
|
|
267
|
+
/**
|
|
268
|
+
* Style object for the label.
|
|
269
|
+
*/
|
|
270
|
+
labelStyle?: Animated.WithAnimatedValue<StyleProp<TextStyle>>;
|
|
271
|
+
/**
|
|
272
|
+
* Whether label font should scale to respect Text Size accessibility settings.
|
|
273
|
+
*/
|
|
274
|
+
allowFontScaling?: boolean;
|
|
275
|
+
/**
|
|
276
|
+
* Callback to trigger when the size of the label changes.
|
|
277
|
+
*/
|
|
278
|
+
onLabelLayout?: (e: LayoutChangeEvent) => void;
|
|
279
|
+
/**
|
|
280
|
+
* Layout of the screen.
|
|
281
|
+
*/
|
|
282
|
+
screenLayout?: Layout;
|
|
283
|
+
/**
|
|
284
|
+
* Layout of the title element in the header.
|
|
285
|
+
*/
|
|
286
|
+
titleLayout?: Layout;
|
|
287
|
+
};
|
|
288
|
+
export {};
|
|
289
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/types.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,QAAQ,EACR,iBAAiB,EACjB,SAAS,EACT,cAAc,EACd,SAAS,EACT,SAAS,EACV,MAAM,cAAc,CAAC;AAEtB,MAAM,MAAM,2BAA2B,GAAG,SAAS,GAAG,SAAS,GAAG,SAAS,CAAC;AAE5E,MAAM,MAAM,MAAM,GAAG;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,MAAM,CAAA;CAAE,CAAC;AAEvD,KAAK,sBAAsB,GAAG;IAC5B;;OAEG;IACH,cAAc,CAAC,EAAE,MAAM,GAAG,OAAO,GAAG,WAAW,GAAG,YAAY,CAAC;IAC/D;;OAEG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB;;;;OAIG;IACH,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,GAAG,OAAO,GAAG,QAAQ,GAAG,OAAO,CAAC;IAClD;;OAEG;IACH,MAAM,CAAC,EAAE,cAAc,CAAC,QAAQ,CAAC,CAAC;IAClC;;;OAGG;IACH,YAAY,CAAC,EAAE,cAAc,CAAC,UAAU,CAAC,CAAC;IAC1C;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB;;OAEG;IACH,OAAO,CAAC,EAAE,cAAc,CAAC,SAAS,CAAC,CAAC;IACpC;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB,CAAC;AAEF,MAAM,MAAM,aAAa,GAAG;IAC1B;;;;;;OAMG;IACH,WAAW,CAAC,EAAE,MAAM,GAAG,CAAC,CAAC,KAAK,EAAE,gBAAgB,KAAK,KAAK,CAAC,S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