@platform-blocks/ui 0.1.1
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/LICENSE +21 -0
- package/README.md +44 -0
- package/lib/cjs/index.js +35531 -0
- package/lib/cjs/index.js.map +1 -0
- package/lib/components/Accessibility/AccessibilityDemo.d.ts +5 -0
- package/lib/components/Accessibility/AccessibilityHelpers.d.ts +49 -0
- package/lib/components/Accessibility/AccessibilityTesting.d.ts +24 -0
- package/lib/components/Accessibility/AccessibleComponents.d.ts +20 -0
- package/lib/components/Accessibility/index.d.ts +2 -0
- package/lib/components/Accordion/Accordion.d.ts +9 -0
- package/lib/components/Accordion/AccordionItem.d.ts +23 -0
- package/lib/components/Accordion/defaults.d.ts +13 -0
- package/lib/components/Accordion/hooks/useAccordionItemAnimation.d.ts +17 -0
- package/lib/components/Accordion/hooks/useMeasuredHeight.d.ts +8 -0
- package/lib/components/Accordion/index.d.ts +5 -0
- package/lib/components/Accordion/styles.d.ts +17 -0
- package/lib/components/Accordion/tokens.d.ts +12 -0
- package/lib/components/Accordion/types.d.ts +180 -0
- package/lib/components/Alert/Alert.d.ts +2 -0
- package/lib/components/Alert/index.d.ts +2 -0
- package/lib/components/Alert/types.d.ts +25 -0
- package/lib/components/AppShell/AppShell.d.ts +48 -0
- package/lib/components/AppShell/BottomAppBar.d.ts +3 -0
- package/lib/components/AppShell/MobileMenu.d.ts +10 -0
- package/lib/components/AppShell/StatusBarManager.d.ts +7 -0
- package/lib/components/AppShell/app-layout/AppLayoutProvider.d.ts +8 -0
- package/lib/components/AppShell/app-layout/AppLayoutRenderer.d.ts +5 -0
- package/lib/components/AppShell/app-layout/context.d.ts +4 -0
- package/lib/components/AppShell/app-layout/defineAppLayout.d.ts +2 -0
- package/lib/components/AppShell/app-layout/index.d.ts +5 -0
- package/lib/components/AppShell/app-layout/types.d.ts +120 -0
- package/lib/components/AppShell/context.d.ts +44 -0
- package/lib/components/AppShell/defaults.d.ts +6 -0
- package/lib/components/AppShell/hooks/useBreakpoint.d.ts +9 -0
- package/lib/components/AppShell/hooks/useResponsiveValue.d.ts +2 -0
- package/lib/components/AppShell/index.d.ts +12 -0
- package/lib/components/AppShell/meta.schema.d.ts +14 -0
- package/lib/components/AppShell/types.d.ts +228 -0
- package/lib/components/AppStoreBadge/AppStoreBadge.d.ts +5 -0
- package/lib/components/AppStoreBadge/ConvenienceComponents.d.ts +88 -0
- package/lib/components/AppStoreBadge/examples/usage-examples.d.ts +4 -0
- package/lib/components/AppStoreBadge/index.d.ts +3 -0
- package/lib/components/AppStoreBadge/types.d.ts +36 -0
- package/lib/components/AppStoreButton/AppStoreButton.d.ts +5 -0
- package/lib/components/AppStoreButton/ConvenienceComponents.d.ts +8 -0
- package/lib/components/AppStoreButton/index.d.ts +3 -0
- package/lib/components/AppStoreButton/types.d.ts +36 -0
- package/lib/components/AudioPlayer/AudioPlayer.d.ts +3 -0
- package/lib/components/AudioPlayer/AudioPlayerDemo.d.ts +2 -0
- package/lib/components/AudioPlayer/index.d.ts +2 -0
- package/lib/components/AudioPlayer/types.d.ts +232 -0
- package/lib/components/AutoComplete/AutoComplete.d.ts +6 -0
- package/lib/components/AutoComplete/index.d.ts +2 -0
- package/lib/components/AutoComplete/types.d.ts +120 -0
- package/lib/components/Avatar/Avatar.d.ts +3 -0
- package/lib/components/Avatar/AvatarGroup.d.ts +3 -0
- package/lib/components/Avatar/index.d.ts +3 -0
- package/lib/components/Avatar/types.d.ts +30 -0
- package/lib/components/Badge/Badge.d.ts +4 -0
- package/lib/components/Badge/index.d.ts +3 -0
- package/lib/components/Badge/types.d.ts +26 -0
- package/lib/components/Block/Block.d.ts +36 -0
- package/lib/components/Block/index.d.ts +2 -0
- package/lib/components/Block/types.d.ts +102 -0
- package/lib/components/Block/utils.d.ts +28 -0
- package/lib/components/Blockquote/Blockquote.d.ts +3 -0
- package/lib/components/Blockquote/BlockquoteAttribution.d.ts +3 -0
- package/lib/components/Blockquote/BlockquoteAuthor.d.ts +3 -0
- package/lib/components/Blockquote/BlockquoteMeta.d.ts +3 -0
- package/lib/components/Blockquote/BlockquoteSource.d.ts +3 -0
- package/lib/components/Blockquote/index.d.ts +6 -0
- package/lib/components/Blockquote/styles.d.ts +80 -0
- package/lib/components/Blockquote/types.d.ts +74 -0
- package/lib/components/BrandButton/BrandButton.d.ts +3 -0
- package/lib/components/BrandButton/index.d.ts +2 -0
- package/lib/components/BrandButton/types.d.ts +23 -0
- package/lib/components/BrandIcon/BrandIcon.d.ts +27 -0
- package/lib/components/BrandIcon/brands.d.ts +520 -0
- package/lib/components/BrandIcon/index.d.ts +2 -0
- package/lib/components/Breadcrumbs/Breadcrumbs.d.ts +6 -0
- package/lib/components/Breadcrumbs/index.d.ts +2 -0
- package/lib/components/Breadcrumbs/types.d.ts +35 -0
- package/lib/components/Button/Button.d.ts +3 -0
- package/lib/components/Button/SoundButton.d.ts +22 -0
- package/lib/components/Button/defaults.d.ts +7 -0
- package/lib/components/Button/index.d.ts +2 -0
- package/lib/components/Button/styles/resolver.d.ts +7 -0
- package/lib/components/Button/tokens.d.ts +16 -0
- package/lib/components/Button/types.d.ts +67 -0
- package/lib/components/Calendar/Calendar.d.ts +3 -0
- package/lib/components/Calendar/Day.d.ts +3 -0
- package/lib/components/Calendar/Month.d.ts +3 -0
- package/lib/components/Calendar/MonthPicker.d.ts +2 -0
- package/lib/components/Calendar/YearPicker.d.ts +2 -0
- package/lib/components/Calendar/index.d.ts +8 -0
- package/lib/components/Calendar/types.d.ts +92 -0
- package/lib/components/Calendar/utils.d.ts +31 -0
- package/lib/components/Can/Can.d.ts +30 -0
- package/lib/components/Can/PermissionDemo.d.ts +2 -0
- package/lib/components/Can/ability.d.ts +89 -0
- package/lib/components/Can/builder.d.ts +113 -0
- package/lib/components/Can/context.d.ts +25 -0
- package/lib/components/Can/index.d.ts +6 -0
- package/lib/components/Can/types.d.ts +228 -0
- package/lib/components/Card/Card.d.ts +3 -0
- package/lib/components/Card/index.d.ts +2 -0
- package/lib/components/Card/types.d.ts +15 -0
- package/lib/components/Carousel/Carousel.d.ts +4 -0
- package/lib/components/Carousel/index.d.ts +2 -0
- package/lib/components/Carousel/styles.d.ts +21 -0
- package/lib/components/Carousel/types.d.ts +51 -0
- package/lib/components/Checkbox/Checkbox.d.ts +4 -0
- package/lib/components/Checkbox/index.d.ts +2 -0
- package/lib/components/Checkbox/styles.d.ts +71 -0
- package/lib/components/Checkbox/types.d.ts +52 -0
- package/lib/components/Chip/Chip.d.ts +4 -0
- package/lib/components/Chip/index.d.ts +3 -0
- package/lib/components/Chip/types.d.ts +22 -0
- package/lib/components/CodeBlock/CodeBlock.d.ts +16 -0
- package/lib/components/CodeBlock/index.d.ts +3 -0
- package/lib/components/CodeBlock/type.d.ts +40 -0
- package/lib/components/CodeBlock/types.d.ts +44 -0
- package/lib/components/CodeBlock/utils.d.ts +38 -0
- package/lib/components/ColorPicker/ColorPicker.d.ts +8 -0
- package/lib/components/ColorPicker/index.d.ts +2 -0
- package/lib/components/ColorPicker/styles.d.ts +35 -0
- package/lib/components/ColorPicker/types.d.ts +69 -0
- package/lib/components/ColorPicker/utils.d.ts +8 -0
- package/lib/components/ColorSwatch/ColorSwatch.d.ts +6 -0
- package/lib/components/ColorSwatch/index.d.ts +2 -0
- package/lib/components/ColorSwatch/types.d.ts +29 -0
- package/lib/components/Container/Container.d.ts +3 -0
- package/lib/components/Container/index.d.ts +2 -0
- package/lib/components/Container/types.d.ts +31 -0
- package/lib/components/ContextMenu/ContextMenu.d.ts +5 -0
- package/lib/components/ContextMenu/index.d.ts +2 -0
- package/lib/components/ContextMenu/types.d.ts +36 -0
- package/lib/components/CopyButton/CopyButton.d.ts +10 -0
- package/lib/components/CopyButton/index.d.ts +2 -0
- package/lib/components/CopyButton/types.d.ts +37 -0
- package/lib/components/DataTable/AdvancedFilterControl.d.ts +10 -0
- package/lib/components/DataTable/ColumnSettings.d.ts +16 -0
- package/lib/components/DataTable/DataTable.d.ts +5 -0
- package/lib/components/DataTable/hooks/useColumnSettings.d.ts +12 -0
- package/lib/components/DataTable/hooks/useDataTableState.d.ts +41 -0
- package/lib/components/DataTable/hooks/useRowSelection.d.ts +40 -0
- package/lib/components/DataTable/index.d.ts +1 -0
- package/lib/components/DataTable/types.d.ts +223 -0
- package/lib/components/DatePicker/DatePicker.d.ts +4 -0
- package/lib/components/DatePicker/index.d.ts +8 -0
- package/lib/components/DatePicker/types.d.ts +47 -0
- package/lib/components/DatePicker/utils.d.ts +30 -0
- package/lib/components/DatePickerInput/DatePickerInput.d.ts +4 -0
- package/lib/components/DatePickerInput/index.d.ts +2 -0
- package/lib/components/DatePickerInput/types.d.ts +41 -0
- package/lib/components/Dialog/Dialog.d.ts +3 -0
- package/lib/components/Dialog/DialogContext.d.ts +11 -0
- package/lib/components/Dialog/DialogRenderer.d.ts +2 -0
- package/lib/components/Dialog/hooks/useSimpleDialog.d.ts +25 -0
- package/lib/components/Dialog/index.d.ts +6 -0
- package/lib/components/Dialog/types.d.ts +35 -0
- package/lib/components/Disclaimer/Disclaimer.d.ts +11 -0
- package/lib/components/Disclaimer/disclaimerUtils.d.ts +21 -0
- package/lib/components/Disclaimer/index.d.ts +6 -0
- package/lib/components/Disclaimer/withDisclaimer.d.ts +13 -0
- package/lib/components/Divider/Divider.d.ts +2 -0
- package/lib/components/Divider/index.d.ts +2 -0
- package/lib/components/Divider/types.d.ts +22 -0
- package/lib/components/EmojiPicker/EmojiPicker.d.ts +6 -0
- package/lib/components/EmojiPicker/index.d.ts +2 -0
- package/lib/components/EmojiPicker/types.d.ts +29 -0
- package/lib/components/FileInput/FileInput.d.ts +3 -0
- package/lib/components/FileInput/index.d.ts +2 -0
- package/lib/components/FileInput/types.d.ts +82 -0
- package/lib/components/Flex/Flex.d.ts +38 -0
- package/lib/components/Flex/helpers.d.ts +13 -0
- package/lib/components/Flex/index.d.ts +2 -0
- package/lib/components/FloatingActions/FloatingActions.d.ts +29 -0
- package/lib/components/FloatingActions/index.d.ts +2 -0
- package/lib/components/Form/FormBase.d.ts +3 -0
- package/lib/components/Form/FormContext.d.ts +16 -0
- package/lib/components/Form/FormError.d.ts +3 -0
- package/lib/components/Form/FormField.d.ts +3 -0
- package/lib/components/Form/FormInput.d.ts +3 -0
- package/lib/components/Form/FormLabel.d.ts +3 -0
- package/lib/components/Form/FormSubmit.d.ts +3 -0
- package/lib/components/Form/OptimizedForm.d.ts +22 -0
- package/lib/components/Form/index.d.ts +9 -0
- package/lib/components/Form/types.d.ts +104 -0
- package/lib/components/FormLayout/FormField.d.ts +3 -0
- package/lib/components/FormLayout/FormGroup.d.ts +3 -0
- package/lib/components/FormLayout/FormLayout.d.ts +3 -0
- package/lib/components/FormLayout/FormSection.d.ts +3 -0
- package/lib/components/FormLayout/index.d.ts +5 -0
- package/lib/components/FormLayout/types.d.ts +31 -0
- package/lib/components/Forms/ContactForm.d.ts +3 -0
- package/lib/components/Forms/ForgotPasswordForm.d.ts +3 -0
- package/lib/components/Forms/LoginForm.d.ts +3 -0
- package/lib/components/Forms/SignupForm.d.ts +3 -0
- package/lib/components/Forms/index.d.ts +5 -0
- package/lib/components/Forms/types.d.ts +89 -0
- package/lib/components/Gallery/Gallery.d.ts +3 -0
- package/lib/components/Gallery/GalleryControls.d.ts +3 -0
- package/lib/components/Gallery/GalleryMetadata.d.ts +3 -0
- package/lib/components/Gallery/GalleryNew.d.ts +3 -0
- package/lib/components/Gallery/GalleryThumbnails.d.ts +3 -0
- package/lib/components/Gallery/index.d.ts +5 -0
- package/lib/components/Gallery/types.d.ts +68 -0
- package/lib/components/Gauge/Gauge.d.ts +41 -0
- package/lib/components/Gauge/index.d.ts +9 -0
- package/lib/components/Gauge/styles.d.ts +57 -0
- package/lib/components/Gauge/types.d.ts +210 -0
- package/lib/components/Gauge/utils.d.ts +72 -0
- package/lib/components/GradientText/GradientText.d.ts +46 -0
- package/lib/components/GradientText/index.d.ts +2 -0
- package/lib/components/GradientText/types.d.ts +39 -0
- package/lib/components/Grid/Grid.d.ts +11 -0
- package/lib/components/Grid/index.d.ts +2 -0
- package/lib/components/Grid/types.d.ts +32 -0
- package/lib/components/HoverCard/HoverCard.d.ts +2 -0
- package/lib/components/HoverCard/index.d.ts +2 -0
- package/lib/components/HoverCard/types.d.ts +53 -0
- package/lib/components/Icon/Icon.d.ts +6 -0
- package/lib/components/Icon/icons/actions.d.ts +2 -0
- package/lib/components/Icon/icons/data.d.ts +2 -0
- package/lib/components/Icon/icons/multimedia.d.ts +2 -0
- package/lib/components/Icon/icons/navigation.d.ts +2 -0
- package/lib/components/Icon/icons/platforms.d.ts +2 -0
- package/lib/components/Icon/icons/status.d.ts +2 -0
- package/lib/components/Icon/icons/ui.d.ts +2 -0
- package/lib/components/Icon/index.d.ts +2 -0
- package/lib/components/Icon/registry.d.ts +6 -0
- package/lib/components/Icon/types.d.ts +40 -0
- package/lib/components/IconButton/IconButton.d.ts +3 -0
- package/lib/components/IconButton/index.d.ts +2 -0
- package/lib/components/IconButton/types.d.ts +45 -0
- package/lib/components/Image/Image.d.ts +3 -0
- package/lib/components/Image/index.d.ts +2 -0
- package/lib/components/Image/types.d.ts +57 -0
- package/lib/components/Indicator/Indicator.d.ts +7 -0
- package/lib/components/Indicator/index.d.ts +2 -0
- package/lib/components/Indicator/types.d.ts +13 -0
- package/lib/components/Input/Input.d.ts +6 -0
- package/lib/components/Input/InputBase.d.ts +17 -0
- package/lib/components/Input/OptimizedInput.d.ts +19 -0
- package/lib/components/Input/PasswordInput.d.ts +3 -0
- package/lib/components/Input/index.d.ts +5 -0
- package/lib/components/Input/styles.d.ts +85 -0
- package/lib/components/Input/types.d.ts +120 -0
- package/lib/components/Input/validation/index.d.ts +14 -0
- package/lib/components/Input/validation/optimized.d.ts +33 -0
- package/lib/components/KeyCap/KeyCap.d.ts +6 -0
- package/lib/components/KeyCap/index.d.ts +3 -0
- package/lib/components/KeyCap/styles.d.ts +11 -0
- package/lib/components/KeyCap/types.d.ts +54 -0
- package/lib/components/Layout/Layout.d.ts +18 -0
- package/lib/components/Layout/index.d.ts +1 -0
- package/lib/components/Link/Link.d.ts +31 -0
- package/lib/components/Link/index.d.ts +2 -0
- package/lib/components/ListGroup/ListGroup.d.ts +19 -0
- package/lib/components/ListGroup/index.d.ts +2 -0
- package/lib/components/ListGroup/types.d.ts +26 -0
- package/lib/components/Loader/Loader.d.ts +8 -0
- package/lib/components/Loader/index.d.ts +2 -0
- package/lib/components/Loader/types.d.ts +18 -0
- package/lib/components/LoadingOverlay/LoadingOverlay.d.ts +3 -0
- package/lib/components/LoadingOverlay/index.d.ts +2 -0
- package/lib/components/LoadingOverlay/types.d.ts +16 -0
- package/lib/components/Lottie/Lottie.d.ts +30 -0
- package/lib/components/Lottie/index.d.ts +2 -0
- package/lib/components/Markdown/Markdown.d.ts +66 -0
- package/lib/components/Markdown/index.d.ts +1 -0
- package/lib/components/Masonry/Masonry.d.ts +7 -0
- package/lib/components/Masonry/index.d.ts +2 -0
- package/lib/components/Masonry/types.d.ts +39 -0
- package/lib/components/Menu/Menu.d.ts +29 -0
- package/lib/components/Menu/index.d.ts +2 -0
- package/lib/components/Menu/styles.d.ts +13 -0
- package/lib/components/Menu/types.d.ts +71 -0
- package/lib/components/MenuItemButton/MenuItemButton.d.ts +39 -0
- package/lib/components/MenuItemButton/index.d.ts +2 -0
- package/lib/components/MiniCalendar/MiniCalendar.d.ts +3 -0
- package/lib/components/MiniCalendar/index.d.ts +1 -0
- package/lib/components/MonthPicker/MonthPicker.d.ts +3 -0
- package/lib/components/MonthPicker/index.d.ts +2 -0
- package/lib/components/MonthPicker/types.d.ts +26 -0
- package/lib/components/MonthPickerInput/MonthPickerInput.d.ts +4 -0
- package/lib/components/MonthPickerInput/index.d.ts +2 -0
- package/lib/components/MonthPickerInput/types.d.ts +30 -0
- package/lib/components/Navigation/DrawerNavigator.d.ts +7 -0
- package/lib/components/Navigation/NavigationContainer.d.ts +11 -0
- package/lib/components/Navigation/NavigationContext.d.ts +11 -0
- package/lib/components/Navigation/Screen.d.ts +6 -0
- package/lib/components/Navigation/StackNavigator.d.ts +7 -0
- package/lib/components/Navigation/index.d.ts +6 -0
- package/lib/components/Navigation/types.d.ts +70 -0
- package/lib/components/NavigationProgress/NavigationProgress.d.ts +4 -0
- package/lib/components/NavigationProgress/defaults.d.ts +8 -0
- package/lib/components/NavigationProgress/hooks/useNavigationProgressState.d.ts +1 -0
- package/lib/components/NavigationProgress/index.d.ts +2 -0
- package/lib/components/NavigationProgress/styles/resolver.d.ts +1 -0
- package/lib/components/NavigationProgress/tokens.d.ts +4 -0
- package/lib/components/NavigationProgress/types.d.ts +30 -0
- package/lib/components/NumberInput/NumberInput.d.ts +5 -0
- package/lib/components/NumberInput/index.d.ts +2 -0
- package/lib/components/NumberInput/types.d.ts +76 -0
- package/lib/components/Overlay/Overlay.d.ts +4 -0
- package/lib/components/Overlay/index.d.ts +2 -0
- package/lib/components/Overlay/types.d.ts +27 -0
- package/lib/components/Pagination/Pagination.d.ts +6 -0
- package/lib/components/Pagination/index.d.ts +2 -0
- package/lib/components/Pagination/types.d.ts +58 -0
- package/lib/components/PhoneInput/PhoneInput.d.ts +3 -0
- package/lib/components/PhoneInput/index.d.ts +2 -0
- package/lib/components/PhoneInput/types.d.ts +27 -0
- package/lib/components/PinInput/PinInput.d.ts +6 -0
- package/lib/components/PinInput/index.d.ts +2 -0
- package/lib/components/PinInput/types.d.ts +41 -0
- package/lib/components/PressAnimation/PressAnimation.d.ts +29 -0
- package/lib/components/PressAnimation/index.d.ts +2 -0
- package/lib/components/Progress/Progress.d.ts +11 -0
- package/lib/components/Progress/index.d.ts +2 -0
- package/lib/components/Progress/types.d.ts +48 -0
- package/lib/components/QRCode/QRCode.d.ts +11 -0
- package/lib/components/QRCode/QRCodeSVG.d.ts +6 -0
- package/lib/components/QRCode/core/buildMatrix.d.ts +11 -0
- package/lib/components/QRCode/core/encoder.d.ts +12 -0
- package/lib/components/QRCode/core/mask.d.ts +2 -0
- package/lib/components/QRCode/core/mode.d.ts +6 -0
- package/lib/components/QRCode/core/reedSolomon.d.ts +1 -0
- package/lib/components/QRCode/core/tables.d.ts +24 -0
- package/lib/components/QRCode/index.d.ts +3 -0
- package/lib/components/QRCode/optimizations.d.ts +20 -0
- package/lib/components/QRCode/types.d.ts +76 -0
- package/lib/components/Radio/Radio.d.ts +10 -0
- package/lib/components/Radio/index.d.ts +2 -0
- package/lib/components/Radio/styles.d.ts +81 -0
- package/lib/components/Radio/types.d.ts +79 -0
- package/lib/components/Rating/Rating.d.ts +2 -0
- package/lib/components/Rating/index.d.ts +2 -0
- package/lib/components/Rating/types.d.ts +35 -0
- package/lib/components/Reveal/Reveal.d.ts +4 -0
- package/lib/components/Reveal/index.d.ts +2 -0
- package/lib/components/Reveal/types.d.ts +53 -0
- package/lib/components/RichTextEditor/RichTextEditor.d.ts +3 -0
- package/lib/components/RichTextEditor/index.d.ts +2 -0
- package/lib/components/RichTextEditor/styles.d.ts +61 -0
- package/lib/components/RichTextEditor/types.d.ts +150 -0
- package/lib/components/Search/Search.d.ts +6 -0
- package/lib/components/Search/index.d.ts +2 -0
- package/lib/components/Search/test-component.d.ts +3 -0
- package/lib/components/Search/types.d.ts +27 -0
- package/lib/components/SegmentedControl/SegmentedControl.d.ts +6 -0
- package/lib/components/SegmentedControl/index.d.ts +2 -0
- package/lib/components/SegmentedControl/types.d.ts +62 -0
- package/lib/components/Select/Select.d.ts +6 -0
- package/lib/components/Select/Select.types.d.ts +31 -0
- package/lib/components/Select/index.d.ts +2 -0
- package/lib/components/Select/types.d.ts +25 -0
- package/lib/components/ShimmerText/ShimmerText.d.ts +33 -0
- package/lib/components/ShimmerText/index.d.ts +2 -0
- package/lib/components/ShimmerText/types.d.ts +33 -0
- package/lib/components/Skeleton/Skeleton.d.ts +2 -0
- package/lib/components/Skeleton/index.d.ts +2 -0
- package/lib/components/Skeleton/types.d.ts +30 -0
- package/lib/components/Slider/Slider.d.ts +10 -0
- package/lib/components/Slider/SliderCore.d.ts +57 -0
- package/lib/components/Slider/index.d.ts +2 -0
- package/lib/components/Slider/types.d.ts +133 -0
- package/lib/components/Space/Space.d.ts +4 -0
- package/lib/components/Space/index.d.ts +2 -0
- package/lib/components/Space/types.d.ts +17 -0
- package/lib/components/Spoiler/Spoiler.d.ts +5 -0
- package/lib/components/Spoiler/index.d.ts +2 -0
- package/lib/components/Spoiler/types.d.ts +40 -0
- package/lib/components/Spotlight/DirectSpotlightState.d.ts +41 -0
- package/lib/components/Spotlight/Spotlight.d.ts +19 -0
- package/lib/components/Spotlight/SpotlightController.d.ts +13 -0
- package/lib/components/Spotlight/SpotlightStore.d.ts +32 -0
- package/lib/components/Spotlight/SpotlightTypes.d.ts +29 -0
- package/lib/components/Spotlight/index.d.ts +6 -0
- package/lib/components/Spotlight/types.d.ts +66 -0
- package/lib/components/Stepper/Stepper.d.ts +12 -0
- package/lib/components/Stepper/index.d.ts +2 -0
- package/lib/components/Stepper/types.d.ts +68 -0
- package/lib/components/Switch/Switch.d.ts +6 -0
- package/lib/components/Switch/index.d.ts +2 -0
- package/lib/components/Switch/styles.d.ts +85 -0
- package/lib/components/Switch/types.d.ts +54 -0
- package/lib/components/Table/Table.d.ts +115 -0
- package/lib/components/Table/index.d.ts +1 -0
- package/lib/components/TableOfContents/TableOfContents.d.ts +3 -0
- package/lib/components/TableOfContents/index.d.ts +2 -0
- package/lib/components/TableOfContents/types.d.ts +77 -0
- package/lib/components/Tabs/Tabs.d.ts +3 -0
- package/lib/components/Tabs/index.d.ts +2 -0
- package/lib/components/Tabs/types.d.ts +182 -0
- package/lib/components/Text/Text.d.ts +51 -0
- package/lib/components/Text/aliases.d.ts +22 -0
- package/lib/components/Text/index.d.ts +2 -0
- package/lib/components/TextArea/TextArea.d.ts +6 -0
- package/lib/components/TextArea/index.d.ts +2 -0
- package/lib/components/TextArea/meta/index.d.ts +97 -0
- package/lib/components/TextArea/styles.d.ts +95 -0
- package/lib/components/TextArea/types.d.ts +33 -0
- package/lib/components/TimePicker/TimePicker.d.ts +3 -0
- package/lib/components/TimePicker/index.d.ts +2 -0
- package/lib/components/TimePicker/types.d.ts +32 -0
- package/lib/components/TimePickerInput/index.d.ts +2 -0
- package/lib/components/Timeline/Timeline.d.ts +13 -0
- package/lib/components/Timeline/index.d.ts +2 -0
- package/lib/components/Timeline/types.d.ts +53 -0
- package/lib/components/Title/Title.d.ts +10 -0
- package/lib/components/Title/index.d.ts +2 -0
- package/lib/components/Title/types.d.ts +55 -0
- package/lib/components/Toast/Toast.d.ts +8 -0
- package/lib/components/Toast/ToastProvider.d.ts +88 -0
- package/lib/components/Toast/index.d.ts +3 -0
- package/lib/components/Toast/types.d.ts +78 -0
- package/lib/components/Toggle/Toggle.d.ts +10 -0
- package/lib/components/Toggle/ToggleBar.d.ts +42 -0
- package/lib/components/Toggle/index.d.ts +4 -0
- package/lib/components/Toggle/types.d.ts +68 -0
- package/lib/components/Tooltip/Tooltip.d.ts +2 -0
- package/lib/components/Tooltip/index.d.ts +2 -0
- package/lib/components/Tooltip/types.d.ts +44 -0
- package/lib/components/Tree/Tree.d.ts +5 -0
- package/lib/components/Tree/index.d.ts +2 -0
- package/lib/components/Tree/types.d.ts +65 -0
- package/lib/components/Video/NativeVideoPlayer.d.ts +33 -0
- package/lib/components/Video/Video.d.ts +3 -0
- package/lib/components/Video/VideoControls.d.ts +17 -0
- package/lib/components/Video/VideoTimeline.d.ts +12 -0
- package/lib/components/Video/YouTubePlayer.d.ts +44 -0
- package/lib/components/Video/index.d.ts +2 -0
- package/lib/components/Video/types.d.ts +145 -0
- package/lib/components/Waveform/Waveform.d.ts +3 -0
- package/lib/components/Waveform/WaveformSkeleton.d.ts +9 -0
- package/lib/components/Waveform/index.d.ts +4 -0
- package/lib/components/Waveform/styles.d.ts +53 -0
- package/lib/components/Waveform/types.d.ts +124 -0
- package/lib/components/Waveform/utils.d.ts +95 -0
- package/lib/components/YearPicker/YearPicker.d.ts +3 -0
- package/lib/components/YearPicker/index.d.ts +2 -0
- package/lib/components/YearPicker/types.d.ts +24 -0
- package/lib/components/YearPickerInput/YearPickerInput.d.ts +4 -0
- package/lib/components/YearPickerInput/index.d.ts +2 -0
- package/lib/components/YearPickerInput/types.d.ts +26 -0
- package/lib/components/_internal/FieldHeader.d.ts +21 -0
- package/lib/components/index.d.ts +164 -0
- package/lib/components/optimized.d.ts +74 -0
- package/lib/components/types.d.ts +57 -0
- package/lib/contexts/TitleRegistryContext.d.ts +20 -0
- package/lib/contexts/index.d.ts +1 -0
- package/lib/core/accessibility/advancedHooks.d.ts +82 -0
- package/lib/core/accessibility/constants.d.ts +85 -0
- package/lib/core/accessibility/context.d.ts +5 -0
- package/lib/core/accessibility/hooks.d.ts +33 -0
- package/lib/core/accessibility/index.d.ts +6 -0
- package/lib/core/accessibility/types.d.ts +35 -0
- package/lib/core/accessibility/utils.d.ts +56 -0
- package/lib/core/animations/index.d.ts +2 -0
- package/lib/core/animations/transitions.d.ts +31 -0
- package/lib/core/components/ClearButton.d.ts +15 -0
- package/lib/core/components/InputContainer.d.ts +19 -0
- package/lib/core/design-tokens.d.ts +292 -0
- package/lib/core/factory/factory.d.ts +33 -0
- package/lib/core/factory/index.d.ts +4 -0
- package/lib/core/factory/polymorphicFactory.d.ts +38 -0
- package/lib/core/haptics/HapticsProvider.d.ts +14 -0
- package/lib/core/hooks/useDropdownPositioning.d.ts +61 -0
- package/lib/core/hooks/usePopoverPositioning.d.ts +33 -0
- package/lib/core/i18n/I18nContext.d.ts +8 -0
- package/lib/core/i18n/index.d.ts +2 -0
- package/lib/core/i18n/types.d.ts +22 -0
- package/lib/core/index.d.ts +15 -0
- package/lib/core/interactive-states.d.ts +41 -0
- package/lib/core/motion/ReducedMotionProvider.d.ts +10 -0
- package/lib/core/motion/motionTokens.d.ts +12 -0
- package/lib/core/providers/DirectionProvider.d.ts +88 -0
- package/lib/core/providers/OverlayProvider.d.ts +40 -0
- package/lib/core/providers/OverlayRenderer.d.ts +7 -0
- package/lib/core/providers/index.d.ts +5 -0
- package/lib/core/responsive/index.d.ts +22 -0
- package/lib/core/sound/context.d.ts +21 -0
- package/lib/core/sound/hooks.d.ts +214 -0
- package/lib/core/sound/index.d.ts +5 -0
- package/lib/core/sound/mockContext.d.ts +21 -0
- package/lib/core/sound/sounds.d.ts +17 -0
- package/lib/core/sound/types.d.ts +79 -0
- package/lib/core/style-factory.d.ts +23 -0
- package/lib/core/theme/CSSVariables.d.ts +9 -0
- package/lib/core/theme/PlatformBlocksProvider.d.ts +52 -0
- package/lib/core/theme/ThemeModeProvider.d.ts +42 -0
- package/lib/core/theme/ThemeProvider.d.ts +19 -0
- package/lib/core/theme/breakpoints.d.ts +34 -0
- package/lib/core/theme/darkTheme.d.ts +2 -0
- package/lib/core/theme/defaultTheme.d.ts +2 -0
- package/lib/core/theme/index.d.ts +12 -0
- package/lib/core/theme/radius.d.ts +132 -0
- package/lib/core/theme/shadow.d.ts +119 -0
- package/lib/core/theme/sizes.d.ts +185 -0
- package/lib/core/theme/types.d.ts +190 -0
- package/lib/core/theme/unified-sizing.d.ts +65 -0
- package/lib/core/theme/useColorScheme.d.ts +6 -0
- package/lib/core/theme/utils.d.ts +9 -0
- package/lib/core/unified-styles.d.ts +12 -0
- package/lib/core/utils/UniversalCSS.d.ts +14 -0
- package/lib/core/utils/debounce.d.ts +16 -0
- package/lib/core/utils/hash.d.ts +4 -0
- package/lib/core/utils/index.d.ts +38 -0
- package/lib/core/utils/layout.d.ts +44 -0
- package/lib/core/utils/performance.d.ts +30 -0
- package/lib/core/utils/positioning-enhanced.d.ts +88 -0
- package/lib/core/utils/rtl.d.ts +174 -0
- package/lib/core/utils/shadow.d.ts +13 -0
- package/lib/core/utils/spacing.d.ts +56 -0
- package/lib/core/utils/universal.d.ts +47 -0
- package/lib/core/utils/universalSimple.d.ts +37 -0
- package/lib/core/utils/withUniversalProps.d.ts +26 -0
- package/lib/esm/index.js +35209 -0
- package/lib/esm/index.js.map +1 -0
- package/lib/hooks/index.d.ts +6 -0
- package/lib/hooks/useClipboard.d.ts +20 -0
- package/lib/hooks/useHaptics.d.ts +22 -0
- package/lib/hooks/useHotkeys.d.ts +42 -0
- package/lib/hooks/useMaskedInput.d.ts +35 -0
- package/lib/hooks/useScrollSpy.d.ts +38 -0
- package/lib/hooks/useTitleRegistration.d.ts +14 -0
- package/lib/index.d.ts +220 -0
- package/lib/utils/index.d.ts +1 -0
- package/lib/utils/mask.d.ts +138 -0
- package/package.json +148 -0
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { Breakpoint } from '../../core/responsive';
|
|
3
|
+
import { AppShellConfig, LayoutStrategy } from './types';
|
|
4
|
+
export interface AppShellContextValue {
|
|
5
|
+
/** Current height of header */
|
|
6
|
+
headerHeight: number;
|
|
7
|
+
/** Current width of navbar */
|
|
8
|
+
navbarWidth: number;
|
|
9
|
+
/** Current width of aside panel */
|
|
10
|
+
asideWidth: number;
|
|
11
|
+
/** Current height of footer */
|
|
12
|
+
footerHeight: number;
|
|
13
|
+
/** Current height of bottom navigation */
|
|
14
|
+
bottomNavHeight: number;
|
|
15
|
+
/** Whether navbar is collapsed */
|
|
16
|
+
isNavbarCollapsed: boolean;
|
|
17
|
+
/** Whether aside panel is collapsed */
|
|
18
|
+
isAsideCollapsed: boolean;
|
|
19
|
+
/** Whether we're on mobile device */
|
|
20
|
+
isMobile: boolean;
|
|
21
|
+
/** Current breakpoint */
|
|
22
|
+
breakpoint: Breakpoint;
|
|
23
|
+
/** Current layout strategy */
|
|
24
|
+
layout: LayoutStrategy;
|
|
25
|
+
/** Full configuration object */
|
|
26
|
+
config: AppShellConfig;
|
|
27
|
+
}
|
|
28
|
+
declare const AppShellContext: React.Context<AppShellContextValue | undefined>;
|
|
29
|
+
export declare const useAppShell: () => AppShellContextValue;
|
|
30
|
+
export declare const useAppShellLayout: (config: AppShellConfig, layout: LayoutStrategy, navbarOpen?: boolean, asideOpen?: boolean) => AppShellContextValue;
|
|
31
|
+
export interface AppShellProviderProps {
|
|
32
|
+
value: AppShellContextValue;
|
|
33
|
+
children: React.ReactNode;
|
|
34
|
+
}
|
|
35
|
+
export declare const AppShellProvider: React.FC<AppShellProviderProps>;
|
|
36
|
+
export declare const getAutoLayout: (breakpoint: Breakpoint) => LayoutStrategy;
|
|
37
|
+
export declare const getMainContentOffset: (context: AppShellContextValue) => {
|
|
38
|
+
position: "absolute";
|
|
39
|
+
top: number;
|
|
40
|
+
left: number;
|
|
41
|
+
right: number;
|
|
42
|
+
bottom: number;
|
|
43
|
+
};
|
|
44
|
+
export { AppShellContext };
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { HeaderConfig, NavbarConfig, AsideConfig, FooterConfig, BottomNavConfig } from './types';
|
|
2
|
+
export declare const DEFAULT_HEADER: HeaderConfig;
|
|
3
|
+
export declare const DEFAULT_NAVBAR: NavbarConfig;
|
|
4
|
+
export declare const DEFAULT_ASIDE: AsideConfig;
|
|
5
|
+
export declare const DEFAULT_FOOTER: FooterConfig;
|
|
6
|
+
export declare const DEFAULT_BOTTOM_NAV: BottomNavConfig;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export { AppShell, useAppShell, useAppShellApi, useAppShellLayout, AppShellHeader, AppShellNavbar, AppShellAside, AppShellFooter, AppShellBottomNav, AppShellMain, AppShellSection } from './AppShell';
|
|
2
|
+
export { MobileMenu } from './MobileMenu';
|
|
3
|
+
export { BottomAppBar } from './BottomAppBar';
|
|
4
|
+
export { StatusBarManager } from './StatusBarManager';
|
|
5
|
+
export { useBreakpoint } from './hooks/useBreakpoint';
|
|
6
|
+
export { useNavbarHover } from './AppShell';
|
|
7
|
+
export { resolveResponsiveValue } from './hooks/useResponsiveValue';
|
|
8
|
+
export { defineAppLayout, AppLayoutProvider, AppLayoutRenderer, useAppLayoutContext, } from './app-layout';
|
|
9
|
+
export type { AppLayoutBlueprint, AppLayoutRuntimeOverrides, AppLayoutRuntimeContext, LayoutEntry, LayoutComponentEntry, LayoutNavbarConfig, LayoutAsideConfig, LayoutFooterConfig, LayoutBottomNavConfig, LayoutMainConfig, LayoutOptions, LayoutSection, } from './app-layout';
|
|
10
|
+
export { DEFAULT_HEADER, DEFAULT_NAVBAR, DEFAULT_ASIDE, DEFAULT_FOOTER, DEFAULT_BOTTOM_NAV } from './defaults';
|
|
11
|
+
export { APP_SHELL_META } from './meta.schema';
|
|
12
|
+
export type { AppShellProps, LayoutType, ResponsiveSize, Breakpoint, HeaderConfig, NavbarConfig, AsideConfig, FooterConfig, BottomNavConfig, AppShellBottomNavProps, BottomAppBarItem } from './types';
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export interface AppShellMetaField {
|
|
2
|
+
name: string;
|
|
3
|
+
type: string;
|
|
4
|
+
required?: boolean;
|
|
5
|
+
description?: string;
|
|
6
|
+
default?: any;
|
|
7
|
+
enum?: string[];
|
|
8
|
+
}
|
|
9
|
+
export interface AppShellMetaSection {
|
|
10
|
+
name: string;
|
|
11
|
+
description?: string;
|
|
12
|
+
fields: AppShellMetaField[];
|
|
13
|
+
}
|
|
14
|
+
export declare const APP_SHELL_META: AppShellMetaSection[];
|
|
@@ -0,0 +1,228 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { SpacingProps } from '../../core/utils';
|
|
3
|
+
export type ResponsiveSize = number | string | {
|
|
4
|
+
base?: number | string;
|
|
5
|
+
xs?: number | string;
|
|
6
|
+
sm?: number | string;
|
|
7
|
+
md?: number | string;
|
|
8
|
+
lg?: number | string;
|
|
9
|
+
xl?: number | string;
|
|
10
|
+
};
|
|
11
|
+
export type Breakpoint = 'base' | 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
12
|
+
export interface HeaderConfig {
|
|
13
|
+
height: ResponsiveSize;
|
|
14
|
+
collapsed?: boolean;
|
|
15
|
+
offset?: boolean;
|
|
16
|
+
zIndex?: number;
|
|
17
|
+
}
|
|
18
|
+
export interface NavbarConfig {
|
|
19
|
+
width: ResponsiveSize;
|
|
20
|
+
breakpoint: Breakpoint;
|
|
21
|
+
collapsed?: {
|
|
22
|
+
mobile?: boolean;
|
|
23
|
+
desktop?: boolean;
|
|
24
|
+
};
|
|
25
|
+
zIndex?: number;
|
|
26
|
+
collapsedWidth?: number;
|
|
27
|
+
expandOnHover?: boolean;
|
|
28
|
+
startCollapsedDesktop?: boolean;
|
|
29
|
+
}
|
|
30
|
+
export interface AsideConfig {
|
|
31
|
+
width: ResponsiveSize;
|
|
32
|
+
breakpoint: Breakpoint;
|
|
33
|
+
collapsed?: {
|
|
34
|
+
mobile?: boolean;
|
|
35
|
+
desktop?: boolean;
|
|
36
|
+
};
|
|
37
|
+
zIndex?: number;
|
|
38
|
+
}
|
|
39
|
+
export interface FooterConfig {
|
|
40
|
+
height: ResponsiveSize;
|
|
41
|
+
collapsed?: boolean;
|
|
42
|
+
offset?: boolean;
|
|
43
|
+
zIndex?: number;
|
|
44
|
+
}
|
|
45
|
+
export interface BottomNavConfig {
|
|
46
|
+
height: ResponsiveSize;
|
|
47
|
+
showOnlyMobile?: boolean;
|
|
48
|
+
collapsed?: boolean;
|
|
49
|
+
zIndex?: number;
|
|
50
|
+
}
|
|
51
|
+
export interface LayoutVisibilityConfig {
|
|
52
|
+
header?: boolean;
|
|
53
|
+
navbar?: boolean;
|
|
54
|
+
aside?: boolean;
|
|
55
|
+
footer?: boolean;
|
|
56
|
+
bottomNav?: boolean;
|
|
57
|
+
}
|
|
58
|
+
export interface MobileMenuConfig {
|
|
59
|
+
type?: 'modal' | 'drawer' | 'fullscreen';
|
|
60
|
+
animationType?: 'slide' | 'fade' | 'none';
|
|
61
|
+
showBackdrop?: boolean;
|
|
62
|
+
closeOnOutsidePress?: boolean;
|
|
63
|
+
}
|
|
64
|
+
export interface StatusBarConfig {
|
|
65
|
+
style?: 'auto' | 'light' | 'dark';
|
|
66
|
+
backgroundColor?: string;
|
|
67
|
+
translucent?: boolean;
|
|
68
|
+
hidden?: boolean;
|
|
69
|
+
}
|
|
70
|
+
export type LayoutType = 'default' | 'alt' | 'mobile-bottom-nav' | 'mobile-tabs';
|
|
71
|
+
export type LayoutStrategy = 'desktop-default' | 'desktop-alt' | 'mobile-bottom-nav' | 'adaptive';
|
|
72
|
+
export interface AppShellProps extends SpacingProps {
|
|
73
|
+
layout?: 'default' | 'alt';
|
|
74
|
+
header?: HeaderConfig;
|
|
75
|
+
navbar?: NavbarConfig;
|
|
76
|
+
aside?: AsideConfig;
|
|
77
|
+
footer?: FooterConfig;
|
|
78
|
+
bottomNav?: BottomNavConfig;
|
|
79
|
+
showHeader?: boolean;
|
|
80
|
+
/** Toggle rendering of individual autoLayout sections */
|
|
81
|
+
layoutSections?: LayoutVisibilityConfig;
|
|
82
|
+
/** Enable AppShell auto-composition. When true, AppShell will render its own Header/Navbar/Main/Footer/BottomBar using the provided content props instead of relying on children. */
|
|
83
|
+
autoLayout?: boolean;
|
|
84
|
+
/** Content to render inside AppShell.Header when autoLayout is enabled */
|
|
85
|
+
headerContent?: React.ReactNode | (() => React.ReactNode);
|
|
86
|
+
/** Content to render inside AppShell.Navbar when autoLayout is enabled */
|
|
87
|
+
navbarContent?: React.ReactNode | (() => React.ReactNode);
|
|
88
|
+
/** Content to render inside AppShell.Aside when autoLayout is enabled */
|
|
89
|
+
asideContent?: React.ReactNode | (() => React.ReactNode);
|
|
90
|
+
/** Content to render inside AppShell.Footer when autoLayout is enabled */
|
|
91
|
+
footerContent?: React.ReactNode | (() => React.ReactNode);
|
|
92
|
+
/** Items for a mobile bottom navigation bar when autoLayout is enabled */
|
|
93
|
+
bottomNavItems?: BottomAppBarItem[];
|
|
94
|
+
/** Additional props forwarded to BottomAppBar in autoLayout mode (items overridden by bottomNavItems) */
|
|
95
|
+
bottomNavProps?: Partial<AppShellBottomNavProps>;
|
|
96
|
+
mobileMenu?: MobileMenuConfig;
|
|
97
|
+
statusBar?: StatusBarConfig;
|
|
98
|
+
padding?: ResponsiveSize;
|
|
99
|
+
withBorder?: boolean;
|
|
100
|
+
zIndex?: number;
|
|
101
|
+
transitionDuration?: number;
|
|
102
|
+
transitionTimingFunction?: string;
|
|
103
|
+
disabled?: boolean;
|
|
104
|
+
children: React.ReactNode;
|
|
105
|
+
backgroundColor?: string;
|
|
106
|
+
withSafeArea?: boolean;
|
|
107
|
+
style?: any;
|
|
108
|
+
testID?: string;
|
|
109
|
+
/** Maximum width for main content area to prevent stretching on wide screens */
|
|
110
|
+
maxContentWidth?: number | string;
|
|
111
|
+
/** Center content when maxContentWidth is set */
|
|
112
|
+
centerContent?: boolean;
|
|
113
|
+
/** Optional table of contents rendered to the right of the main content */
|
|
114
|
+
tableOfContents?: React.ReactNode;
|
|
115
|
+
/** Hide the table of contents automatically on mobile breakpoints */
|
|
116
|
+
hideTableOfContentsOnMobile?: boolean;
|
|
117
|
+
/** Custom width for the table of contents column */
|
|
118
|
+
tableOfContentsWidth?: number | string;
|
|
119
|
+
/** Toggle border between content and table of contents */
|
|
120
|
+
tableOfContentsWithBorder?: boolean;
|
|
121
|
+
}
|
|
122
|
+
export interface AppShellContextValue {
|
|
123
|
+
headerHeight: number | string;
|
|
124
|
+
navbarWidth: number | string;
|
|
125
|
+
fullNavbarWidth: number | string;
|
|
126
|
+
navbarCollapsedRailWidth: number | string;
|
|
127
|
+
navbarExpandOnHover: boolean;
|
|
128
|
+
asideWidth: number | string;
|
|
129
|
+
footerHeight: number | string;
|
|
130
|
+
bottomNavHeight: number | string;
|
|
131
|
+
isNavbarCollapsed: boolean;
|
|
132
|
+
isNavbarRail: boolean;
|
|
133
|
+
isAsideCollapsed: boolean;
|
|
134
|
+
isMobile: boolean;
|
|
135
|
+
breakpoint: Breakpoint;
|
|
136
|
+
openNavbar: () => void;
|
|
137
|
+
closeNavbar: () => void;
|
|
138
|
+
toggleNavbar: () => void;
|
|
139
|
+
navbarOpen: boolean;
|
|
140
|
+
transitionDuration: number;
|
|
141
|
+
}
|
|
142
|
+
export interface AppShellConfig {
|
|
143
|
+
header?: HeaderConfig;
|
|
144
|
+
navbar?: NavbarConfig;
|
|
145
|
+
aside?: AsideConfig;
|
|
146
|
+
footer?: FooterConfig;
|
|
147
|
+
bottomNav?: BottomNavConfig;
|
|
148
|
+
showHeader?: boolean;
|
|
149
|
+
layoutSections?: LayoutVisibilityConfig;
|
|
150
|
+
}
|
|
151
|
+
export interface AppShellHeaderProps {
|
|
152
|
+
children: React.ReactNode;
|
|
153
|
+
withBorder?: boolean;
|
|
154
|
+
zIndex?: number;
|
|
155
|
+
style?: any;
|
|
156
|
+
}
|
|
157
|
+
export interface AppShellNavbarProps {
|
|
158
|
+
children: React.ReactNode;
|
|
159
|
+
withBorder?: boolean;
|
|
160
|
+
zIndex?: number;
|
|
161
|
+
style?: any;
|
|
162
|
+
drawerMode?: boolean;
|
|
163
|
+
}
|
|
164
|
+
export interface AppShellAsideProps {
|
|
165
|
+
children: React.ReactNode;
|
|
166
|
+
withBorder?: boolean;
|
|
167
|
+
zIndex?: number;
|
|
168
|
+
style?: any;
|
|
169
|
+
}
|
|
170
|
+
export interface AppShellFooterProps {
|
|
171
|
+
children: React.ReactNode;
|
|
172
|
+
withBorder?: boolean;
|
|
173
|
+
zIndex?: number;
|
|
174
|
+
style?: any;
|
|
175
|
+
}
|
|
176
|
+
export interface BottomAppBarItem {
|
|
177
|
+
key: string;
|
|
178
|
+
label: string;
|
|
179
|
+
icon: React.ReactNode;
|
|
180
|
+
activeIcon?: React.ReactNode;
|
|
181
|
+
badgeCount?: number;
|
|
182
|
+
onPress?: () => void;
|
|
183
|
+
}
|
|
184
|
+
export interface AppShellBottomNavProps {
|
|
185
|
+
/** Provide custom children (legacy). If `items` provided, children are ignored. */
|
|
186
|
+
children?: React.ReactNode;
|
|
187
|
+
/** Structured items definition for standard navigation bar */
|
|
188
|
+
items?: BottomAppBarItem[];
|
|
189
|
+
/** Currently active item key */
|
|
190
|
+
activeKey?: string;
|
|
191
|
+
/** Callback when an item is pressed (fires after per-item onPress) */
|
|
192
|
+
onItemPress?: (key: string) => void;
|
|
193
|
+
/** Show labels under icons (default true). If false, shows tooltip-like behavior (future) */
|
|
194
|
+
showLabels?: boolean;
|
|
195
|
+
/** Visual variant */
|
|
196
|
+
variant?: 'solid' | 'surface' | 'elevated' | 'translucent';
|
|
197
|
+
/** Elevation shadow level (only for elevated variant) */
|
|
198
|
+
elevation?: number;
|
|
199
|
+
/** Optional floating action button rendered centered & elevated */
|
|
200
|
+
fab?: React.ReactNode;
|
|
201
|
+
withBorder?: boolean;
|
|
202
|
+
zIndex?: number;
|
|
203
|
+
style?: any;
|
|
204
|
+
}
|
|
205
|
+
export interface AppShellMainProps {
|
|
206
|
+
children: React.ReactNode;
|
|
207
|
+
style?: any;
|
|
208
|
+
id?: string;
|
|
209
|
+
role?: string;
|
|
210
|
+
/** Maximum width for main content area to prevent stretching on wide screens */
|
|
211
|
+
maxWidth?: number | string;
|
|
212
|
+
/** Center content when maxWidth is set */
|
|
213
|
+
centerContent?: boolean;
|
|
214
|
+
/** Table of contents content to show in right sidebar */
|
|
215
|
+
tableOfContents?: React.ReactNode;
|
|
216
|
+
/** Hide table of contents on mobile */
|
|
217
|
+
hideTocOnMobile?: boolean;
|
|
218
|
+
/** Width of the table of contents sidebar */
|
|
219
|
+
tocWidth?: number | string;
|
|
220
|
+
/** Add border to table of contents */
|
|
221
|
+
tocWithBorder?: boolean;
|
|
222
|
+
}
|
|
223
|
+
export interface AppShellSectionProps {
|
|
224
|
+
children: React.ReactNode;
|
|
225
|
+
grow?: boolean;
|
|
226
|
+
withScrollArea?: boolean;
|
|
227
|
+
style?: any;
|
|
228
|
+
}
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { AppStoreBadgeProps } from './types';
|
|
3
|
+
type ConvenienceProps = Omit<AppStoreBadgeProps, 'brand' | 'primaryText' | 'secondaryText'>;
|
|
4
|
+
/**
|
|
5
|
+
* App Store badge for iOS apps
|
|
6
|
+
*/
|
|
7
|
+
export declare const AppStoreDownloadBadge: (props: ConvenienceProps) => React.JSX.Element;
|
|
8
|
+
/**
|
|
9
|
+
* Samsung Galaxy Store badge
|
|
10
|
+
*/
|
|
11
|
+
export declare const GalaxyStoreDownloadBadge: (props: ConvenienceProps) => React.JSX.Element;
|
|
12
|
+
/**
|
|
13
|
+
* Google Play badge for Android apps
|
|
14
|
+
*/
|
|
15
|
+
export declare const GooglePlayDownloadBadge: (props: ConvenienceProps) => React.JSX.Element;
|
|
16
|
+
/**
|
|
17
|
+
* Huawei AppGallery badge
|
|
18
|
+
*/
|
|
19
|
+
export declare const HuaweiAppGalleryBadge: (props: ConvenienceProps) => React.JSX.Element;
|
|
20
|
+
/**
|
|
21
|
+
* Amazon Appstore badge
|
|
22
|
+
*/
|
|
23
|
+
export declare const AmazonAppstoreBadge: (props: ConvenienceProps) => React.JSX.Element;
|
|
24
|
+
/**
|
|
25
|
+
* Microsoft Store badge
|
|
26
|
+
*/
|
|
27
|
+
export declare const MicrosoftStoreDownloadBadge: (props: ConvenienceProps) => React.JSX.Element;
|
|
28
|
+
/**
|
|
29
|
+
* Spotify badge for music/podcast apps
|
|
30
|
+
*/
|
|
31
|
+
export declare const SpotifyListenBadge: (props: ConvenienceProps) => React.JSX.Element;
|
|
32
|
+
/**
|
|
33
|
+
* Apple Podcasts badge
|
|
34
|
+
*/
|
|
35
|
+
export declare const ApplePodcastsListenBadge: (props: ConvenienceProps) => React.JSX.Element;
|
|
36
|
+
/**
|
|
37
|
+
* YouTube badge
|
|
38
|
+
*/
|
|
39
|
+
export declare const YouTubeWatchBadge: (props: ConvenienceProps) => React.JSX.Element;
|
|
40
|
+
/**
|
|
41
|
+
* YouTube Music badge
|
|
42
|
+
*/
|
|
43
|
+
export declare const YouTubeMusicListenBadge: (props: ConvenienceProps) => React.JSX.Element;
|
|
44
|
+
/**
|
|
45
|
+
* Apple Music badge
|
|
46
|
+
*/
|
|
47
|
+
export declare const AppleMusicListenBadge: (props: ConvenienceProps) => React.JSX.Element;
|
|
48
|
+
/**
|
|
49
|
+
* Amazon Music badge
|
|
50
|
+
*/
|
|
51
|
+
export declare const AmazonMusicListenBadge: (props: ConvenienceProps) => React.JSX.Element;
|
|
52
|
+
/**
|
|
53
|
+
* SoundCloud badge
|
|
54
|
+
*/
|
|
55
|
+
export declare const SoundCloudListenBadge: (props: ConvenienceProps) => React.JSX.Element;
|
|
56
|
+
/**
|
|
57
|
+
* Amazon shopping badge
|
|
58
|
+
*/
|
|
59
|
+
export declare const AmazonStoreBadge: (props: ConvenienceProps) => React.JSX.Element;
|
|
60
|
+
/**
|
|
61
|
+
* Amazon Prime Video badge
|
|
62
|
+
*/
|
|
63
|
+
export declare const AmazonPrimeVideoBadge: (props: ConvenienceProps) => React.JSX.Element;
|
|
64
|
+
/**
|
|
65
|
+
* Twitch badge
|
|
66
|
+
*/
|
|
67
|
+
export declare const TwitchWatchBadge: (props: ConvenienceProps) => React.JSX.Element;
|
|
68
|
+
/**
|
|
69
|
+
* GitHub badge for open source projects
|
|
70
|
+
*/
|
|
71
|
+
export declare const GitHubViewBadge: (props: ConvenienceProps) => React.JSX.Element;
|
|
72
|
+
/**
|
|
73
|
+
* Discord badge for community/chat apps
|
|
74
|
+
*/
|
|
75
|
+
export declare const DiscordJoinBadge: (props: ConvenienceProps) => React.JSX.Element;
|
|
76
|
+
/**
|
|
77
|
+
* Reddit badge
|
|
78
|
+
*/
|
|
79
|
+
export declare const RedditJoinBadge: (props: ConvenienceProps) => React.JSX.Element;
|
|
80
|
+
/**
|
|
81
|
+
* TikTok badge
|
|
82
|
+
*/
|
|
83
|
+
export declare const TikTokWatchBadge: (props: ConvenienceProps) => React.JSX.Element;
|
|
84
|
+
/**
|
|
85
|
+
* Chrome Web Store badge
|
|
86
|
+
*/
|
|
87
|
+
export declare const ChromeWebStoreBadge: (props: ConvenienceProps) => React.JSX.Element;
|
|
88
|
+
export {};
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export { AppStoreBadge } from './AppStoreBadge';
|
|
2
|
+
export type { AppStoreBadgeProps, AppStoreBadgeSize, SupportedLocale, BadgeConfig } from './types';
|
|
3
|
+
export { AppStoreDownloadBadge, GalaxyStoreDownloadBadge, GooglePlayDownloadBadge, HuaweiAppGalleryBadge, AmazonAppstoreBadge, MicrosoftStoreDownloadBadge, SpotifyListenBadge, ApplePodcastsListenBadge, YouTubeWatchBadge, YouTubeMusicListenBadge, AppleMusicListenBadge, AmazonMusicListenBadge, SoundCloudListenBadge, AmazonStoreBadge, AmazonPrimeVideoBadge, TwitchWatchBadge, GitHubViewBadge, DiscordJoinBadge, RedditJoinBadge, TikTokWatchBadge, ChromeWebStoreBadge, } from './ConvenienceComponents';
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { PressableProps } from 'react-native';
|
|
2
|
+
import type { BrandName } from '../BrandIcon';
|
|
3
|
+
export type AppStoreBadgeSize = 'sm' | 'md' | 'lg' | 'xl';
|
|
4
|
+
export type SupportedLocale = 'en' | 'es' | 'fr' | 'de' | 'it' | 'pt' | 'ru' | 'ja' | 'ko' | 'zh';
|
|
5
|
+
export interface AppStoreBadgeProps extends Omit<PressableProps, 'style' | 'children'> {
|
|
6
|
+
/** The brand/platform for the badge (uses BrandIcon) */
|
|
7
|
+
brand: BrandName | 'galaxy-store' | 'amazonAppstore' | 'applePodcasts' | 'amazonMusic' | 'chromeWebStore';
|
|
8
|
+
/** The primary text (e.g., "Download on the", "Listen on", "Watch on") */
|
|
9
|
+
primaryText: string;
|
|
10
|
+
/** The secondary text (e.g., "App Store", "Spotify", "Netflix") */
|
|
11
|
+
secondaryText: string;
|
|
12
|
+
/** Badge size */
|
|
13
|
+
size?: AppStoreBadgeSize;
|
|
14
|
+
/** Background color override */
|
|
15
|
+
backgroundColor?: string;
|
|
16
|
+
/** Text color override */
|
|
17
|
+
textColor?: string;
|
|
18
|
+
/** Border color override */
|
|
19
|
+
borderColor?: string;
|
|
20
|
+
/** Custom styles */
|
|
21
|
+
style?: any;
|
|
22
|
+
/** Press handler */
|
|
23
|
+
onPress?: () => void;
|
|
24
|
+
/** Whether badge is disabled */
|
|
25
|
+
disabled?: boolean;
|
|
26
|
+
/** Test ID for testing */
|
|
27
|
+
testID?: string;
|
|
28
|
+
/** Whether to use dark mode styling (auto-detected if not specified) */
|
|
29
|
+
darkMode?: boolean;
|
|
30
|
+
}
|
|
31
|
+
export interface BadgeConfig {
|
|
32
|
+
backgroundColor: string;
|
|
33
|
+
textColor: string;
|
|
34
|
+
borderColor?: string;
|
|
35
|
+
brandColor?: string;
|
|
36
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { AppStoreButtonProps } from './types';
|
|
3
|
+
export declare const GooglePlayButton: React.FC<Omit<AppStoreButtonProps, 'store'>>;
|
|
4
|
+
export declare const AppleAppStoreButton: React.FC<Omit<AppStoreButtonProps, 'store'>>;
|
|
5
|
+
export declare const MacAppStoreButton: React.FC<Omit<AppStoreButtonProps, 'store'>>;
|
|
6
|
+
export declare const MicrosoftStoreButton: React.FC<Omit<AppStoreButtonProps, 'store'>>;
|
|
7
|
+
export declare const AmazonAppstoreButton: React.FC<Omit<AppStoreButtonProps, 'store'>>;
|
|
8
|
+
export declare const FDroidButton: React.FC<Omit<AppStoreButtonProps, 'store'>>;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export { AppStoreButton } from './AppStoreButton';
|
|
2
|
+
export { GooglePlayButton, AppleAppStoreButton, MacAppStoreButton, MicrosoftStoreButton, AmazonAppstoreButton, FDroidButton } from './ConvenienceComponents';
|
|
3
|
+
export type { AppStoreButtonProps, AppStoreType, AppStoreButtonSize, SupportedLocale, StoreConfig, SizeConfig } from './types';
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { PressableProps } from 'react-native';
|
|
2
|
+
export type AppStoreType = 'app-store' | 'google-play' | 'microsoft-store' | 'amazon-appstore' | 'mac-app-store' | 'f-droid';
|
|
3
|
+
export type AppStoreButtonSize = 'sm' | 'md' | 'lg' | 'xl';
|
|
4
|
+
export type SupportedLocale = 'en' | 'es' | 'fr' | 'de' | 'it' | 'pt' | 'ru' | 'ja' | 'ko' | 'zh';
|
|
5
|
+
export interface AppStoreButtonProps extends Omit<PressableProps, 'style' | 'children'> {
|
|
6
|
+
/** The app store type */
|
|
7
|
+
store: AppStoreType;
|
|
8
|
+
/** Button size */
|
|
9
|
+
size?: AppStoreButtonSize;
|
|
10
|
+
/** Locale for button text */
|
|
11
|
+
locale?: SupportedLocale;
|
|
12
|
+
/** Custom styles */
|
|
13
|
+
style?: any;
|
|
14
|
+
/** Press handler */
|
|
15
|
+
onPress?: () => void;
|
|
16
|
+
/** Whether button is disabled */
|
|
17
|
+
disabled?: boolean;
|
|
18
|
+
/** Test ID for testing */
|
|
19
|
+
testID?: string;
|
|
20
|
+
}
|
|
21
|
+
export interface StoreConfig {
|
|
22
|
+
backgroundColor: string;
|
|
23
|
+
textColor: string;
|
|
24
|
+
iconName: string;
|
|
25
|
+
primaryText: Record<SupportedLocale, string>;
|
|
26
|
+
secondaryText: Record<SupportedLocale, string>;
|
|
27
|
+
}
|
|
28
|
+
export interface SizeConfig {
|
|
29
|
+
height: number;
|
|
30
|
+
paddingHorizontal: number;
|
|
31
|
+
paddingVertical: number;
|
|
32
|
+
iconSize: number;
|
|
33
|
+
primaryFontSize: number;
|
|
34
|
+
secondaryFontSize: number;
|
|
35
|
+
borderRadius: number;
|
|
36
|
+
}
|