@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,6 @@
|
|
|
1
|
+
export { useHotkeys, useGlobalHotkeys, useEscapeKey, useToggleColorScheme, useSpotlightToggle, globalHotkeys, type HotkeyItem, type KeyboardModifiers, } from './useHotkeys';
|
|
2
|
+
export { useClipboard, type UseClipboardOptions, type UseClipboardReturnValue } from './useClipboard';
|
|
3
|
+
export { useScrollSpy, type ScrollSpyOptions, type UseScrollSpyItem } from './useScrollSpy';
|
|
4
|
+
export { useHaptics, type UseHapticsOptions, type UseHapticsReturn } from './useHaptics';
|
|
5
|
+
export { useMaskedInput, type UseMaskedInputOptions, type UseMaskedInputReturn } from './useMaskedInput';
|
|
6
|
+
export { useTitleRegistration, type UseTitleRegistrationOptions } from './useTitleRegistration';
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
export interface UseClipboardOptions {
|
|
2
|
+
/** Time in ms after which the copied state will reset, 2000 by default */
|
|
3
|
+
timeout?: number;
|
|
4
|
+
}
|
|
5
|
+
export interface UseClipboardReturnValue {
|
|
6
|
+
/** Function to copy value to clipboard */
|
|
7
|
+
copy: (value: any) => Promise<void> | void;
|
|
8
|
+
/** Function to reset copied state and error */
|
|
9
|
+
reset: () => void;
|
|
10
|
+
/** Error if copying failed */
|
|
11
|
+
error: Error | null;
|
|
12
|
+
/** Boolean indicating if the value was copied successfully */
|
|
13
|
+
copied: boolean;
|
|
14
|
+
/** The last copied value (stringified) */
|
|
15
|
+
lastValue: string | null;
|
|
16
|
+
/** True if clipboard API not available */
|
|
17
|
+
unsupported: boolean;
|
|
18
|
+
}
|
|
19
|
+
export declare function useClipboard(options?: UseClipboardOptions): UseClipboardReturnValue;
|
|
20
|
+
export default useClipboard;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
export interface UseHapticsOptions {
|
|
2
|
+
/** Whether haptics are disabled */
|
|
3
|
+
disabled?: boolean;
|
|
4
|
+
/** Minimum ms between triggers to avoid flood. */
|
|
5
|
+
throttleMs?: number;
|
|
6
|
+
}
|
|
7
|
+
export interface UseHapticsReturn {
|
|
8
|
+
/** Light impact when press starts */
|
|
9
|
+
impactPressIn: () => void;
|
|
10
|
+
/** A second impact on release (slightly heavier) */
|
|
11
|
+
impactPressOut: () => void;
|
|
12
|
+
/** Convenience for success events (e.g., toast show) */
|
|
13
|
+
notifySuccess: () => void;
|
|
14
|
+
/** Convenience for warning events */
|
|
15
|
+
notifyWarning: () => void;
|
|
16
|
+
/** Convenience for error events */
|
|
17
|
+
notifyError: () => void;
|
|
18
|
+
/** Haptic feedback for selection changes */
|
|
19
|
+
selection: () => void;
|
|
20
|
+
}
|
|
21
|
+
export declare function useHaptics(opts?: UseHapticsOptions): UseHapticsReturn;
|
|
22
|
+
export default useHaptics;
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
export type KeyboardModifiers = {
|
|
2
|
+
/** Whether the Alt key is pressed */
|
|
3
|
+
alt?: boolean;
|
|
4
|
+
/** Whether the Ctrl key is pressed */
|
|
5
|
+
ctrl?: boolean;
|
|
6
|
+
/** Whether the Meta (Cmd) key is pressed */
|
|
7
|
+
meta?: boolean;
|
|
8
|
+
/** Whether the Shift key is pressed */
|
|
9
|
+
shift?: boolean;
|
|
10
|
+
};
|
|
11
|
+
export type HotkeyItem = [
|
|
12
|
+
/** key combination like 'mod+k', 'escape', 'ctrl+j' */
|
|
13
|
+
string,
|
|
14
|
+
/** handler function */
|
|
15
|
+
(event: KeyboardEvent) => void,
|
|
16
|
+
/** optional modifiers override */
|
|
17
|
+
KeyboardModifiers?,
|
|
18
|
+
/** optional description */
|
|
19
|
+
string[]?
|
|
20
|
+
];
|
|
21
|
+
export declare function useHotkeys(hotkeys: HotkeyItem[], dependencies?: React.DependencyList): void;
|
|
22
|
+
declare class GlobalHotkeyManager {
|
|
23
|
+
private hotkeys;
|
|
24
|
+
private isListening;
|
|
25
|
+
private currentAppState;
|
|
26
|
+
private appStateSubscription?;
|
|
27
|
+
private visibilityCleanup?;
|
|
28
|
+
constructor();
|
|
29
|
+
register(id: string, hotkey: HotkeyItem): void;
|
|
30
|
+
unregister(id: string): void;
|
|
31
|
+
private handleAppStateChange;
|
|
32
|
+
private isForeground;
|
|
33
|
+
private syncListening;
|
|
34
|
+
private handleKeyDown;
|
|
35
|
+
dispose(): void;
|
|
36
|
+
}
|
|
37
|
+
export declare const globalHotkeys: GlobalHotkeyManager;
|
|
38
|
+
export declare function useGlobalHotkeys(id: string, hotkey: HotkeyItem): void;
|
|
39
|
+
export declare function useEscapeKey(handler: () => void, enabled?: boolean): void;
|
|
40
|
+
export declare function useToggleColorScheme(handler: () => void, enabled?: boolean): void;
|
|
41
|
+
export declare function useSpotlightToggle(handler: () => void, enabled?: boolean): void;
|
|
42
|
+
export {};
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { createMask, MaskDefinition, MaskResult } from '../utils/mask';
|
|
2
|
+
export interface UseMaskedInputOptions {
|
|
3
|
+
/** The mask definition */
|
|
4
|
+
mask: MaskDefinition | ReturnType<typeof createMask>;
|
|
5
|
+
/** Initial value */
|
|
6
|
+
initialValue?: string;
|
|
7
|
+
/** Callback when value changes */
|
|
8
|
+
onValueChange?: (result: MaskResult) => void;
|
|
9
|
+
/** Callback when unmasked value changes */
|
|
10
|
+
onUnmaskedValueChange?: (unmaskedValue: string, result: MaskResult) => void;
|
|
11
|
+
}
|
|
12
|
+
export interface UseMaskedInputReturn {
|
|
13
|
+
/** Current masked value for display */
|
|
14
|
+
value: string;
|
|
15
|
+
/** Current unmasked value */
|
|
16
|
+
unmaskedValue: string;
|
|
17
|
+
/** Whether the mask is complete */
|
|
18
|
+
isComplete: boolean;
|
|
19
|
+
/** Handle text input changes */
|
|
20
|
+
handleChangeText: (text: string) => void;
|
|
21
|
+
/** Handle selection change (for cursor positioning) */
|
|
22
|
+
handleSelectionChange: (selection: {
|
|
23
|
+
start: number;
|
|
24
|
+
end: number;
|
|
25
|
+
}) => void;
|
|
26
|
+
/** Current cursor position */
|
|
27
|
+
cursorPosition: number;
|
|
28
|
+
/** Reset to initial value */
|
|
29
|
+
reset: () => void;
|
|
30
|
+
/** Set value programmatically */
|
|
31
|
+
setValue: (value: string) => void;
|
|
32
|
+
/** Set unmasked value programmatically */
|
|
33
|
+
setUnmaskedValue: (unmaskedValue: string) => void;
|
|
34
|
+
}
|
|
35
|
+
export declare function useMaskedInput(options: UseMaskedInputOptions): UseMaskedInputReturn;
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
export interface ScrollSpyOptions {
|
|
2
|
+
/** CSS selector for the headings to track */
|
|
3
|
+
selector?: string;
|
|
4
|
+
/** Margin around the root element */
|
|
5
|
+
rootMargin?: string;
|
|
6
|
+
/** Container to search for headings */
|
|
7
|
+
container?: string | HTMLElement;
|
|
8
|
+
/** Function to get heading depth, defaults to h1=1, h2=2, etc. */
|
|
9
|
+
getDepth?: (el: Element) => number;
|
|
10
|
+
/** Function to get text value from element, defaults to textContent */
|
|
11
|
+
getValue?: (el: Element) => string;
|
|
12
|
+
/** Function to get ID from element, defaults to element ID or generated from text */
|
|
13
|
+
getId?: (el: Element) => string;
|
|
14
|
+
/** Disable automatic active ID updates from scroll events */
|
|
15
|
+
disableAutoUpdate?: boolean;
|
|
16
|
+
}
|
|
17
|
+
export interface TocItem {
|
|
18
|
+
/** Unique identifier for the heading */
|
|
19
|
+
id: string;
|
|
20
|
+
/** Text content of the heading */
|
|
21
|
+
value: string;
|
|
22
|
+
/** Heading depth, e.g. 1 for h1, 2 for h2, etc. */
|
|
23
|
+
depth: number;
|
|
24
|
+
/** Function to get the underlying DOM node, if available */
|
|
25
|
+
getNode?: () => HTMLElement | null;
|
|
26
|
+
}
|
|
27
|
+
export interface UseScrollSpyReturn {
|
|
28
|
+
/** Collected heading items */
|
|
29
|
+
items: TocItem[];
|
|
30
|
+
/** Currently active heading ID, or null if none */
|
|
31
|
+
activeId: string | null;
|
|
32
|
+
/** Set the active ID programmatically */
|
|
33
|
+
setActiveId: (id: string | null) => void;
|
|
34
|
+
/** Re-collect headings and re-initialize the observer */
|
|
35
|
+
reinitialize: () => void;
|
|
36
|
+
}
|
|
37
|
+
export declare function useScrollSpy(options?: ScrollSpyOptions, initialData?: TocItem[]): UseScrollSpyReturn;
|
|
38
|
+
export type { TocItem as UseScrollSpyItem };
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export interface UseTitleRegistrationOptions {
|
|
2
|
+
/** Text content of the title */
|
|
3
|
+
text: string;
|
|
4
|
+
/** Order for sorting titles, lower numbers appear first */
|
|
5
|
+
order: number;
|
|
6
|
+
/** Optional ID, if not provided it will be generated from text */
|
|
7
|
+
id?: string;
|
|
8
|
+
/** Whether to automatically register/unregister the title */
|
|
9
|
+
autoRegister?: boolean;
|
|
10
|
+
}
|
|
11
|
+
export declare const useTitleRegistration: (options: UseTitleRegistrationOptions) => {
|
|
12
|
+
elementRef: import("react").RefObject<any>;
|
|
13
|
+
id: string;
|
|
14
|
+
};
|
package/lib/index.d.ts
ADDED
|
@@ -0,0 +1,220 @@
|
|
|
1
|
+
export { PlatformBlocksProvider } from './core/theme/PlatformBlocksProvider';
|
|
2
|
+
export { HapticsProvider, useHapticsSettings } from './core/haptics/HapticsProvider';
|
|
3
|
+
export { useTheme } from './core/theme/ThemeProvider';
|
|
4
|
+
export { ThemeModeProvider, useThemeMode, type ThemeModeConfig, type ColorSchemeMode } from './core/theme/ThemeModeProvider';
|
|
5
|
+
export { createTheme } from './core/theme/utils';
|
|
6
|
+
export { DEFAULT_THEME } from './core/theme/defaultTheme';
|
|
7
|
+
export { DARK_THEME } from './core/theme/darkTheme';
|
|
8
|
+
export { useColorScheme } from './core/theme/useColorScheme';
|
|
9
|
+
export { I18nProvider, useI18n } from './core/i18n';
|
|
10
|
+
export { OverlayProvider, useOverlay, useOverlayApi, useOverlays } from './core/providers/OverlayProvider';
|
|
11
|
+
export { DirectionProvider, useDirection, useDirectionSafe } from './core/providers/DirectionProvider';
|
|
12
|
+
export type { Direction, DirectionContextValue, DirectionProviderProps, StorageController } from './core/providers/DirectionProvider';
|
|
13
|
+
export { AccessibilityProvider, useAccessibility } from './core/accessibility/context';
|
|
14
|
+
export { SoundProvider, useSound, useHaptics, getAllSounds, getSoundsByCategory, createSound, DEFAULT_SOUND_IDS } from './core/sound';
|
|
15
|
+
export type { SoundAsset, SoundOptions, HapticFeedbackOptions } from './core/sound';
|
|
16
|
+
export { factory, polymorphicFactory } from './core/factory';
|
|
17
|
+
export { TitleRegistryProvider, useTitleRegistry, useTitleRegistryOptional, type TitleItem } from './contexts';
|
|
18
|
+
export { rem, px, getSize, getFontSize, getRadius, getShadow, getColor, debounce, throttle, measurePerformance, measureAsyncPerformance, calculateOverlayPosition, calculateOverlayPositionEnhanced, getViewport, measureElement, pointInRect, getScrollPosition, clearOverlayPositionCache, type Rect, type Viewport, type PositionResult, type PlacementType, type PositioningOptions, } from './core/utils';
|
|
19
|
+
export { usePopoverPositioning, useTooltipPositioning, type UsePopoverPositioningOptions, type UsePopoverPositioningReturn, } from './core/hooks/usePopoverPositioning';
|
|
20
|
+
export { useDropdownPositioning, type UseDropdownPositioningOptions, type UseDropdownPositioningReturn, } from './core/hooks/useDropdownPositioning';
|
|
21
|
+
export { resolveSize, getIconSize, getHeight, getSpacing, getLineHeight, COMPONENT_SIZES, SIZE_SCALES, } from './core/theme/sizes';
|
|
22
|
+
export { DEFAULT_BREAKPOINTS, resolveResponsiveProp } from './core/theme/breakpoints';
|
|
23
|
+
export { useHotkeys, useGlobalHotkeys, useEscapeKey, useToggleColorScheme, useSpotlightToggle, globalHotkeys, } from './hooks';
|
|
24
|
+
export { Container } from './components/Container';
|
|
25
|
+
export { Flex } from './components/Flex';
|
|
26
|
+
export { Grid, GridItem } from './components/Grid';
|
|
27
|
+
export { Masonry } from './components/Masonry';
|
|
28
|
+
export { AppShell, useAppShell, useAppShellApi, useAppShellLayout, AppShellHeader, AppShellNavbar, AppShellAside, AppShellFooter, AppShellBottomNav, AppShellMain, AppShellSection, BottomAppBar, StatusBarManager, useBreakpoint, useNavbarHover, resolveResponsiveValue, defineAppLayout, AppLayoutProvider, AppLayoutRenderer, useAppLayoutContext } from './components/AppShell';
|
|
29
|
+
export { Row, Column } from './components/Layout';
|
|
30
|
+
export { Text, H1, H2, H3, H4, H5, H6, P, Small, Strong, Bold, Italic, Emphasis, Underline, Code, Kbd, Mark, Cite, Sub, Sup } from './components/Text';
|
|
31
|
+
export { ShimmerText } from './components/ShimmerText';
|
|
32
|
+
export { Title, Heading1, Heading2, Heading3, Heading4, Heading5, Heading6 } from './components/Title';
|
|
33
|
+
export { Markdown } from './components/Markdown';
|
|
34
|
+
export { Button } from './components/Button';
|
|
35
|
+
export { BrandButton } from './components/BrandButton';
|
|
36
|
+
export { AppStoreButton, GooglePlayButton, AppleAppStoreButton, MacAppStoreButton, MicrosoftStoreButton, AmazonAppstoreButton, FDroidButton } from './components/AppStoreButton';
|
|
37
|
+
export { AppStoreBadge, AppStoreDownloadBadge, GalaxyStoreDownloadBadge, GooglePlayDownloadBadge, HuaweiAppGalleryBadge, AmazonAppstoreBadge, MicrosoftStoreDownloadBadge, SpotifyListenBadge, ApplePodcastsListenBadge, YouTubeWatchBadge, YouTubeMusicListenBadge, AppleMusicListenBadge, AmazonMusicListenBadge, SoundCloudListenBadge, AmazonStoreBadge, AmazonPrimeVideoBadge, TwitchWatchBadge, GitHubViewBadge, DiscordJoinBadge, RedditJoinBadge, TikTokWatchBadge, ChromeWebStoreBadge, } from './components/AppStoreBadge';
|
|
38
|
+
export { Input, PasswordInput, TextInputBase } from './components/Input';
|
|
39
|
+
export { TextArea } from './components/TextArea';
|
|
40
|
+
export { NumberInput } from './components/NumberInput';
|
|
41
|
+
export { PinInput } from './components/PinInput';
|
|
42
|
+
export { Checkbox } from './components/Checkbox';
|
|
43
|
+
export { Radio, RadioGroup } from './components/Radio';
|
|
44
|
+
export { Switch } from './components/Switch';
|
|
45
|
+
export { ToggleButton, ToggleGroup } from './components/Toggle';
|
|
46
|
+
export { ToggleBar } from './components/Toggle';
|
|
47
|
+
export { SegmentedControl } from './components/SegmentedControl';
|
|
48
|
+
export { Slider, RangeSlider } from './components/Slider';
|
|
49
|
+
export { Search } from './components/Search';
|
|
50
|
+
export { Select } from './components/Select';
|
|
51
|
+
export { AutoComplete } from './components/AutoComplete';
|
|
52
|
+
export { FileInput } from './components/FileInput';
|
|
53
|
+
export { DatePicker, Calendar, MiniCalendar, Month, Day } from './components/DatePicker';
|
|
54
|
+
export { MonthPicker } from './components/MonthPicker';
|
|
55
|
+
export { YearPicker } from './components/YearPicker';
|
|
56
|
+
export { DatePickerInput } from './components/DatePickerInput';
|
|
57
|
+
export { MonthPickerInput } from './components/MonthPickerInput';
|
|
58
|
+
export { YearPickerInput } from './components/YearPickerInput';
|
|
59
|
+
export { TimePicker } from './components/TimePicker';
|
|
60
|
+
export { TimePickerInput } from './components/TimePickerInput';
|
|
61
|
+
export { PhoneInput } from './components/PhoneInput';
|
|
62
|
+
export { ColorPicker } from './components/ColorPicker';
|
|
63
|
+
export { ColorSwatch } from './components/ColorSwatch';
|
|
64
|
+
export { EmojiPicker } from './components/EmojiPicker';
|
|
65
|
+
export { RichTextEditor } from './components/RichTextEditor';
|
|
66
|
+
export { Rating } from './components/Rating';
|
|
67
|
+
export { Form, useFormContext, useOptionalFormContext } from './components/Form';
|
|
68
|
+
export { Breadcrumbs } from './components/Breadcrumbs';
|
|
69
|
+
export { Menu, MenuItem, MenuLabel, MenuDivider, MenuDropdown } from './components/Menu';
|
|
70
|
+
export { MenuItemButton } from './components/MenuItemButton';
|
|
71
|
+
export { Tabs } from './components/Tabs';
|
|
72
|
+
export { Pagination } from './components/Pagination';
|
|
73
|
+
export { Stepper } from './components/Stepper';
|
|
74
|
+
export { Avatar, AvatarGroup } from './components/Avatar';
|
|
75
|
+
export { Badge } from './components/Badge';
|
|
76
|
+
export { Blockquote } from './components/Blockquote';
|
|
77
|
+
export * from './components/Indicator';
|
|
78
|
+
export { Block } from './components/Block';
|
|
79
|
+
export { Card } from './components/Card';
|
|
80
|
+
export { Chip } from './components/Chip';
|
|
81
|
+
export { DataTable } from './components/DataTable';
|
|
82
|
+
export { Disclaimer, ComponentWithDisclaimer, useDisclaimer, withDisclaimer, extractDisclaimerProps } from './components/Disclaimer';
|
|
83
|
+
export { Table } from './components/Table';
|
|
84
|
+
export { Timeline } from './components/Timeline';
|
|
85
|
+
export { ListGroup, ListGroupItem, ListGroupDivider, ListGroupBody } from './components/ListGroup';
|
|
86
|
+
export { TableOfContents } from './components/TableOfContents';
|
|
87
|
+
export { Tree } from './components/Tree';
|
|
88
|
+
export { Alert } from './components/Alert';
|
|
89
|
+
export { Progress } from './components/Progress';
|
|
90
|
+
export { Skeleton } from './components/Skeleton';
|
|
91
|
+
export { Loader } from './components/Loader';
|
|
92
|
+
export { Gauge } from './components/Gauge';
|
|
93
|
+
export { NavigationProgress, navigationProgress } from './components/NavigationProgress';
|
|
94
|
+
export { Toast, ToastProvider, useToast, useToastApi, toast, onToastsRequested } from './components/Toast';
|
|
95
|
+
export { Dialog, DialogProvider, DialogRenderer, useDialog, useDialogApi, useDialogs, useSimpleDialog, onDialogsRequested } from './components/Dialog';
|
|
96
|
+
export { Tooltip } from './components/Tooltip';
|
|
97
|
+
export { Overlay } from './components/Overlay';
|
|
98
|
+
export { LoadingOverlay } from './components/LoadingOverlay';
|
|
99
|
+
export { HoverCard } from './components/HoverCard';
|
|
100
|
+
export { ContextMenu } from './components/ContextMenu';
|
|
101
|
+
export { Spotlight, SpotlightProvider, useSpotlightStore, spotlight, createSpotlightStore, useSpotlightStoreInstance, useDirectSpotlightState, directSpotlight, onSpotlightRequested } from './components/Spotlight';
|
|
102
|
+
export { FloatingActions } from './components/FloatingActions';
|
|
103
|
+
export { Can, CanWithConditions, Cannot, PermissionGate, withCan, withCannot } from './components/Can';
|
|
104
|
+
export { PermissionProvider, usePermissions, useAbility } from './components/Can';
|
|
105
|
+
export { AbilityCore, PermissionBuilder, RoleBuilder, PermissionPatterns, permissions, defineAbility, defineRoleAbility } from './components/Can';
|
|
106
|
+
export { Icon } from './components';
|
|
107
|
+
export { IconButton } from './components/IconButton';
|
|
108
|
+
export { Image } from './components/Image';
|
|
109
|
+
export { BrandIcon } from './components/BrandIcon';
|
|
110
|
+
export { Carousel } from './components/Carousel';
|
|
111
|
+
export { Gallery } from './components/Gallery';
|
|
112
|
+
export { Lottie } from './components/Lottie';
|
|
113
|
+
export { Video } from './components/Video';
|
|
114
|
+
export { Waveform } from './components/Waveform';
|
|
115
|
+
export { Divider } from './components/Divider';
|
|
116
|
+
export { Space } from './components/Space';
|
|
117
|
+
export { Link } from './components/Link';
|
|
118
|
+
export { CodeBlock } from './components/CodeBlock';
|
|
119
|
+
export { CopyButton } from './components/CopyButton/CopyButton';
|
|
120
|
+
export { QRCode } from './components/QRCode';
|
|
121
|
+
export { KeyCap } from './components/KeyCap';
|
|
122
|
+
export { Spoiler } from './components/Spoiler';
|
|
123
|
+
export { PressAnimation, withPressAnimation, AnimatedPressable } from './components/PressAnimation/PressAnimation';
|
|
124
|
+
export { Accordion } from './components/Accordion';
|
|
125
|
+
export type { PlatformBlocksTheme, PlatformBlocksThemeOverride } from './core/theme/types';
|
|
126
|
+
export type { PlatformBlocksProviderProps } from './core/theme/PlatformBlocksProvider';
|
|
127
|
+
export type { ColorScheme } from './core/theme/useColorScheme';
|
|
128
|
+
export type { SizeValue } from './core/theme/sizes';
|
|
129
|
+
export type { ResponsiveProp } from './core/theme/breakpoints';
|
|
130
|
+
export type { HotkeyItem, KeyboardModifiers } from './hooks';
|
|
131
|
+
export type { ButtonProps } from './components/Button';
|
|
132
|
+
export type { BrandButtonProps } from './components/BrandButton';
|
|
133
|
+
export type { AppStoreButtonProps } from './components/AppStoreButton';
|
|
134
|
+
export type { AppStoreBadgeProps, AppStoreBadgeSize, SupportedLocale, BadgeConfig } from './components/AppStoreBadge';
|
|
135
|
+
export type { TreeProps, TreeNode } from './components/Tree';
|
|
136
|
+
export type { TextProps } from './components/Text';
|
|
137
|
+
export type { ShimmerTextProps } from './components/ShimmerText';
|
|
138
|
+
export type { OverlayProps } from './components/Overlay';
|
|
139
|
+
export type { TitleProps } from './components/Title/types';
|
|
140
|
+
export type { ContainerProps } from './components/Container';
|
|
141
|
+
export type { FlexProps } from './components/Flex';
|
|
142
|
+
export type { GridProps, GridItemProps } from './components/Grid';
|
|
143
|
+
export type { MasonryProps, MasonryItem } from './components/Masonry';
|
|
144
|
+
export type { InputProps, PasswordInputProps } from './components/Input';
|
|
145
|
+
export type { NumberInputProps } from './components/NumberInput';
|
|
146
|
+
export type { PinInputProps } from './components/PinInput';
|
|
147
|
+
export type { CheckboxProps } from './components/Checkbox';
|
|
148
|
+
export type { RadioProps, RadioGroupProps } from './components/Radio';
|
|
149
|
+
export type { SwitchProps } from './components/Switch';
|
|
150
|
+
export type { ToggleButtonProps, ToggleGroupProps } from './components/Toggle';
|
|
151
|
+
export type { ToggleBarProps, ToggleBarOption } from './components/Toggle/ToggleBar';
|
|
152
|
+
export type { SegmentedControlProps, SegmentedControlItem, SegmentedControlData } from './components/SegmentedControl';
|
|
153
|
+
export type { SliderProps, RangeSliderProps } from './components/Slider';
|
|
154
|
+
export type { SearchProps } from './components/Search';
|
|
155
|
+
export type { SelectProps } from './components/Select';
|
|
156
|
+
export type { AutoCompleteProps } from './components/AutoComplete';
|
|
157
|
+
export type { FileInputProps, FileInputFile } from './components/FileInput';
|
|
158
|
+
export type { DatePickerProps, CalendarProps, MiniCalendarProps } from './components/DatePicker';
|
|
159
|
+
export type { MonthPickerProps } from './components/MonthPicker';
|
|
160
|
+
export type { YearPickerProps } from './components/YearPicker';
|
|
161
|
+
export type { DatePickerInputProps } from './components/DatePickerInput';
|
|
162
|
+
export type { MonthPickerInputProps } from './components/MonthPickerInput';
|
|
163
|
+
export type { YearPickerInputProps } from './components/YearPickerInput';
|
|
164
|
+
export type { TimePickerProps, TimePickerValue } from './components/TimePicker/types';
|
|
165
|
+
export type { TimePickerInputProps } from './components/TimePickerInput';
|
|
166
|
+
export type { PhoneInputProps } from './components/PhoneInput';
|
|
167
|
+
export type { ColorPickerProps } from './components/ColorPicker';
|
|
168
|
+
export type { EmojiPickerProps } from './components/EmojiPicker';
|
|
169
|
+
export type { RichTextEditorProps, RichTextEditorContent, RichTextEditorFormat, RichTextEditorSelection } from './components/RichTextEditor';
|
|
170
|
+
export type { RatingProps } from './components/Rating';
|
|
171
|
+
export type { FormProps } from './components/Form';
|
|
172
|
+
export type { BreadcrumbsProps } from './components/Breadcrumbs';
|
|
173
|
+
export type { MenuProps, MenuItemProps } from './components/Menu';
|
|
174
|
+
export type { TabsProps, TabItem } from './components/Tabs';
|
|
175
|
+
export type { PaginationProps } from './components/Pagination';
|
|
176
|
+
export type { StepperProps } from './components/Stepper';
|
|
177
|
+
export type { AvatarProps, AvatarGroupProps } from './components/Avatar';
|
|
178
|
+
export type { BadgeProps } from './components/Badge';
|
|
179
|
+
export type { IndicatorProps } from './components/Indicator';
|
|
180
|
+
export type { CardProps } from './components/Card';
|
|
181
|
+
export type { ChipProps } from './components/Chip';
|
|
182
|
+
export type { DataTableProps, DataTableColumn, DataTableSort, DataTablePagination } from './components/DataTable';
|
|
183
|
+
export type { DisclaimerProps, WithDisclaimerProps, ComponentWithDisclaimerProps, DisclaimerSupport } from './components/Disclaimer';
|
|
184
|
+
export type { TableProps } from './components/Table';
|
|
185
|
+
export type { TimelineProps } from './components/Timeline';
|
|
186
|
+
export type { TableOfContentsProps } from './components/TableOfContents';
|
|
187
|
+
export type { AlertProps } from './components/Alert';
|
|
188
|
+
export type { ProgressProps } from './components/Progress';
|
|
189
|
+
export type { SkeletonProps } from './components/Skeleton';
|
|
190
|
+
export type { LoaderProps } from './components/Loader';
|
|
191
|
+
export type { LoadingOverlayProps } from './components/LoadingOverlay';
|
|
192
|
+
export type { GaugeProps } from './components/Gauge';
|
|
193
|
+
export type { ToastProps } from './components/Toast';
|
|
194
|
+
export type { DialogProps, DialogConfig, UseSimpleDialogOptions } from './components/Dialog';
|
|
195
|
+
export type { TooltipProps } from './components/Tooltip';
|
|
196
|
+
export type { HoverCardProps } from './components/HoverCard';
|
|
197
|
+
export type { ContextMenuProps } from './components/ContextMenu';
|
|
198
|
+
export type { SpotlightProps } from './components/Spotlight';
|
|
199
|
+
export type { Action, Subject, Field, Conditions, PermissionRule, PermissionCheck, Ability, CanProps, CanWithConditionsProps, CannotProps, PermissionGateProps, PermissionContextValue, PermissionProviderProps, UsePermissionsOptions } from './components/Can';
|
|
200
|
+
export type { BrandIconProps, BrandName } from './components/BrandIcon';
|
|
201
|
+
export type { IconButtonProps } from './components/IconButton';
|
|
202
|
+
export type { CarouselProps } from './components/Carousel';
|
|
203
|
+
export type { GalleryProps, GalleryItem } from './components/Gallery';
|
|
204
|
+
export type { LottieProps } from './components/Lottie';
|
|
205
|
+
export type { WaveformProps } from './components/Waveform';
|
|
206
|
+
export type { DividerProps } from './components/Divider';
|
|
207
|
+
export type { SpaceProps } from './components/Space';
|
|
208
|
+
export type { LinkProps } from './components/Link';
|
|
209
|
+
export type { CodeBlockProps } from './components/CodeBlock';
|
|
210
|
+
export type { CopyButtonProps } from './components/CopyButton/types';
|
|
211
|
+
export type { QRCodeProps } from './components/QRCode';
|
|
212
|
+
export type { KeyCapProps } from './components/KeyCap';
|
|
213
|
+
export type { SpoilerProps } from './components/Spoiler';
|
|
214
|
+
export type { FloatingActionsProps, FloatingActionItem } from './components/FloatingActions';
|
|
215
|
+
export type { PressAnimationProps } from './components/PressAnimation/PressAnimation';
|
|
216
|
+
export type { AccordionProps } from './components/Accordion';
|
|
217
|
+
export type { MarkdownProps, MarkdownComponentMap } from './components/Markdown';
|
|
218
|
+
export type { AppShellProps } from './components/AppShell';
|
|
219
|
+
export type { AppShellBottomNavProps, BottomAppBarItem } from './components/AppShell';
|
|
220
|
+
export type { AppLayoutBlueprint, AppLayoutRuntimeContext, AppLayoutRuntimeOverrides, LayoutEntry, LayoutComponentEntry, LayoutNavbarConfig, LayoutAsideConfig, LayoutFooterConfig, LayoutBottomNavConfig, LayoutMainConfig, LayoutOptions, LayoutSection, } from './components/AppShell';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { createMask, PHONE_MASKS, COMMON_MASKS, type MaskDefinition, type MaskResult } from './mask';
|
|
@@ -0,0 +1,138 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Advanced input masking utility inspired by react-imask
|
|
3
|
+
* Provides flexible pattern-based input formatting with proper cursor handling
|
|
4
|
+
*/
|
|
5
|
+
export interface MaskDefinition {
|
|
6
|
+
/** The mask pattern (e.g., '(000) 000-0000', '+1 000 000 0000') */
|
|
7
|
+
mask: string;
|
|
8
|
+
/** Placeholder character for unfilled positions */
|
|
9
|
+
placeholderChar?: string;
|
|
10
|
+
/** Whether to show the mask when input is empty */
|
|
11
|
+
showMask?: boolean;
|
|
12
|
+
/** Custom definitions for mask characters */
|
|
13
|
+
definitions?: Record<string, RegExp>;
|
|
14
|
+
/** Whether to allow incomplete input */
|
|
15
|
+
lazy?: boolean;
|
|
16
|
+
}
|
|
17
|
+
export interface MaskResult {
|
|
18
|
+
/** The masked/formatted value */
|
|
19
|
+
value: string;
|
|
20
|
+
/** The unmasked/raw value */
|
|
21
|
+
unmaskedValue: string;
|
|
22
|
+
/** Whether the mask is complete */
|
|
23
|
+
isComplete: boolean;
|
|
24
|
+
/** Current cursor position after formatting */
|
|
25
|
+
cursorPosition: number;
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* Creates a masking function for the given pattern
|
|
29
|
+
*/
|
|
30
|
+
export declare function createMask(definition: MaskDefinition): {
|
|
31
|
+
applyMask: (inputValue: string, previousValue?: string, cursorPos?: number) => MaskResult;
|
|
32
|
+
getDisplayValue: (value: string) => string;
|
|
33
|
+
processInput: (newValue: string, oldValue: string, selectionStart?: number) => MaskResult;
|
|
34
|
+
pattern: {
|
|
35
|
+
char: string;
|
|
36
|
+
isFixed: boolean;
|
|
37
|
+
regex?: RegExp;
|
|
38
|
+
}[];
|
|
39
|
+
definition: MaskDefinition;
|
|
40
|
+
};
|
|
41
|
+
/**
|
|
42
|
+
* Phone number specific masking presets
|
|
43
|
+
*/
|
|
44
|
+
export declare const PHONE_MASKS: {
|
|
45
|
+
US: {
|
|
46
|
+
applyMask: (inputValue: string, previousValue?: string, cursorPos?: number) => MaskResult;
|
|
47
|
+
getDisplayValue: (value: string) => string;
|
|
48
|
+
processInput: (newValue: string, oldValue: string, selectionStart?: number) => MaskResult;
|
|
49
|
+
pattern: {
|
|
50
|
+
char: string;
|
|
51
|
+
isFixed: boolean;
|
|
52
|
+
regex?: RegExp;
|
|
53
|
+
}[];
|
|
54
|
+
definition: MaskDefinition;
|
|
55
|
+
};
|
|
56
|
+
US_WITH_COUNTRY: {
|
|
57
|
+
applyMask: (inputValue: string, previousValue?: string, cursorPos?: number) => MaskResult;
|
|
58
|
+
getDisplayValue: (value: string) => string;
|
|
59
|
+
processInput: (newValue: string, oldValue: string, selectionStart?: number) => MaskResult;
|
|
60
|
+
pattern: {
|
|
61
|
+
char: string;
|
|
62
|
+
isFixed: boolean;
|
|
63
|
+
regex?: RegExp;
|
|
64
|
+
}[];
|
|
65
|
+
definition: MaskDefinition;
|
|
66
|
+
};
|
|
67
|
+
UK: {
|
|
68
|
+
applyMask: (inputValue: string, previousValue?: string, cursorPos?: number) => MaskResult;
|
|
69
|
+
getDisplayValue: (value: string) => string;
|
|
70
|
+
processInput: (newValue: string, oldValue: string, selectionStart?: number) => MaskResult;
|
|
71
|
+
pattern: {
|
|
72
|
+
char: string;
|
|
73
|
+
isFixed: boolean;
|
|
74
|
+
regex?: RegExp;
|
|
75
|
+
}[];
|
|
76
|
+
definition: MaskDefinition;
|
|
77
|
+
};
|
|
78
|
+
INTERNATIONAL: {
|
|
79
|
+
applyMask: (inputValue: string, previousValue?: string, cursorPos?: number) => MaskResult;
|
|
80
|
+
getDisplayValue: (value: string) => string;
|
|
81
|
+
processInput: (newValue: string, oldValue: string, selectionStart?: number) => MaskResult;
|
|
82
|
+
pattern: {
|
|
83
|
+
char: string;
|
|
84
|
+
isFixed: boolean;
|
|
85
|
+
regex?: RegExp;
|
|
86
|
+
}[];
|
|
87
|
+
definition: MaskDefinition;
|
|
88
|
+
};
|
|
89
|
+
};
|
|
90
|
+
/**
|
|
91
|
+
* Other useful mask presets
|
|
92
|
+
*/
|
|
93
|
+
export declare const COMMON_MASKS: {
|
|
94
|
+
CREDIT_CARD: {
|
|
95
|
+
applyMask: (inputValue: string, previousValue?: string, cursorPos?: number) => MaskResult;
|
|
96
|
+
getDisplayValue: (value: string) => string;
|
|
97
|
+
processInput: (newValue: string, oldValue: string, selectionStart?: number) => MaskResult;
|
|
98
|
+
pattern: {
|
|
99
|
+
char: string;
|
|
100
|
+
isFixed: boolean;
|
|
101
|
+
regex?: RegExp;
|
|
102
|
+
}[];
|
|
103
|
+
definition: MaskDefinition;
|
|
104
|
+
};
|
|
105
|
+
DATE: {
|
|
106
|
+
applyMask: (inputValue: string, previousValue?: string, cursorPos?: number) => MaskResult;
|
|
107
|
+
getDisplayValue: (value: string) => string;
|
|
108
|
+
processInput: (newValue: string, oldValue: string, selectionStart?: number) => MaskResult;
|
|
109
|
+
pattern: {
|
|
110
|
+
char: string;
|
|
111
|
+
isFixed: boolean;
|
|
112
|
+
regex?: RegExp;
|
|
113
|
+
}[];
|
|
114
|
+
definition: MaskDefinition;
|
|
115
|
+
};
|
|
116
|
+
SSN: {
|
|
117
|
+
applyMask: (inputValue: string, previousValue?: string, cursorPos?: number) => MaskResult;
|
|
118
|
+
getDisplayValue: (value: string) => string;
|
|
119
|
+
processInput: (newValue: string, oldValue: string, selectionStart?: number) => MaskResult;
|
|
120
|
+
pattern: {
|
|
121
|
+
char: string;
|
|
122
|
+
isFixed: boolean;
|
|
123
|
+
regex?: RegExp;
|
|
124
|
+
}[];
|
|
125
|
+
definition: MaskDefinition;
|
|
126
|
+
};
|
|
127
|
+
ZIP_CODE: {
|
|
128
|
+
applyMask: (inputValue: string, previousValue?: string, cursorPos?: number) => MaskResult;
|
|
129
|
+
getDisplayValue: (value: string) => string;
|
|
130
|
+
processInput: (newValue: string, oldValue: string, selectionStart?: number) => MaskResult;
|
|
131
|
+
pattern: {
|
|
132
|
+
char: string;
|
|
133
|
+
isFixed: boolean;
|
|
134
|
+
regex?: RegExp;
|
|
135
|
+
}[];
|
|
136
|
+
definition: MaskDefinition;
|
|
137
|
+
};
|
|
138
|
+
};
|