@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,49 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
interface SkipLinkProps {
|
|
3
|
+
href: string;
|
|
4
|
+
children: React.ReactNode;
|
|
5
|
+
onPress?: () => void;
|
|
6
|
+
}
|
|
7
|
+
/**
|
|
8
|
+
* Skip link for keyboard navigation - allows users to skip to main content
|
|
9
|
+
*/
|
|
10
|
+
export declare const SkipLink: React.FC<SkipLinkProps>;
|
|
11
|
+
interface LandmarkProps {
|
|
12
|
+
role: 'main' | 'navigation' | 'banner' | 'contentinfo' | 'complementary';
|
|
13
|
+
label?: string;
|
|
14
|
+
children: React.ReactNode;
|
|
15
|
+
style?: any;
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* Semantic landmark component for page structure
|
|
19
|
+
*/
|
|
20
|
+
export declare const Landmark: React.FC<LandmarkProps>;
|
|
21
|
+
interface LiveRegionProps {
|
|
22
|
+
priority?: 'polite' | 'assertive';
|
|
23
|
+
children: React.ReactNode;
|
|
24
|
+
atomic?: boolean;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Live region for dynamic content announcements
|
|
28
|
+
*/
|
|
29
|
+
export declare const LiveRegion: React.FC<LiveRegionProps>;
|
|
30
|
+
interface ProgressIndicatorProps {
|
|
31
|
+
value: number;
|
|
32
|
+
max?: number;
|
|
33
|
+
label?: string;
|
|
34
|
+
description?: string;
|
|
35
|
+
showPercentage?: boolean;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* Accessible progress indicator
|
|
39
|
+
*/
|
|
40
|
+
export declare const ProgressIndicator: React.FC<ProgressIndicatorProps>;
|
|
41
|
+
interface ErrorBoundaryFallbackProps {
|
|
42
|
+
error: Error;
|
|
43
|
+
resetError: () => void;
|
|
44
|
+
}
|
|
45
|
+
/**
|
|
46
|
+
* Accessible error boundary fallback
|
|
47
|
+
*/
|
|
48
|
+
export declare const ErrorBoundaryFallback: React.FC<ErrorBoundaryFallbackProps>;
|
|
49
|
+
export {};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
interface AccessibilityDebuggerProps {
|
|
3
|
+
visible?: boolean;
|
|
4
|
+
position?: 'top-left' | 'top-right' | 'bottom-left' | 'bottom-right';
|
|
5
|
+
}
|
|
6
|
+
/**
|
|
7
|
+
* Development tool for debugging accessibility features
|
|
8
|
+
*/
|
|
9
|
+
export declare const AccessibilityDebugger: React.FC<AccessibilityDebuggerProps>;
|
|
10
|
+
interface AccessibilityTestSuiteProps {
|
|
11
|
+
onTestComplete?: (results: AccessibilityTestResults) => void;
|
|
12
|
+
}
|
|
13
|
+
interface AccessibilityTestResults {
|
|
14
|
+
colorContrast: boolean;
|
|
15
|
+
focusableElements: number;
|
|
16
|
+
screenReaderLabels: boolean;
|
|
17
|
+
keyboardNavigation: boolean;
|
|
18
|
+
reducedMotion: boolean;
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* Automated accessibility testing component
|
|
22
|
+
*/
|
|
23
|
+
export declare const AccessibilityTestSuite: React.FC<AccessibilityTestSuiteProps>;
|
|
24
|
+
export {};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
interface AccessibleAnnouncerProps {
|
|
3
|
+
children: React.ReactNode;
|
|
4
|
+
announcements: string[];
|
|
5
|
+
}
|
|
6
|
+
/**
|
|
7
|
+
* Component that provides live region for announcements
|
|
8
|
+
*/
|
|
9
|
+
export declare const AccessibleAnnouncer: React.FC<AccessibleAnnouncerProps>;
|
|
10
|
+
interface AccessibleModalProps {
|
|
11
|
+
visible: boolean;
|
|
12
|
+
title?: string;
|
|
13
|
+
children: React.ReactNode;
|
|
14
|
+
onDismiss?: () => void;
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* Accessible modal with focus management
|
|
18
|
+
*/
|
|
19
|
+
export declare const AccessibleModal: React.FC<AccessibleModalProps>;
|
|
20
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { AccordionProps, AccordionRef } from './types';
|
|
3
|
+
export declare const Accordion: React.ForwardRefExoticComponent<AccordionProps & React.RefAttributes<AccordionRef>>;
|
|
4
|
+
export declare const Root: React.ForwardRefExoticComponent<AccordionProps & React.RefAttributes<AccordionRef>>;
|
|
5
|
+
export declare const Item: React.FC<import("./AccordionItem").AccordionItemComponentProps>;
|
|
6
|
+
export declare const AccordionNamespace: React.ForwardRefExoticComponent<AccordionProps & React.RefAttributes<AccordionRef>> & {
|
|
7
|
+
Root: React.ForwardRefExoticComponent<AccordionProps & React.RefAttributes<AccordionRef>>;
|
|
8
|
+
Item: React.FC<import("./AccordionItem").AccordionItemComponentProps>;
|
|
9
|
+
};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { AccordionItem, AccordionProps } from './types';
|
|
3
|
+
import type { AccordionAnimationProp } from './types';
|
|
4
|
+
export interface AccordionItemComponentProps {
|
|
5
|
+
item: AccordionItem;
|
|
6
|
+
isExpanded: boolean;
|
|
7
|
+
isDisabled: boolean;
|
|
8
|
+
isLast: boolean;
|
|
9
|
+
variant: AccordionProps['variant'];
|
|
10
|
+
onPress: () => void;
|
|
11
|
+
showChevron: boolean;
|
|
12
|
+
styles: any;
|
|
13
|
+
chevronColor: string;
|
|
14
|
+
disabledChevronColor: string;
|
|
15
|
+
headerStyle?: any;
|
|
16
|
+
contentStyle?: any;
|
|
17
|
+
headerTextStyle?: any;
|
|
18
|
+
idPrefix: string;
|
|
19
|
+
animated: AccordionAnimationProp;
|
|
20
|
+
chevronPosition?: 'start' | 'end';
|
|
21
|
+
}
|
|
22
|
+
export declare const AccordionItemComponent: React.FC<AccordionItemComponentProps>;
|
|
23
|
+
export default AccordionItemComponent;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export declare const ACCORDION_DEFAULTS: {
|
|
2
|
+
readonly type: "single";
|
|
3
|
+
readonly defaultExpanded: string[];
|
|
4
|
+
readonly variant: "default";
|
|
5
|
+
readonly size: "md";
|
|
6
|
+
readonly color: "primary";
|
|
7
|
+
readonly showChevron: true;
|
|
8
|
+
readonly autoPersist: true;
|
|
9
|
+
readonly animated: true;
|
|
10
|
+
readonly chevronPosition: "end";
|
|
11
|
+
readonly density: "comfortable";
|
|
12
|
+
};
|
|
13
|
+
export type AccordionDefaultProps = typeof ACCORDION_DEFAULTS;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { View } from 'react-native';
|
|
2
|
+
export interface UseAccordionItemAnimationOptions {
|
|
3
|
+
expanded: boolean;
|
|
4
|
+
animated: boolean | {
|
|
5
|
+
duration?: number;
|
|
6
|
+
easing?: (t: number) => number;
|
|
7
|
+
};
|
|
8
|
+
}
|
|
9
|
+
export interface UseAccordionItemAnimationResult {
|
|
10
|
+
contentRef: React.RefObject<View | null>;
|
|
11
|
+
onContentLayout: (e: any) => void;
|
|
12
|
+
animatedHeightStyle: any;
|
|
13
|
+
animatedChevronStyle: any;
|
|
14
|
+
isLayoutComplete: boolean;
|
|
15
|
+
contentHeight: number;
|
|
16
|
+
}
|
|
17
|
+
export declare function useAccordionItemAnimation(opts: UseAccordionItemAnimationOptions): UseAccordionItemAnimationResult;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { LayoutChangeEvent, View } from 'react-native';
|
|
2
|
+
export interface MeasuredHeightResult {
|
|
3
|
+
ref: React.RefObject<View>;
|
|
4
|
+
height: number;
|
|
5
|
+
onLayout: (e: LayoutChangeEvent) => void;
|
|
6
|
+
hasMeasured: boolean;
|
|
7
|
+
}
|
|
8
|
+
export declare function useMeasuredHeight(initialExpanded: boolean): MeasuredHeightResult;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { Accordion, AccordionNamespace } from './Accordion';
|
|
2
|
+
export { Accordion, AccordionNamespace };
|
|
3
|
+
export declare const AccordionRoot: import("react").ForwardRefExoticComponent<import("./types").AccordionProps & import("react").RefAttributes<import("./types").AccordionRef>>;
|
|
4
|
+
export type { AccordionProps, AccordionItem as AccordionItemType, AccordionRef } from './types';
|
|
5
|
+
export type { AccordionType, AccordionVariant, AccordionColor, AccordionComputedStyles, AccordionStyleResolver, AccordionToggleDetail, OnAccordionToggle, AccordionAnimationProp } from './types';
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { TextStyle } from 'react-native';
|
|
2
|
+
import type { PlatformBlocksTheme } from '../../core/theme/types';
|
|
3
|
+
import { SizeValue } from '../../core/theme/sizes';
|
|
4
|
+
import type { AccordionProps, AccordionComputedStyles } from './types';
|
|
5
|
+
type VariantTokenFn = (theme: PlatformBlocksTheme, radiusStyles: any) => {
|
|
6
|
+
container: any;
|
|
7
|
+
item: any;
|
|
8
|
+
header: any;
|
|
9
|
+
content: any;
|
|
10
|
+
};
|
|
11
|
+
export declare const accordionVariants: Record<string, VariantTokenFn>;
|
|
12
|
+
export declare const getAccordionStyles: (theme: PlatformBlocksTheme, variant: AccordionProps["variant"], size: SizeValue | undefined, color: AccordionProps["color"], // reserved for future variant coloring
|
|
13
|
+
radiusStyles: any | undefined, density?: AccordionProps["density"]) => AccordionComputedStyles & {
|
|
14
|
+
activeHeaderText: TextStyle;
|
|
15
|
+
disabledHeaderText: TextStyle;
|
|
16
|
+
};
|
|
17
|
+
export default getAccordionStyles;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { PlatformBlocksTheme } from '../../core/theme/types';
|
|
2
|
+
export interface AccordionSectionStyle {
|
|
3
|
+
[key: string]: any;
|
|
4
|
+
}
|
|
5
|
+
export interface AccordionVariantTokens {
|
|
6
|
+
container: AccordionSectionStyle;
|
|
7
|
+
item: AccordionSectionStyle;
|
|
8
|
+
header: AccordionSectionStyle;
|
|
9
|
+
content: AccordionSectionStyle;
|
|
10
|
+
}
|
|
11
|
+
export type AccordionVariantTokenFn = (theme: PlatformBlocksTheme, radiusStyles?: AccordionSectionStyle) => AccordionVariantTokens;
|
|
12
|
+
export declare const ACCORDION_VARIANTS: Record<string, AccordionVariantTokenFn>;
|
|
@@ -0,0 +1,180 @@
|
|
|
1
|
+
import type { ReactNode } from 'react';
|
|
2
|
+
import type { ViewStyle, TextStyle } from 'react-native';
|
|
3
|
+
import type { SizeValue } from '../../core/theme/sizes';
|
|
4
|
+
import type { BorderRadiusProps } from '../../core/theme/radius';
|
|
5
|
+
import type { PlatformBlocksTheme } from '../../core/theme/types';
|
|
6
|
+
import type { SpacingProps } from '../../core/utils';
|
|
7
|
+
/**
|
|
8
|
+
* Single logical panel within an `Accordion`.
|
|
9
|
+
* Provide a stable, unique `key` for correct persistence and state reconciliation.
|
|
10
|
+
*/
|
|
11
|
+
export interface AccordionItem {
|
|
12
|
+
/**
|
|
13
|
+
* Unique identifier for the item. Must be stable across renders.
|
|
14
|
+
*/
|
|
15
|
+
key: string;
|
|
16
|
+
/**
|
|
17
|
+
* Header label rendered in the item trigger row.
|
|
18
|
+
*/
|
|
19
|
+
title: string;
|
|
20
|
+
/**
|
|
21
|
+
* Collapsible body content shown when the item is expanded.
|
|
22
|
+
*/
|
|
23
|
+
content: ReactNode;
|
|
24
|
+
/**
|
|
25
|
+
* Disables user interaction and visually indicates the item is inactive.
|
|
26
|
+
*/
|
|
27
|
+
disabled?: boolean;
|
|
28
|
+
/**
|
|
29
|
+
* Optional decorative or status icon rendered alongside the title.
|
|
30
|
+
*/
|
|
31
|
+
icon?: ReactNode;
|
|
32
|
+
}
|
|
33
|
+
export type AccordionType = 'single' | 'multiple';
|
|
34
|
+
export type AccordionVariant = 'default' | 'separated' | 'bordered';
|
|
35
|
+
export type AccordionColor = 'primary' | 'secondary' | 'gray';
|
|
36
|
+
/**
|
|
37
|
+
* Props for the `Accordion` component.
|
|
38
|
+
* Supports controlled & uncontrolled usage patterns, single or multi expansion modes,
|
|
39
|
+
* density & variant styling, and optional persistence between remounts.
|
|
40
|
+
*/
|
|
41
|
+
export interface AccordionProps extends SpacingProps, BorderRadiusProps {
|
|
42
|
+
/**
|
|
43
|
+
* Ordered list of items to render. The `key` for each item must be unique.
|
|
44
|
+
*/
|
|
45
|
+
items: AccordionItem[];
|
|
46
|
+
/**
|
|
47
|
+
* Expansion behavior.
|
|
48
|
+
* 'single' ensures only one item can be expanded at a time; 'multiple' allows independent expansion.
|
|
49
|
+
* @default 'single'
|
|
50
|
+
*/
|
|
51
|
+
type?: AccordionType;
|
|
52
|
+
/**
|
|
53
|
+
* Initial expanded item keys (uncontrolled). Ignored when `expanded` is provided.
|
|
54
|
+
* For `type="single"` only the first key is used at initialization.
|
|
55
|
+
* @default []
|
|
56
|
+
*/
|
|
57
|
+
defaultExpanded?: string[];
|
|
58
|
+
/**
|
|
59
|
+
* Controlled set of expanded item keys. Provide alongside `onExpandedChange`.
|
|
60
|
+
*/
|
|
61
|
+
expanded?: string[];
|
|
62
|
+
/**
|
|
63
|
+
* Called when the expanded keys change (both controlled & uncontrolled flows).
|
|
64
|
+
*/
|
|
65
|
+
onExpandedChange?: (expanded: string[]) => void;
|
|
66
|
+
/**
|
|
67
|
+
* Per-item toggle event with rich metadata. Fires after state resolution.
|
|
68
|
+
*/
|
|
69
|
+
onItemToggle?: OnAccordionToggle;
|
|
70
|
+
/**
|
|
71
|
+
* Visual variant style preset.
|
|
72
|
+
* @default 'default'
|
|
73
|
+
*/
|
|
74
|
+
variant?: AccordionVariant;
|
|
75
|
+
/**
|
|
76
|
+
* Size scale controlling paddings, font sizes, and icon dimensions.
|
|
77
|
+
* @default 'md'
|
|
78
|
+
*/
|
|
79
|
+
size?: SizeValue;
|
|
80
|
+
/**
|
|
81
|
+
* Color theme accent applied to active headers & focus states.
|
|
82
|
+
* @default 'primary'
|
|
83
|
+
*/
|
|
84
|
+
color?: AccordionColor;
|
|
85
|
+
/**
|
|
86
|
+
* Whether to render the chevron affordance.
|
|
87
|
+
* @default true
|
|
88
|
+
*/
|
|
89
|
+
showChevron?: boolean;
|
|
90
|
+
/**
|
|
91
|
+
* Chevron placement relative to the header text.
|
|
92
|
+
* @default 'end'
|
|
93
|
+
*/
|
|
94
|
+
chevronPosition?: 'start' | 'end';
|
|
95
|
+
/**
|
|
96
|
+
* Space efficiency / vertical density preset.
|
|
97
|
+
* @default 'comfortable'
|
|
98
|
+
*/
|
|
99
|
+
density?: 'comfortable' | 'compact' | 'spacious';
|
|
100
|
+
/**
|
|
101
|
+
* Root container style override.
|
|
102
|
+
*/
|
|
103
|
+
style?: ViewStyle;
|
|
104
|
+
/**
|
|
105
|
+
* Header row style override applied to each item.
|
|
106
|
+
*/
|
|
107
|
+
headerStyle?: ViewStyle;
|
|
108
|
+
/**
|
|
109
|
+
* Collapsible content container style override.
|
|
110
|
+
*/
|
|
111
|
+
contentStyle?: ViewStyle;
|
|
112
|
+
/**
|
|
113
|
+
* Text style applied to the header label.
|
|
114
|
+
*/
|
|
115
|
+
headerTextStyle?: TextStyle;
|
|
116
|
+
/**
|
|
117
|
+
* Explicit persistence key. If omitted, an automatic hash key will be generated when uncontrolled.
|
|
118
|
+
*/
|
|
119
|
+
persistKey?: string;
|
|
120
|
+
/**
|
|
121
|
+
* Enables persistence of expanded state (uncontrolled only) across remounts in-process.
|
|
122
|
+
* @default true
|
|
123
|
+
*/
|
|
124
|
+
autoPersist?: boolean;
|
|
125
|
+
/**
|
|
126
|
+
* Enables animation or accepts a config object for custom durations & easing.
|
|
127
|
+
* @default true
|
|
128
|
+
*/
|
|
129
|
+
animated?: AccordionAnimationProp;
|
|
130
|
+
}
|
|
131
|
+
/**
|
|
132
|
+
* Internal computed style contract resolved from theme + props.
|
|
133
|
+
* Not part of the public API surface intentionally (subject to change).
|
|
134
|
+
*/
|
|
135
|
+
export interface AccordionComputedStyles {
|
|
136
|
+
container: ViewStyle;
|
|
137
|
+
item: ViewStyle;
|
|
138
|
+
header: ViewStyle;
|
|
139
|
+
content: ViewStyle;
|
|
140
|
+
headerText: TextStyle;
|
|
141
|
+
activeHeaderText: TextStyle;
|
|
142
|
+
disabledHeaderText: TextStyle;
|
|
143
|
+
chevron: ViewStyle;
|
|
144
|
+
}
|
|
145
|
+
export type AccordionStyleResolver = (theme: PlatformBlocksTheme, variant: AccordionVariant | undefined, size: SizeValue | undefined, color: AccordionColor | undefined, radiusStyles?: any) => AccordionComputedStyles;
|
|
146
|
+
/**
|
|
147
|
+
* Detail object supplied to `onItemToggle` describing the transition and new state.
|
|
148
|
+
*/
|
|
149
|
+
export interface AccordionToggleDetail {
|
|
150
|
+
itemKey: string;
|
|
151
|
+
expanded: boolean;
|
|
152
|
+
expandedKeys: string[];
|
|
153
|
+
type: AccordionType;
|
|
154
|
+
variant: AccordionVariant | undefined;
|
|
155
|
+
}
|
|
156
|
+
/**
|
|
157
|
+
* Callback signature fired after an item toggles.
|
|
158
|
+
*/
|
|
159
|
+
export type OnAccordionToggle = (detail: AccordionToggleDetail) => void;
|
|
160
|
+
/**
|
|
161
|
+
* Controls animation behavior. `true` uses defaults; `false` disables transitions.
|
|
162
|
+
* Provide an object to customize timing.
|
|
163
|
+
*/
|
|
164
|
+
export type AccordionAnimationProp = boolean | {
|
|
165
|
+
duration?: number;
|
|
166
|
+
easing?: (t: number) => number;
|
|
167
|
+
};
|
|
168
|
+
/**
|
|
169
|
+
* Imperative methods exposed via `ref` when using `forwardRef`.
|
|
170
|
+
*/
|
|
171
|
+
export interface AccordionRef {
|
|
172
|
+
/** Expand all non-disabled items (multi mode) or ensure one item open (single). */
|
|
173
|
+
expandAll: () => void;
|
|
174
|
+
/** Collapse every expanded item. */
|
|
175
|
+
collapseAll: () => void;
|
|
176
|
+
/** Toggle a specific item by key. */
|
|
177
|
+
toggle: (key: string) => void;
|
|
178
|
+
/** Current expanded keys snapshot. */
|
|
179
|
+
getExpanded: () => string[];
|
|
180
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { View, ViewStyle } from 'react-native';
|
|
3
|
+
import { SpacingProps } from '../../core/utils';
|
|
4
|
+
import { BorderRadiusProps } from '../../core/theme/radius';
|
|
5
|
+
export type AlertVariant = 'light' | 'filled' | 'outline' | 'subtle';
|
|
6
|
+
export type AlertColor = 'primary' | 'secondary' | 'success' | 'warning' | 'error' | 'gray';
|
|
7
|
+
export type AlertSeverity = 'info' | 'success' | 'warning' | 'error';
|
|
8
|
+
export interface AlertProps extends SpacingProps, BorderRadiusProps {
|
|
9
|
+
variant?: AlertVariant;
|
|
10
|
+
color?: AlertColor | string;
|
|
11
|
+
sev?: AlertSeverity;
|
|
12
|
+
title?: string;
|
|
13
|
+
children?: React.ReactNode;
|
|
14
|
+
icon?: React.ReactNode | string | null | false;
|
|
15
|
+
fullWidth?: boolean;
|
|
16
|
+
withCloseButton?: boolean;
|
|
17
|
+
closeButtonLabel?: string;
|
|
18
|
+
onClose?: () => void;
|
|
19
|
+
style?: ViewStyle;
|
|
20
|
+
testID?: string;
|
|
21
|
+
}
|
|
22
|
+
export interface AlertFactoryPayload {
|
|
23
|
+
props: AlertProps;
|
|
24
|
+
ref: View;
|
|
25
|
+
}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { View } from 'react-native';
|
|
3
|
+
import type { AppShellProps, AppShellContextValue, AppShellHeaderProps, AppShellNavbarProps, AppShellAsideProps, AppShellFooterProps, AppShellBottomNavProps, AppShellMainProps, AppShellSectionProps } from './types';
|
|
4
|
+
import { MobileMenu } from './MobileMenu';
|
|
5
|
+
import { BottomAppBar } from './BottomAppBar';
|
|
6
|
+
import { StatusBarManager } from './StatusBarManager';
|
|
7
|
+
type AppShellApi = {
|
|
8
|
+
openNavbar: () => void;
|
|
9
|
+
closeNavbar: () => void;
|
|
10
|
+
toggleNavbar: () => void;
|
|
11
|
+
};
|
|
12
|
+
type AppShellLayout = {
|
|
13
|
+
headerHeight: number | string;
|
|
14
|
+
navbarWidth: number | string;
|
|
15
|
+
asideWidth: number | string;
|
|
16
|
+
footerHeight: number | string;
|
|
17
|
+
bottomNavHeight: number | string;
|
|
18
|
+
};
|
|
19
|
+
export declare const useNavbarHover: () => boolean;
|
|
20
|
+
export declare const useAppShell: () => AppShellContextValue;
|
|
21
|
+
export declare const useAppShellApi: () => AppShellApi;
|
|
22
|
+
export declare const useAppShellLayout: () => AppShellLayout;
|
|
23
|
+
export declare const AppShellHeader: React.FC<AppShellHeaderProps>;
|
|
24
|
+
export declare const AppShellNavbar: React.FC<AppShellNavbarProps>;
|
|
25
|
+
export declare const AppShellAside: React.FC<AppShellAsideProps>;
|
|
26
|
+
export declare const AppShellFooter: React.FC<AppShellFooterProps>;
|
|
27
|
+
export declare const AppShellBottomNav: React.FC<AppShellBottomNavProps>;
|
|
28
|
+
export declare const AppShellMain: React.FC<AppShellMainProps>;
|
|
29
|
+
export declare const AppShellSection: React.FC<AppShellSectionProps>;
|
|
30
|
+
interface AppShellFactoryPayload {
|
|
31
|
+
props: AppShellProps;
|
|
32
|
+
ref: View;
|
|
33
|
+
}
|
|
34
|
+
declare const AppShellComponent: import("../../core/factory").PlatformBlocksComponent<AppShellFactoryPayload>;
|
|
35
|
+
type AppShellType = typeof AppShellComponent & {
|
|
36
|
+
Header: typeof AppShellHeader;
|
|
37
|
+
Navbar: typeof AppShellNavbar;
|
|
38
|
+
Aside: typeof AppShellAside;
|
|
39
|
+
Footer: typeof AppShellFooter;
|
|
40
|
+
BottomNav: typeof AppShellBottomNav;
|
|
41
|
+
BottomAppBar: typeof BottomAppBar;
|
|
42
|
+
Main: typeof AppShellMain;
|
|
43
|
+
Section: typeof AppShellSection;
|
|
44
|
+
MobileMenu: typeof MobileMenu;
|
|
45
|
+
StatusBarManager: typeof StatusBarManager;
|
|
46
|
+
};
|
|
47
|
+
export declare const AppShell: AppShellType;
|
|
48
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { MobileMenuConfig } from './types';
|
|
3
|
+
interface MobileMenuProps {
|
|
4
|
+
visible: boolean;
|
|
5
|
+
onClose: () => void;
|
|
6
|
+
children: React.ReactNode;
|
|
7
|
+
config?: MobileMenuConfig;
|
|
8
|
+
}
|
|
9
|
+
export declare const MobileMenu: React.FC<MobileMenuProps>;
|
|
10
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { AppLayoutBlueprint, AppLayoutRuntimeOverrides } from './types';
|
|
3
|
+
export interface AppLayoutProviderProps {
|
|
4
|
+
blueprint: AppLayoutBlueprint;
|
|
5
|
+
value?: AppLayoutRuntimeOverrides;
|
|
6
|
+
children: React.ReactNode;
|
|
7
|
+
}
|
|
8
|
+
export declare const AppLayoutProvider: React.FC<AppLayoutProviderProps>;
|
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
import type React from 'react';
|
|
2
|
+
import type { PlatformOSType } from 'react-native';
|
|
3
|
+
import type { ResponsiveSize, Breakpoint, StatusBarConfig } from '../types';
|
|
4
|
+
export type LayoutVisibilityFn = (ctx: AppLayoutRuntimeContext) => boolean;
|
|
5
|
+
export interface LayoutComponentEntry<Props = any> {
|
|
6
|
+
component: React.ComponentType<Props>;
|
|
7
|
+
props?: Props | ((ctx: AppLayoutRuntimeContext) => Props);
|
|
8
|
+
show?: LayoutVisibilityFn;
|
|
9
|
+
key?: string;
|
|
10
|
+
target?: 'shell' | 'root' | 'root-before' | 'root-after';
|
|
11
|
+
}
|
|
12
|
+
export interface LayoutRenderEntry {
|
|
13
|
+
render: (ctx: AppLayoutRuntimeContext) => React.ReactNode;
|
|
14
|
+
show?: LayoutVisibilityFn;
|
|
15
|
+
key?: string;
|
|
16
|
+
target?: 'shell' | 'root' | 'root-before' | 'root-after';
|
|
17
|
+
}
|
|
18
|
+
export type LayoutEntry<Props = any> = LayoutComponentEntry<Props> | LayoutRenderEntry;
|
|
19
|
+
export type LayoutComponentOrRenderEntry<Props = any> = LayoutEntry<Props>;
|
|
20
|
+
export interface LayoutBreakpointsConfig {
|
|
21
|
+
headerHeight?: ResponsiveSize;
|
|
22
|
+
navbarWidth?: ResponsiveSize;
|
|
23
|
+
asideWidth?: ResponsiveSize;
|
|
24
|
+
footerHeight?: ResponsiveSize;
|
|
25
|
+
bottomNavHeight?: ResponsiveSize;
|
|
26
|
+
padding?: ResponsiveSize;
|
|
27
|
+
}
|
|
28
|
+
export interface LayoutNavbarConfig extends LayoutComponentEntry {
|
|
29
|
+
width?: ResponsiveSize;
|
|
30
|
+
collapsedWidth?: number;
|
|
31
|
+
expandOnHover?: boolean;
|
|
32
|
+
startCollapsedDesktop?: boolean;
|
|
33
|
+
}
|
|
34
|
+
export interface LayoutAsideConfig extends LayoutComponentEntry {
|
|
35
|
+
width?: ResponsiveSize;
|
|
36
|
+
}
|
|
37
|
+
export interface LayoutFooterConfig extends LayoutComponentEntry {
|
|
38
|
+
height?: ResponsiveSize;
|
|
39
|
+
}
|
|
40
|
+
export interface LayoutBottomNavConfig extends LayoutComponentEntry {
|
|
41
|
+
height?: ResponsiveSize;
|
|
42
|
+
}
|
|
43
|
+
export interface LayoutMainConfig {
|
|
44
|
+
id?: string;
|
|
45
|
+
role?: string;
|
|
46
|
+
maxWidth?: number | string;
|
|
47
|
+
centerContent?: boolean;
|
|
48
|
+
tableOfContents?: LayoutEntry;
|
|
49
|
+
hideTableOfContentsOnMobile?: boolean;
|
|
50
|
+
tableOfContentsWidth?: number | string;
|
|
51
|
+
tableOfContentsWithBorder?: boolean;
|
|
52
|
+
props?: Record<string, any> | ((ctx: AppLayoutRuntimeContext) => Record<string, any>);
|
|
53
|
+
}
|
|
54
|
+
export interface LayoutOptions {
|
|
55
|
+
withSafeArea?: boolean;
|
|
56
|
+
withBorder?: boolean;
|
|
57
|
+
backgroundColor?: string;
|
|
58
|
+
padding?: ResponsiveSize;
|
|
59
|
+
style?: any;
|
|
60
|
+
statusBar?: StatusBarConfig;
|
|
61
|
+
transitionDuration?: number;
|
|
62
|
+
transitionTimingFunction?: string;
|
|
63
|
+
disabled?: boolean;
|
|
64
|
+
testID?: string;
|
|
65
|
+
}
|
|
66
|
+
export type LayoutSection = 'header' | 'navbar' | 'aside' | 'footer' | 'bottomNav';
|
|
67
|
+
export type AppLayoutEffect = (ctx: AppLayoutRuntimeContext) => void | (() => void);
|
|
68
|
+
export interface AppLayoutBlueprint {
|
|
69
|
+
id: string;
|
|
70
|
+
breakpoints?: LayoutBreakpointsConfig;
|
|
71
|
+
header?: LayoutComponentOrRenderEntry;
|
|
72
|
+
navbar?: LayoutNavbarConfig;
|
|
73
|
+
aside?: LayoutAsideConfig;
|
|
74
|
+
footer?: LayoutFooterConfig;
|
|
75
|
+
bottomNav?: LayoutBottomNavConfig;
|
|
76
|
+
overlays?: LayoutEntry[];
|
|
77
|
+
effects?: AppLayoutEffect[];
|
|
78
|
+
main?: LayoutMainConfig;
|
|
79
|
+
layout?: LayoutOptions;
|
|
80
|
+
visibility?: Partial<Record<LayoutSection, LayoutVisibilityFn>>;
|
|
81
|
+
meta?: Record<string, unknown>;
|
|
82
|
+
}
|
|
83
|
+
export interface AppLayoutNavigation {
|
|
84
|
+
push?: (path: string) => void;
|
|
85
|
+
replace?: (path: string) => void;
|
|
86
|
+
goBack?: () => void;
|
|
87
|
+
open?: (path: string) => void;
|
|
88
|
+
}
|
|
89
|
+
export interface AppLayoutRuntimeOverrides {
|
|
90
|
+
query?: Record<string, string | string[] | undefined>;
|
|
91
|
+
pathname?: string;
|
|
92
|
+
navigation?: AppLayoutNavigation;
|
|
93
|
+
platform?: PlatformOSType;
|
|
94
|
+
meta?: Record<string, unknown>;
|
|
95
|
+
}
|
|
96
|
+
export interface AppLayoutRuntimeContext {
|
|
97
|
+
blueprint: AppLayoutBlueprint;
|
|
98
|
+
query: Record<string, string | string[] | undefined>;
|
|
99
|
+
pathname?: string;
|
|
100
|
+
navigation?: AppLayoutNavigation;
|
|
101
|
+
platform: PlatformOSType;
|
|
102
|
+
breakpoint: Breakpoint;
|
|
103
|
+
isMobile: boolean;
|
|
104
|
+
isLandscape: boolean;
|
|
105
|
+
orientation: 'portrait' | 'landscape';
|
|
106
|
+
theme: any;
|
|
107
|
+
colorScheme: string | undefined;
|
|
108
|
+
reducedMotion: boolean;
|
|
109
|
+
meta?: Record<string, unknown>;
|
|
110
|
+
}
|
|
111
|
+
export interface AppLayoutProviderValue {
|
|
112
|
+
blueprint: AppLayoutBlueprint;
|
|
113
|
+
runtime: {
|
|
114
|
+
query: Record<string, string | string[] | undefined>;
|
|
115
|
+
pathname?: string;
|
|
116
|
+
navigation?: AppLayoutNavigation;
|
|
117
|
+
platform: PlatformOSType;
|
|
118
|
+
meta?: Record<string, unknown>;
|
|
119
|
+
};
|
|
120
|
+
}
|