@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,62 @@
|
|
|
1
|
+
import type { ReactNode } from 'react';
|
|
2
|
+
import type { ViewStyle } from 'react-native';
|
|
3
|
+
import type { SpacingProps, LayoutProps } from '../../core/utils';
|
|
4
|
+
import type { BorderRadiusProps } from '../../core/theme/radius';
|
|
5
|
+
import type { SizeValue } from '../../core/theme/sizes';
|
|
6
|
+
export interface SegmentedControlItem {
|
|
7
|
+
/** Unique value returned in change events */
|
|
8
|
+
value: string;
|
|
9
|
+
/** Item label, string will be rendered with Text component */
|
|
10
|
+
label: ReactNode;
|
|
11
|
+
/** Disable this specific segment */
|
|
12
|
+
disabled?: boolean;
|
|
13
|
+
/** Screen reader label override */
|
|
14
|
+
ariaLabel?: string;
|
|
15
|
+
/** Optional test identifier for automation */
|
|
16
|
+
testID?: string;
|
|
17
|
+
}
|
|
18
|
+
export type SegmentedControlData = string | SegmentedControlItem;
|
|
19
|
+
export interface SegmentedControlProps extends SpacingProps, LayoutProps, BorderRadiusProps {
|
|
20
|
+
/** Data that defines the segments */
|
|
21
|
+
data: SegmentedControlData[];
|
|
22
|
+
/** Controlled value */
|
|
23
|
+
value?: string;
|
|
24
|
+
/** Uncontrolled initial value */
|
|
25
|
+
defaultValue?: string;
|
|
26
|
+
/** Called when value changes */
|
|
27
|
+
onChange?: (value: string) => void;
|
|
28
|
+
/** Control size, maps to height and font size */
|
|
29
|
+
size?: SizeValue;
|
|
30
|
+
/** Indicator color token or hex */
|
|
31
|
+
color?: string;
|
|
32
|
+
/** Layout orientation */
|
|
33
|
+
orientation?: 'horizontal' | 'vertical';
|
|
34
|
+
/** Stretch across available width */
|
|
35
|
+
fullWidth?: boolean;
|
|
36
|
+
/** Disable entire control */
|
|
37
|
+
disabled?: boolean;
|
|
38
|
+
/** Prevent user interaction but keep visual state */
|
|
39
|
+
readOnly?: boolean;
|
|
40
|
+
/** Adjust text color automatically for filled variant */
|
|
41
|
+
autoContrast?: boolean;
|
|
42
|
+
/** Render dividers between items */
|
|
43
|
+
withItemsBorders?: boolean;
|
|
44
|
+
/** Indicator transition duration (ms) */
|
|
45
|
+
transitionDuration?: number;
|
|
46
|
+
/** Indicator transition easing */
|
|
47
|
+
transitionTimingFunction?: string;
|
|
48
|
+
/** Optional radio group name hint */
|
|
49
|
+
name?: string;
|
|
50
|
+
/** Visual style variant */
|
|
51
|
+
variant?: 'default' | 'filled';
|
|
52
|
+
/** Custom style for indicator */
|
|
53
|
+
indicatorStyle?: ViewStyle;
|
|
54
|
+
/** Custom style applied to every item */
|
|
55
|
+
itemStyle?: ViewStyle;
|
|
56
|
+
/** Style applied to the container */
|
|
57
|
+
style?: ViewStyle;
|
|
58
|
+
/** Test identifier applied to container */
|
|
59
|
+
testID?: string;
|
|
60
|
+
/** Accessibility label for the entire control */
|
|
61
|
+
accessibilityLabel?: string;
|
|
62
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { SizeValue } from '../../core/theme/sizes';
|
|
3
|
+
import { LayoutProps, SpacingProps } from '../../core/utils';
|
|
4
|
+
export interface SelectOption<T = any> {
|
|
5
|
+
label: string;
|
|
6
|
+
value: T;
|
|
7
|
+
disabled?: boolean;
|
|
8
|
+
}
|
|
9
|
+
export interface SelectProps<T = any> extends SpacingProps, LayoutProps {
|
|
10
|
+
value?: T | null;
|
|
11
|
+
defaultValue?: T | null;
|
|
12
|
+
onChange?: (value: T | null, option?: SelectOption<T> | null) => void;
|
|
13
|
+
options: SelectOption<T>[];
|
|
14
|
+
placeholder?: string;
|
|
15
|
+
size?: SizeValue;
|
|
16
|
+
radius?: any;
|
|
17
|
+
disabled?: boolean;
|
|
18
|
+
label?: string;
|
|
19
|
+
/** Optional short descriptive text shown directly under the label (above the field). */
|
|
20
|
+
description?: string;
|
|
21
|
+
helperText?: string;
|
|
22
|
+
error?: string;
|
|
23
|
+
searchable?: boolean;
|
|
24
|
+
renderOption?: (opt: SelectOption<T>, active: boolean, selected: boolean) => React.ReactNode;
|
|
25
|
+
fullWidth?: boolean;
|
|
26
|
+
maxHeight?: number;
|
|
27
|
+
closeOnSelect?: boolean;
|
|
28
|
+
clearable?: boolean;
|
|
29
|
+
clearButtonLabel?: string;
|
|
30
|
+
onClear?: () => void;
|
|
31
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { SizeValue } from '../../core/theme/sizes';
|
|
3
|
+
export interface SelectOption<T = any> {
|
|
4
|
+
label: string;
|
|
5
|
+
value: T;
|
|
6
|
+
disabled?: boolean;
|
|
7
|
+
}
|
|
8
|
+
export interface SelectProps<T = any> {
|
|
9
|
+
value?: T;
|
|
10
|
+
defaultValue?: T;
|
|
11
|
+
onChange?: (value: T, option: SelectOption<T>) => void;
|
|
12
|
+
options: SelectOption<T>[];
|
|
13
|
+
placeholder?: string;
|
|
14
|
+
size?: SizeValue;
|
|
15
|
+
radius?: any;
|
|
16
|
+
disabled?: boolean;
|
|
17
|
+
label?: string;
|
|
18
|
+
helperText?: string;
|
|
19
|
+
error?: string;
|
|
20
|
+
searchable?: boolean;
|
|
21
|
+
renderOption?: (opt: SelectOption<T>, active: boolean, selected: boolean) => React.ReactNode;
|
|
22
|
+
fullWidth?: boolean;
|
|
23
|
+
maxHeight?: number;
|
|
24
|
+
closeOnSelect?: boolean;
|
|
25
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { type TextProps } from '../Text';
|
|
3
|
+
type ShimmerDirection = 'ltr' | 'rtl';
|
|
4
|
+
export interface ShimmerTextProps extends Omit<TextProps, 'children' | 'color' | 'onLayout'> {
|
|
5
|
+
children?: React.ReactNode;
|
|
6
|
+
text?: string;
|
|
7
|
+
/** Base text color rendered underneath the shimmer */
|
|
8
|
+
color?: string;
|
|
9
|
+
/** Optional gradient stops override */
|
|
10
|
+
colors?: string[];
|
|
11
|
+
/** Primary shimmering color used to derive stops when `colors` not provided */
|
|
12
|
+
shimmerColor?: string;
|
|
13
|
+
/** Duration in seconds for a single sweep */
|
|
14
|
+
duration?: number;
|
|
15
|
+
/** Delay in seconds before the first sweep starts */
|
|
16
|
+
delay?: number;
|
|
17
|
+
/** Additional pause in seconds between repeated sweeps */
|
|
18
|
+
repeatDelay?: number;
|
|
19
|
+
/** Whether the shimmer should loop */
|
|
20
|
+
repeat?: boolean;
|
|
21
|
+
/** Run the shimmer exactly once */
|
|
22
|
+
once?: boolean;
|
|
23
|
+
/** Direction the shimmer should travel */
|
|
24
|
+
direction?: ShimmerDirection;
|
|
25
|
+
/** Multiplier that controls how wide the gradient band is relative to the text width */
|
|
26
|
+
spread?: number;
|
|
27
|
+
/** Enable verbose logging for debugging */
|
|
28
|
+
debug?: boolean;
|
|
29
|
+
/** Called with the layout of the text */
|
|
30
|
+
onLayout?: TextProps['onLayout'];
|
|
31
|
+
}
|
|
32
|
+
export declare function ShimmerText(props: ShimmerTextProps): React.JSX.Element;
|
|
33
|
+
export {};
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import type { TextProps } from '../Text/Text';
|
|
2
|
+
export interface ShimmerTextProps extends Omit<TextProps, 'children' | 'value' | 'color'> {
|
|
3
|
+
/** Text node children. Overrides `text` when provided */
|
|
4
|
+
children?: React.ReactNode;
|
|
5
|
+
/** Text content to render when not using children */
|
|
6
|
+
text?: string;
|
|
7
|
+
/** Base text color. Falls back to the current theme text color */
|
|
8
|
+
color?: string;
|
|
9
|
+
/** Highlight color used for the shimmer pass */
|
|
10
|
+
shimmerColor?: string;
|
|
11
|
+
/** Length multiplier for the shimmer sweep (higher = wider highlight) */
|
|
12
|
+
spread?: number;
|
|
13
|
+
/** Duration of a single shimmer cycle in seconds */
|
|
14
|
+
duration?: number;
|
|
15
|
+
/** Delay before the shimmer starts (seconds) */
|
|
16
|
+
delay?: number;
|
|
17
|
+
/** Whether the shimmer should repeat indefinitely */
|
|
18
|
+
repeat?: boolean;
|
|
19
|
+
/** Delay between shimmer repetitions (seconds) */
|
|
20
|
+
repeatDelay?: number;
|
|
21
|
+
/** Start shimmering once the component enters the viewport (web only) */
|
|
22
|
+
startOnView?: boolean;
|
|
23
|
+
/** Animate only once after becoming visible */
|
|
24
|
+
once?: boolean;
|
|
25
|
+
/** Custom IntersectionObserver margin (web only) */
|
|
26
|
+
inViewMargin?: string;
|
|
27
|
+
/** Direction of shimmer movement */
|
|
28
|
+
direction?: 'ltr' | 'rtl';
|
|
29
|
+
/** Optional container style */
|
|
30
|
+
containerStyle?: any;
|
|
31
|
+
/** Optional test identifier */
|
|
32
|
+
testID?: string;
|
|
33
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { DimensionValue, ViewStyle, View } from 'react-native';
|
|
2
|
+
import { SpacingProps } from '../../core/utils';
|
|
3
|
+
import { SizeValue } from '../../core/theme/sizes';
|
|
4
|
+
export type SkeletonShape = 'text' | 'chip' | 'avatar' | 'button' | 'card' | 'circle' | 'rectangle' | 'rounded';
|
|
5
|
+
export interface SkeletonProps extends SpacingProps {
|
|
6
|
+
/** Shape of the skeleton placeholder */
|
|
7
|
+
shape?: SkeletonShape;
|
|
8
|
+
/** Width of the skeleton component */
|
|
9
|
+
width?: DimensionValue;
|
|
10
|
+
/** Height of the skeleton component */
|
|
11
|
+
height?: DimensionValue;
|
|
12
|
+
/** Size of the skeleton component (overrides width/height) */
|
|
13
|
+
size?: SizeValue;
|
|
14
|
+
/** Border radius for rectangle/rounded shapes */
|
|
15
|
+
radius?: SizeValue | number;
|
|
16
|
+
/** Whether to show the loading animation */
|
|
17
|
+
animate?: boolean;
|
|
18
|
+
/** Duration of the loading animation in milliseconds */
|
|
19
|
+
animationDuration?: number;
|
|
20
|
+
/** Gradient colors for the shimmer effect */
|
|
21
|
+
colors?: [string, string];
|
|
22
|
+
/** Style overrides for the skeleton container */
|
|
23
|
+
style?: ViewStyle;
|
|
24
|
+
/** Optional test identifier */
|
|
25
|
+
testID?: string;
|
|
26
|
+
}
|
|
27
|
+
export interface SkeletonFactoryPayload {
|
|
28
|
+
props: SkeletonProps;
|
|
29
|
+
ref: View;
|
|
30
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { View } from 'react-native';
|
|
2
|
+
import type { SliderProps, RangeSliderProps } from './types';
|
|
3
|
+
export declare const Slider: import("../../core/factory").PlatformBlocksComponent<{
|
|
4
|
+
props: SliderProps;
|
|
5
|
+
ref: View;
|
|
6
|
+
}>;
|
|
7
|
+
export declare const RangeSlider: import("../../core/factory").PlatformBlocksComponent<{
|
|
8
|
+
props: RangeSliderProps;
|
|
9
|
+
ref: View;
|
|
10
|
+
}>;
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { SliderTick, SliderTrackProps, SliderThumbProps, SliderTicksProps, SliderLabelProps, SliderValueLabelProps } from './types';
|
|
3
|
+
export declare const SLIDER_CONSTANTS: {
|
|
4
|
+
THUMB_SIZE: {
|
|
5
|
+
sm: number;
|
|
6
|
+
md: number;
|
|
7
|
+
lg: number;
|
|
8
|
+
};
|
|
9
|
+
TRACK_HEIGHT: {
|
|
10
|
+
sm: number;
|
|
11
|
+
md: number;
|
|
12
|
+
lg: number;
|
|
13
|
+
};
|
|
14
|
+
CONTAINER_HEIGHT: number;
|
|
15
|
+
CONTAINER_WIDTH: number;
|
|
16
|
+
LABEL_OFFSET: number;
|
|
17
|
+
};
|
|
18
|
+
export declare const getOrientationProps: (orientation?: "horizontal" | "vertical", containerSize?: number) => {
|
|
19
|
+
isVertical: boolean;
|
|
20
|
+
trackDimension: string;
|
|
21
|
+
thumbDimension: string;
|
|
22
|
+
crossDimension: string;
|
|
23
|
+
mainAxis: string;
|
|
24
|
+
crossAxis: string;
|
|
25
|
+
mainSize: string;
|
|
26
|
+
crossSize: string;
|
|
27
|
+
containerWidth: number;
|
|
28
|
+
containerHeight: number;
|
|
29
|
+
trackStart: string;
|
|
30
|
+
trackEnd: string;
|
|
31
|
+
thumbPosition: string;
|
|
32
|
+
crossPosition: string;
|
|
33
|
+
};
|
|
34
|
+
export declare const sliderUtils: {
|
|
35
|
+
clamp: (value: number, min: number, max: number) => number;
|
|
36
|
+
roundToStep: (value: number, step: number) => number;
|
|
37
|
+
roundToTicks: (value: number, ticks: SliderTick[]) => number;
|
|
38
|
+
valueToPercentage: (value: number, min: number, max: number) => number;
|
|
39
|
+
percentageToValue: (percentage: number, min: number, max: number) => number;
|
|
40
|
+
positionToPercentage: (position: number, trackLength: number) => number;
|
|
41
|
+
};
|
|
42
|
+
export declare const useSliderTicks: (ticks: SliderTick[] | undefined, showTicks: boolean, min: number, max: number, step: number, trackLength: number, isRange?: boolean, rangeValues?: [number, number]) => {
|
|
43
|
+
position: number;
|
|
44
|
+
isActive: boolean;
|
|
45
|
+
value: number;
|
|
46
|
+
label?: string;
|
|
47
|
+
style?: any;
|
|
48
|
+
}[];
|
|
49
|
+
export declare const useSliderValue: (value: number | [number, number], min: number, max: number, step: number, restrictToTicks: boolean, ticks: SliderTick[] | undefined, isRange?: boolean) => number | [number, number];
|
|
50
|
+
export declare const useSliderGesture: (min: number, max: number, step: number, restrictToTicks: boolean, ticks: SliderTick[] | undefined, disabled: boolean) => {
|
|
51
|
+
calculateNewValue: (position: number, trackLength: number) => number;
|
|
52
|
+
};
|
|
53
|
+
export declare const SliderTrack: React.FC<SliderTrackProps>;
|
|
54
|
+
export declare const SliderTicks: React.FC<SliderTicksProps>;
|
|
55
|
+
export declare const SliderThumb: React.FC<SliderThumbProps>;
|
|
56
|
+
export declare const SliderLabel: React.FC<SliderLabelProps>;
|
|
57
|
+
export declare const SliderValueLabel: React.FC<SliderValueLabelProps>;
|
|
@@ -0,0 +1,133 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { BaseInputProps } from '../Input/types';
|
|
3
|
+
import { ColorValue, SizeValue } from '../../core/theme/types';
|
|
4
|
+
export interface SliderTick {
|
|
5
|
+
/** Tick value */
|
|
6
|
+
value: number;
|
|
7
|
+
/** Optional label for the tick */
|
|
8
|
+
label?: string;
|
|
9
|
+
/** Optional style for the tick */
|
|
10
|
+
style?: any;
|
|
11
|
+
}
|
|
12
|
+
export interface SliderProps extends Omit<BaseInputProps, 'value' | 'onChangeText' | 'label'> {
|
|
13
|
+
/** Slider value */
|
|
14
|
+
value?: number;
|
|
15
|
+
/** Uncontrolled initial value */
|
|
16
|
+
defaultValue?: number;
|
|
17
|
+
/** Change handler */
|
|
18
|
+
onChange?: (value: number) => void;
|
|
19
|
+
/** Minimum value */
|
|
20
|
+
min?: number;
|
|
21
|
+
/** Maximum value */
|
|
22
|
+
max?: number;
|
|
23
|
+
/** Step increment */
|
|
24
|
+
step?: number;
|
|
25
|
+
/** Slider orientation */
|
|
26
|
+
orientation?: 'horizontal' | 'vertical';
|
|
27
|
+
/** Track color */
|
|
28
|
+
trackColor?: ColorValue;
|
|
29
|
+
/** Active track color */
|
|
30
|
+
activeTrackColor?: ColorValue;
|
|
31
|
+
/** Thumb color */
|
|
32
|
+
thumbColor?: ColorValue;
|
|
33
|
+
/** Track height/width */
|
|
34
|
+
trackSize?: number;
|
|
35
|
+
/** Thumb size */
|
|
36
|
+
thumbSize?: number;
|
|
37
|
+
/** Input label (above the slider) */
|
|
38
|
+
label?: React.ReactNode;
|
|
39
|
+
/** Value label formatter function, set to null to disable value label */
|
|
40
|
+
valueLabel?: ((value: number) => string) | null;
|
|
41
|
+
/** If true, value label will always be displayed */
|
|
42
|
+
valueLabelAlwaysOn?: boolean;
|
|
43
|
+
/** Value label position */
|
|
44
|
+
valueLabelPosition?: 'top' | 'bottom' | 'left' | 'right';
|
|
45
|
+
/** Show min/max labels */
|
|
46
|
+
showMarks?: boolean;
|
|
47
|
+
/** Custom ticks/marks to display on the slider */
|
|
48
|
+
ticks?: SliderTick[];
|
|
49
|
+
/** Slider container size (width for horizontal, height for vertical) */
|
|
50
|
+
containerSize?: number;
|
|
51
|
+
/** Whether to show automatic tick marks based on step */
|
|
52
|
+
showTicks?: boolean;
|
|
53
|
+
/** Restrict value changes to only tick positions */
|
|
54
|
+
restrictToTicks?: boolean;
|
|
55
|
+
/** Inverted slider (right-to-left or top-to-bottom) */
|
|
56
|
+
inverted?: boolean;
|
|
57
|
+
/** Precision for value display */
|
|
58
|
+
precision?: number;
|
|
59
|
+
/** Tooltip visibility */
|
|
60
|
+
tooltip?: 'always' | 'hover' | 'never';
|
|
61
|
+
/** Make slider stretch to fill parent width/height */
|
|
62
|
+
fullWidth?: boolean;
|
|
63
|
+
}
|
|
64
|
+
export interface RangeSliderProps extends Omit<SliderProps, 'value' | 'onChange' | 'valueLabel' | 'defaultValue'> {
|
|
65
|
+
/** Range value [min, max] */
|
|
66
|
+
value?: [number, number];
|
|
67
|
+
/** Uncontrolled initial range value */
|
|
68
|
+
defaultValue?: [number, number];
|
|
69
|
+
/** Change handler */
|
|
70
|
+
onChange?: (value: [number, number]) => void;
|
|
71
|
+
/** Value label formatter function for range values */
|
|
72
|
+
valueLabel?: ((value: number, index: number) => string) | null;
|
|
73
|
+
/** Minimum distance between thumbs */
|
|
74
|
+
minRange?: number;
|
|
75
|
+
/** Allow thumbs to cross */
|
|
76
|
+
allowCross?: boolean;
|
|
77
|
+
/** Whether thumbs should push each other when they overlap (default: true) */
|
|
78
|
+
pushOnOverlap?: boolean;
|
|
79
|
+
/** Labels for range values */
|
|
80
|
+
rangeLabels?: [string, string];
|
|
81
|
+
}
|
|
82
|
+
export interface SliderStyleProps {
|
|
83
|
+
error?: boolean;
|
|
84
|
+
disabled?: boolean;
|
|
85
|
+
focused?: boolean;
|
|
86
|
+
size: SizeValue;
|
|
87
|
+
orientation: 'horizontal' | 'vertical';
|
|
88
|
+
containerSize: number;
|
|
89
|
+
trackSize: number;
|
|
90
|
+
thumbSize: number;
|
|
91
|
+
}
|
|
92
|
+
export interface SliderTrackProps {
|
|
93
|
+
disabled: boolean;
|
|
94
|
+
theme: any;
|
|
95
|
+
size: 'sm' | 'md' | 'lg';
|
|
96
|
+
orientation: 'horizontal' | 'vertical';
|
|
97
|
+
activeWidth?: number;
|
|
98
|
+
activeLeft?: number;
|
|
99
|
+
isRange?: boolean;
|
|
100
|
+
}
|
|
101
|
+
export interface SliderTicksProps {
|
|
102
|
+
ticks: Array<{
|
|
103
|
+
value: number;
|
|
104
|
+
position: number;
|
|
105
|
+
isActive: boolean;
|
|
106
|
+
label?: string;
|
|
107
|
+
}>;
|
|
108
|
+
disabled: boolean;
|
|
109
|
+
theme: any;
|
|
110
|
+
size: 'sm' | 'md' | 'lg';
|
|
111
|
+
orientation: 'horizontal' | 'vertical';
|
|
112
|
+
keyPrefix?: string;
|
|
113
|
+
}
|
|
114
|
+
export interface SliderThumbProps {
|
|
115
|
+
position: number;
|
|
116
|
+
disabled: boolean;
|
|
117
|
+
theme: any;
|
|
118
|
+
size: 'sm' | 'md' | 'lg';
|
|
119
|
+
orientation: 'horizontal' | 'vertical';
|
|
120
|
+
isDragging: boolean;
|
|
121
|
+
zIndex?: number;
|
|
122
|
+
panHandlers?: any;
|
|
123
|
+
}
|
|
124
|
+
export interface SliderLabelProps {
|
|
125
|
+
label: React.ReactNode;
|
|
126
|
+
}
|
|
127
|
+
export interface SliderValueLabelProps {
|
|
128
|
+
value: string | number;
|
|
129
|
+
position: number;
|
|
130
|
+
size: 'sm' | 'md' | 'lg';
|
|
131
|
+
orientation: 'horizontal' | 'vertical';
|
|
132
|
+
isCard?: boolean;
|
|
133
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { StyleProp, ViewProps, ViewStyle } from 'react-native';
|
|
2
|
+
import type { SizeValue } from '../../core/theme/sizes';
|
|
3
|
+
export interface SpaceProps extends Omit<ViewProps, 'style'> {
|
|
4
|
+
/** Height of the spacer. Accepts theme spacing tokens or raw numbers. */
|
|
5
|
+
h?: SizeValue;
|
|
6
|
+
/** Width of the spacer. Accepts theme spacing tokens or raw numbers. */
|
|
7
|
+
w?: SizeValue;
|
|
8
|
+
/**
|
|
9
|
+
* Fallback size when neither `h` nor `w` is provided.
|
|
10
|
+
* Defaults to `md` so the component always occupies some space.
|
|
11
|
+
*/
|
|
12
|
+
size?: SizeValue;
|
|
13
|
+
/** Optional style overrides. */
|
|
14
|
+
style?: StyleProp<ViewStyle>;
|
|
15
|
+
/** Space is presentational only, so children are not supported. */
|
|
16
|
+
children?: never;
|
|
17
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { SpacingProps } from '../../core/utils';
|
|
3
|
+
import { SizeValue } from '../../core/theme/sizes';
|
|
4
|
+
export interface SpoilerProps extends SpacingProps {
|
|
5
|
+
/** Content to hide/show */
|
|
6
|
+
children: React.ReactNode;
|
|
7
|
+
/** Max height (in px) when collapsed */
|
|
8
|
+
maxHeight?: number;
|
|
9
|
+
/** Whether component starts initially opened */
|
|
10
|
+
initiallyOpen?: boolean;
|
|
11
|
+
/** Label for show more */
|
|
12
|
+
showLabel?: string;
|
|
13
|
+
/** Label for hide */
|
|
14
|
+
hideLabel?: string;
|
|
15
|
+
/** Transition duration ms */
|
|
16
|
+
transitionDuration?: number;
|
|
17
|
+
/** Size token influences padding / font */
|
|
18
|
+
size?: SizeValue;
|
|
19
|
+
/** Optional controlled open state */
|
|
20
|
+
opened?: boolean;
|
|
21
|
+
/** Callback when toggle */
|
|
22
|
+
onToggle?: (opened: boolean) => void;
|
|
23
|
+
/** Disable toggle */
|
|
24
|
+
disabled?: boolean;
|
|
25
|
+
/** Optional style */
|
|
26
|
+
style?: any;
|
|
27
|
+
/** Render custom control */
|
|
28
|
+
renderControl?: (args: {
|
|
29
|
+
opened: boolean;
|
|
30
|
+
toggle: () => void;
|
|
31
|
+
showLabel: string;
|
|
32
|
+
hideLabel: string;
|
|
33
|
+
}) => React.ReactNode;
|
|
34
|
+
/** If true (default) fade bottom of clamped content to transparent using CSS mask on web */
|
|
35
|
+
transparentFade?: boolean;
|
|
36
|
+
/** Fallback overlay gradient end color (used only when transparentFade=false) */
|
|
37
|
+
fadeColor?: string;
|
|
38
|
+
/** Disable gradient fade animation (debug / perf). Default false (animation enabled). */
|
|
39
|
+
disableFadeAnimation?: boolean;
|
|
40
|
+
}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Global Spotlight Hook for Direct State Access
|
|
3
|
+
*
|
|
4
|
+
* This hook bypasses the SpotlightProvider context and uses the global state directly.
|
|
5
|
+
* This should be used in the GlobalSpotlight component to avoid provider re-mounting issues.
|
|
6
|
+
*/
|
|
7
|
+
import { SpotlightState } from './SpotlightStore';
|
|
8
|
+
interface GlobalSpotlightState {
|
|
9
|
+
opened: boolean;
|
|
10
|
+
query: string;
|
|
11
|
+
selectedIndex: number;
|
|
12
|
+
}
|
|
13
|
+
type SpotlightStateListener = (state: GlobalSpotlightState) => void;
|
|
14
|
+
declare class DirectSpotlightStateManager {
|
|
15
|
+
private state;
|
|
16
|
+
private listeners;
|
|
17
|
+
getState(): GlobalSpotlightState;
|
|
18
|
+
setState(updates: Partial<GlobalSpotlightState>): void;
|
|
19
|
+
open(query?: string): void;
|
|
20
|
+
close(): void;
|
|
21
|
+
setQuery(query: string): void;
|
|
22
|
+
toggle(): void;
|
|
23
|
+
subscribe(listener: SpotlightStateListener): () => void;
|
|
24
|
+
private notifyListeners;
|
|
25
|
+
}
|
|
26
|
+
export declare const directSpotlightStateManager: DirectSpotlightStateManager;
|
|
27
|
+
export declare function useDirectSpotlightState(): {
|
|
28
|
+
state: SpotlightState;
|
|
29
|
+
open: (query?: string) => void;
|
|
30
|
+
close: () => void;
|
|
31
|
+
toggle: () => void;
|
|
32
|
+
setQuery: (query: string) => void;
|
|
33
|
+
};
|
|
34
|
+
export declare const directSpotlight: {
|
|
35
|
+
open: (query?: string) => void;
|
|
36
|
+
close: () => void;
|
|
37
|
+
toggle: () => void;
|
|
38
|
+
setQuery: (query: string) => void;
|
|
39
|
+
getState: () => GlobalSpotlightState;
|
|
40
|
+
};
|
|
41
|
+
export {};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { SpotlightProps, SpotlightRootProps, SpotlightSearchProps, SpotlightActionsListProps, SpotlightActionProps, SpotlightActionsGroupProps, SpotlightEmptyProps } from './types';
|
|
3
|
+
declare function SpotlightRoot({ query, onQueryChange, children, opened, onClose, shortcut, style, }: SpotlightRootProps): React.JSX.Element;
|
|
4
|
+
declare function SpotlightSearch({ value, onChangeText, leftSection, placeholder, onNavigateUp, onNavigateDown, onSelectAction, onClose, ...props }: SpotlightSearchProps): React.JSX.Element;
|
|
5
|
+
declare function SpotlightActionsList({ children, scrollable, maxHeight, style, scrollRef, onScrollChange, }: SpotlightActionsListProps): React.JSX.Element;
|
|
6
|
+
declare function SpotlightAction({ label, description, leftSection, rightSection, onPress, disabled, selected, children, style, innerRef, }: SpotlightActionProps): React.JSX.Element;
|
|
7
|
+
declare function SpotlightActionsGroup({ label, children, style, }: SpotlightActionsGroupProps): React.JSX.Element;
|
|
8
|
+
declare function SpotlightEmpty({ children, style }: SpotlightEmptyProps): React.JSX.Element;
|
|
9
|
+
export declare function Spotlight({ actions, nothingFound, highlightQuery, limit, scrollable, maxHeight, // Remove default - let it be calculated dynamically
|
|
10
|
+
shortcut, searchProps, store, variant, width, height, }: SpotlightProps): React.JSX.Element;
|
|
11
|
+
export declare namespace Spotlight {
|
|
12
|
+
var Root: typeof SpotlightRoot;
|
|
13
|
+
var Search: typeof SpotlightSearch;
|
|
14
|
+
var ActionsList: typeof SpotlightActionsList;
|
|
15
|
+
var Action: typeof SpotlightAction;
|
|
16
|
+
var ActionsGroup: typeof SpotlightActionsGroup;
|
|
17
|
+
var Empty: typeof SpotlightEmpty;
|
|
18
|
+
}
|
|
19
|
+
export default Spotlight;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
interface SpotlightControllerProps {
|
|
3
|
+
config?: {
|
|
4
|
+
shortcut?: string | string[] | null;
|
|
5
|
+
actions?: any[];
|
|
6
|
+
alwaysMount?: boolean;
|
|
7
|
+
highlightQuery?: boolean;
|
|
8
|
+
limit?: number;
|
|
9
|
+
placeholder?: string;
|
|
10
|
+
};
|
|
11
|
+
}
|
|
12
|
+
export declare const SpotlightController: React.NamedExoticComponent<SpotlightControllerProps>;
|
|
13
|
+
export {};
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import React, { ReactNode } from 'react';
|
|
2
|
+
type SpotlightRequestListener = () => void;
|
|
3
|
+
export declare function onSpotlightRequested(listener: SpotlightRequestListener): () => void;
|
|
4
|
+
export interface SpotlightState {
|
|
5
|
+
opened: boolean;
|
|
6
|
+
query: string;
|
|
7
|
+
selectedIndex: number;
|
|
8
|
+
}
|
|
9
|
+
export interface SpotlightStore {
|
|
10
|
+
state: SpotlightState;
|
|
11
|
+
open: () => void;
|
|
12
|
+
close: () => void;
|
|
13
|
+
toggle: () => void;
|
|
14
|
+
setQuery: (query: string) => void;
|
|
15
|
+
setSelectedIndex: (index: number) => void;
|
|
16
|
+
navigateUp: () => void;
|
|
17
|
+
navigateDown: () => void;
|
|
18
|
+
}
|
|
19
|
+
export interface SpotlightProviderProps {
|
|
20
|
+
children: ReactNode;
|
|
21
|
+
}
|
|
22
|
+
export declare function SpotlightProvider({ children }: SpotlightProviderProps): React.JSX.Element;
|
|
23
|
+
export declare function useSpotlightStore(): SpotlightStore;
|
|
24
|
+
export declare function useSpotlightStoreInstance(): [SpotlightStore, SpotlightStore];
|
|
25
|
+
export declare const createSpotlightStore: typeof useSpotlightStoreInstance;
|
|
26
|
+
export declare const spotlight: {
|
|
27
|
+
open: () => void;
|
|
28
|
+
close: () => void;
|
|
29
|
+
toggle: () => void;
|
|
30
|
+
};
|
|
31
|
+
export declare function setDefaultSpotlightStore(store: SpotlightStore | null): void;
|
|
32
|
+
export {};
|