@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,21 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { type DisclaimerProps } from './Disclaimer';
|
|
3
|
+
export interface DisclaimerSupport {
|
|
4
|
+
disclaimer?: React.ReactNode;
|
|
5
|
+
disclaimerProps?: Omit<DisclaimerProps, 'children'>;
|
|
6
|
+
}
|
|
7
|
+
/**
|
|
8
|
+
* Hook that renders a disclaimer below content if provided
|
|
9
|
+
*/
|
|
10
|
+
export declare function useDisclaimer(disclaimer?: React.ReactNode, disclaimerProps?: Omit<DisclaimerProps, 'children'>): () => React.JSX.Element | null;
|
|
11
|
+
/**
|
|
12
|
+
* Utility function to wrap component content with disclaimer
|
|
13
|
+
*/
|
|
14
|
+
export declare function withDisclaimer(content: React.ReactNode, disclaimer?: React.ReactNode, disclaimerProps?: Omit<DisclaimerProps, 'children'>): React.ReactNode;
|
|
15
|
+
/**
|
|
16
|
+
* Utility to extract disclaimer props from component props
|
|
17
|
+
*/
|
|
18
|
+
export declare function extractDisclaimerProps<T extends DisclaimerSupport>(props: T): {
|
|
19
|
+
disclaimerProps: Pick<T, 'disclaimer' | 'disclaimerProps'>;
|
|
20
|
+
otherProps: Omit<T, 'disclaimer' | 'disclaimerProps'>;
|
|
21
|
+
};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export { Disclaimer } from './Disclaimer';
|
|
2
|
+
export type { DisclaimerProps } from './Disclaimer';
|
|
3
|
+
export { ComponentWithDisclaimer } from './withDisclaimer';
|
|
4
|
+
export type { WithDisclaimerProps, ComponentWithDisclaimerProps } from './withDisclaimer';
|
|
5
|
+
export { useDisclaimer, withDisclaimer, extractDisclaimerProps } from './disclaimerUtils';
|
|
6
|
+
export type { DisclaimerSupport } from './disclaimerUtils';
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { type DisclaimerProps } from './Disclaimer';
|
|
3
|
+
export interface WithDisclaimerProps {
|
|
4
|
+
disclaimer?: React.ReactNode;
|
|
5
|
+
disclaimerProps?: Omit<DisclaimerProps, 'children'>;
|
|
6
|
+
}
|
|
7
|
+
/**
|
|
8
|
+
* Component wrapper that adds disclaimer functionality
|
|
9
|
+
*/
|
|
10
|
+
export interface ComponentWithDisclaimerProps extends WithDisclaimerProps {
|
|
11
|
+
children: React.ReactNode;
|
|
12
|
+
}
|
|
13
|
+
export declare const ComponentWithDisclaimer: React.FC<ComponentWithDisclaimerProps>;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { ViewStyle, View } from 'react-native';
|
|
3
|
+
import { SpacingProps } from '../../core/utils';
|
|
4
|
+
import { SizeValue } from '../../core/theme/sizes';
|
|
5
|
+
export type DividerOrientation = 'horizontal' | 'vertical';
|
|
6
|
+
export type DividerVariant = 'solid' | 'dashed' | 'dotted';
|
|
7
|
+
export interface DividerProps extends SpacingProps {
|
|
8
|
+
orientation?: DividerOrientation;
|
|
9
|
+
variant?: DividerVariant;
|
|
10
|
+
color?: string;
|
|
11
|
+
/** Semantic color variant (overrides color prop). Supports theme color palettes */
|
|
12
|
+
colorVariant?: 'primary' | 'secondary' | 'tertiary' | 'surface' | 'success' | 'warning' | 'error' | 'gray' | 'muted' | 'subtle';
|
|
13
|
+
size?: SizeValue | number;
|
|
14
|
+
label?: React.ReactNode;
|
|
15
|
+
labelPosition?: 'left' | 'center' | 'right';
|
|
16
|
+
style?: ViewStyle;
|
|
17
|
+
testID?: string;
|
|
18
|
+
}
|
|
19
|
+
export interface DividerFactoryPayload {
|
|
20
|
+
props: DividerProps;
|
|
21
|
+
ref: View;
|
|
22
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import type { SpacingProps } from '../../core/utils';
|
|
2
|
+
export type EmojiPickerVariant = 'quick';
|
|
3
|
+
export interface EmojiPickerProps extends SpacingProps {
|
|
4
|
+
/** Picker variant */
|
|
5
|
+
variant?: EmojiPickerVariant;
|
|
6
|
+
/** Controlled value (selected emoji) */
|
|
7
|
+
value?: string;
|
|
8
|
+
/** Callback when emoji selected */
|
|
9
|
+
onSelect?: (emoji: string) => void;
|
|
10
|
+
/** Whether picker is disabled */
|
|
11
|
+
disabled?: boolean;
|
|
12
|
+
/** Placeholder text for search */
|
|
13
|
+
searchPlaceholder?: string;
|
|
14
|
+
/** Number of frequently used / quick emojis to show in quick variant */
|
|
15
|
+
emojis?: {
|
|
16
|
+
label: string;
|
|
17
|
+
emoji: string;
|
|
18
|
+
}[];
|
|
19
|
+
/** Default opened (uncontrolled) */
|
|
20
|
+
defaultOpened?: boolean;
|
|
21
|
+
/** Callback when open state changes */
|
|
22
|
+
onOpenChange?: (opened: boolean) => void;
|
|
23
|
+
/** Callback whenever search query changes */
|
|
24
|
+
onSearchChange?: (query: string) => void;
|
|
25
|
+
/** Show background for the whole quick variant component */
|
|
26
|
+
showBackground?: boolean;
|
|
27
|
+
/** Test id */
|
|
28
|
+
testID?: string;
|
|
29
|
+
}
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { DocumentPickerAsset } from 'expo-document-picker';
|
|
3
|
+
import { BaseInputProps } from '../Input/types';
|
|
4
|
+
export interface FileInputFile {
|
|
5
|
+
/** File object or document picker asset */
|
|
6
|
+
file: File | DocumentPickerAsset;
|
|
7
|
+
/** Unique identifier */
|
|
8
|
+
id: string;
|
|
9
|
+
/** File name */
|
|
10
|
+
name: string;
|
|
11
|
+
/** File size in bytes */
|
|
12
|
+
size: number;
|
|
13
|
+
/** MIME type */
|
|
14
|
+
type: string;
|
|
15
|
+
/** Native file URI (if available) */
|
|
16
|
+
uri?: string;
|
|
17
|
+
/** Preview URL (for images) */
|
|
18
|
+
previewUrl?: string;
|
|
19
|
+
/** Upload progress (0-100) */
|
|
20
|
+
progress?: number;
|
|
21
|
+
/** Upload status */
|
|
22
|
+
status?: 'pending' | 'uploading' | 'success' | 'error';
|
|
23
|
+
/** Error message if upload failed */
|
|
24
|
+
error?: string;
|
|
25
|
+
}
|
|
26
|
+
export interface FileInputProps extends BaseInputProps {
|
|
27
|
+
/** File input variant */
|
|
28
|
+
variant?: 'standard' | 'dropzone' | 'compact';
|
|
29
|
+
/** Accepted file types (MIME types or extensions) */
|
|
30
|
+
accept?: string[];
|
|
31
|
+
/** Multiple file selection */
|
|
32
|
+
multiple?: boolean;
|
|
33
|
+
/** Maximum file size in bytes */
|
|
34
|
+
maxSize?: number;
|
|
35
|
+
/** Maximum number of files */
|
|
36
|
+
maxFiles?: number;
|
|
37
|
+
/** Upload handler */
|
|
38
|
+
onUpload?: (files: FileInputFile[]) => Promise<void>;
|
|
39
|
+
/** Upload progress callback */
|
|
40
|
+
onProgress?: (fileId: string, progress: number) => void;
|
|
41
|
+
/** File change handler */
|
|
42
|
+
onFilesChange?: (files: FileInputFile[]) => void;
|
|
43
|
+
/** File remove handler */
|
|
44
|
+
onFileRemove?: (fileId: string) => void;
|
|
45
|
+
/** File preview component */
|
|
46
|
+
PreviewComponent?: React.ComponentType<{
|
|
47
|
+
file: FileInputFile;
|
|
48
|
+
onRemove: () => void;
|
|
49
|
+
}>;
|
|
50
|
+
/** Custom drop zone content */
|
|
51
|
+
children?: React.ReactNode;
|
|
52
|
+
/** Whether to show file list */
|
|
53
|
+
showFileList?: boolean;
|
|
54
|
+
/** Whether to enable drag and drop */
|
|
55
|
+
enableDragDrop?: boolean;
|
|
56
|
+
/** Custom validation function */
|
|
57
|
+
validateFile?: (file: File | DocumentPickerAsset) => string | null;
|
|
58
|
+
/** Image preview settings */
|
|
59
|
+
imagePreview?: {
|
|
60
|
+
/** Enable image previews */
|
|
61
|
+
enabled?: boolean;
|
|
62
|
+
/** Maximum preview width */
|
|
63
|
+
maxWidth?: number;
|
|
64
|
+
/** Maximum preview height */
|
|
65
|
+
maxHeight?: number;
|
|
66
|
+
/** Preview quality (0-1) */
|
|
67
|
+
quality?: number;
|
|
68
|
+
};
|
|
69
|
+
/** Upload settings */
|
|
70
|
+
uploadSettings?: {
|
|
71
|
+
/** Upload URL */
|
|
72
|
+
url?: string;
|
|
73
|
+
/** HTTP method */
|
|
74
|
+
method?: 'POST' | 'PUT';
|
|
75
|
+
/** Additional headers */
|
|
76
|
+
headers?: Record<string, string>;
|
|
77
|
+
/** Form field name for files */
|
|
78
|
+
fieldName?: string;
|
|
79
|
+
/** Additional form data */
|
|
80
|
+
formData?: Record<string, string>;
|
|
81
|
+
};
|
|
82
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { View, ViewStyle, DimensionValue } from 'react-native';
|
|
3
|
+
import { SpacingProps, LayoutProps } from '../../core/utils';
|
|
4
|
+
import { SizeValue } from '../../core/theme/sizes';
|
|
5
|
+
export interface FlexProps extends SpacingProps, LayoutProps {
|
|
6
|
+
/** Flex direction */
|
|
7
|
+
direction?: 'row' | 'column' | 'row-reverse' | 'column-reverse';
|
|
8
|
+
/** Align items on the cross axis */
|
|
9
|
+
align?: 'flex-start' | 'flex-end' | 'center' | 'stretch' | 'baseline';
|
|
10
|
+
/** Justify content on the main axis */
|
|
11
|
+
justify?: 'flex-start' | 'flex-end' | 'center' | 'space-between' | 'space-around' | 'space-evenly';
|
|
12
|
+
/** Flex wrap */
|
|
13
|
+
wrap?: 'nowrap' | 'wrap' | 'wrap-reverse';
|
|
14
|
+
/** Gap between children (applies to both row and column gap) */
|
|
15
|
+
gap?: SizeValue;
|
|
16
|
+
/** Row gap between children */
|
|
17
|
+
rowGap?: SizeValue;
|
|
18
|
+
/** Column gap between children */
|
|
19
|
+
columnGap?: SizeValue;
|
|
20
|
+
/** Flex grow */
|
|
21
|
+
grow?: number;
|
|
22
|
+
/** Flex shrink */
|
|
23
|
+
shrink?: number;
|
|
24
|
+
/** Flex basis */
|
|
25
|
+
basis?: DimensionValue;
|
|
26
|
+
/** Children elements */
|
|
27
|
+
children?: React.ReactNode;
|
|
28
|
+
/** Custom styles */
|
|
29
|
+
style?: ViewStyle;
|
|
30
|
+
/** Test ID for testing */
|
|
31
|
+
testID?: string;
|
|
32
|
+
/** Disable automatic RTL mirroring for row direction */
|
|
33
|
+
disableRTLMirroring?: boolean;
|
|
34
|
+
}
|
|
35
|
+
export declare const Flex: import("../../core/factory").PlatformBlocksComponent<{
|
|
36
|
+
props: FlexProps;
|
|
37
|
+
ref: View;
|
|
38
|
+
}>;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { View } from 'react-native';
|
|
3
|
+
import { FlexProps } from './Flex';
|
|
4
|
+
/**
|
|
5
|
+
* Row component - shorthand for Flex with direction="row"
|
|
6
|
+
* Automatically mirrors to row-reverse in RTL
|
|
7
|
+
*/
|
|
8
|
+
export declare const Row: React.ForwardRefExoticComponent<Omit<FlexProps, "direction"> & React.RefAttributes<View>>;
|
|
9
|
+
/**
|
|
10
|
+
* Column component - shorthand for Flex with direction="column"
|
|
11
|
+
* Not affected by RTL (columns are vertical)
|
|
12
|
+
*/
|
|
13
|
+
export declare const Column: React.ForwardRefExoticComponent<Omit<FlexProps, "direction"> & React.RefAttributes<View>>;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { ViewStyle } from 'react-native';
|
|
3
|
+
export interface FloatingActionItem {
|
|
4
|
+
key: string;
|
|
5
|
+
icon?: string;
|
|
6
|
+
getIcon?: () => string;
|
|
7
|
+
onPress: () => void;
|
|
8
|
+
accessibilityLabel?: string;
|
|
9
|
+
}
|
|
10
|
+
export interface FloatingActionsProps {
|
|
11
|
+
/** Custom actions. If not provided, defaults to spotlight, theme toggle, and GitHub */
|
|
12
|
+
actions?: FloatingActionItem[];
|
|
13
|
+
/** Called when the speed dial opens */
|
|
14
|
+
onOpen?: () => void;
|
|
15
|
+
/** Called when the speed dial closes */
|
|
16
|
+
onClose?: () => void;
|
|
17
|
+
/** If true, clicking/tapping outside will not close the menu */
|
|
18
|
+
disableOutsideClose?: boolean;
|
|
19
|
+
/** Radius (in px) for the arc along which actions are laid out */
|
|
20
|
+
radius?: number;
|
|
21
|
+
/** Container style (position should remain absolute for proper layout) */
|
|
22
|
+
style?: ViewStyle;
|
|
23
|
+
/** Handler to toggle theme (if omitted, the Theme action still shows but will be a no-op) */
|
|
24
|
+
onToggleTheme?: () => void;
|
|
25
|
+
/** GitHub URL for the default GitHub action */
|
|
26
|
+
githubUrl?: string;
|
|
27
|
+
}
|
|
28
|
+
export declare const FloatingActions: React.FC<FloatingActionsProps>;
|
|
29
|
+
export default FloatingActions;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { FormContextValue, ValidationSchema } from './types';
|
|
3
|
+
export declare const useFormContext: () => FormContextValue;
|
|
4
|
+
export declare const useOptionalFormContext: () => FormContextValue | null;
|
|
5
|
+
interface FormProviderProps {
|
|
6
|
+
initialValues?: Record<string, any>;
|
|
7
|
+
validationSchema?: ValidationSchema;
|
|
8
|
+
onSubmit?: (values: Record<string, any>) => void | Promise<void>;
|
|
9
|
+
validate?: (values: Record<string, any>) => Record<string, string> | Promise<Record<string, string>>;
|
|
10
|
+
disabled?: boolean;
|
|
11
|
+
validateOnChange?: boolean;
|
|
12
|
+
validateOnBlur?: boolean;
|
|
13
|
+
children: React.ReactNode;
|
|
14
|
+
}
|
|
15
|
+
export declare const FormProvider: React.FC<FormProviderProps>;
|
|
16
|
+
export {};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { FormProps } from './types';
|
|
3
|
+
/**
|
|
4
|
+
* Complete optimized Form compound component
|
|
5
|
+
*/
|
|
6
|
+
export declare const OptimizedForm: React.NamedExoticComponent<FormProps> & {
|
|
7
|
+
Field: React.NamedExoticComponent<import("./types").FormFieldProps>;
|
|
8
|
+
Input: React.NamedExoticComponent<import("./types").FormInputProps>;
|
|
9
|
+
Label: React.NamedExoticComponent<import("./types").FormLabelProps>;
|
|
10
|
+
Error: React.NamedExoticComponent<import("./types").FormErrorProps>;
|
|
11
|
+
Submit: React.NamedExoticComponent<import("./types").FormSubmitProps>;
|
|
12
|
+
};
|
|
13
|
+
/**
|
|
14
|
+
* Custom hook for form performance monitoring
|
|
15
|
+
*/
|
|
16
|
+
export declare function useFormPerformanceMonitoring(formName: string): {
|
|
17
|
+
renderCount: number;
|
|
18
|
+
};
|
|
19
|
+
/**
|
|
20
|
+
* Higher-order component for adding performance monitoring to forms
|
|
21
|
+
*/
|
|
22
|
+
export declare function withFormPerformanceMonitoring<T extends object>(Component: React.ComponentType<T>, componentName: string): React.NamedExoticComponent<T>;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export declare const Form: import("react").FC<import("./types").FormProps> & {
|
|
2
|
+
Field: import("react").FC<import("./types").FormFieldProps>;
|
|
3
|
+
Input: import("react").FC<import("./types").FormInputProps>;
|
|
4
|
+
Label: import("react").FC<import("./types").FormLabelProps>;
|
|
5
|
+
Error: import("react").FC<import("./types").FormErrorProps>;
|
|
6
|
+
Submit: import("react").FC<import("./types").FormSubmitProps>;
|
|
7
|
+
};
|
|
8
|
+
export type { FormProps, FormFieldProps, FormInputProps, FormLabelProps, FormErrorProps, FormSubmitProps, ValidationSchema, FormContextValue } from './types';
|
|
9
|
+
export { useFormContext, useOptionalFormContext } from './FormContext';
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { ValidationRule } from '../Input/types';
|
|
3
|
+
export interface ValidationSchema {
|
|
4
|
+
[fieldName: string]: ValidationRule[];
|
|
5
|
+
}
|
|
6
|
+
export interface FormContextValue {
|
|
7
|
+
/** Form values */
|
|
8
|
+
values: Record<string, any>;
|
|
9
|
+
/** Form errors */
|
|
10
|
+
errors: Record<string, string>;
|
|
11
|
+
/** Touched fields */
|
|
12
|
+
touched: Record<string, boolean>;
|
|
13
|
+
/** Whether form is disabled */
|
|
14
|
+
disabled: boolean;
|
|
15
|
+
/** Whether form is submitting */
|
|
16
|
+
isSubmitting: boolean;
|
|
17
|
+
/** Whether form is valid */
|
|
18
|
+
isValid: boolean;
|
|
19
|
+
/** Validate a single field */
|
|
20
|
+
validateField: (name: string, value: any) => Promise<string | null>;
|
|
21
|
+
/** Set field value */
|
|
22
|
+
setFieldValue: (name: string, value: any) => void;
|
|
23
|
+
/** Set field error */
|
|
24
|
+
setFieldError: (name: string, error: string | null) => void;
|
|
25
|
+
/** Set field as touched */
|
|
26
|
+
setFieldTouched: (name: string, touched: boolean) => void;
|
|
27
|
+
/** Get field props for binding */
|
|
28
|
+
getFieldProps: (name: string) => {
|
|
29
|
+
value: any;
|
|
30
|
+
onChangeText: (value: any) => void;
|
|
31
|
+
onBlur: () => void;
|
|
32
|
+
error?: string;
|
|
33
|
+
name: string;
|
|
34
|
+
};
|
|
35
|
+
/** Submit form */
|
|
36
|
+
submitForm: () => Promise<void>;
|
|
37
|
+
/** Reset form */
|
|
38
|
+
resetForm: () => void;
|
|
39
|
+
}
|
|
40
|
+
export interface FormProps {
|
|
41
|
+
/** Initial form values */
|
|
42
|
+
initialValues?: Record<string, any>;
|
|
43
|
+
/** Form validation schema */
|
|
44
|
+
validationSchema?: ValidationSchema;
|
|
45
|
+
/** Submit handler */
|
|
46
|
+
onSubmit?: (values: Record<string, any>) => void | Promise<void>;
|
|
47
|
+
/** Validation handler */
|
|
48
|
+
validate?: (values: Record<string, any>) => Record<string, string> | Promise<Record<string, string>>;
|
|
49
|
+
/** Whether form is disabled */
|
|
50
|
+
disabled?: boolean;
|
|
51
|
+
/** Whether to validate on change */
|
|
52
|
+
validateOnChange?: boolean;
|
|
53
|
+
/** Whether to validate on blur */
|
|
54
|
+
validateOnBlur?: boolean;
|
|
55
|
+
/** Children components */
|
|
56
|
+
children: React.ReactNode;
|
|
57
|
+
}
|
|
58
|
+
export interface FormFieldProps {
|
|
59
|
+
/** Field name */
|
|
60
|
+
name: string;
|
|
61
|
+
/** Field dependencies for conditional logic */
|
|
62
|
+
dependsOn?: Array<{
|
|
63
|
+
field: string;
|
|
64
|
+
condition: (value: any, formValues: Record<string, any>) => boolean;
|
|
65
|
+
action: 'show' | 'hide' | 'enable' | 'disable' | 'require';
|
|
66
|
+
}>;
|
|
67
|
+
/** Field validation dependencies */
|
|
68
|
+
validateWhen?: {
|
|
69
|
+
field: string;
|
|
70
|
+
condition: (value: any, formValues: Record<string, any>) => boolean;
|
|
71
|
+
};
|
|
72
|
+
/** Custom validation for this field */
|
|
73
|
+
validation?: ValidationRule[];
|
|
74
|
+
/** Children components */
|
|
75
|
+
children: React.ReactNode;
|
|
76
|
+
}
|
|
77
|
+
export interface FormInputProps {
|
|
78
|
+
/** Field name (optional when used inside FormField) */
|
|
79
|
+
name?: string;
|
|
80
|
+
/** All other props passed to Input component */
|
|
81
|
+
[key: string]: any;
|
|
82
|
+
}
|
|
83
|
+
export interface FormLabelProps {
|
|
84
|
+
/** Field name (for accessibility) */
|
|
85
|
+
htmlFor?: string;
|
|
86
|
+
/** Whether field is required */
|
|
87
|
+
required?: boolean;
|
|
88
|
+
/** Label content */
|
|
89
|
+
children: React.ReactNode;
|
|
90
|
+
}
|
|
91
|
+
export interface FormErrorProps {
|
|
92
|
+
/** Field name to show error for */
|
|
93
|
+
name?: string;
|
|
94
|
+
/** Custom error message */
|
|
95
|
+
error?: string;
|
|
96
|
+
}
|
|
97
|
+
export interface FormSubmitProps {
|
|
98
|
+
/** Submit button content */
|
|
99
|
+
children: React.ReactNode;
|
|
100
|
+
/** Whether button is disabled */
|
|
101
|
+
disabled?: boolean;
|
|
102
|
+
/** Additional button props */
|
|
103
|
+
[key: string]: any;
|
|
104
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
export interface FormLayoutProps {
|
|
3
|
+
children: ReactNode;
|
|
4
|
+
maxWidth?: number;
|
|
5
|
+
spacing?: 'sm' | 'md' | 'lg' | 'xl';
|
|
6
|
+
variant?: 'default' | 'card' | 'modal';
|
|
7
|
+
}
|
|
8
|
+
export interface FormSectionProps {
|
|
9
|
+
title?: string;
|
|
10
|
+
description?: string;
|
|
11
|
+
children: ReactNode;
|
|
12
|
+
spacing?: 'sm' | 'md' | 'lg';
|
|
13
|
+
collapsible?: boolean;
|
|
14
|
+
defaultCollapsed?: boolean;
|
|
15
|
+
}
|
|
16
|
+
export interface FormGroupProps {
|
|
17
|
+
children: ReactNode;
|
|
18
|
+
direction?: 'row' | 'column';
|
|
19
|
+
columns?: 2 | 3 | 4;
|
|
20
|
+
spacing?: 'xs' | 'sm' | 'md' | 'lg';
|
|
21
|
+
align?: 'start' | 'center' | 'end' | 'stretch';
|
|
22
|
+
}
|
|
23
|
+
export interface FormFieldProps {
|
|
24
|
+
label?: string;
|
|
25
|
+
description?: string;
|
|
26
|
+
error?: string;
|
|
27
|
+
required?: boolean;
|
|
28
|
+
children: ReactNode;
|
|
29
|
+
width?: 'auto' | 'full' | number;
|
|
30
|
+
labelPosition?: 'top' | 'left' | 'right';
|
|
31
|
+
}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export { LoginForm } from './LoginForm';
|
|
2
|
+
export { SignupForm } from './SignupForm';
|
|
3
|
+
export { ForgotPasswordForm } from './ForgotPasswordForm';
|
|
4
|
+
export { ContactForm } from './ContactForm';
|
|
5
|
+
export type { LoginFormProps, SignupFormProps, SignupFormData, ForgotPasswordFormProps, ContactFormProps, ContactFormData, ContactFormField, OAuthProvider } from './types';
|