@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,24 @@
|
|
|
1
|
+
export interface ECBlockGroup {
|
|
2
|
+
blocks: number;
|
|
3
|
+
dataCodewords: number;
|
|
4
|
+
}
|
|
5
|
+
export interface ECLvlInfo {
|
|
6
|
+
totalDataCodewords: number;
|
|
7
|
+
ecCodewordsPerBlock: number;
|
|
8
|
+
group1: ECBlockGroup;
|
|
9
|
+
group2?: ECBlockGroup;
|
|
10
|
+
}
|
|
11
|
+
export interface VersionInfo {
|
|
12
|
+
size: number;
|
|
13
|
+
ecc: Record<'L' | 'M' | 'Q' | 'H', ECLvlInfo>;
|
|
14
|
+
}
|
|
15
|
+
export declare const REMAINDER_BITS: Record<number, number>;
|
|
16
|
+
export declare const VERSION_INFO: Record<number, VersionInfo>;
|
|
17
|
+
export declare const MAX_VERSION: number;
|
|
18
|
+
export declare const MODE_INDICATORS: {
|
|
19
|
+
readonly NUMERIC: 1;
|
|
20
|
+
readonly ALPHANUMERIC: 2;
|
|
21
|
+
readonly BYTE: 4;
|
|
22
|
+
};
|
|
23
|
+
export type QRMode = keyof typeof MODE_INDICATORS;
|
|
24
|
+
export declare function getCharCountBits(version: number, mode: QRMode): number;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* QR Code optimization utilities (Legacy API-based generation)
|
|
3
|
+
*
|
|
4
|
+
* NOTE: This file is now used only for legacy API-based QR generation.
|
|
5
|
+
* The QRCode component no longer uses this API approach by default.
|
|
6
|
+
* Entire file retained only for potential external migration and will be removed.
|
|
7
|
+
* All consumers should rely on <QRCode /> which now always renders the full-spec internal engine.
|
|
8
|
+
*/
|
|
9
|
+
/**
|
|
10
|
+
* Simple QR code cache for commonly used values
|
|
11
|
+
*/
|
|
12
|
+
declare class QRCodeCache {
|
|
13
|
+
private cache;
|
|
14
|
+
private maxSize;
|
|
15
|
+
getCacheKey(value: string, size: number, bg: string, color: string): string;
|
|
16
|
+
get(key: string): string | undefined;
|
|
17
|
+
set(key: string, url: string): void;
|
|
18
|
+
}
|
|
19
|
+
export declare const qrCodeCache: QRCodeCache;
|
|
20
|
+
export {};
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
import { ViewStyle } from 'react-native';
|
|
2
|
+
import { SpacingProps, LayoutProps } from '../../core/utils';
|
|
3
|
+
export interface QRCodeProps extends SpacingProps, LayoutProps {
|
|
4
|
+
/** The data/text to encode in the QR code */
|
|
5
|
+
value: string;
|
|
6
|
+
/** Size of the QR code (both width and height) */
|
|
7
|
+
size?: number;
|
|
8
|
+
/** Background color of the QR code */
|
|
9
|
+
backgroundColor?: string;
|
|
10
|
+
/** Foreground color (the QR code pattern color) */
|
|
11
|
+
color?: string;
|
|
12
|
+
/**
|
|
13
|
+
* Module shape variant for data modules.
|
|
14
|
+
* Note: Finder patterns (corner anchors) always remain square for optimal scanner compatibility.
|
|
15
|
+
*/
|
|
16
|
+
moduleShape?: 'square' | 'rounded' | 'diamond';
|
|
17
|
+
/** Corner (finder) shape variant - DEPRECATED: Finder patterns always remain square */
|
|
18
|
+
finderShape?: 'square' | 'rounded';
|
|
19
|
+
/** Rounded corner radius factor (0-1) applied when moduleShape='rounded' */
|
|
20
|
+
cornerRadius?: number;
|
|
21
|
+
/** Gradient fill (overrides color) */
|
|
22
|
+
gradient?: {
|
|
23
|
+
type?: 'linear' | 'radial';
|
|
24
|
+
/** Start color */
|
|
25
|
+
from: string;
|
|
26
|
+
/** End color */
|
|
27
|
+
to: string;
|
|
28
|
+
/** (linear) rotation deg (0=left->right) */
|
|
29
|
+
rotation?: number;
|
|
30
|
+
};
|
|
31
|
+
/** Error correction level */
|
|
32
|
+
errorCorrectionLevel?: 'L' | 'M' | 'Q' | 'H';
|
|
33
|
+
/**
|
|
34
|
+
* Quiet zone size (border modules around the QR code).
|
|
35
|
+
* Defaults to 1 for compact layouts. Set to 4 for strict QR code standard compliance.
|
|
36
|
+
* Set to 0 to remove all padding around the code.
|
|
37
|
+
*/
|
|
38
|
+
quietZone?: number;
|
|
39
|
+
/** Logo to display in the center of the QR code */
|
|
40
|
+
logo?: {
|
|
41
|
+
uri: string;
|
|
42
|
+
/** Optional React element to render as logo instead of default */
|
|
43
|
+
element?: React.ReactNode;
|
|
44
|
+
size?: number;
|
|
45
|
+
backgroundColor?: string;
|
|
46
|
+
borderRadius?: number;
|
|
47
|
+
};
|
|
48
|
+
/** Custom container style */
|
|
49
|
+
style?: ViewStyle;
|
|
50
|
+
/** Test ID for testing */
|
|
51
|
+
testID?: string;
|
|
52
|
+
/** Accessibility label */
|
|
53
|
+
accessibilityLabel?: string;
|
|
54
|
+
/** Callback when QR code generation fails */
|
|
55
|
+
onError?: (error: Error) => void;
|
|
56
|
+
/** Callback when QR code starts loading */
|
|
57
|
+
onLoadStart?: () => void;
|
|
58
|
+
/** Callback when QR code finishes loading */
|
|
59
|
+
onLoadEnd?: () => void;
|
|
60
|
+
/**
|
|
61
|
+
* Which QR engine to use.
|
|
62
|
+
* - internal: new in-house full spec implementation.
|
|
63
|
+
* - legacy: bundled fallback port (qr-code-ts) for comparative testing.
|
|
64
|
+
*/
|
|
65
|
+
engine?: 'internal' | 'legacy';
|
|
66
|
+
/** If true (or object), tapping the QR copies the value (or provided value). */
|
|
67
|
+
copyOnPress?: boolean | {
|
|
68
|
+
value?: string;
|
|
69
|
+
};
|
|
70
|
+
/** Show a floating copy button overlay */
|
|
71
|
+
showCopyButton?: boolean;
|
|
72
|
+
/** Custom toast title when copied */
|
|
73
|
+
copyToastTitle?: string;
|
|
74
|
+
/** Custom toast message when copied */
|
|
75
|
+
copyToastMessage?: string;
|
|
76
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { View } from 'react-native';
|
|
2
|
+
import { RadioProps, RadioGroupProps } from './types';
|
|
3
|
+
export declare const Radio: import("../../core/factory").PlatformBlocksComponent<{
|
|
4
|
+
props: RadioProps;
|
|
5
|
+
ref: View;
|
|
6
|
+
}>;
|
|
7
|
+
export declare const RadioGroup: import("../../core/factory").PlatformBlocksComponent<{
|
|
8
|
+
props: RadioGroupProps;
|
|
9
|
+
ref: View;
|
|
10
|
+
}>;
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
import { RadioStyleProps } from './types';
|
|
2
|
+
import { PlatformBlocksTheme } from '../../core/theme/types';
|
|
3
|
+
export declare const useRadioStyles: (props: RadioStyleProps & {
|
|
4
|
+
theme: PlatformBlocksTheme;
|
|
5
|
+
}) => {
|
|
6
|
+
container: {
|
|
7
|
+
alignItems: "flex-start";
|
|
8
|
+
flexDirection: "row";
|
|
9
|
+
minHeight: number;
|
|
10
|
+
};
|
|
11
|
+
containerReverse: {
|
|
12
|
+
flexDirection: "row-reverse";
|
|
13
|
+
justifyContent: "flex-end";
|
|
14
|
+
};
|
|
15
|
+
description: {
|
|
16
|
+
color: string;
|
|
17
|
+
marginTop: number;
|
|
18
|
+
};
|
|
19
|
+
error: {
|
|
20
|
+
color: string;
|
|
21
|
+
marginTop: number;
|
|
22
|
+
};
|
|
23
|
+
iconWrapper: {
|
|
24
|
+
alignItems: "center";
|
|
25
|
+
justifyContent: "center";
|
|
26
|
+
marginRight: number;
|
|
27
|
+
};
|
|
28
|
+
label: {
|
|
29
|
+
userSelect?: any;
|
|
30
|
+
color: string;
|
|
31
|
+
lineHeight: number;
|
|
32
|
+
};
|
|
33
|
+
labelContainer: {
|
|
34
|
+
flex: number;
|
|
35
|
+
justifyContent: "center";
|
|
36
|
+
marginLeft: number;
|
|
37
|
+
};
|
|
38
|
+
labelContainerLeft: {
|
|
39
|
+
marginLeft: number;
|
|
40
|
+
marginRight: number;
|
|
41
|
+
};
|
|
42
|
+
labelContent: {
|
|
43
|
+
alignItems: "center";
|
|
44
|
+
flexDirection: "row";
|
|
45
|
+
};
|
|
46
|
+
labelDisabled: {
|
|
47
|
+
color: string;
|
|
48
|
+
};
|
|
49
|
+
labelError: {
|
|
50
|
+
color: string;
|
|
51
|
+
};
|
|
52
|
+
radio: {
|
|
53
|
+
transition?: string | undefined;
|
|
54
|
+
alignItems: "center";
|
|
55
|
+
backgroundColor: string;
|
|
56
|
+
borderColor: any;
|
|
57
|
+
borderRadius: number;
|
|
58
|
+
borderWidth: number;
|
|
59
|
+
height: number;
|
|
60
|
+
justifyContent: "center";
|
|
61
|
+
opacity: number;
|
|
62
|
+
width: number;
|
|
63
|
+
};
|
|
64
|
+
radioContainer: {
|
|
65
|
+
alignItems: "center";
|
|
66
|
+
justifyContent: "center";
|
|
67
|
+
minHeight: number;
|
|
68
|
+
minWidth: number;
|
|
69
|
+
};
|
|
70
|
+
radioInner: {
|
|
71
|
+
borderRadius: number;
|
|
72
|
+
elevation?: number | undefined;
|
|
73
|
+
backgroundColor: any;
|
|
74
|
+
height: number;
|
|
75
|
+
overflow: "hidden";
|
|
76
|
+
width: number;
|
|
77
|
+
};
|
|
78
|
+
required: {
|
|
79
|
+
color: string;
|
|
80
|
+
};
|
|
81
|
+
};
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { SizeValue, 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 RadioProps extends BaseComponentProps {
|
|
10
|
+
/** Radio value */
|
|
11
|
+
value: string;
|
|
12
|
+
/** Whether radio is selected */
|
|
13
|
+
checked?: boolean;
|
|
14
|
+
/** Change handler */
|
|
15
|
+
onChange?: (value: string) => void;
|
|
16
|
+
/** Radio group name */
|
|
17
|
+
name?: string;
|
|
18
|
+
/** Radio size */
|
|
19
|
+
size?: SizeValue;
|
|
20
|
+
/** Radio color theme */
|
|
21
|
+
color?: ColorValue;
|
|
22
|
+
/** Radio label */
|
|
23
|
+
label?: React.ReactNode;
|
|
24
|
+
/** Whether radio is disabled */
|
|
25
|
+
disabled?: boolean;
|
|
26
|
+
/** Whether radio is required */
|
|
27
|
+
required?: boolean;
|
|
28
|
+
/** Error message */
|
|
29
|
+
error?: string;
|
|
30
|
+
/** Helper text */
|
|
31
|
+
description?: string;
|
|
32
|
+
/** Label position relative to radio */
|
|
33
|
+
labelPosition?: 'left' | 'right';
|
|
34
|
+
/** Radio content/children (alternative to label) */
|
|
35
|
+
children?: React.ReactNode;
|
|
36
|
+
/** Optional icon displayed alongside the label */
|
|
37
|
+
icon?: React.ReactNode | string;
|
|
38
|
+
}
|
|
39
|
+
export interface RadioGroupProps extends BaseComponentProps {
|
|
40
|
+
/** Available options */
|
|
41
|
+
options: Array<{
|
|
42
|
+
label: React.ReactNode;
|
|
43
|
+
value: string;
|
|
44
|
+
disabled?: boolean;
|
|
45
|
+
description?: string;
|
|
46
|
+
icon?: React.ReactNode | string;
|
|
47
|
+
}>;
|
|
48
|
+
/** Selected value */
|
|
49
|
+
value?: string;
|
|
50
|
+
/** Change handler */
|
|
51
|
+
onChange?: (value: string) => void;
|
|
52
|
+
/** Group name for form submission */
|
|
53
|
+
name?: string;
|
|
54
|
+
/** Group orientation */
|
|
55
|
+
orientation?: 'vertical' | 'horizontal';
|
|
56
|
+
/** Radio size */
|
|
57
|
+
size?: SizeValue;
|
|
58
|
+
/** Radio color theme */
|
|
59
|
+
color?: ColorValue;
|
|
60
|
+
/** Group label */
|
|
61
|
+
label?: React.ReactNode;
|
|
62
|
+
/** Whether group is disabled */
|
|
63
|
+
disabled?: boolean;
|
|
64
|
+
/** Whether group is required */
|
|
65
|
+
required?: boolean;
|
|
66
|
+
/** Error message */
|
|
67
|
+
error?: string;
|
|
68
|
+
/** Helper text */
|
|
69
|
+
description?: string;
|
|
70
|
+
/** Gap between radio options */
|
|
71
|
+
gap?: SizeValue | number;
|
|
72
|
+
}
|
|
73
|
+
export interface RadioStyleProps {
|
|
74
|
+
checked: boolean;
|
|
75
|
+
disabled: boolean;
|
|
76
|
+
error: boolean;
|
|
77
|
+
size: SizeValue;
|
|
78
|
+
color: ColorValue;
|
|
79
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { View, ViewStyle } from 'react-native';
|
|
2
|
+
import { SpacingProps } from '../../core/utils';
|
|
3
|
+
import { SizeValue } from '../../core/theme/sizes';
|
|
4
|
+
export interface RatingProps extends SpacingProps {
|
|
5
|
+
/** Current rating value */
|
|
6
|
+
value?: number;
|
|
7
|
+
/** Initial rating value for uncontrolled component */
|
|
8
|
+
defaultValue?: number;
|
|
9
|
+
count?: number;
|
|
10
|
+
readOnly?: boolean;
|
|
11
|
+
allowFraction?: boolean;
|
|
12
|
+
allowHalf?: boolean;
|
|
13
|
+
precision?: number;
|
|
14
|
+
size?: SizeValue | number;
|
|
15
|
+
color?: string;
|
|
16
|
+
emptyColor?: string;
|
|
17
|
+
hoverColor?: string;
|
|
18
|
+
onChange?: (value: number) => void;
|
|
19
|
+
onHover?: (value: number) => void;
|
|
20
|
+
showTooltip?: boolean;
|
|
21
|
+
character?: string | React.ReactNode;
|
|
22
|
+
emptyCharacter?: string | React.ReactNode;
|
|
23
|
+
gap?: SizeValue | number;
|
|
24
|
+
style?: ViewStyle;
|
|
25
|
+
testID?: string;
|
|
26
|
+
accessibilityLabel?: string;
|
|
27
|
+
accessibilityHint?: string;
|
|
28
|
+
label?: React.ReactNode;
|
|
29
|
+
labelPosition?: 'left' | 'right' | 'above' | 'below';
|
|
30
|
+
labelGap?: SizeValue | number;
|
|
31
|
+
}
|
|
32
|
+
export interface RatingFactoryPayload {
|
|
33
|
+
props: RatingProps;
|
|
34
|
+
ref: View;
|
|
35
|
+
}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import type { ReactNode } from 'react';
|
|
2
|
+
import type { ViewStyle } from 'react-native';
|
|
3
|
+
export interface RevealProps {
|
|
4
|
+
/**
|
|
5
|
+
* Whether the content is revealed/expanded
|
|
6
|
+
*/
|
|
7
|
+
isRevealed: boolean;
|
|
8
|
+
/**
|
|
9
|
+
* Content to show/hide
|
|
10
|
+
*/
|
|
11
|
+
children: ReactNode;
|
|
12
|
+
/**
|
|
13
|
+
* Animation duration in milliseconds
|
|
14
|
+
* @default 300
|
|
15
|
+
*/
|
|
16
|
+
duration?: number;
|
|
17
|
+
/**
|
|
18
|
+
* Animation timing function
|
|
19
|
+
* @default 'ease-out'
|
|
20
|
+
*/
|
|
21
|
+
timing?: 'linear' | 'ease' | 'ease-in' | 'ease-out' | 'ease-in-out';
|
|
22
|
+
/**
|
|
23
|
+
* Style for the container
|
|
24
|
+
*/
|
|
25
|
+
style?: ViewStyle;
|
|
26
|
+
/**
|
|
27
|
+
* Style for the content wrapper
|
|
28
|
+
*/
|
|
29
|
+
contentStyle?: ViewStyle;
|
|
30
|
+
/**
|
|
31
|
+
* Callback fired when animation starts
|
|
32
|
+
*/
|
|
33
|
+
onAnimationStart?: () => void;
|
|
34
|
+
/**
|
|
35
|
+
* Callback fired when animation completes
|
|
36
|
+
*/
|
|
37
|
+
onAnimationEnd?: () => void;
|
|
38
|
+
/**
|
|
39
|
+
* Whether to animate on initial mount
|
|
40
|
+
* @default false
|
|
41
|
+
*/
|
|
42
|
+
animateOnMount?: boolean;
|
|
43
|
+
/**
|
|
44
|
+
* Custom height when collapsed (useful for partial reveals)
|
|
45
|
+
* @default 0
|
|
46
|
+
*/
|
|
47
|
+
collapsedHeight?: number;
|
|
48
|
+
/**
|
|
49
|
+
* Whether to fade content in/out along with height animation
|
|
50
|
+
* @default true
|
|
51
|
+
*/
|
|
52
|
+
fadeContent?: boolean;
|
|
53
|
+
}
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
export declare function useRichTextEditorStyles(): {
|
|
2
|
+
characterCount: {
|
|
3
|
+
fontSize: number;
|
|
4
|
+
marginTop: number;
|
|
5
|
+
textAlign: "right";
|
|
6
|
+
};
|
|
7
|
+
container: {
|
|
8
|
+
width: "100%";
|
|
9
|
+
};
|
|
10
|
+
disabled: {
|
|
11
|
+
opacity: number;
|
|
12
|
+
};
|
|
13
|
+
editorContainer: {
|
|
14
|
+
backgroundColor: string;
|
|
15
|
+
borderColor: string;
|
|
16
|
+
borderRadius: number;
|
|
17
|
+
borderWidth: number;
|
|
18
|
+
overflow: "hidden";
|
|
19
|
+
};
|
|
20
|
+
errorText: {
|
|
21
|
+
fontSize: number;
|
|
22
|
+
marginTop: number;
|
|
23
|
+
};
|
|
24
|
+
helperText: {
|
|
25
|
+
fontSize: number;
|
|
26
|
+
marginTop: number;
|
|
27
|
+
};
|
|
28
|
+
textInput: {
|
|
29
|
+
fontSize: number;
|
|
30
|
+
lineHeight: number;
|
|
31
|
+
padding: number;
|
|
32
|
+
};
|
|
33
|
+
toolButton: {
|
|
34
|
+
alignItems: "center";
|
|
35
|
+
backgroundColor: string;
|
|
36
|
+
borderColor: string;
|
|
37
|
+
borderRadius: number;
|
|
38
|
+
borderWidth: number;
|
|
39
|
+
height: number;
|
|
40
|
+
justifyContent: "center";
|
|
41
|
+
width: number;
|
|
42
|
+
};
|
|
43
|
+
toolSeparator: {
|
|
44
|
+
backgroundColor: string;
|
|
45
|
+
height: number;
|
|
46
|
+
marginHorizontal: number;
|
|
47
|
+
width: number;
|
|
48
|
+
};
|
|
49
|
+
toolbar: {
|
|
50
|
+
backgroundColor: string;
|
|
51
|
+
borderBottomColor: string;
|
|
52
|
+
borderBottomWidth: number;
|
|
53
|
+
};
|
|
54
|
+
toolbarContent: {
|
|
55
|
+
alignItems: "center";
|
|
56
|
+
flexDirection: "row";
|
|
57
|
+
gap: number;
|
|
58
|
+
paddingHorizontal: number;
|
|
59
|
+
paddingVertical: number;
|
|
60
|
+
};
|
|
61
|
+
};
|
|
@@ -0,0 +1,150 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { BaseInputProps } from '../Input/types';
|
|
3
|
+
export interface RichTextEditorFormat {
|
|
4
|
+
/** Bold text */
|
|
5
|
+
bold?: boolean;
|
|
6
|
+
/** Italic text */
|
|
7
|
+
italic?: boolean;
|
|
8
|
+
/** Underlined text */
|
|
9
|
+
underline?: boolean;
|
|
10
|
+
/** Strikethrough text */
|
|
11
|
+
strikethrough?: boolean;
|
|
12
|
+
/** Text color */
|
|
13
|
+
color?: string;
|
|
14
|
+
/** Background color */
|
|
15
|
+
backgroundColor?: string;
|
|
16
|
+
/** Font size */
|
|
17
|
+
fontSize?: number;
|
|
18
|
+
/** Font family */
|
|
19
|
+
fontFamily?: string;
|
|
20
|
+
/** Text alignment */
|
|
21
|
+
align?: 'left' | 'center' | 'right' | 'justify';
|
|
22
|
+
/** List type */
|
|
23
|
+
list?: 'ordered' | 'unordered' | null;
|
|
24
|
+
/** Heading level */
|
|
25
|
+
heading?: 1 | 2 | 3 | 4 | 5 | 6 | null;
|
|
26
|
+
/** Link URL */
|
|
27
|
+
link?: string | null;
|
|
28
|
+
/** Code formatting */
|
|
29
|
+
code?: boolean;
|
|
30
|
+
/** Quote formatting */
|
|
31
|
+
quote?: boolean;
|
|
32
|
+
}
|
|
33
|
+
export interface RichTextEditorContent {
|
|
34
|
+
/** Raw HTML content */
|
|
35
|
+
html: string;
|
|
36
|
+
/** Plain text content */
|
|
37
|
+
text: string;
|
|
38
|
+
/** Delta format (for advanced editors) */
|
|
39
|
+
delta?: any;
|
|
40
|
+
/** Custom format */
|
|
41
|
+
json?: any;
|
|
42
|
+
}
|
|
43
|
+
export interface RichTextEditorSelection {
|
|
44
|
+
/** Start index */
|
|
45
|
+
index: number;
|
|
46
|
+
/** Selection length */
|
|
47
|
+
length: number;
|
|
48
|
+
/** Current format */
|
|
49
|
+
format?: RichTextEditorFormat;
|
|
50
|
+
}
|
|
51
|
+
export interface RichTextEditorProps extends Omit<BaseInputProps, 'value' | 'onChange'> {
|
|
52
|
+
/** Initial content */
|
|
53
|
+
defaultValue?: RichTextEditorContent;
|
|
54
|
+
/** Current content */
|
|
55
|
+
value?: RichTextEditorContent;
|
|
56
|
+
/** Content change handler */
|
|
57
|
+
onChange?: (content: RichTextEditorContent) => void;
|
|
58
|
+
/** Selection change handler */
|
|
59
|
+
onSelectionChange?: (selection: RichTextEditorSelection) => void;
|
|
60
|
+
/** Focus handler */
|
|
61
|
+
onFocus?: () => void;
|
|
62
|
+
/** Blur handler */
|
|
63
|
+
onBlur?: () => void;
|
|
64
|
+
/** Editor placeholder */
|
|
65
|
+
placeholder?: string;
|
|
66
|
+
/** Whether editor is read-only */
|
|
67
|
+
readOnly?: boolean;
|
|
68
|
+
/** Toolbar configuration */
|
|
69
|
+
toolbar?: {
|
|
70
|
+
/** Show toolbar */
|
|
71
|
+
enabled?: boolean;
|
|
72
|
+
/** Toolbar position */
|
|
73
|
+
position?: 'top' | 'bottom' | 'floating';
|
|
74
|
+
/** Available tools */
|
|
75
|
+
tools?: Array<'bold' | 'italic' | 'underline' | 'strikethrough' | 'color' | 'backgroundColor' | 'fontSize' | 'fontFamily' | 'align' | 'list' | 'heading' | 'link' | 'image' | 'code' | 'quote' | 'separator' | {
|
|
76
|
+
type: 'custom';
|
|
77
|
+
component: React.ComponentType<any>;
|
|
78
|
+
props?: any;
|
|
79
|
+
}>;
|
|
80
|
+
/** Toolbar groups */
|
|
81
|
+
groups?: Array<Array<string>>;
|
|
82
|
+
};
|
|
83
|
+
/** Format options */
|
|
84
|
+
formats?: {
|
|
85
|
+
/** Available font families */
|
|
86
|
+
fontFamilies?: string[];
|
|
87
|
+
/** Available font sizes */
|
|
88
|
+
fontSizes?: number[];
|
|
89
|
+
/** Available colors */
|
|
90
|
+
colors?: string[];
|
|
91
|
+
/** Available heading levels */
|
|
92
|
+
headings?: Array<1 | 2 | 3 | 4 | 5 | 6>;
|
|
93
|
+
};
|
|
94
|
+
/** Image handling */
|
|
95
|
+
images?: {
|
|
96
|
+
/** Allow image uploads */
|
|
97
|
+
enabled?: boolean;
|
|
98
|
+
/** Upload handler */
|
|
99
|
+
onUpload?: (file: File) => Promise<string>;
|
|
100
|
+
/** Maximum image size */
|
|
101
|
+
maxSize?: number;
|
|
102
|
+
/** Allowed image types */
|
|
103
|
+
allowedTypes?: string[];
|
|
104
|
+
/** Image resize settings */
|
|
105
|
+
resize?: {
|
|
106
|
+
maxWidth?: number;
|
|
107
|
+
maxHeight?: number;
|
|
108
|
+
quality?: number;
|
|
109
|
+
};
|
|
110
|
+
};
|
|
111
|
+
/** Link handling */
|
|
112
|
+
links?: {
|
|
113
|
+
/** Allow links */
|
|
114
|
+
enabled?: boolean;
|
|
115
|
+
/** Link validation */
|
|
116
|
+
validate?: (url: string) => boolean;
|
|
117
|
+
/** Open links in new tab */
|
|
118
|
+
openInNewTab?: boolean;
|
|
119
|
+
};
|
|
120
|
+
/** Custom plugins */
|
|
121
|
+
plugins?: Array<{
|
|
122
|
+
/** Plugin name */
|
|
123
|
+
name: string;
|
|
124
|
+
/** Plugin component */
|
|
125
|
+
component: React.ComponentType<any>;
|
|
126
|
+
/** Plugin configuration */
|
|
127
|
+
config?: any;
|
|
128
|
+
}>;
|
|
129
|
+
/** Autosave configuration */
|
|
130
|
+
autosave?: {
|
|
131
|
+
/** Enable autosave */
|
|
132
|
+
enabled?: boolean;
|
|
133
|
+
/** Save interval in milliseconds */
|
|
134
|
+
interval?: number;
|
|
135
|
+
/** Save handler */
|
|
136
|
+
onSave?: (content: RichTextEditorContent) => void;
|
|
137
|
+
};
|
|
138
|
+
/** Spell check */
|
|
139
|
+
spellCheck?: boolean;
|
|
140
|
+
/** Maximum content length */
|
|
141
|
+
maxLength?: number;
|
|
142
|
+
/** Minimum editor height */
|
|
143
|
+
minHeight?: number;
|
|
144
|
+
/** Maximum editor height */
|
|
145
|
+
maxHeight?: number;
|
|
146
|
+
/** Custom CSS classes */
|
|
147
|
+
className?: string;
|
|
148
|
+
/** Theme override */
|
|
149
|
+
theme?: 'light' | 'dark' | 'auto';
|
|
150
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import type { SizeValue } from '../../core/theme/types';
|
|
2
|
+
export interface SearchProps {
|
|
3
|
+
value?: string;
|
|
4
|
+
defaultValue?: string;
|
|
5
|
+
onChange?: (value: string) => void;
|
|
6
|
+
onSubmit?: (value: string) => void;
|
|
7
|
+
placeholder?: string;
|
|
8
|
+
size?: SizeValue;
|
|
9
|
+
radius?: any;
|
|
10
|
+
autoFocus?: boolean;
|
|
11
|
+
debounce?: number;
|
|
12
|
+
clearButton?: boolean;
|
|
13
|
+
loading?: boolean;
|
|
14
|
+
rightSection?: React.ReactNode;
|
|
15
|
+
accessibilityLabel?: string;
|
|
16
|
+
style?: any;
|
|
17
|
+
/** When true, renders as a button that opens the spotlight instead of a typeable input */
|
|
18
|
+
buttonMode?: boolean;
|
|
19
|
+
/** Callback when search button is pressed (only used in buttonMode) */
|
|
20
|
+
onPress?: () => void;
|
|
21
|
+
/** Component to render on the right side (useful for button mode to show shortcuts like CMD+K) */
|
|
22
|
+
rightComponent?: React.ReactNode;
|
|
23
|
+
}
|
|
24
|
+
export interface InternalState {
|
|
25
|
+
value: string;
|
|
26
|
+
isControlled: boolean;
|
|
27
|
+
}
|