@webority/mobile-ui 0.88.0 → 0.89.0
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/README.md +2 -0
- package/lib/commonjs/canvasKit/index.js +1 -1
- package/lib/commonjs/canvasKit/meta.js +1 -0
- package/lib/commonjs/components/Accordion/Accordion.js +1 -1
- package/lib/commonjs/components/AmountSlider/AmountSlider.js +1 -1
- package/lib/commonjs/components/AnimatePresence/AnimatePresence.js +1 -1
- package/lib/commonjs/components/AppBar/AppBar.js +1 -1
- package/lib/commonjs/components/AppIcon/AppIcon.js +1 -1
- package/lib/commonjs/components/AsyncBlock/AsyncBlock.js +1 -1
- package/lib/commonjs/components/AuthedImage/AuthedImage.js +1 -1
- package/lib/commonjs/components/Autocomplete/Autocomplete.js +1 -1
- package/lib/commonjs/components/Avatar/Avatar.js +1 -1
- package/lib/commonjs/components/Badge/Badge.js +1 -1
- package/lib/commonjs/components/Banner/Banner.js +1 -1
- package/lib/commonjs/components/BarChart/BarChart.js +1 -1
- package/lib/commonjs/components/BottomNavigation/BottomNavigation.js +1 -1
- package/lib/commonjs/components/BottomSheet/BottomSheet.js +1 -1
- package/lib/commonjs/components/Box/Box.js +1 -1
- package/lib/commonjs/components/Button/Button.js +1 -1
- package/lib/commonjs/components/Calendar/Calendar.js +1 -1
- package/lib/commonjs/components/Calendar/CalendarDay.js +1 -1
- package/lib/commonjs/components/Calendar/calendarStyles.js +1 -1
- package/lib/commonjs/components/Card/Card.js +1 -1
- package/lib/commonjs/components/Carousel/Carousel.js +1 -1
- package/lib/commonjs/components/Checkbox/Checkbox.js +1 -1
- package/lib/commonjs/components/Chip/Chip.js +1 -1
- package/lib/commonjs/components/ChoiceGroup/ChoiceGroup.js +1 -1
- package/lib/commonjs/components/Composer/Composer.js +1 -1
- package/lib/commonjs/components/Confetti/Confetti.js +1 -1
- package/lib/commonjs/components/DatePicker/DatePicker.js +1 -1
- package/lib/commonjs/components/DateRangePicker/DateRangePicker.js +1 -1
- package/lib/commonjs/components/DateSeparator/DateSeparator.js +1 -1
- package/lib/commonjs/components/Descriptions/Descriptions.js +1 -1
- package/lib/commonjs/components/Dialog/Dialog.js +1 -1
- package/lib/commonjs/components/Divider/Divider.js +1 -1
- package/lib/commonjs/components/Drawer/Drawer.js +1 -1
- package/lib/commonjs/components/EmptyState/EmptyState.js +1 -1
- package/lib/commonjs/components/ErrorBoundary/ErrorBoundary.js +1 -1
- package/lib/commonjs/components/FieldBase/Chevron.js +1 -1
- package/lib/commonjs/components/FieldBase/ChoiceText.js +1 -1
- package/lib/commonjs/components/FieldBase/FieldBase.js +1 -1
- package/lib/commonjs/components/FieldBase/useFloatingLabel.js +1 -1
- package/lib/commonjs/components/FilePicker/FilePicker.js +1 -1
- package/lib/commonjs/components/FileViewer/FileViewer.js +1 -1
- package/lib/commonjs/components/FilterChipRow/FilterChipRow.js +1 -1
- package/lib/commonjs/components/FloatingActionButton/FloatingActionButton.js +1 -1
- package/lib/commonjs/components/FormField/FormField.js +1 -1
- package/lib/commonjs/components/IconBadge/IconBadge.js +1 -1
- package/lib/commonjs/components/IconButton/IconButton.js +1 -1
- package/lib/commonjs/components/ImageGallery/ImageGallery.js +1 -1
- package/lib/commonjs/components/InlineSelect/InlineSelect.js +1 -1
- package/lib/commonjs/components/Input/Input.js +1 -1
- package/lib/commonjs/components/KeyboardAwareScrollView/KeyboardAwareScrollView.js +1 -1
- package/lib/commonjs/components/KeyboardToolbar/KeyboardToolbar.js +1 -1
- package/lib/commonjs/components/ListItem/ListItem.js +1 -1
- package/lib/commonjs/components/LoaderOverlay/LoaderOverlay.js +1 -1
- package/lib/commonjs/components/Markdown/Markdown.js +1 -1
- package/lib/commonjs/components/Menu/MenuSurface.js +1 -1
- package/lib/commonjs/components/MessageBubble/MessageBubble.js +1 -1
- package/lib/commonjs/components/MessageList/MessageList.js +1 -1
- package/lib/commonjs/components/Modal/Modal.js +1 -1
- package/lib/commonjs/components/Notation/Notation.js +1 -1
- package/lib/commonjs/components/NumberInput/NumberInput.js +1 -1
- package/lib/commonjs/components/OTPInput/OTPInput.js +1 -1
- package/lib/commonjs/components/OnboardingPager/OnboardingPager.js +1 -1
- package/lib/commonjs/components/OptionSheet/OptionSheet.js +1 -1
- package/lib/commonjs/components/PaymentResult/PaymentResult.js +1 -1
- package/lib/commonjs/components/PermissionPrompt/PermissionPrompt.js +1 -1
- package/lib/commonjs/components/PhoneNumberInput/PhoneNumberInput.js +1 -1
- package/lib/commonjs/components/PickerTrigger/PickerTrigger.js +1 -1
- package/lib/commonjs/components/ProfileCompletion/ProfileCompletion.js +1 -1
- package/lib/commonjs/components/ProfilePicker/ProfilePicker.js +1 -1
- package/lib/commonjs/components/ProgressBar/ProgressBar.js +1 -1
- package/lib/commonjs/components/ProgressRing/ProgressRing.js +1 -1
- package/lib/commonjs/components/Radio/Radio.js +1 -1
- package/lib/commonjs/components/Radio/RadioDot.js +1 -1
- package/lib/commonjs/components/Rating/Rating.js +1 -1
- package/lib/commonjs/components/Repeater/Repeater.js +1 -1
- package/lib/commonjs/components/RichTextEditor/RichTextEditor.js +1 -1
- package/lib/commonjs/components/ScannerOverlay/ScannerOverlay.js +1 -1
- package/lib/commonjs/components/Screen/Screen.js +1 -1
- package/lib/commonjs/components/SearchBar/SearchBar.js +1 -1
- package/lib/commonjs/components/SearchBar/SearchPanel.js +1 -1
- package/lib/commonjs/components/SectionHeader/SectionHeader.js +1 -1
- package/lib/commonjs/components/SegmentedControl/SegmentedControl.js +1 -1
- package/lib/commonjs/components/Select/Select.js +1 -1
- package/lib/commonjs/components/SignaturePad/SignaturePad.js +1 -1
- package/lib/commonjs/components/Skeleton/Skeleton.js +1 -1
- package/lib/commonjs/components/Skeleton/SkeletonContent.js +1 -1
- package/lib/commonjs/components/SlideToConfirm/SlideToConfirm.js +1 -1
- package/lib/commonjs/components/Slider/Slider.js +1 -1
- package/lib/commonjs/components/Slider/valueText.js +1 -1
- package/lib/commonjs/components/SliderField/SliderField.js +1 -1
- package/lib/commonjs/components/Sparkline/Sparkline.js +1 -1
- package/lib/commonjs/components/Spinner/Spinner.js +1 -1
- package/lib/commonjs/components/StatTile/StatTile.js +1 -1
- package/lib/commonjs/components/StatusBadge/StatusBadge.js +1 -1
- package/lib/commonjs/components/Stepper/Stepper.js +1 -1
- package/lib/commonjs/components/Swipeable/Swipeable.js +1 -1
- package/lib/commonjs/components/Switch/Switch.js +1 -1
- package/lib/commonjs/components/Tabs/Tabs.js +1 -1
- package/lib/commonjs/components/TagInput/TagInput.js +1 -1
- package/lib/commonjs/components/Text/Text.js +1 -1
- package/lib/commonjs/components/TimePicker/TimePicker.js +1 -1
- package/lib/commonjs/components/Timeline/Timeline.js +1 -1
- package/lib/commonjs/components/Toast/Toast.js +1 -1
- package/lib/commonjs/components/Toast/ToastProvider.js +1 -1
- package/lib/commonjs/components/Tooltip/RichTooltipBody.js +1 -1
- package/lib/commonjs/components/Tooltip/Tooltip.js +1 -1
- package/lib/commonjs/components/Tour/Tour.js +1 -1
- package/lib/commonjs/components/TypingIndicator/TypingIndicator.js +1 -1
- package/lib/commonjs/components/WheelPicker/Wheel.js +1 -1
- package/lib/commonjs/components/WheelPicker/WheelPicker.js +1 -1
- package/lib/commonjs/hooks/useDragToDismiss.js +1 -1
- package/lib/commonjs/hooks/usePressAnimation.js +1 -1
- package/lib/commonjs/hooks/useRefreshControl.js +1 -1
- package/lib/commonjs/index.js +1 -1
- package/lib/commonjs/initUI.js +1 -1
- package/lib/commonjs/network/NetworkStatusBanner.js +1 -1
- package/lib/commonjs/theme/ThemeContext.js +1 -1
- package/lib/commonjs/theme/componentSizes.js +1 -1
- package/lib/commonjs/theme/index.js +1 -1
- package/lib/commonjs/theme/merge.js +1 -1
- package/lib/commonjs/theme/scale.js +1 -1
- package/lib/commonjs/theme/textStyle.js +1 -1
- package/lib/commonjs/theme/tokens.generated.js +1 -0
- package/lib/commonjs/theme/tokens.js +1 -1
- package/lib/commonjs/utils/color.js +1 -1
- package/lib/module/canvasKit/index.js +1 -1
- package/lib/module/canvasKit/meta.js +1 -0
- package/lib/module/components/Accordion/Accordion.js +1 -1
- package/lib/module/components/AmountSlider/AmountSlider.js +1 -1
- package/lib/module/components/AnimatePresence/AnimatePresence.js +1 -1
- package/lib/module/components/AppBar/AppBar.js +1 -1
- package/lib/module/components/AppIcon/AppIcon.js +1 -1
- package/lib/module/components/AsyncBlock/AsyncBlock.js +1 -1
- package/lib/module/components/AuthedImage/AuthedImage.js +1 -1
- package/lib/module/components/Autocomplete/Autocomplete.js +1 -1
- package/lib/module/components/Avatar/Avatar.js +1 -1
- package/lib/module/components/Badge/Badge.js +1 -1
- package/lib/module/components/Banner/Banner.js +1 -1
- package/lib/module/components/BarChart/BarChart.js +1 -1
- package/lib/module/components/BottomNavigation/BottomNavigation.js +1 -1
- package/lib/module/components/BottomSheet/BottomSheet.js +1 -1
- package/lib/module/components/Box/Box.js +1 -1
- package/lib/module/components/Button/Button.js +1 -1
- package/lib/module/components/Calendar/Calendar.js +1 -1
- package/lib/module/components/Calendar/CalendarDay.js +1 -1
- package/lib/module/components/Calendar/calendarStyles.js +1 -1
- package/lib/module/components/Card/Card.js +1 -1
- package/lib/module/components/Carousel/Carousel.js +1 -1
- package/lib/module/components/Checkbox/Checkbox.js +1 -1
- package/lib/module/components/Chip/Chip.js +1 -1
- package/lib/module/components/ChoiceGroup/ChoiceGroup.js +1 -1
- package/lib/module/components/Composer/Composer.js +1 -1
- package/lib/module/components/Confetti/Confetti.js +1 -1
- package/lib/module/components/DatePicker/DatePicker.js +1 -1
- package/lib/module/components/DateRangePicker/DateRangePicker.js +1 -1
- package/lib/module/components/DateSeparator/DateSeparator.js +1 -1
- package/lib/module/components/Descriptions/Descriptions.js +1 -1
- package/lib/module/components/Dialog/Dialog.js +1 -1
- package/lib/module/components/Divider/Divider.js +1 -1
- package/lib/module/components/Drawer/Drawer.js +1 -1
- package/lib/module/components/EmptyState/EmptyState.js +1 -1
- package/lib/module/components/ErrorBoundary/ErrorBoundary.js +1 -1
- package/lib/module/components/FieldBase/Chevron.js +1 -1
- package/lib/module/components/FieldBase/ChoiceText.js +1 -1
- package/lib/module/components/FieldBase/FieldBase.js +1 -1
- package/lib/module/components/FieldBase/useFloatingLabel.js +1 -1
- package/lib/module/components/FilePicker/FilePicker.js +1 -1
- package/lib/module/components/FileViewer/FileViewer.js +1 -1
- package/lib/module/components/FilterChipRow/FilterChipRow.js +1 -1
- package/lib/module/components/FloatingActionButton/FloatingActionButton.js +1 -1
- package/lib/module/components/FormField/FormField.js +1 -1
- package/lib/module/components/IconBadge/IconBadge.js +1 -1
- package/lib/module/components/IconButton/IconButton.js +1 -1
- package/lib/module/components/ImageGallery/ImageGallery.js +1 -1
- package/lib/module/components/InlineSelect/InlineSelect.js +1 -1
- package/lib/module/components/Input/Input.js +1 -1
- package/lib/module/components/KeyboardAwareScrollView/KeyboardAwareScrollView.js +1 -1
- package/lib/module/components/KeyboardToolbar/KeyboardToolbar.js +1 -1
- package/lib/module/components/ListItem/ListItem.js +1 -1
- package/lib/module/components/LoaderOverlay/LoaderOverlay.js +1 -1
- package/lib/module/components/Markdown/Markdown.js +1 -1
- package/lib/module/components/Menu/MenuSurface.js +1 -1
- package/lib/module/components/MessageBubble/MessageBubble.js +1 -1
- package/lib/module/components/MessageList/MessageList.js +1 -1
- package/lib/module/components/Modal/Modal.js +1 -1
- package/lib/module/components/Notation/Notation.js +1 -1
- package/lib/module/components/NumberInput/NumberInput.js +1 -1
- package/lib/module/components/OTPInput/OTPInput.js +1 -1
- package/lib/module/components/OnboardingPager/OnboardingPager.js +1 -1
- package/lib/module/components/OptionSheet/OptionSheet.js +1 -1
- package/lib/module/components/PaymentResult/PaymentResult.js +1 -1
- package/lib/module/components/PermissionPrompt/PermissionPrompt.js +1 -1
- package/lib/module/components/PhoneNumberInput/PhoneNumberInput.js +1 -1
- package/lib/module/components/PickerTrigger/PickerTrigger.js +1 -1
- package/lib/module/components/ProfileCompletion/ProfileCompletion.js +1 -1
- package/lib/module/components/ProfilePicker/ProfilePicker.js +1 -1
- package/lib/module/components/ProgressBar/ProgressBar.js +1 -1
- package/lib/module/components/ProgressRing/ProgressRing.js +1 -1
- package/lib/module/components/Radio/Radio.js +1 -1
- package/lib/module/components/Radio/RadioDot.js +1 -1
- package/lib/module/components/Rating/Rating.js +1 -1
- package/lib/module/components/Repeater/Repeater.js +1 -1
- package/lib/module/components/RichTextEditor/RichTextEditor.js +1 -1
- package/lib/module/components/ScannerOverlay/ScannerOverlay.js +1 -1
- package/lib/module/components/Screen/Screen.js +1 -1
- package/lib/module/components/SearchBar/SearchBar.js +1 -1
- package/lib/module/components/SearchBar/SearchPanel.js +1 -1
- package/lib/module/components/SectionHeader/SectionHeader.js +1 -1
- package/lib/module/components/SegmentedControl/SegmentedControl.js +1 -1
- package/lib/module/components/Select/Select.js +1 -1
- package/lib/module/components/SignaturePad/SignaturePad.js +1 -1
- package/lib/module/components/Skeleton/Skeleton.js +1 -1
- package/lib/module/components/Skeleton/SkeletonContent.js +1 -1
- package/lib/module/components/SlideToConfirm/SlideToConfirm.js +1 -1
- package/lib/module/components/Slider/Slider.js +1 -1
- package/lib/module/components/Slider/valueText.js +1 -1
- package/lib/module/components/SliderField/SliderField.js +1 -1
- package/lib/module/components/Sparkline/Sparkline.js +1 -1
- package/lib/module/components/Spinner/Spinner.js +1 -1
- package/lib/module/components/StatTile/StatTile.js +1 -1
- package/lib/module/components/StatusBadge/StatusBadge.js +1 -1
- package/lib/module/components/Stepper/Stepper.js +1 -1
- package/lib/module/components/Swipeable/Swipeable.js +1 -1
- package/lib/module/components/Switch/Switch.js +1 -1
- package/lib/module/components/Tabs/Tabs.js +1 -1
- package/lib/module/components/TagInput/TagInput.js +1 -1
- package/lib/module/components/Text/Text.js +1 -1
- package/lib/module/components/TimePicker/TimePicker.js +1 -1
- package/lib/module/components/Timeline/Timeline.js +1 -1
- package/lib/module/components/Toast/Toast.js +1 -1
- package/lib/module/components/Toast/ToastProvider.js +1 -1
- package/lib/module/components/Tooltip/RichTooltipBody.js +1 -1
- package/lib/module/components/Tooltip/Tooltip.js +1 -1
- package/lib/module/components/Tour/Tour.js +1 -1
- package/lib/module/components/TypingIndicator/TypingIndicator.js +1 -1
- package/lib/module/components/WheelPicker/Wheel.js +1 -1
- package/lib/module/components/WheelPicker/WheelPicker.js +1 -1
- package/lib/module/hooks/useDragToDismiss.js +1 -1
- package/lib/module/hooks/usePressAnimation.js +1 -1
- package/lib/module/hooks/useRefreshControl.js +1 -1
- package/lib/module/index.js +1 -1
- package/lib/module/initUI.js +1 -1
- package/lib/module/network/NetworkStatusBanner.js +1 -1
- package/lib/module/theme/ThemeContext.js +1 -1
- package/lib/module/theme/componentSizes.js +1 -1
- package/lib/module/theme/index.js +1 -1
- package/lib/module/theme/merge.js +1 -1
- package/lib/module/theme/scale.js +1 -1
- package/lib/module/theme/textStyle.js +1 -1
- package/lib/module/theme/tokens.generated.js +1 -0
- package/lib/module/theme/tokens.js +1 -1
- package/lib/module/utils/color.js +1 -1
- package/lib/typescript/commonjs/canvasKit/meta.d.ts +32 -0
- package/lib/typescript/commonjs/components/AmountSlider/AmountSlider.d.ts +1 -1
- package/lib/typescript/commonjs/components/AnimatePresence/AnimatePresence.d.ts +1 -1
- package/lib/typescript/commonjs/components/AppBar/AppBar.d.ts +4 -4
- package/lib/typescript/commonjs/components/AppIcon/AppIcon.d.ts +1 -1
- package/lib/typescript/commonjs/components/AppIcon/defaultIcons.d.ts +1 -1
- package/lib/typescript/commonjs/components/Avatar/Avatar.d.ts +4 -4
- package/lib/typescript/commonjs/components/Badge/Badge.d.ts +1 -1
- package/lib/typescript/commonjs/components/Banner/Banner.d.ts +1 -1
- package/lib/typescript/commonjs/components/BarChart/BarChart.d.ts +1 -1
- package/lib/typescript/commonjs/components/BottomNavigation/BottomNavigation.d.ts +8 -10
- package/lib/typescript/commonjs/components/BottomSheet/BottomSheet.d.ts +2 -2
- package/lib/typescript/commonjs/components/Box/Box.d.ts +21 -21
- package/lib/typescript/commonjs/components/Button/Button.d.ts +3 -3
- package/lib/typescript/commonjs/components/Calendar/Calendar.d.ts +1 -1
- package/lib/typescript/commonjs/components/Calendar/calendarStyles.d.ts +9 -9
- package/lib/typescript/commonjs/components/Card/Card.d.ts +7 -6
- package/lib/typescript/commonjs/components/Checkbox/Checkbox.d.ts +1 -1
- package/lib/typescript/commonjs/components/Chip/Chip.d.ts +1 -1
- package/lib/typescript/commonjs/components/ChoiceGroup/ChoiceGroup.d.ts +1 -1
- package/lib/typescript/commonjs/components/Dialog/Dialog.d.ts +2 -2
- package/lib/typescript/commonjs/components/FieldBase/Chevron.d.ts +1 -1
- package/lib/typescript/commonjs/components/FieldBase/FieldBase.d.ts +32 -33
- package/lib/typescript/commonjs/components/FieldBase/useFloatingLabel.d.ts +2 -3
- package/lib/typescript/commonjs/components/FloatingActionButton/FloatingActionButton.d.ts +2 -2
- package/lib/typescript/commonjs/components/FormField/FormField.d.ts +2 -3
- package/lib/typescript/commonjs/components/IconBadge/IconBadge.d.ts +1 -1
- package/lib/typescript/commonjs/components/IconButton/IconButton.d.ts +2 -2
- package/lib/typescript/commonjs/components/InlineSelect/InlineSelect.d.ts +2 -3
- package/lib/typescript/commonjs/components/Input/Input.d.ts +2 -2
- package/lib/typescript/commonjs/components/Notation/Notation.d.ts +1 -1
- package/lib/typescript/commonjs/components/OptionSheet/OptionSheet.d.ts +2 -2
- package/lib/typescript/commonjs/components/PickerTrigger/PickerTrigger.d.ts +2 -3
- package/lib/typescript/commonjs/components/ProfileCompletion/ProfileCompletion.d.ts +3 -4
- package/lib/typescript/commonjs/components/ProfilePicker/ProfilePicker.d.ts +5 -6
- package/lib/typescript/commonjs/components/ProgressBar/ProgressBar.d.ts +1 -1
- package/lib/typescript/commonjs/components/ProgressRing/ProgressRing.d.ts +6 -7
- package/lib/typescript/commonjs/components/Radio/Radio.d.ts +1 -1
- package/lib/typescript/commonjs/components/SearchBar/SearchBar.d.ts +1 -1
- package/lib/typescript/commonjs/components/SegmentedControl/SegmentedControl.d.ts +3 -4
- package/lib/typescript/commonjs/components/Select/Select.d.ts +5 -5
- package/lib/typescript/commonjs/components/Skeleton/Skeleton.d.ts +2 -2
- package/lib/typescript/commonjs/components/SlideToConfirm/SlideToConfirm.d.ts +1 -1
- package/lib/typescript/commonjs/components/Slider/Slider.d.ts +6 -7
- package/lib/typescript/commonjs/components/Slider/valueText.d.ts +1 -1
- package/lib/typescript/commonjs/components/Sparkline/Sparkline.d.ts +1 -1
- package/lib/typescript/commonjs/components/StatusBadge/StatusBadge.d.ts +2 -3
- package/lib/typescript/commonjs/components/Swipeable/Swipeable.d.ts +2 -2
- package/lib/typescript/commonjs/components/Switch/Switch.d.ts +1 -1
- package/lib/typescript/commonjs/components/Tabs/Tabs.d.ts +6 -7
- package/lib/typescript/commonjs/components/Text/Text.d.ts +6 -7
- package/lib/typescript/commonjs/components/Timeline/Timeline.d.ts +1 -1
- package/lib/typescript/commonjs/components/Toast/Toast.d.ts +1 -1
- package/lib/typescript/commonjs/components/Toast/ToastProvider.d.ts +2 -2
- package/lib/typescript/commonjs/components/Tour/Tour.d.ts +2 -2
- package/lib/typescript/commonjs/hooks/usePresenceMotion.d.ts +2 -2
- package/lib/typescript/commonjs/index.d.ts +2 -2
- package/lib/typescript/commonjs/initUI.d.ts +3 -3
- package/lib/typescript/commonjs/theme/ThemeContext.d.ts +5 -3
- package/lib/typescript/commonjs/theme/componentSizes.d.ts +40 -18
- package/lib/typescript/commonjs/theme/index.d.ts +15 -17
- package/lib/typescript/commonjs/theme/merge.d.ts +15 -2
- package/lib/typescript/commonjs/theme/scale.d.ts +6 -4
- package/lib/typescript/commonjs/theme/textStyle.d.ts +4 -17
- package/lib/typescript/commonjs/theme/tokens.generated.d.ts +362 -0
- package/lib/typescript/commonjs/theme/types.d.ts +104 -347
- package/lib/typescript/commonjs/utils/color.d.ts +6 -2
- package/lib/typescript/commonjs/utils/shadows.d.ts +2 -2
- package/lib/typescript/module/canvasKit/meta.d.ts +32 -0
- package/lib/typescript/module/components/AmountSlider/AmountSlider.d.ts +1 -1
- package/lib/typescript/module/components/AnimatePresence/AnimatePresence.d.ts +1 -1
- package/lib/typescript/module/components/AppBar/AppBar.d.ts +4 -4
- package/lib/typescript/module/components/AppIcon/AppIcon.d.ts +1 -1
- package/lib/typescript/module/components/AppIcon/defaultIcons.d.ts +1 -1
- package/lib/typescript/module/components/Avatar/Avatar.d.ts +4 -4
- package/lib/typescript/module/components/Badge/Badge.d.ts +1 -1
- package/lib/typescript/module/components/Banner/Banner.d.ts +1 -1
- package/lib/typescript/module/components/BarChart/BarChart.d.ts +1 -1
- package/lib/typescript/module/components/BottomNavigation/BottomNavigation.d.ts +8 -10
- package/lib/typescript/module/components/BottomSheet/BottomSheet.d.ts +2 -2
- package/lib/typescript/module/components/Box/Box.d.ts +21 -21
- package/lib/typescript/module/components/Button/Button.d.ts +3 -3
- package/lib/typescript/module/components/Calendar/Calendar.d.ts +1 -1
- package/lib/typescript/module/components/Calendar/calendarStyles.d.ts +9 -9
- package/lib/typescript/module/components/Card/Card.d.ts +7 -6
- package/lib/typescript/module/components/Checkbox/Checkbox.d.ts +1 -1
- package/lib/typescript/module/components/Chip/Chip.d.ts +1 -1
- package/lib/typescript/module/components/ChoiceGroup/ChoiceGroup.d.ts +1 -1
- package/lib/typescript/module/components/Dialog/Dialog.d.ts +2 -2
- package/lib/typescript/module/components/FieldBase/Chevron.d.ts +1 -1
- package/lib/typescript/module/components/FieldBase/FieldBase.d.ts +32 -33
- package/lib/typescript/module/components/FieldBase/useFloatingLabel.d.ts +2 -3
- package/lib/typescript/module/components/FloatingActionButton/FloatingActionButton.d.ts +2 -2
- package/lib/typescript/module/components/FormField/FormField.d.ts +2 -3
- package/lib/typescript/module/components/IconBadge/IconBadge.d.ts +1 -1
- package/lib/typescript/module/components/IconButton/IconButton.d.ts +2 -2
- package/lib/typescript/module/components/InlineSelect/InlineSelect.d.ts +2 -3
- package/lib/typescript/module/components/Input/Input.d.ts +2 -2
- package/lib/typescript/module/components/Notation/Notation.d.ts +1 -1
- package/lib/typescript/module/components/OptionSheet/OptionSheet.d.ts +2 -2
- package/lib/typescript/module/components/PickerTrigger/PickerTrigger.d.ts +2 -3
- package/lib/typescript/module/components/ProfileCompletion/ProfileCompletion.d.ts +3 -4
- package/lib/typescript/module/components/ProfilePicker/ProfilePicker.d.ts +5 -6
- package/lib/typescript/module/components/ProgressBar/ProgressBar.d.ts +1 -1
- package/lib/typescript/module/components/ProgressRing/ProgressRing.d.ts +6 -7
- package/lib/typescript/module/components/Radio/Radio.d.ts +1 -1
- package/lib/typescript/module/components/SearchBar/SearchBar.d.ts +1 -1
- package/lib/typescript/module/components/SegmentedControl/SegmentedControl.d.ts +3 -4
- package/lib/typescript/module/components/Select/Select.d.ts +5 -5
- package/lib/typescript/module/components/Skeleton/Skeleton.d.ts +2 -2
- package/lib/typescript/module/components/SlideToConfirm/SlideToConfirm.d.ts +1 -1
- package/lib/typescript/module/components/Slider/Slider.d.ts +6 -7
- package/lib/typescript/module/components/Slider/valueText.d.ts +1 -1
- package/lib/typescript/module/components/Sparkline/Sparkline.d.ts +1 -1
- package/lib/typescript/module/components/StatusBadge/StatusBadge.d.ts +2 -3
- package/lib/typescript/module/components/Swipeable/Swipeable.d.ts +2 -2
- package/lib/typescript/module/components/Switch/Switch.d.ts +1 -1
- package/lib/typescript/module/components/Tabs/Tabs.d.ts +6 -7
- package/lib/typescript/module/components/Text/Text.d.ts +6 -7
- package/lib/typescript/module/components/Timeline/Timeline.d.ts +1 -1
- package/lib/typescript/module/components/Toast/Toast.d.ts +1 -1
- package/lib/typescript/module/components/Toast/ToastProvider.d.ts +2 -2
- package/lib/typescript/module/components/Tour/Tour.d.ts +2 -2
- package/lib/typescript/module/hooks/usePresenceMotion.d.ts +2 -2
- package/lib/typescript/module/index.d.ts +2 -2
- package/lib/typescript/module/initUI.d.ts +3 -3
- package/lib/typescript/module/theme/ThemeContext.d.ts +5 -3
- package/lib/typescript/module/theme/componentSizes.d.ts +40 -18
- package/lib/typescript/module/theme/index.d.ts +15 -17
- package/lib/typescript/module/theme/merge.d.ts +15 -2
- package/lib/typescript/module/theme/scale.d.ts +6 -4
- package/lib/typescript/module/theme/textStyle.d.ts +4 -17
- package/lib/typescript/module/theme/tokens.generated.d.ts +362 -0
- package/lib/typescript/module/theme/types.d.ts +104 -347
- package/lib/typescript/module/utils/color.d.ts +6 -2
- package/lib/typescript/module/utils/shadows.d.ts +2 -2
- package/package.json +14 -15
- package/lib/commonjs/theme/componentTokens.js +0 -1
- package/lib/commonjs/theme/retiredThemeKeys.js +0 -1
- package/lib/module/theme/componentTokens.js +0 -1
- package/lib/module/theme/retiredThemeKeys.js +0 -1
- package/lib/typescript/commonjs/theme/componentTokens.d.ts +0 -762
- package/lib/typescript/commonjs/theme/retiredThemeKeys.d.ts +0 -22
- package/lib/typescript/module/theme/componentTokens.d.ts +0 -762
- package/lib/typescript/module/theme/retiredThemeKeys.d.ts +0 -22
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { ReactNode } from "react";
|
|
2
2
|
import type { View as RNView, StyleProp, ViewStyle } from "react-native";
|
|
3
3
|
import type { GradientDefinition } from "../../theme/types";
|
|
4
|
-
export type ProgressBarTone = "primary" | "success" | "warning" | "
|
|
4
|
+
export type ProgressBarTone = "primary" | "success" | "warning" | "danger";
|
|
5
5
|
export interface ProgressBarSegment {
|
|
6
6
|
/** Fraction of the full track (0–1). */
|
|
7
7
|
value: number;
|
|
@@ -12,26 +12,25 @@
|
|
|
12
12
|
*/
|
|
13
13
|
import type React from "react";
|
|
14
14
|
import type { View as RNView, StyleProp, ViewStyle } from "react-native";
|
|
15
|
-
export type ProgressRingTone = "primary" | "success" | "warning" | "
|
|
15
|
+
export type ProgressRingTone = "primary" | "success" | "warning" | "danger";
|
|
16
16
|
export interface ProgressRingProps {
|
|
17
17
|
/** Fraction of the ring filled, 0 to 1, clamped. Default `0`. */
|
|
18
18
|
progress?: number;
|
|
19
19
|
/** Outer diameter in pixels. Default `48`. */
|
|
20
20
|
size?: number;
|
|
21
|
-
/** Stroke width of the track and the fill. Default
|
|
21
|
+
/** Stroke width of the track and the fill. Default 4. */
|
|
22
22
|
strokeWidth?: number;
|
|
23
23
|
/** Fill colour when no `ringColor` is set. Default `'primary'`. */
|
|
24
24
|
tone?: ProgressRingTone;
|
|
25
|
-
/** Track colour override. Default
|
|
25
|
+
/** Track colour override. Default the surface-disabled colour. */
|
|
26
26
|
trackColor?: string;
|
|
27
27
|
/** Fill colour override; wins over `tone`. */
|
|
28
28
|
ringColor?: string;
|
|
29
29
|
/**
|
|
30
|
-
* Colour the fill by how far it has got: `
|
|
30
|
+
* Colour the fill by how far it has got: `danger` below the first stop,
|
|
31
31
|
* `warning` to the second, `success` from there (stops default to a third
|
|
32
|
-
* and two thirds
|
|
33
|
-
*
|
|
34
|
-
* sweep crosses a stop. Ignored when `ringColor` is set. Default `false`.
|
|
32
|
+
* and two thirds). The colour rides the same animated value as the arc,
|
|
33
|
+
* so it flips exactly when the sweep crosses a stop. Ignored when `ringColor` is set. Default `false`.
|
|
35
34
|
*/
|
|
36
35
|
colorByProgress?: boolean;
|
|
37
36
|
/**
|
|
@@ -2,7 +2,7 @@ import type { ReactNode } from "react";
|
|
|
2
2
|
import type { PressableProps, View as RNView, StyleProp, TextStyle, ViewStyle } from "react-native";
|
|
3
3
|
import type { HapticType } from "../../utils/hapticUtils";
|
|
4
4
|
export type RadioSize = "sm" | "md" | "lg";
|
|
5
|
-
export type RadioTone = "primary" | "success" | "warning" | "
|
|
5
|
+
export type RadioTone = "primary" | "success" | "warning" | "danger";
|
|
6
6
|
export type RadioValue = string | number;
|
|
7
7
|
export interface RadioGroupContextValue {
|
|
8
8
|
selectedValue: RadioValue | undefined;
|
|
@@ -31,7 +31,7 @@ export interface SearchBarProps extends Omit<TextInputProps, "style" | "value" |
|
|
|
31
31
|
size?: SearchBarSize;
|
|
32
32
|
variant?: SearchBarVariant;
|
|
33
33
|
/**
|
|
34
|
-
* Corner radius. Default: the theme's `components
|
|
34
|
+
* Corner radius. Default: the theme's `components["search-bar"].<size>.radius`
|
|
35
35
|
* (the pill). Ignored on `underline`, which is always square.
|
|
36
36
|
*/
|
|
37
37
|
borderRadius?: number;
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
*/
|
|
15
15
|
import type { ReactNode } from "react";
|
|
16
16
|
import type { View as RNView, StyleProp, TextStyle, ViewStyle } from "react-native";
|
|
17
|
-
import type {
|
|
17
|
+
import type { RadiusName } from "../../theme/types";
|
|
18
18
|
import type { HapticType } from "../../utils";
|
|
19
19
|
import type { SlotIcon, SlotIconState } from "../AppIcon/slotIcon";
|
|
20
20
|
export type SegmentedControlSize = "sm" | "md" | "lg";
|
|
@@ -23,7 +23,7 @@ export type SegmentedControlTone = "primary" | "neutral";
|
|
|
23
23
|
export type SegmentedControlVariant = "underline" | "pills" | "segmented";
|
|
24
24
|
export type SegmentValue = string | number;
|
|
25
25
|
/** A theme radius token or a pixel number. */
|
|
26
|
-
export type SegmentedControlRadius =
|
|
26
|
+
export type SegmentedControlRadius = RadiusName | number;
|
|
27
27
|
/** What a segment knows about itself when it draws its icon. */
|
|
28
28
|
export interface SegmentIconState extends SlotIconState {
|
|
29
29
|
selected: boolean;
|
|
@@ -71,8 +71,7 @@ export interface SegmentedControlProps {
|
|
|
71
71
|
* track (the thumb nests inside with the track's corner minus the inset),
|
|
72
72
|
* the pill, and the ends of the underline. Unset, each variant keeps its
|
|
73
73
|
* own default: `md` track with an `sm` thumb, a `pill`-radius pill, a square
|
|
74
|
-
* underline.
|
|
75
|
-
* default under this prop.
|
|
74
|
+
* underline.
|
|
76
75
|
*/
|
|
77
76
|
radius?: SegmentedControlRadius;
|
|
78
77
|
/**
|
|
@@ -63,9 +63,9 @@ interface BaseSelectProps<T = SelectOption> {
|
|
|
63
63
|
*/
|
|
64
64
|
title?: string;
|
|
65
65
|
/**
|
|
66
|
-
* Appends the required marker to the label. Marker text
|
|
67
|
-
* `theme.components.field.
|
|
68
|
-
* `
|
|
66
|
+
* Appends the required marker to the label. Marker text comes from
|
|
67
|
+
* `theme.settings.components.field.requiredMarker` (default `'*'` in
|
|
68
|
+
* `colors.danger`).
|
|
69
69
|
*/
|
|
70
70
|
required?: boolean;
|
|
71
71
|
/**
|
|
@@ -92,7 +92,7 @@ interface BaseSelectProps<T = SelectOption> {
|
|
|
92
92
|
size?: SelectSize;
|
|
93
93
|
/**
|
|
94
94
|
* Controls the trigger field's fill + border treatment. Resolution chain:
|
|
95
|
-
* caller prop → `components.select.defaultVariant` → `components.field.defaultVariant`
|
|
95
|
+
* caller prop → `settings.components.select.defaultVariant` → `settings.components.field.defaultVariant`
|
|
96
96
|
* → 'outlined'.
|
|
97
97
|
*/
|
|
98
98
|
variant?: SelectVariant;
|
|
@@ -109,7 +109,7 @@ interface BaseSelectProps<T = SelectOption> {
|
|
|
109
109
|
* node if you want motion. Mirrors Input's `rightIcon`, same contract as `leftIcon`.
|
|
110
110
|
*/
|
|
111
111
|
rightIcon?: SlotIcon;
|
|
112
|
-
/** Colour of the built-in chevron. Ignored when `rightIcon` is set. Default: `colors
|
|
112
|
+
/** Colour of the built-in chevron. Ignored when `rightIcon` is set. Default: `colors["text-subtle"]` (`text-disabled` when disabled). */
|
|
113
113
|
chevronColor?: string;
|
|
114
114
|
/** Size of the built-in chevron in pixels. Ignored when `rightIcon` is set. Default: the field size's `icon`. */
|
|
115
115
|
chevronSize?: number;
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
*/
|
|
25
25
|
import type React from "react";
|
|
26
26
|
import type { StyleProp, ViewStyle } from "react-native";
|
|
27
|
-
import type {
|
|
27
|
+
import type { RadiusName } from "../../theme/types";
|
|
28
28
|
import type { SkeletonColors } from "./SkeletonProvider";
|
|
29
29
|
/** Animation pattern. */
|
|
30
30
|
export type SkeletonVariant = "shimmer" | "pulse" | "none";
|
|
@@ -33,7 +33,7 @@ export type SkeletonSpeed = "slow" | "normal" | "fast";
|
|
|
33
33
|
/** Pre-defined shape archetype. Plays nicely with `width`/`height` overrides. */
|
|
34
34
|
export type SkeletonShape = "rect" | "rounded" | "circle" | "text";
|
|
35
35
|
/** `theme.radius` token name or a literal pixel value. */
|
|
36
|
-
export type SkeletonRadius =
|
|
36
|
+
export type SkeletonRadius = Extract<RadiusName, "sm" | "md" | "lg" | "xl" | "pill"> | number;
|
|
37
37
|
export type SkeletonWidth = number | "auto" | "100%" | `${number}%`;
|
|
38
38
|
export interface SkeletonProps {
|
|
39
39
|
/**
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import type { View as RNView, StyleProp, TextStyle, ViewStyle } from "react-native";
|
|
3
3
|
import type { HapticType } from "../../utils";
|
|
4
|
-
export type SlideToConfirmTone = "primary" | "success" | "warning" | "
|
|
4
|
+
export type SlideToConfirmTone = "primary" | "success" | "warning" | "danger";
|
|
5
5
|
export type SlideToConfirmSize = "sm" | "md" | "lg";
|
|
6
6
|
export interface SlideToConfirmProps {
|
|
7
7
|
/** Fired once the handle is dragged past the threshold. */
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type React from "react";
|
|
2
2
|
import type { View as RNView, StyleProp, TextStyle, ViewStyle } from "react-native";
|
|
3
3
|
import type { HapticType } from "../../utils";
|
|
4
|
-
export type SliderTone = "primary" | "success" | "warning" | "
|
|
4
|
+
export type SliderTone = "primary" | "success" | "warning" | "danger";
|
|
5
5
|
export type SliderSize = "sm" | "md" | "lg";
|
|
6
6
|
/**
|
|
7
7
|
* Visual style of the slider.
|
|
@@ -22,10 +22,9 @@ interface SliderCommonProps {
|
|
|
22
22
|
tone?: SliderTone;
|
|
23
23
|
size?: SliderSize;
|
|
24
24
|
/**
|
|
25
|
-
* Visual style. Default `'default'`. The
|
|
26
|
-
*
|
|
27
|
-
*
|
|
28
|
-
* would break.
|
|
25
|
+
* Visual style. Default `'default'`. The library's per-size track-height and
|
|
26
|
+
* thumb-diameter tokens size the `default` variant only: the other variants
|
|
27
|
+
* carry their own proportions, which a single pair of numbers would break.
|
|
29
28
|
*/
|
|
30
29
|
variant?: SliderVariant;
|
|
31
30
|
/**
|
|
@@ -70,13 +69,13 @@ interface SliderCommonProps {
|
|
|
70
69
|
labelOpacity?: number;
|
|
71
70
|
testID?: string;
|
|
72
71
|
}
|
|
73
|
-
interface SliderSingleProps extends SliderCommonProps {
|
|
72
|
+
export interface SliderSingleProps extends SliderCommonProps {
|
|
74
73
|
range?: false;
|
|
75
74
|
value?: number;
|
|
76
75
|
defaultValue?: number;
|
|
77
76
|
onChange?: (value: number) => void;
|
|
78
77
|
}
|
|
79
|
-
interface SliderRangeProps extends SliderCommonProps {
|
|
78
|
+
export interface SliderRangeProps extends SliderCommonProps {
|
|
80
79
|
range: true;
|
|
81
80
|
value?: [number, number];
|
|
82
81
|
defaultValue?: [number, number];
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { StyleProp, TextStyle } from "react-native";
|
|
2
2
|
import type { Theme } from "../../theme/types";
|
|
3
3
|
/** The ink drawn on a slider's tone-coloured value bubble. */
|
|
4
|
-
export declare const sliderToneInk: (theme: Theme, tone: "primary" | "success" | "warning" | "
|
|
4
|
+
export declare const sliderToneInk: (theme: Theme, tone: "primary" | "success" | "warning" | "danger") => string;
|
|
5
5
|
/**
|
|
6
6
|
* Shared between AmountSlider and SliderField: the number that counts to its
|
|
7
7
|
* new value, and the edit-in-a-box logic that keeps a half-typed entry from
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
* end, low and high values, so nothing rests on the line's colour.
|
|
9
9
|
*/
|
|
10
10
|
import type { View as RNView, StyleProp, ViewStyle } from "react-native";
|
|
11
|
-
export type SparklineTone = "primary" | "success" | "warning" | "
|
|
11
|
+
export type SparklineTone = "primary" | "success" | "warning" | "danger" | "info" | "neutral";
|
|
12
12
|
export interface SparklineProps {
|
|
13
13
|
/** The series, oldest first. Values that are not finite numbers are dropped. */
|
|
14
14
|
data: ReadonlyArray<number>;
|
|
@@ -2,11 +2,10 @@ import type React from "react";
|
|
|
2
2
|
import type { View as RNView, StyleProp, TextStyle, ViewStyle } from "react-native";
|
|
3
3
|
/**
|
|
4
4
|
* The same semantic vocabulary Chip and Badge use, and the web library's
|
|
5
|
-
* `AppStatusBadge`.
|
|
6
|
-
* name, so a status mapped once for both platforms draws the same here.
|
|
5
|
+
* `AppStatusBadge`.
|
|
7
6
|
* A semantic name survives a palette change; a colour name does not.
|
|
8
7
|
*/
|
|
9
|
-
export type StatusBadgeTone = "success" | "warning" | "
|
|
8
|
+
export type StatusBadgeTone = "success" | "warning" | "danger" | "info" | "primary" | "neutral";
|
|
10
9
|
/**
|
|
11
10
|
* `soft` is the default: the tone at a light tint behind text in the tone,
|
|
12
11
|
* with a border in the tone so the pill has an edge on any surface. `outline`
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
*
|
|
10
10
|
* <Swipeable
|
|
11
11
|
* leftActions={[{ key: 'archive', label: 'Archive', tone: 'success', onPress: handleArchive }]}
|
|
12
|
-
* rightActions={[{ key: 'delete', label: 'Delete', tone: '
|
|
12
|
+
* rightActions={[{ key: 'delete', label: 'Delete', tone: 'danger', onPress: handleDelete }]}
|
|
13
13
|
* >
|
|
14
14
|
* <ListItem title="Inbox item" />
|
|
15
15
|
* </Swipeable>
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
import type React from "react";
|
|
18
18
|
import type { StyleProp, ViewStyle } from "react-native";
|
|
19
19
|
import type { HapticType } from "../../utils";
|
|
20
|
-
export type SwipeableTone = "primary" | "success" | "warning" | "
|
|
20
|
+
export type SwipeableTone = "primary" | "success" | "warning" | "danger" | "neutral";
|
|
21
21
|
export interface SwipeableAction {
|
|
22
22
|
key: string;
|
|
23
23
|
label: string;
|
|
@@ -2,7 +2,7 @@ import type { ReactNode } from "react";
|
|
|
2
2
|
import type { PressableProps, View as RNView, StyleProp, ViewStyle } from "react-native";
|
|
3
3
|
import type { HapticType } from "../../utils/hapticUtils";
|
|
4
4
|
export type SwitchSize = "sm" | "md" | "lg";
|
|
5
|
-
export type SwitchTone = "primary" | "success" | "warning" | "
|
|
5
|
+
export type SwitchTone = "primary" | "success" | "warning" | "danger";
|
|
6
6
|
/** `inline`: the control, then the text beside it. `row`: the text on the left, the control on the right, the whole row pressable. */
|
|
7
7
|
export type SwitchLayout = "inline" | "row";
|
|
8
8
|
export interface SwitchProps extends Omit<PressableProps, "style" | "children" | "onPress"> {
|
|
@@ -9,20 +9,20 @@
|
|
|
9
9
|
* because RN's native driver does not support layout props.
|
|
10
10
|
*
|
|
11
11
|
* `segmented` borrows SegmentedControl's look (filled track, sliding thumb)
|
|
12
|
-
* for tabs that sit inside content, reading that control's size table
|
|
13
|
-
*
|
|
14
|
-
*
|
|
15
|
-
*
|
|
12
|
+
* for tabs that sit inside content, reading that control's size table so the
|
|
13
|
+
* two stay in step; the inset is the tabs' own token (`track-padding`, 4). It
|
|
14
|
+
* is a look, not a semantic change: the roles stay tablist/tab, and a value
|
|
15
|
+
* choice is still SegmentedControl.
|
|
16
16
|
*/
|
|
17
17
|
import type { View as RNView, StyleProp, TextStyle, ViewStyle } from "react-native";
|
|
18
18
|
import { Animated } from "react-native";
|
|
19
|
-
import type {
|
|
19
|
+
import type { RadiusName } from "../../theme/types";
|
|
20
20
|
import type { HapticType } from "../../utils";
|
|
21
21
|
import type { SlotIcon, SlotIconState } from "../AppIcon/slotIcon";
|
|
22
22
|
export type TabsVariant = "underline" | "pills" | "segmented";
|
|
23
23
|
export type TabsSize = "sm" | "md" | "lg";
|
|
24
24
|
/** A theme radius token or a pixel number. */
|
|
25
|
-
export type TabsRadius =
|
|
25
|
+
export type TabsRadius = RadiusName | number;
|
|
26
26
|
export type TabsAlign = "left" | "center";
|
|
27
27
|
/** What a tab knows about itself when it draws its icon. */
|
|
28
28
|
export interface TabItemIconState extends SlotIconState {
|
|
@@ -53,7 +53,6 @@ export interface TabsProps {
|
|
|
53
53
|
* track (the thumb nests inside it, its corner the track's minus the inset),
|
|
54
54
|
* the pill, and the ends of the underline. Unset, each variant keeps its own
|
|
55
55
|
* default: `md` track with an `sm` thumb, a `pill`-radius pill, a square underline.
|
|
56
|
-
* The theme's `tabs.radius` token is the app-wide default under this prop.
|
|
57
56
|
*/
|
|
58
57
|
radius?: TabsRadius;
|
|
59
58
|
/**
|
|
@@ -1,21 +1,20 @@
|
|
|
1
1
|
import type React from "react";
|
|
2
2
|
import type { TextProps as RNTextProps, Text as RNTextRef, StyleProp, TextStyle } from "react-native";
|
|
3
|
-
import type {
|
|
4
|
-
import type { Theme, TypographyScale } from "../../theme/types";
|
|
3
|
+
import type { TextName, Theme, WeightName } from "../../theme/types";
|
|
5
4
|
export type TextVariant = "display" | "h1" | "h2" | "h3" | "title" | "body" | "bodySmall" | "caption" | "label" | "overline";
|
|
6
|
-
export type TextColor = "primary" | "secondary" | "tertiary" | "inverse" | "disabled" | "link" | "textStrong" | "success" | "warning" | "
|
|
5
|
+
export type TextColor = "primary" | "secondary" | "tertiary" | "inverse" | "disabled" | "link" | "textStrong" | "success" | "warning" | "danger" | "info";
|
|
7
6
|
export interface TextProps extends Omit<RNTextProps, "style"> {
|
|
8
7
|
/**
|
|
9
|
-
* A built-in variant, or the name of one registered in `theme.textVariants`.
|
|
8
|
+
* A built-in variant, or the name of one registered in `theme.settings.textVariants`.
|
|
10
9
|
* An unknown name falls back to `body`.
|
|
11
10
|
*/
|
|
12
11
|
variant?: TextVariant | (string & {});
|
|
13
12
|
/** Text role token, semantic tone, or a raw colour string. Defaults per variant. */
|
|
14
13
|
color?: TextColor | (string & {});
|
|
15
14
|
/** Override the variant's weight. */
|
|
16
|
-
weight?:
|
|
17
|
-
/** Override the variant's size
|
|
18
|
-
size?:
|
|
15
|
+
weight?: WeightName;
|
|
16
|
+
/** Override the variant's size: a text step name or a pixel number. */
|
|
17
|
+
size?: TextName | number;
|
|
19
18
|
align?: TextStyle["textAlign"];
|
|
20
19
|
italic?: boolean;
|
|
21
20
|
underline?: boolean;
|
|
@@ -8,7 +8,7 @@ import type { StyleProp, ViewStyle } from "react-native";
|
|
|
8
8
|
* current — in progress now (warning)
|
|
9
9
|
* done — completed (success)
|
|
10
10
|
* onHold — blocked / waiting (info)
|
|
11
|
-
* rejected — declined / failed (
|
|
11
|
+
* rejected — declined / failed (danger)
|
|
12
12
|
* cancelled — aborted (muted)
|
|
13
13
|
* skipped — intentionally bypassed (muted)
|
|
14
14
|
*
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type React from "react";
|
|
2
2
|
import type { StyleProp, TextStyle, ViewStyle } from "react-native";
|
|
3
3
|
import type { HapticType } from "../../utils/hapticUtils";
|
|
4
|
-
export type ToastVariant = "default" | "success" | "
|
|
4
|
+
export type ToastVariant = "default" | "success" | "danger" | "warning" | "info";
|
|
5
5
|
export type ToastPosition = "top" | "bottom";
|
|
6
6
|
export interface ToastAction {
|
|
7
7
|
label: string;
|
|
@@ -34,13 +34,13 @@ export interface ToastProviderProps {
|
|
|
34
34
|
/**
|
|
35
35
|
* How long a toast stays, in milliseconds, when its own `duration` is left
|
|
36
36
|
* out. `0` keeps it until dismissed. Without it the theme's
|
|
37
|
-
* `components.toast.defaultDurationMs` applies (3000 by default).
|
|
37
|
+
* `settings.components.toast.defaultDurationMs` applies (3000 by default).
|
|
38
38
|
*/
|
|
39
39
|
defaultDuration?: number;
|
|
40
40
|
/**
|
|
41
41
|
* Haptic per variant, for a toast whose own `haptic` is left out. A variant
|
|
42
42
|
* left out of the map keeps its built-in haptic (`notificationError` for
|
|
43
|
-
* `
|
|
43
|
+
* `danger`,`notificationSuccess` for `success`, `notificationWarning` for
|
|
44
44
|
* `warning`, `selection` otherwise). A variant set to `false` is silent, and
|
|
45
45
|
* `false` for the whole prop silences every toast.
|
|
46
46
|
*/
|
|
@@ -56,8 +56,8 @@ export interface TourProps {
|
|
|
56
56
|
* Walks through product steps one highlighted view at a time: the screen is
|
|
57
57
|
* dimmed except around the step's view, with a card holding the step text and
|
|
58
58
|
* Back, Next and Skip. Built on `Modal`; the card sits on the side of the view
|
|
59
|
-
* with more room, as `Tooltip` places its bubble, using the same
|
|
60
|
-
*
|
|
59
|
+
* with more room, as `Tooltip` places its bubble, using the same gap and screen padding
|
|
60
|
+
* (the sm space step). Motion comes from `theme.motion`, which collapses under
|
|
61
61
|
* the OS Reduce Motion setting.
|
|
62
62
|
*/
|
|
63
63
|
declare const Tour: React.FC<TourProps>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ReduceMotion } from "react-native-reanimated";
|
|
2
|
-
import type {
|
|
3
|
-
export type MotionDurationKey =
|
|
2
|
+
import type { DurationName } from "../theme/types";
|
|
3
|
+
export type MotionDurationKey = DurationName;
|
|
4
4
|
/** The reduceMotion flag every Reanimated fade passes, so the fade still runs under the OS setting. */
|
|
5
5
|
export declare const PRESENCE_REDUCE_MOTION = ReduceMotion.Never;
|
|
6
6
|
export interface PresenceMotion {
|
|
@@ -9,8 +9,8 @@ export type { InitUIOptions } from "./initUI";
|
|
|
9
9
|
export { initUI } from "./initUI";
|
|
10
10
|
export type { NetworkStatusBannerProps } from "./network";
|
|
11
11
|
export { NetworkStatusBanner } from "./network";
|
|
12
|
-
export type { ColorMode,
|
|
13
|
-
export { darkTheme,
|
|
12
|
+
export type { BrandOverrides, ColorMode, ColorName, ColorSchemePreference, ComponentName, ComponentSettings, ComponentSizeTokens, ComponentTokens, DurationName, EaseName, FieldVariant, FontFaces, FontName, FontWeightValue, GradientDefinition, GradientScale, IconRegistry, IconRenderer, LeadingName, LetterSpacingName, PhoneShadow, RadiusName, Resolved, ShadowName, SizeName, SpaceName, Spring, SpringScale, TextName, TextVariantSpec, Theme, ThemeProviderProps, ThemeSettings, TokenSet, WeightName, } from "./theme";
|
|
13
|
+
export { COLOR_NAMES, DURATION_NAMES, darkTheme, EASE_NAMES, FONT_NAMES, getColorMode, getTheme, LEADING_NAMES, LETTER_SPACING_NAMES, lightTheme, mergeBrand, RADIUS_NAMES, radiusOf, resetTheme, resolveBadgeSize, resolveButtonSize, resolveCheckboxSize, resolveChipSize, resolveEmptyStateSize, resolveFieldSize, resolveFloatingActionButtonSize, resolveListItemSize, resolveOtpInputSize, resolveRadioSize, resolveSegmentedControlSize, resolveSliderSize, resolveSwitchSize, resolveTabsSize, SHADOW_NAMES, SIZE_NAMES, SPACE_NAMES, setColorMode, setTheme, spaceOf, subscribeTheme, TEXT_NAMES, ThemeProvider, textOf, useTheme, useThemeMode, WEIGHT_NAMES, } from "./theme";
|
|
14
14
|
export type { AnnounceOptions, BreakpointKey, FeedbackIntent, HapticType, ResponsiveScales, ScreenInfo, SquirclePathParams, } from "./utils";
|
|
15
15
|
export { announce, Breakpoints, configureFeedback, feedback, hapticForIntent, isFeedbackEnabled, isScreenSize, isTablet, Responsive, ScreenDimensions, SQUIRCLE_MIN_RADIUS, SQUIRCLE_SMOOTHING, setHapticImplementation, shadowStyle, smoothCorners, squircleApplies, squircleHostRadius, squirclePath, triggerHaptic, useScreenDimensions, warnUnknownProps, } from "./utils";
|
|
16
16
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import type { ColorMode,
|
|
1
|
+
import type { BrandOverrides, ColorMode, ThemeSettings } from "./theme/types";
|
|
2
2
|
export interface InitUIOptions {
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+
brand?: BrandOverrides;
|
|
4
|
+
settings?: ThemeSettings;
|
|
5
5
|
defaultMode?: ColorMode;
|
|
6
6
|
}
|
|
7
7
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type React from "react";
|
|
2
|
-
import type { ColorMode, Theme,
|
|
2
|
+
import type { BrandOverrides, ColorMode, Theme, ThemeSettings } from "./types";
|
|
3
3
|
export type ColorSchemePreference = "light" | "dark" | "system";
|
|
4
4
|
export interface ThemeProviderProps {
|
|
5
5
|
children: React.ReactNode;
|
|
@@ -12,8 +12,10 @@ export interface ThemeProviderProps {
|
|
|
12
12
|
* `toggleColorMode`. Without a key nothing is read or written.
|
|
13
13
|
*/
|
|
14
14
|
persistKey?: string;
|
|
15
|
-
|
|
16
|
-
|
|
15
|
+
/** Pass a module-level constant: a new object identity merges the theme again. */
|
|
16
|
+
brand?: BrandOverrides;
|
|
17
|
+
/** Pass a module-level constant: a new object identity merges the theme again. */
|
|
18
|
+
settings?: ThemeSettings;
|
|
17
19
|
}
|
|
18
20
|
export declare const ThemeProvider: React.FC<ThemeProviderProps>;
|
|
19
21
|
export declare const useTheme: () => Theme;
|
|
@@ -1,27 +1,49 @@
|
|
|
1
|
-
import type { BadgeSizeTokens, ButtonSizeTokens, CheckboxSizeTokens, ChipSizeTokens, ComponentSizeKey, EmptyStateSizeTokens, FieldSizeTokens, FloatingActionButtonSizeTokens, ListItemSizeTokens, OTPInputSizeTokens, RadioSizeTokens, SegmentedControlSizeTokens, SliderSizeTokens, SwitchSizeTokens, TabsSizeTokens } from "./componentTokens";
|
|
2
1
|
import type { Theme } from "./types";
|
|
3
2
|
/** A size token with every scale name turned into pixels. */
|
|
4
3
|
export type Resolved<T> = {
|
|
5
4
|
[K in keyof T]: number;
|
|
6
5
|
};
|
|
7
|
-
export declare const resolveButtonSize: (theme: Theme, size:
|
|
8
|
-
export declare const resolveFieldSize: (theme: Theme, size: "sm" | "md" | "lg") => Resolved<FieldSizeTokens>;
|
|
9
|
-
export declare const resolveEmptyStateSize: (theme: Theme, size: "sm" | "md" | "lg") => Resolved<EmptyStateSizeTokens>;
|
|
10
|
-
export declare const resolveListItemSize: (theme: Theme, size: "sm" | "md" | "lg") => Resolved<
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
export declare const
|
|
17
|
-
export declare const
|
|
18
|
-
export declare const
|
|
19
|
-
|
|
20
|
-
|
|
6
|
+
export declare const resolveButtonSize: (theme: Theme, size: "xs" | "sm" | "md" | "lg" | "xl") => Resolved<import("./tokens.generated").ButtonSizeTokens>;
|
|
7
|
+
export declare const resolveFieldSize: (theme: Theme, size: "sm" | "md" | "lg") => Resolved<import("./tokens.generated").FieldSizeTokens>;
|
|
8
|
+
export declare const resolveEmptyStateSize: (theme: Theme, size: "sm" | "md" | "lg") => Resolved<import("./tokens.generated").EmptyStateSizeTokens>;
|
|
9
|
+
export declare const resolveListItemSize: (theme: Theme, size: "sm" | "md" | "lg") => Resolved<{
|
|
10
|
+
"padding-y": import("./tokens.generated").SpaceName;
|
|
11
|
+
"title-text": import("./tokens.generated").TextName;
|
|
12
|
+
"subtitle-text": import("./tokens.generated").TextName;
|
|
13
|
+
"min-height": number;
|
|
14
|
+
}>;
|
|
15
|
+
export declare const resolveBadgeSize: (theme: Theme, size: "sm" | "md") => Resolved<import("./tokens.generated").BadgeSizeTokens>;
|
|
16
|
+
export declare const resolveChipSize: (theme: Theme, size: "sm" | "md") => Resolved<import("./tokens.generated").ChipSizeTokens>;
|
|
17
|
+
export declare const resolveCheckboxSize: (theme: Theme, size: "sm" | "md" | "lg") => Resolved<{
|
|
18
|
+
"box-size": number;
|
|
19
|
+
}>;
|
|
20
|
+
export declare const resolveRadioSize: (theme: Theme, size: "sm" | "md" | "lg") => Resolved<{
|
|
21
|
+
outer: number;
|
|
22
|
+
inner: number;
|
|
23
|
+
}>;
|
|
24
|
+
export declare const resolveSwitchSize: (theme: Theme, size: "sm" | "md" | "lg") => Resolved<{
|
|
25
|
+
"track-width": number;
|
|
26
|
+
"track-height": number;
|
|
27
|
+
"thumb-size": number;
|
|
28
|
+
padding: import("./tokens.generated").SpaceName;
|
|
29
|
+
}>;
|
|
30
|
+
export declare const resolveOtpInputSize: (theme: Theme, size: "sm" | "md" | "lg") => Resolved<{
|
|
31
|
+
cell: number;
|
|
32
|
+
text: import("./tokens.generated").TextName;
|
|
33
|
+
radius: import("./tokens.generated").RadiusName;
|
|
34
|
+
gap: import("./tokens.generated").SpaceName;
|
|
35
|
+
}>;
|
|
36
|
+
export declare const resolveSegmentedControlSize: (theme: Theme, size: "sm" | "md" | "lg") => Resolved<import("./tokens.generated").SegmentedControlSizeTokens>;
|
|
37
|
+
export declare const resolveTabsSize: (theme: Theme, size: "sm" | "md" | "lg") => Resolved<import("./tokens.generated").TabsSizeTokens>;
|
|
38
|
+
export declare const resolveSliderSize: (theme: Theme, size: "sm" | "md" | "lg") => Resolved<{
|
|
39
|
+
"track-height": number;
|
|
40
|
+
"thumb-diameter": number;
|
|
41
|
+
}>;
|
|
42
|
+
export declare const resolveFloatingActionButtonSize: (theme: Theme, size: "sm" | "md" | "lg") => Resolved<import("./tokens.generated").FloatingActionButtonSizeTokens>;
|
|
21
43
|
/**
|
|
22
|
-
* Resolves every scale-named component token once, so a
|
|
23
|
-
*
|
|
24
|
-
*
|
|
44
|
+
* Resolves every scale-named component token once, so a token that names a
|
|
45
|
+
* missing scale step stops the app where the theme is built, with the token's
|
|
46
|
+
* path, instead of drawing a component with no padding.
|
|
25
47
|
*/
|
|
26
48
|
export declare const validateComponentTokens: (theme: Theme) => void;
|
|
27
49
|
//# sourceMappingURL=componentSizes.d.ts.map
|
|
@@ -1,20 +1,18 @@
|
|
|
1
|
-
import type { ColorMode, Theme,
|
|
1
|
+
import type { BrandOverrides, ColorMode, Theme, ThemeSettings } from "./types";
|
|
2
2
|
/**
|
|
3
|
-
* Set the
|
|
3
|
+
* Set the brand and the settings the app's theme is built from.
|
|
4
4
|
*
|
|
5
|
-
* REPLACES
|
|
6
|
-
* `setTheme(
|
|
7
|
-
*
|
|
8
|
-
*
|
|
5
|
+
* REPLACES both stored values; it does not accumulate them. Calling
|
|
6
|
+
* `setTheme(brandA)` and then `setTheme(undefined, settingsB)` leaves ONLY
|
|
7
|
+
* settingsB live: the brand silently reverts to the base theme. Pass the
|
|
8
|
+
* complete brand and settings in one call, or merge them yourself before calling.
|
|
9
9
|
*
|
|
10
|
-
*
|
|
11
|
-
*
|
|
12
|
-
*
|
|
13
|
-
*
|
|
14
|
-
* behaviour change it is: an app relying on replace to CLEAR a previous
|
|
15
|
-
* override would silently keep it.
|
|
10
|
+
* This is deliberate (one call sets the whole configuration, last call wins) and
|
|
11
|
+
* is pinned by a test. Do not "fix" it to merge without treating that as the
|
|
12
|
+
* behaviour change it is: an app relying on replace to CLEAR a previous brand
|
|
13
|
+
* would silently keep it.
|
|
16
14
|
*/
|
|
17
|
-
export declare const setTheme: (
|
|
15
|
+
export declare const setTheme: (brand?: BrandOverrides, settings?: ThemeSettings) => void;
|
|
18
16
|
export declare const setColorMode: (mode: ColorMode) => void;
|
|
19
17
|
export declare const getColorMode: () => ColorMode;
|
|
20
18
|
export declare const getTheme: () => Theme;
|
|
@@ -25,12 +23,12 @@ export type { Resolved } from "./componentSizes";
|
|
|
25
23
|
export { resolveBadgeSize, resolveButtonSize, resolveCheckboxSize, resolveChipSize, resolveEmptyStateSize, resolveFieldSize, resolveFloatingActionButtonSize, resolveListItemSize, resolveOtpInputSize, resolveRadioSize, resolveSegmentedControlSize, resolveSliderSize, resolveSwitchSize, resolveTabsSize, validateComponentTokens, } from "./componentSizes";
|
|
26
24
|
export type { GradientProps } from "./Gradient";
|
|
27
25
|
export { Gradient, gradientAngle, toBackgroundImage } from "./Gradient";
|
|
28
|
-
export {
|
|
29
|
-
export {
|
|
26
|
+
export { mergeBrand } from "./merge";
|
|
27
|
+
export { radiusOf, spaceOf, textOf } from "./scale";
|
|
30
28
|
export type { ColorSchemePreference, ThemeProviderProps } from "./ThemeContext";
|
|
31
29
|
export { ThemeProvider, useTheme, useThemeMode } from "./ThemeContext";
|
|
32
|
-
export type { FontWeightKey } from "./textStyle";
|
|
33
30
|
export { fontFor } from "./textStyle";
|
|
34
31
|
export { darkTheme, lightTheme } from "./tokens";
|
|
35
|
-
export
|
|
32
|
+
export { COLOR_NAMES, DURATION_NAMES, EASE_NAMES, FONT_NAMES, LEADING_NAMES, LETTER_SPACING_NAMES, RADIUS_NAMES, SHADOW_NAMES, SIZE_NAMES, SPACE_NAMES, TEXT_NAMES, WEIGHT_NAMES, } from "./tokens.generated";
|
|
33
|
+
export type { BrandOverrides, ColorMode, ColorName, ComponentName, ComponentSettings, ComponentSizeTokens, ComponentTokens, DurationName, EaseName, FieldVariant, FontFaces, FontName, FontWeightValue, GradientDefinition, GradientScale, IconRegistry, IconRenderer, LeadingName, LetterSpacingName, PhoneShadow, RadiusName, ShadowName, SizeName, SpaceName, Spring, SpringScale, TextName, TextVariantSpec, Theme, ThemeSettings, TokenSet, WeightName, } from "./types";
|
|
36
34
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,3 +1,16 @@
|
|
|
1
|
-
import type { Theme,
|
|
2
|
-
|
|
1
|
+
import type { BrandOverrides, Theme, ThemeSettings } from "./types";
|
|
2
|
+
/**
|
|
3
|
+
* A brand that sets a tone colour gets two derived values, both in the brand's
|
|
4
|
+
* own hue, so the library's contrast holds for it too:
|
|
5
|
+
* - the solid fill, moved until it reads at 4.5:1 under its `on-*` ink (set
|
|
6
|
+
* when the brand names the tone or the ink, so a brand ink on a library
|
|
7
|
+
* fill is checked as well);
|
|
8
|
+
* - the tone's `*-text` colour, from that fill, unless the brand names its own;
|
|
9
|
+
* - for primary, the `primary-hover` and `primary-pressed` fills, from that fill
|
|
10
|
+
* and the library's lightness steps, unless the brand names its own, so a
|
|
11
|
+
* moved primary keeps the press order instead of the library's old colours.
|
|
12
|
+
* Without them the brand would get the library's ink for the DEFAULT tone: a
|
|
13
|
+
* different hue, chosen against the default colour.
|
|
14
|
+
*/
|
|
15
|
+
export declare const mergeBrand: (base: Theme, brand: BrandOverrides | undefined, settings: ThemeSettings | undefined) => Theme;
|
|
3
16
|
//# sourceMappingURL=merge.d.ts.map
|
|
@@ -1,5 +1,7 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
|
|
3
|
-
export declare const
|
|
4
|
-
export declare const
|
|
1
|
+
import type { RadiusName, SpaceName, TextName } from "./tokens.generated";
|
|
2
|
+
import type { Theme } from "./types";
|
|
3
|
+
export declare const scaleStep: (theme: Theme, scale: "space" | "text" | "radius", key: string, path?: string) => number;
|
|
4
|
+
export declare const spaceOf: (theme: Theme, key: SpaceName) => number;
|
|
5
|
+
export declare const radiusOf: (theme: Theme, key: RadiusName) => number;
|
|
6
|
+
export declare const textOf: (theme: Theme, key: TextName) => number;
|
|
5
7
|
//# sourceMappingURL=scale.d.ts.map
|