@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,89 @@
|
|
|
1
|
+
import type { ViewStyle } from 'react-native';
|
|
2
|
+
import type { LayoutProps } from '../../core/utils';
|
|
3
|
+
export interface OAuthProvider {
|
|
4
|
+
name: 'google' | 'facebook' | 'apple' | string;
|
|
5
|
+
displayName: string;
|
|
6
|
+
icon?: string;
|
|
7
|
+
color?: string;
|
|
8
|
+
onPress: () => void;
|
|
9
|
+
}
|
|
10
|
+
export interface LoginFormProps extends LayoutProps {
|
|
11
|
+
style?: ViewStyle;
|
|
12
|
+
onLogin?: (email: string, password: string) => void;
|
|
13
|
+
onSignup?: () => void;
|
|
14
|
+
onForgotPassword?: () => void;
|
|
15
|
+
oauthProviders?: OAuthProvider[];
|
|
16
|
+
loading?: boolean;
|
|
17
|
+
error?: string;
|
|
18
|
+
title?: string;
|
|
19
|
+
subtitle?: string;
|
|
20
|
+
showSignupLink?: boolean;
|
|
21
|
+
showForgotPasswordLink?: boolean;
|
|
22
|
+
primaryButtonText?: string;
|
|
23
|
+
signupLinkText?: string;
|
|
24
|
+
forgotPasswordLinkText?: string;
|
|
25
|
+
}
|
|
26
|
+
export interface SignupFormProps extends LayoutProps {
|
|
27
|
+
style?: ViewStyle;
|
|
28
|
+
onSignup?: (data: SignupFormData) => void;
|
|
29
|
+
onLogin?: () => void;
|
|
30
|
+
oauthProviders?: OAuthProvider[];
|
|
31
|
+
loading?: boolean;
|
|
32
|
+
error?: string;
|
|
33
|
+
title?: string;
|
|
34
|
+
subtitle?: string;
|
|
35
|
+
showLoginLink?: boolean;
|
|
36
|
+
primaryButtonText?: string;
|
|
37
|
+
loginLinkText?: string;
|
|
38
|
+
requireTermsAcceptance?: boolean;
|
|
39
|
+
termsText?: string;
|
|
40
|
+
onTermsPress?: () => void;
|
|
41
|
+
}
|
|
42
|
+
export interface SignupFormData {
|
|
43
|
+
firstName: string;
|
|
44
|
+
lastName: string;
|
|
45
|
+
email: string;
|
|
46
|
+
password: string;
|
|
47
|
+
confirmPassword: string;
|
|
48
|
+
acceptedTerms?: boolean;
|
|
49
|
+
}
|
|
50
|
+
export interface ForgotPasswordFormProps extends LayoutProps {
|
|
51
|
+
style?: ViewStyle;
|
|
52
|
+
onSubmit?: (email: string) => void;
|
|
53
|
+
onBackToLogin?: () => void;
|
|
54
|
+
loading?: boolean;
|
|
55
|
+
error?: string;
|
|
56
|
+
success?: string;
|
|
57
|
+
title?: string;
|
|
58
|
+
subtitle?: string;
|
|
59
|
+
primaryButtonText?: string;
|
|
60
|
+
backToLoginText?: string;
|
|
61
|
+
}
|
|
62
|
+
export interface ContactFormProps extends LayoutProps {
|
|
63
|
+
style?: ViewStyle;
|
|
64
|
+
onSubmit?: (data: ContactFormData) => void;
|
|
65
|
+
loading?: boolean;
|
|
66
|
+
error?: string;
|
|
67
|
+
success?: string;
|
|
68
|
+
title?: string;
|
|
69
|
+
subtitle?: string;
|
|
70
|
+
primaryButtonText?: string;
|
|
71
|
+
showSubjectField?: boolean;
|
|
72
|
+
showPhoneField?: boolean;
|
|
73
|
+
customFields?: ContactFormField[];
|
|
74
|
+
}
|
|
75
|
+
export interface ContactFormData {
|
|
76
|
+
name: string;
|
|
77
|
+
email: string;
|
|
78
|
+
phone?: string;
|
|
79
|
+
subject?: string;
|
|
80
|
+
message: string;
|
|
81
|
+
[key: string]: any;
|
|
82
|
+
}
|
|
83
|
+
export interface ContactFormField {
|
|
84
|
+
key: string;
|
|
85
|
+
label: string;
|
|
86
|
+
type: 'text' | 'email' | 'phone' | 'textarea';
|
|
87
|
+
required?: boolean;
|
|
88
|
+
placeholder?: string;
|
|
89
|
+
}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export { Gallery } from './Gallery';
|
|
2
|
+
export { GalleryControls } from './GalleryControls';
|
|
3
|
+
export { GalleryThumbnails } from './GalleryThumbnails';
|
|
4
|
+
export { GalleryMetadata } from './GalleryMetadata';
|
|
5
|
+
export type { GalleryProps, GalleryModalProps, GalleryItem, GalleryThumbnailProps, GalleryControlsProps, GalleryMetadataProps, GalleryImageProps, GalleryNavigationDirection, GalleryGestureState, } from './types';
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
export interface GalleryItem {
|
|
2
|
+
id: string;
|
|
3
|
+
uri: string;
|
|
4
|
+
title?: string;
|
|
5
|
+
description?: string;
|
|
6
|
+
metadata?: {
|
|
7
|
+
size?: string;
|
|
8
|
+
dimensions?: {
|
|
9
|
+
width: number;
|
|
10
|
+
height: number;
|
|
11
|
+
};
|
|
12
|
+
dateCreated?: string;
|
|
13
|
+
camera?: string;
|
|
14
|
+
location?: string;
|
|
15
|
+
[key: string]: any;
|
|
16
|
+
};
|
|
17
|
+
}
|
|
18
|
+
export interface GalleryProps {
|
|
19
|
+
images: GalleryItem[];
|
|
20
|
+
initialIndex?: number;
|
|
21
|
+
onClose?: () => void;
|
|
22
|
+
onImageChange?: (index: number, image: GalleryItem) => void;
|
|
23
|
+
onDownload?: (image: GalleryItem) => void;
|
|
24
|
+
showMetadata?: boolean;
|
|
25
|
+
showThumbnails?: boolean;
|
|
26
|
+
showDownloadButton?: boolean;
|
|
27
|
+
allowKeyboardNavigation?: boolean;
|
|
28
|
+
allowSwipeNavigation?: boolean;
|
|
29
|
+
overlayOpacity?: number;
|
|
30
|
+
animationDuration?: number;
|
|
31
|
+
}
|
|
32
|
+
export interface GalleryModalProps extends GalleryProps {
|
|
33
|
+
visible: boolean;
|
|
34
|
+
}
|
|
35
|
+
export interface GalleryThumbnailProps {
|
|
36
|
+
images: GalleryItem[];
|
|
37
|
+
currentIndex: number;
|
|
38
|
+
onThumbnailPress: (index: number) => void;
|
|
39
|
+
thumbnailSize?: number;
|
|
40
|
+
}
|
|
41
|
+
export interface GalleryImageProps {
|
|
42
|
+
image: GalleryItem;
|
|
43
|
+
onLoad?: () => void;
|
|
44
|
+
onError?: () => void;
|
|
45
|
+
resizeMode?: 'contain' | 'cover' | 'stretch' | 'center';
|
|
46
|
+
}
|
|
47
|
+
export interface GalleryControlsProps {
|
|
48
|
+
currentIndex: number;
|
|
49
|
+
totalImages: number;
|
|
50
|
+
onPrevious: () => void;
|
|
51
|
+
onNext: () => void;
|
|
52
|
+
onClose: () => void;
|
|
53
|
+
onDownload?: () => void;
|
|
54
|
+
showDownloadButton?: boolean;
|
|
55
|
+
image?: GalleryItem;
|
|
56
|
+
}
|
|
57
|
+
export interface GalleryMetadataProps {
|
|
58
|
+
image: GalleryItem;
|
|
59
|
+
visible: boolean;
|
|
60
|
+
}
|
|
61
|
+
export type GalleryNavigationDirection = 'previous' | 'next';
|
|
62
|
+
export interface GalleryGestureState {
|
|
63
|
+
translationX: number;
|
|
64
|
+
translationY: number;
|
|
65
|
+
velocityX: number;
|
|
66
|
+
velocityY: number;
|
|
67
|
+
scale: number;
|
|
68
|
+
}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { View } from 'react-native';
|
|
2
|
+
import { GaugeProps, GaugeTrackProps, GaugeRangeProps, GaugeTicksProps, GaugeLabelsProps, GaugeNeedleProps, GaugeCenterProps } from './types';
|
|
3
|
+
export declare const Gauge: import("../../core/factory").PlatformBlocksComponent<{
|
|
4
|
+
props: GaugeProps;
|
|
5
|
+
ref: View;
|
|
6
|
+
}>;
|
|
7
|
+
export declare const GaugeTrack: import("../../core/factory").PlatformBlocksComponent<{
|
|
8
|
+
props: GaugeTrackProps;
|
|
9
|
+
ref: HTMLDivElement;
|
|
10
|
+
}>;
|
|
11
|
+
export declare const GaugeRange: import("../../core/factory").PlatformBlocksComponent<{
|
|
12
|
+
props: GaugeRangeProps;
|
|
13
|
+
ref: HTMLDivElement;
|
|
14
|
+
}>;
|
|
15
|
+
export declare const GaugeTicks: import("../../core/factory").PlatformBlocksComponent<{
|
|
16
|
+
props: GaugeTicksProps;
|
|
17
|
+
ref: HTMLDivElement;
|
|
18
|
+
}>;
|
|
19
|
+
export declare const GaugeLabels: import("../../core/factory").PlatformBlocksComponent<{
|
|
20
|
+
props: GaugeLabelsProps;
|
|
21
|
+
ref: HTMLDivElement;
|
|
22
|
+
}>;
|
|
23
|
+
export declare const GaugeNeedle: import("../../core/factory").PlatformBlocksComponent<{
|
|
24
|
+
props: GaugeNeedleProps;
|
|
25
|
+
ref: HTMLDivElement;
|
|
26
|
+
}>;
|
|
27
|
+
export declare const GaugeCenter: import("../../core/factory").PlatformBlocksComponent<{
|
|
28
|
+
props: GaugeCenterProps;
|
|
29
|
+
ref: HTMLDivElement;
|
|
30
|
+
}>;
|
|
31
|
+
declare const GaugeCompound: typeof Gauge & {
|
|
32
|
+
Track: typeof GaugeTrack;
|
|
33
|
+
Range: typeof GaugeRange;
|
|
34
|
+
Ticks: typeof GaugeTicks;
|
|
35
|
+
Labels: typeof GaugeLabels;
|
|
36
|
+
Needle: typeof GaugeNeedle;
|
|
37
|
+
Center: typeof GaugeCenter;
|
|
38
|
+
};
|
|
39
|
+
export { GaugeCompound as GaugeWithCompound };
|
|
40
|
+
export * from './types';
|
|
41
|
+
export * from './utils';
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export { Gauge } from './Gauge';
|
|
2
|
+
export { GaugeTrack } from './Gauge';
|
|
3
|
+
export { GaugeRange } from './Gauge';
|
|
4
|
+
export { GaugeTicks } from './Gauge';
|
|
5
|
+
export { GaugeLabels } from './Gauge';
|
|
6
|
+
export { GaugeNeedle } from './Gauge';
|
|
7
|
+
export { GaugeCenter } from './Gauge';
|
|
8
|
+
export * from './types';
|
|
9
|
+
export * from './utils';
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import { GaugeStyleProps } from './types';
|
|
2
|
+
export declare const useGaugeStyles: (props: GaugeStyleProps) => {
|
|
3
|
+
container: {
|
|
4
|
+
position: "relative";
|
|
5
|
+
width: number;
|
|
6
|
+
height: number;
|
|
7
|
+
opacity: number;
|
|
8
|
+
};
|
|
9
|
+
svg: {
|
|
10
|
+
width: string;
|
|
11
|
+
height: string;
|
|
12
|
+
overflow: "visible";
|
|
13
|
+
};
|
|
14
|
+
track: {
|
|
15
|
+
fill: string;
|
|
16
|
+
stroke: string;
|
|
17
|
+
strokeWidth: number;
|
|
18
|
+
strokeLinecap: "round";
|
|
19
|
+
};
|
|
20
|
+
range: {
|
|
21
|
+
fill: string;
|
|
22
|
+
strokeWidth: number;
|
|
23
|
+
strokeLinecap: "round";
|
|
24
|
+
transition: string;
|
|
25
|
+
};
|
|
26
|
+
needle: {
|
|
27
|
+
transformOrigin: string;
|
|
28
|
+
transition: string;
|
|
29
|
+
};
|
|
30
|
+
needleLine: {
|
|
31
|
+
stroke: string;
|
|
32
|
+
strokeWidth: number;
|
|
33
|
+
strokeLinecap: "round";
|
|
34
|
+
};
|
|
35
|
+
center: {
|
|
36
|
+
fill: string;
|
|
37
|
+
};
|
|
38
|
+
tick: {
|
|
39
|
+
stroke: string;
|
|
40
|
+
strokeLinecap: "round";
|
|
41
|
+
};
|
|
42
|
+
majorTick: {
|
|
43
|
+
strokeWidth: number;
|
|
44
|
+
stroke: string;
|
|
45
|
+
};
|
|
46
|
+
minorTick: {
|
|
47
|
+
strokeWidth: number;
|
|
48
|
+
stroke: string;
|
|
49
|
+
};
|
|
50
|
+
label: {
|
|
51
|
+
fill: string;
|
|
52
|
+
fontSize: number;
|
|
53
|
+
fontFamily: string;
|
|
54
|
+
textAnchor: "middle";
|
|
55
|
+
dominantBaseline: "central";
|
|
56
|
+
};
|
|
57
|
+
};
|
|
@@ -0,0 +1,210 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { ColorValue, SpacingProps } from '../../core/theme/types';
|
|
3
|
+
export interface BaseComponentProps extends SpacingProps {
|
|
4
|
+
/** Component test ID for testing */
|
|
5
|
+
testID?: string;
|
|
6
|
+
/** Additional CSS styles */
|
|
7
|
+
style?: any;
|
|
8
|
+
}
|
|
9
|
+
export interface GaugeRange {
|
|
10
|
+
/** Starting value for the range */
|
|
11
|
+
from: number;
|
|
12
|
+
/** Ending value for the range */
|
|
13
|
+
to: number;
|
|
14
|
+
/** Color for this range */
|
|
15
|
+
color: string;
|
|
16
|
+
/** Optional label for the range */
|
|
17
|
+
label?: string;
|
|
18
|
+
}
|
|
19
|
+
export interface GaugeTicks {
|
|
20
|
+
/** Number of major ticks */
|
|
21
|
+
major?: number;
|
|
22
|
+
/** Number of minor ticks */
|
|
23
|
+
minor?: number;
|
|
24
|
+
/** Custom major tick positions */
|
|
25
|
+
majorPositions?: number[];
|
|
26
|
+
/** Custom minor tick positions */
|
|
27
|
+
minorPositions?: number[];
|
|
28
|
+
/** Major tick length */
|
|
29
|
+
majorLength?: number;
|
|
30
|
+
/** Minor tick length */
|
|
31
|
+
minorLength?: number;
|
|
32
|
+
/** Tick color */
|
|
33
|
+
color?: string;
|
|
34
|
+
/** Tick width */
|
|
35
|
+
width?: number;
|
|
36
|
+
}
|
|
37
|
+
export interface GaugeLabels {
|
|
38
|
+
/** Whether to show labels */
|
|
39
|
+
show?: boolean;
|
|
40
|
+
/** Custom label positions */
|
|
41
|
+
positions?: number[];
|
|
42
|
+
/** Label formatter function */
|
|
43
|
+
formatter?: (value: number) => string;
|
|
44
|
+
/** Label color */
|
|
45
|
+
color?: string;
|
|
46
|
+
/** Label font size */
|
|
47
|
+
fontSize?: number;
|
|
48
|
+
/** Label offset from gauge edge */
|
|
49
|
+
offset?: number;
|
|
50
|
+
}
|
|
51
|
+
export interface GaugeNeedle {
|
|
52
|
+
/** Needle color */
|
|
53
|
+
color?: string;
|
|
54
|
+
/** Needle width/thickness */
|
|
55
|
+
width?: number;
|
|
56
|
+
/** Needle length (0-1, percentage of radius) */
|
|
57
|
+
length?: number;
|
|
58
|
+
/** Needle shape */
|
|
59
|
+
shape?: 'line' | 'arrow' | 'triangle';
|
|
60
|
+
/** Whether to show center dot */
|
|
61
|
+
showCenter?: boolean;
|
|
62
|
+
/** Center dot color */
|
|
63
|
+
centerColor?: string;
|
|
64
|
+
/** Center dot size */
|
|
65
|
+
centerSize?: number;
|
|
66
|
+
}
|
|
67
|
+
export interface GaugeProps extends BaseComponentProps {
|
|
68
|
+
/** Current value */
|
|
69
|
+
value: number;
|
|
70
|
+
/** Minimum value */
|
|
71
|
+
min?: number;
|
|
72
|
+
/** Maximum value */
|
|
73
|
+
max?: number;
|
|
74
|
+
/** Gauge size */
|
|
75
|
+
size?: number | string;
|
|
76
|
+
/** Track thickness */
|
|
77
|
+
thickness?: number;
|
|
78
|
+
/** Start angle in degrees (0° = top) */
|
|
79
|
+
startAngle?: number;
|
|
80
|
+
/** End angle in degrees */
|
|
81
|
+
endAngle?: number;
|
|
82
|
+
/** Rotation offset in degrees (rotates entire gauge) */
|
|
83
|
+
rotationOffset?: number;
|
|
84
|
+
/** Main gauge color */
|
|
85
|
+
color?: ColorValue | string;
|
|
86
|
+
/** Background track color */
|
|
87
|
+
backgroundColor?: string;
|
|
88
|
+
/** Color ranges */
|
|
89
|
+
ranges?: GaugeRange[];
|
|
90
|
+
/** Tick configuration */
|
|
91
|
+
ticks?: GaugeTicks;
|
|
92
|
+
/** Label configuration */
|
|
93
|
+
labels?: GaugeLabels;
|
|
94
|
+
/** Needle configuration */
|
|
95
|
+
needle?: GaugeNeedle;
|
|
96
|
+
/** Animation duration in ms */
|
|
97
|
+
animationDuration?: number;
|
|
98
|
+
/** Animation easing */
|
|
99
|
+
animationEasing?: string;
|
|
100
|
+
/** Whether the gauge is disabled */
|
|
101
|
+
disabled?: boolean;
|
|
102
|
+
/** Accessibility label */
|
|
103
|
+
'aria-label'?: string;
|
|
104
|
+
/** Children for compound component pattern */
|
|
105
|
+
children?: React.ReactNode;
|
|
106
|
+
}
|
|
107
|
+
export interface GaugeTrackProps extends BaseComponentProps {
|
|
108
|
+
/** Track color */
|
|
109
|
+
color?: string;
|
|
110
|
+
/** Track thickness */
|
|
111
|
+
thickness?: number;
|
|
112
|
+
/** Track opacity */
|
|
113
|
+
opacity?: number;
|
|
114
|
+
}
|
|
115
|
+
export interface GaugeRangeProps extends BaseComponentProps {
|
|
116
|
+
/** Range start value */
|
|
117
|
+
from: number;
|
|
118
|
+
/** Range end value */
|
|
119
|
+
to: number;
|
|
120
|
+
/** Range color */
|
|
121
|
+
color: string;
|
|
122
|
+
/** Range thickness (inherits from parent if not specified) */
|
|
123
|
+
thickness?: number;
|
|
124
|
+
/** Range label */
|
|
125
|
+
label?: string;
|
|
126
|
+
}
|
|
127
|
+
export interface GaugeTicksProps extends BaseComponentProps {
|
|
128
|
+
/** Tick configuration */
|
|
129
|
+
config?: GaugeTicks;
|
|
130
|
+
/** Major tick count */
|
|
131
|
+
major?: number;
|
|
132
|
+
/** Minor tick count */
|
|
133
|
+
minor?: number;
|
|
134
|
+
/** Custom positions */
|
|
135
|
+
positions?: number[];
|
|
136
|
+
/** Tick length */
|
|
137
|
+
length?: number;
|
|
138
|
+
/** Tick color */
|
|
139
|
+
color?: string;
|
|
140
|
+
/** Tick width */
|
|
141
|
+
width?: number;
|
|
142
|
+
/** Tick type */
|
|
143
|
+
type?: 'major' | 'minor';
|
|
144
|
+
}
|
|
145
|
+
export interface GaugeLabelsProps extends BaseComponentProps {
|
|
146
|
+
/** Labels configuration */
|
|
147
|
+
config?: GaugeLabels;
|
|
148
|
+
/** Custom positions */
|
|
149
|
+
positions?: number[];
|
|
150
|
+
/** Label formatter */
|
|
151
|
+
formatter?: (value: number) => string;
|
|
152
|
+
/** Label color */
|
|
153
|
+
color?: string;
|
|
154
|
+
/** Font size */
|
|
155
|
+
fontSize?: number;
|
|
156
|
+
/** Offset from edge */
|
|
157
|
+
offset?: number;
|
|
158
|
+
}
|
|
159
|
+
export interface GaugeNeedleProps extends BaseComponentProps {
|
|
160
|
+
/** Needle value (angle will be calculated) */
|
|
161
|
+
value?: number;
|
|
162
|
+
/** Direct angle override */
|
|
163
|
+
angle?: number;
|
|
164
|
+
/** Needle configuration */
|
|
165
|
+
config?: GaugeNeedle;
|
|
166
|
+
/** Needle color */
|
|
167
|
+
color?: string;
|
|
168
|
+
/** Needle width */
|
|
169
|
+
width?: number;
|
|
170
|
+
/** Needle length */
|
|
171
|
+
length?: number;
|
|
172
|
+
/** Needle shape */
|
|
173
|
+
shape?: 'line' | 'arrow' | 'triangle';
|
|
174
|
+
/** Animation duration */
|
|
175
|
+
animationDuration?: number;
|
|
176
|
+
}
|
|
177
|
+
export interface GaugeCenterProps extends BaseComponentProps {
|
|
178
|
+
/** Center dot color */
|
|
179
|
+
color?: string;
|
|
180
|
+
/** Center dot size */
|
|
181
|
+
size?: number;
|
|
182
|
+
/** Whether to show center */
|
|
183
|
+
show?: boolean;
|
|
184
|
+
/** Custom center content */
|
|
185
|
+
children?: React.ReactNode;
|
|
186
|
+
}
|
|
187
|
+
export interface GaugeContextValue {
|
|
188
|
+
value: number;
|
|
189
|
+
min: number;
|
|
190
|
+
max: number;
|
|
191
|
+
size: number;
|
|
192
|
+
thickness: number;
|
|
193
|
+
startAngle: number;
|
|
194
|
+
endAngle: number;
|
|
195
|
+
rotationOffset: number;
|
|
196
|
+
center: {
|
|
197
|
+
x: number;
|
|
198
|
+
y: number;
|
|
199
|
+
};
|
|
200
|
+
radius: number;
|
|
201
|
+
innerRadius: number;
|
|
202
|
+
disabled: boolean;
|
|
203
|
+
animationDuration: number;
|
|
204
|
+
animationEasing: string;
|
|
205
|
+
}
|
|
206
|
+
export interface GaugeStyleProps {
|
|
207
|
+
size: number;
|
|
208
|
+
disabled: boolean;
|
|
209
|
+
thickness: number;
|
|
210
|
+
}
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
export declare function calculateArcMetrics(startAngle: number, endAngle: number, radius: number): {
|
|
2
|
+
totalAngle: number;
|
|
3
|
+
circumference: number;
|
|
4
|
+
arcLength: number;
|
|
5
|
+
};
|
|
6
|
+
/**
|
|
7
|
+
* Convert a value to an angle within the gauge range
|
|
8
|
+
*/
|
|
9
|
+
export declare function valueToAngle(value: number, min: number, max: number, startAngle: number, endAngle: number): number;
|
|
10
|
+
/**
|
|
11
|
+
* Convert angle from degrees to radians
|
|
12
|
+
*/
|
|
13
|
+
export declare function degreesToRadians(degrees: number): number;
|
|
14
|
+
/**
|
|
15
|
+
* Convert radians to degrees
|
|
16
|
+
*/
|
|
17
|
+
export declare function radiansToDegrees(radians: number): number;
|
|
18
|
+
/**
|
|
19
|
+
* Apply rotation offset to an angle
|
|
20
|
+
*/
|
|
21
|
+
export declare function applyRotationOffset(angle: number, offset?: number): number;
|
|
22
|
+
/**
|
|
23
|
+
* Calculate point on circle given center, radius, and angle
|
|
24
|
+
* In gauge coordinates: 0° = top (12 o'clock), 90° = right (3 o'clock)
|
|
25
|
+
*/
|
|
26
|
+
export declare function getPointOnCircle(centerX: number, centerY: number, radius: number, angleInDegrees: number): {
|
|
27
|
+
x: number;
|
|
28
|
+
y: number;
|
|
29
|
+
};
|
|
30
|
+
/**
|
|
31
|
+
* Create SVG arc path
|
|
32
|
+
*/
|
|
33
|
+
export declare function createArcPath(centerX: number, centerY: number, radius: number, startAngle: number, endAngle: number, largeArcFlag?: boolean): string;
|
|
34
|
+
/**
|
|
35
|
+
* Generate tick positions for a gauge
|
|
36
|
+
*/
|
|
37
|
+
export declare function generateTickPositions(min: number, max: number, majorCount: number, minorCount?: number): {
|
|
38
|
+
major: number[];
|
|
39
|
+
minor: number[];
|
|
40
|
+
};
|
|
41
|
+
/**
|
|
42
|
+
* Generate label positions for a gauge
|
|
43
|
+
*/
|
|
44
|
+
export declare function generateLabelPositions(min: number, max: number, count: number): number[];
|
|
45
|
+
/**
|
|
46
|
+
* Clamp a value between min and max
|
|
47
|
+
*/
|
|
48
|
+
export declare function clamp(value: number, min: number, max: number): number;
|
|
49
|
+
/**
|
|
50
|
+
* Linear interpolation between two values
|
|
51
|
+
*/
|
|
52
|
+
export declare function lerp(start: number, end: number, t: number): number;
|
|
53
|
+
/**
|
|
54
|
+
* Get the appropriate color for a value based on ranges
|
|
55
|
+
*/
|
|
56
|
+
export declare function getColorForValue(value: number, ranges: Array<{
|
|
57
|
+
from: number;
|
|
58
|
+
to: number;
|
|
59
|
+
color: string;
|
|
60
|
+
}>, defaultColor: string): string;
|
|
61
|
+
/**
|
|
62
|
+
* Calculate the SVG viewBox for a gauge
|
|
63
|
+
*/
|
|
64
|
+
export declare function calculateViewBox(size: number, thickness: number, padding?: number): string;
|
|
65
|
+
/**
|
|
66
|
+
* Normalize angle to 0-360 range
|
|
67
|
+
*/
|
|
68
|
+
export declare function normalizeAngle(angle: number): number;
|
|
69
|
+
/**
|
|
70
|
+
* Calculate the shortest angle difference between two angles
|
|
71
|
+
*/
|
|
72
|
+
export declare function angleDifference(angle1: number, angle2: number): number;
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { View } from 'react-native';
|
|
3
|
+
import { GradientTextProps } from './types';
|
|
4
|
+
/**
|
|
5
|
+
* GradientText Component
|
|
6
|
+
*
|
|
7
|
+
* Renders text with a gradient color effect using linear gradients.
|
|
8
|
+
* Supports animated gradients that can move from left to right.
|
|
9
|
+
*
|
|
10
|
+
* **Note**: For native platforms (iOS/Android), gradient animation is currently
|
|
11
|
+
* supported on web only. Native platforms show static gradients.
|
|
12
|
+
*
|
|
13
|
+
* @example
|
|
14
|
+
* ```tsx
|
|
15
|
+
* // Basic gradient
|
|
16
|
+
* <GradientText colors={['#FF0080', '#7928CA']}>
|
|
17
|
+
* Hello World
|
|
18
|
+
* </GradientText>
|
|
19
|
+
*
|
|
20
|
+
* // Animated gradient (web only)
|
|
21
|
+
* <GradientText
|
|
22
|
+
* colors={['#FF0080', '#7928CA', '#4F46E5']}
|
|
23
|
+
* animate
|
|
24
|
+
* animationDuration={3000}
|
|
25
|
+
* >
|
|
26
|
+
* Animated Text
|
|
27
|
+
* </GradientText>
|
|
28
|
+
*
|
|
29
|
+
* // Custom gradient direction
|
|
30
|
+
* <GradientText
|
|
31
|
+
* colors={['red', 'blue']}
|
|
32
|
+
* angle={45}
|
|
33
|
+
* >
|
|
34
|
+
* Diagonal Gradient
|
|
35
|
+
* </GradientText>
|
|
36
|
+
*
|
|
37
|
+
* // Controlled gradient position (web only)
|
|
38
|
+
* <GradientText
|
|
39
|
+
* colors={['#FF0080', '#7928CA']}
|
|
40
|
+
* position={0.5}
|
|
41
|
+
* >
|
|
42
|
+
* Mid Position
|
|
43
|
+
* </GradientText>
|
|
44
|
+
* ```
|
|
45
|
+
*/
|
|
46
|
+
export declare const GradientText: React.ForwardRefExoticComponent<GradientTextProps & React.RefAttributes<View>>;
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { TextProps } from '../Text/Text';
|
|
2
|
+
export interface GradientTextProps extends Omit<TextProps, 'color' | 'colorVariant'> {
|
|
3
|
+
/** Array of colors for the gradient (at least 2 required) */
|
|
4
|
+
colors: string[];
|
|
5
|
+
/** Color stops (0-1) for each color. If not provided, colors are evenly distributed */
|
|
6
|
+
locations?: number[];
|
|
7
|
+
/** Gradient direction angle in degrees (0 = left to right, 90 = top to bottom, etc.) */
|
|
8
|
+
angle?: number;
|
|
9
|
+
/** Start point [x, y] (0-1). Overrides angle if provided */
|
|
10
|
+
start?: [number, number];
|
|
11
|
+
/** End point [x, y] (0-1). Overrides angle if provided */
|
|
12
|
+
end?: [number, number];
|
|
13
|
+
/** Gradient position offset (0-1). Animates the gradient from start to end of the line */
|
|
14
|
+
position?: number;
|
|
15
|
+
/** Whether to animate the gradient position automatically */
|
|
16
|
+
animate?: boolean;
|
|
17
|
+
/** Animation duration in milliseconds (default: 2000) */
|
|
18
|
+
animationDuration?: number;
|
|
19
|
+
/** Animation loop behavior: 'loop', 'reverse', or 'once' (default: 'loop') */
|
|
20
|
+
animationLoop?: 'loop' | 'reverse' | 'once';
|
|
21
|
+
/** Delay before animation starts in milliseconds (default: 0) */
|
|
22
|
+
animationDelay?: number;
|
|
23
|
+
/** Custom testID for testing */
|
|
24
|
+
testID?: string;
|
|
25
|
+
}
|
|
26
|
+
export interface GradientTextStyleProps {
|
|
27
|
+
/** Array of colors for the gradient (at least 2 required) */
|
|
28
|
+
colors: string[];
|
|
29
|
+
/** Color stops (0-1) for each color. If not provided, colors are evenly distributed */
|
|
30
|
+
locations?: number[];
|
|
31
|
+
/** Gradient direction angle in degrees (0 = left to right, 90 = top to bottom, etc.) */
|
|
32
|
+
angle?: number;
|
|
33
|
+
/** Start point [x, y] (0-1). Overrides angle if provided */
|
|
34
|
+
start?: [number, number];
|
|
35
|
+
/** End point [x, y] (0-1). Overrides angle if provided */
|
|
36
|
+
end?: [number, number];
|
|
37
|
+
/** Gradient position offset (0-1) */
|
|
38
|
+
position: number;
|
|
39
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { View } from 'react-native';
|
|
2
|
+
import type { GridProps, GridItemProps } from './types';
|
|
3
|
+
export type { GridProps, GridItemProps } from './types';
|
|
4
|
+
export declare const Grid: import("../../core/factory").PlatformBlocksComponent<{
|
|
5
|
+
props: GridProps;
|
|
6
|
+
ref: View;
|
|
7
|
+
}>;
|
|
8
|
+
export declare const GridItem: import("../../core/factory").PlatformBlocksComponent<{
|
|
9
|
+
props: GridItemProps;
|
|
10
|
+
ref: View;
|
|
11
|
+
}>;
|