@webority/mobile-ui 0.88.1 → 0.90.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/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 -1
- 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/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 -1
- package/lib/module/theme/tokens.js +1 -1
- package/lib/module/utils/color.js +1 -1
- 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 +239 -92
- 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/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 +239 -92
- 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 +8 -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 React from "react";
|
|
2
2
|
import type { View as RNView, StyleProp, TextStyle, ViewStyle } from "react-native";
|
|
3
3
|
import type { ScrollDirection } from "../../hooks/useScrollDirection.js";
|
|
4
|
-
import type {
|
|
4
|
+
import type { ShadowName } from "../../theme/types.js";
|
|
5
5
|
import type { HapticType } from "../../utils/index.js";
|
|
6
6
|
import type { SlotIcon, SlotIconState } from "../AppIcon/index.js";
|
|
7
7
|
/**
|
|
@@ -35,7 +35,7 @@ export type BottomNavigationRadius = number | "pill";
|
|
|
35
35
|
*/
|
|
36
36
|
export type BottomNavigationIndicatorRadius = number | "auto";
|
|
37
37
|
/** Shadow under the bar surface: a theme shadow level, or `none`. */
|
|
38
|
-
export type BottomNavigationElevation =
|
|
38
|
+
export type BottomNavigationElevation = "none" | ShadowName;
|
|
39
39
|
export type TabBadge = number | string | boolean | null;
|
|
40
40
|
/** What a tab knows about itself when it draws its icon. */
|
|
41
41
|
export interface TabIconProps extends SlotIconState {
|
|
@@ -92,7 +92,7 @@ export interface BottomNavigationCenterAction {
|
|
|
92
92
|
size?: number;
|
|
93
93
|
/** Fill of the circle. Default the theme's `primary`. */
|
|
94
94
|
color?: string;
|
|
95
|
-
/** Ink of the icon in the circle. Default the theme's `
|
|
95
|
+
/** Ink of the icon in the circle. Default the theme's `on-primary`. */
|
|
96
96
|
iconColor?: string;
|
|
97
97
|
/** Pixel size of the icon in the circle. Default 24. */
|
|
98
98
|
iconSize?: number;
|
|
@@ -157,8 +157,8 @@ export interface BottomNavigationProps {
|
|
|
157
157
|
/**
|
|
158
158
|
* Corner radius of the active tab's background on the `pill`, `floating`,
|
|
159
159
|
* `solid`, `tile` and `expand` variants. `auto` (default) takes the bar's
|
|
160
|
-
* radius once one is set through `radius
|
|
161
|
-
*
|
|
160
|
+
* radius once one is set through `radius`, and stays fully round while
|
|
161
|
+
* none is. A number sets the background's own
|
|
162
162
|
* radius whatever the bar's. Capped at half the background's height, since
|
|
163
163
|
* Android squares off a larger radius, so a large number is fully round.
|
|
164
164
|
*/
|
|
@@ -170,14 +170,12 @@ export interface BottomNavigationProps {
|
|
|
170
170
|
*/
|
|
171
171
|
elevation?: BottomNavigationElevation;
|
|
172
172
|
/**
|
|
173
|
-
* Size of every tab icon in pixels. Default 18
|
|
174
|
-
* `components.bottomNavigation.iconSize`. The active pill follows it.
|
|
173
|
+
* Size of every tab icon in pixels. Default 18. The active pill follows it.
|
|
175
174
|
*/
|
|
176
175
|
iconSize?: number;
|
|
177
176
|
/**
|
|
178
177
|
* Air between the bar surface and the screen's left and right edges, in
|
|
179
|
-
* pixels, on every variant. Default 16
|
|
180
|
-
* `components.bottomNavigation.floatingMargin`.
|
|
178
|
+
* pixels, on every variant. Default 16.
|
|
181
179
|
*/
|
|
182
180
|
marginHorizontal?: number;
|
|
183
181
|
/**
|
|
@@ -185,7 +183,7 @@ export interface BottomNavigationProps {
|
|
|
185
183
|
* `floating` and `tile` capsules and 0 for a docked bar. Above zero it
|
|
186
184
|
* lifts any variant off the screen edge. Over a safe-area inset (a home
|
|
187
185
|
* indicator or Android's system buttons) the lift is the inset plus
|
|
188
|
-
* `theme.
|
|
186
|
+
* `theme.space.sm`, never less than this margin.
|
|
189
187
|
*/
|
|
190
188
|
marginVertical?: number;
|
|
191
189
|
/**
|
|
@@ -92,10 +92,10 @@ export interface BottomSheetProps {
|
|
|
92
92
|
scrollEventThrottle?: number;
|
|
93
93
|
/**
|
|
94
94
|
* @deprecated Backdrop opacity is now controlled by the theme token
|
|
95
|
-
* `colors.
|
|
95
|
+
* `colors.scrim` (alpha baked into the rgba value). Animated
|
|
96
96
|
* opacity on the backdrop was unreliable under Fabric view-flattening, so
|
|
97
97
|
* the scrim is now a static plain View. To tune dim level, override
|
|
98
|
-
* `theme.colors.
|
|
98
|
+
* `theme.colors.scrim` in your theme bridge.
|
|
99
99
|
*/
|
|
100
100
|
backdropOpacity?: number;
|
|
101
101
|
/**
|
|
@@ -1,32 +1,32 @@
|
|
|
1
1
|
import type React from "react";
|
|
2
2
|
import type { View as RNView, StyleProp, ViewProps, ViewStyle } from "react-native";
|
|
3
|
-
import type {
|
|
4
|
-
export type BackgroundToken =
|
|
3
|
+
import type { RadiusName, SpaceName, Theme } from "../../theme/types.js";
|
|
4
|
+
export type BackgroundToken = "bg" | "bg-subtle" | "bg-muted" | "surface" | "scrim" | "surface-inverse";
|
|
5
5
|
export interface BoxProps extends ViewProps {
|
|
6
6
|
/** padding (all sides) */
|
|
7
|
-
p?:
|
|
7
|
+
p?: SpaceName;
|
|
8
8
|
/** paddingHorizontal */
|
|
9
|
-
px?:
|
|
9
|
+
px?: SpaceName;
|
|
10
10
|
/** paddingVertical */
|
|
11
|
-
py?:
|
|
12
|
-
pt?:
|
|
13
|
-
pr?:
|
|
14
|
-
pb?:
|
|
15
|
-
pl?:
|
|
11
|
+
py?: SpaceName;
|
|
12
|
+
pt?: SpaceName;
|
|
13
|
+
pr?: SpaceName;
|
|
14
|
+
pb?: SpaceName;
|
|
15
|
+
pl?: SpaceName;
|
|
16
16
|
/** margin (all sides) */
|
|
17
|
-
m?:
|
|
18
|
-
mx?:
|
|
19
|
-
my?:
|
|
20
|
-
mt?:
|
|
21
|
-
mr?:
|
|
22
|
-
mb?:
|
|
23
|
-
ml?:
|
|
17
|
+
m?: SpaceName;
|
|
18
|
+
mx?: SpaceName;
|
|
19
|
+
my?: SpaceName;
|
|
20
|
+
mt?: SpaceName;
|
|
21
|
+
mr?: SpaceName;
|
|
22
|
+
mb?: SpaceName;
|
|
23
|
+
ml?: SpaceName;
|
|
24
24
|
/** Flexbox gap between children (spacing token). */
|
|
25
|
-
gap?:
|
|
26
|
-
/** Background
|
|
25
|
+
gap?: SpaceName;
|
|
26
|
+
/** Background: a colour name (bg, bg-subtle, bg-muted, surface, scrim, surface-inverse) or a raw colour string. */
|
|
27
27
|
bg?: BackgroundToken | (string & {});
|
|
28
|
-
radius?:
|
|
29
|
-
/** Draw a hairline border in `colors.border
|
|
28
|
+
radius?: RadiusName;
|
|
29
|
+
/** Draw a hairline border in `colors.border`. */
|
|
30
30
|
border?: boolean;
|
|
31
31
|
flex?: number;
|
|
32
32
|
align?: ViewStyle["alignItems"];
|
|
@@ -46,7 +46,7 @@ export type RowProps = Omit<BoxProps, "direction">;
|
|
|
46
46
|
declare const Row: React.ForwardRefExoticComponent<RowProps & React.RefAttributes<RNView>>;
|
|
47
47
|
export interface SpacerProps {
|
|
48
48
|
/** Fixed spacer of this spacing token. Omit for a flexible spacer (`flex: 1`). */
|
|
49
|
-
size?:
|
|
49
|
+
size?: SpaceName;
|
|
50
50
|
style?: StyleProp<ViewStyle>;
|
|
51
51
|
testID?: string;
|
|
52
52
|
}
|
|
@@ -13,11 +13,11 @@ import type { SlotIcon } from "../AppIcon/slotIcon.js";
|
|
|
13
13
|
* the left on press and stays. `glass` is the odd one out: a frosted white
|
|
14
14
|
* fill with a bright rim and dark ink, for a button sitting on a brand
|
|
15
15
|
* gradient or a photo, where a tone fill would fight the surface. Its
|
|
16
|
-
* colours
|
|
16
|
+
* colours are the `glass-*` tokens, the same in both schemes, and the
|
|
17
17
|
* tone only inks a badged icon.
|
|
18
18
|
*/
|
|
19
19
|
export type ButtonVariant = "solid" | "soft" | "outline" | "ghost" | "link" | "glass";
|
|
20
|
-
export type ButtonTone = "primary" | "secondary" | "success" | "warning" | "
|
|
20
|
+
export type ButtonTone = "primary" | "secondary" | "success" | "warning" | "danger" | "neutral";
|
|
21
21
|
export type ButtonSize = "xs" | "sm" | "md" | "lg" | "xl";
|
|
22
22
|
export interface ButtonProps extends Omit<PressableProps, "style" | "children"> {
|
|
23
23
|
/** The label, and the button's accessible name unless `accessibilityLabel` is set. */
|
|
@@ -65,7 +65,7 @@ export interface ButtonProps extends Omit<PressableProps, "style" | "children">
|
|
|
65
65
|
haptic?: HapticType | false;
|
|
66
66
|
rounded?: boolean;
|
|
67
67
|
/**
|
|
68
|
-
* Optional gradient background. Pass either a key from `theme.gradients`
|
|
68
|
+
* Optional gradient background. Pass either a key from `theme.settings.gradients`
|
|
69
69
|
* (e.g. `"primary"`) or a `GradientDefinition` literal.
|
|
70
70
|
*/
|
|
71
71
|
gradient?: string | GradientDefinition;
|
|
@@ -14,7 +14,7 @@ export interface CalendarMarkedDate {
|
|
|
14
14
|
kind: CalendarMarkKind;
|
|
15
15
|
/** What the day is ("Dussehra", "Casual leave"); read aloud before the kind. */
|
|
16
16
|
label?: string;
|
|
17
|
-
/** Dot colour. Default: `
|
|
17
|
+
/** Dot colour. Default: `danger` for a holiday, `primary` for an event, `warning` for pending. */
|
|
18
18
|
tone?: StatusBadgeTone;
|
|
19
19
|
}
|
|
20
20
|
/** A selection. Single mode uses `start` only; a range in progress has no `end` yet. */
|
|
@@ -19,7 +19,7 @@ export declare const buildCalendarStyles: (theme: Theme) => {
|
|
|
19
19
|
borderCurve: "continuous";
|
|
20
20
|
width: number;
|
|
21
21
|
height: number;
|
|
22
|
-
borderRadius:
|
|
22
|
+
borderRadius: number;
|
|
23
23
|
};
|
|
24
24
|
navBtnPressed: {
|
|
25
25
|
backgroundColor: string;
|
|
@@ -28,8 +28,8 @@ export declare const buildCalendarStyles: (theme: Theme) => {
|
|
|
28
28
|
opacity: number;
|
|
29
29
|
};
|
|
30
30
|
navText: {
|
|
31
|
-
fontWeight?: "normal" | "bold" | "100" | "200" | "300" | "400" | "500" | "600" | "700" | "800" | "900" | 100 | 200 | 300 | 400 | 500 | 600 | 700 | 800 | 900 | "ultralight" | "thin" | "light" | "medium" | "regular" | "semibold" | "condensedBold" | "condensed" | "heavy" | "black" | undefined | undefined;
|
|
32
31
|
fontFamily?: string | undefined | undefined;
|
|
32
|
+
fontWeight?: "normal" | "bold" | "100" | "200" | "300" | "400" | "500" | "600" | "700" | "800" | "900" | 100 | 200 | 300 | 400 | 500 | 600 | 700 | 800 | 900 | "ultralight" | "thin" | "light" | "medium" | "regular" | "semibold" | "condensedBold" | "condensed" | "heavy" | "black" | undefined | undefined;
|
|
33
33
|
fontSize: number;
|
|
34
34
|
lineHeight: number;
|
|
35
35
|
color: string;
|
|
@@ -39,8 +39,8 @@ export declare const buildCalendarStyles: (theme: Theme) => {
|
|
|
39
39
|
alignItems: "center";
|
|
40
40
|
};
|
|
41
41
|
headerLabel: {
|
|
42
|
-
fontWeight?: "normal" | "bold" | "100" | "200" | "300" | "400" | "500" | "600" | "700" | "800" | "900" | 100 | 200 | 300 | 400 | 500 | 600 | 700 | 800 | 900 | "ultralight" | "thin" | "light" | "medium" | "regular" | "semibold" | "condensedBold" | "condensed" | "heavy" | "black" | undefined | undefined;
|
|
43
42
|
fontFamily?: string | undefined | undefined;
|
|
43
|
+
fontWeight?: "normal" | "bold" | "100" | "200" | "300" | "400" | "500" | "600" | "700" | "800" | "900" | 100 | 200 | 300 | 400 | 500 | 600 | 700 | 800 | 900 | "ultralight" | "thin" | "light" | "medium" | "regular" | "semibold" | "condensedBold" | "condensed" | "heavy" | "black" | undefined | undefined;
|
|
44
44
|
fontSize: number;
|
|
45
45
|
color: string;
|
|
46
46
|
};
|
|
@@ -54,8 +54,8 @@ export declare const buildCalendarStyles: (theme: Theme) => {
|
|
|
54
54
|
paddingVertical: number;
|
|
55
55
|
};
|
|
56
56
|
weekdayText: {
|
|
57
|
-
fontWeight?: "normal" | "bold" | "100" | "200" | "300" | "400" | "500" | "600" | "700" | "800" | "900" | 100 | 200 | 300 | 400 | 500 | 600 | 700 | 800 | 900 | "ultralight" | "thin" | "light" | "medium" | "regular" | "semibold" | "condensedBold" | "condensed" | "heavy" | "black" | undefined | undefined;
|
|
58
57
|
fontFamily?: string | undefined | undefined;
|
|
58
|
+
fontWeight?: "normal" | "bold" | "100" | "200" | "300" | "400" | "500" | "600" | "700" | "800" | "900" | 100 | 200 | 300 | 400 | 500 | 600 | 700 | 800 | 900 | "ultralight" | "thin" | "light" | "medium" | "regular" | "semibold" | "condensedBold" | "condensed" | "heavy" | "black" | undefined | undefined;
|
|
59
59
|
fontSize: number;
|
|
60
60
|
color: string;
|
|
61
61
|
letterSpacing: number;
|
|
@@ -67,7 +67,7 @@ export declare const buildCalendarStyles: (theme: Theme) => {
|
|
|
67
67
|
dayCell: {
|
|
68
68
|
alignItems: "center";
|
|
69
69
|
justifyContent: "center";
|
|
70
|
-
padding:
|
|
70
|
+
padding: number;
|
|
71
71
|
};
|
|
72
72
|
barLeft: {
|
|
73
73
|
position: "absolute";
|
|
@@ -92,17 +92,17 @@ export declare const buildCalendarStyles: (theme: Theme) => {
|
|
|
92
92
|
height: "90%";
|
|
93
93
|
alignItems: "center";
|
|
94
94
|
justifyContent: "center";
|
|
95
|
-
borderRadius:
|
|
95
|
+
borderRadius: number;
|
|
96
96
|
};
|
|
97
97
|
dayEdge: {
|
|
98
98
|
backgroundColor: string;
|
|
99
99
|
};
|
|
100
100
|
dayMid: {
|
|
101
|
-
borderRadius:
|
|
101
|
+
borderRadius: number;
|
|
102
102
|
};
|
|
103
103
|
dayText: {
|
|
104
|
-
fontWeight?: "normal" | "bold" | "100" | "200" | "300" | "400" | "500" | "600" | "700" | "800" | "900" | 100 | 200 | 300 | 400 | 500 | 600 | 700 | 800 | 900 | "ultralight" | "thin" | "light" | "medium" | "regular" | "semibold" | "condensedBold" | "condensed" | "heavy" | "black" | undefined | undefined;
|
|
105
104
|
fontFamily?: string | undefined | undefined;
|
|
105
|
+
fontWeight?: "normal" | "bold" | "100" | "200" | "300" | "400" | "500" | "600" | "700" | "800" | "900" | 100 | 200 | 300 | 400 | 500 | 600 | 700 | 800 | 900 | "ultralight" | "thin" | "light" | "medium" | "regular" | "semibold" | "condensedBold" | "condensed" | "heavy" | "black" | undefined | undefined;
|
|
106
106
|
fontSize: number;
|
|
107
107
|
};
|
|
108
108
|
dayStruck: {
|
|
@@ -118,7 +118,7 @@ export declare const buildCalendarStyles: (theme: Theme) => {
|
|
|
118
118
|
borderCurve: "continuous";
|
|
119
119
|
width: number;
|
|
120
120
|
height: number;
|
|
121
|
-
borderRadius:
|
|
121
|
+
borderRadius: number;
|
|
122
122
|
};
|
|
123
123
|
};
|
|
124
124
|
export type CalendarStyles = ReturnType<typeof buildCalendarStyles>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import type { GestureResponderEvent, ImageSourcePropType, PressableProps, View as RNView, StyleProp, ViewStyle } from "react-native";
|
|
3
|
-
import type {
|
|
3
|
+
import type { GradientDefinition, ShadowName } from "../../theme/types.js";
|
|
4
4
|
import type { HapticType } from "../../utils/hapticUtils.js";
|
|
5
5
|
import type { ContextMenuConfig } from "../Menu/useContextMenu.js";
|
|
6
6
|
export type CardVariant = "elevated" | "outlined" | "filled" | "flat";
|
|
@@ -10,10 +10,12 @@ export interface CardTextAction {
|
|
|
10
10
|
onPress: () => void;
|
|
11
11
|
accessibilityLabel?: string;
|
|
12
12
|
}
|
|
13
|
-
export type CardElevation = "none" |
|
|
13
|
+
export type CardElevation = "none" | ShadowName;
|
|
14
14
|
export type CardRadius = "sm" | "md" | "lg" | "xl";
|
|
15
15
|
export type CardPadding = "none" | "sm" | "md" | "lg" | "xl";
|
|
16
|
-
|
|
16
|
+
declare const BACKGROUND_TOKENS: readonly ["bg", "bg-subtle", "bg-muted", "surface", "scrim", "surface-inverse"];
|
|
17
|
+
type CardBackgroundToken = (typeof BACKGROUND_TOKENS)[number];
|
|
18
|
+
export type CardBackground = CardBackgroundToken | (string & {});
|
|
17
19
|
export interface CardProps extends Omit<PressableProps, "style" | "children"> {
|
|
18
20
|
children?: React.ReactNode;
|
|
19
21
|
variant?: CardVariant;
|
|
@@ -22,8 +24,7 @@ export interface CardProps extends Omit<PressableProps, "style" | "children"> {
|
|
|
22
24
|
padding?: CardPadding;
|
|
23
25
|
interactive?: boolean;
|
|
24
26
|
/**
|
|
25
|
-
* Background colour: a
|
|
26
|
-
* string. Applies on every variant and replaces the variant's default
|
|
27
|
+
* Background colour: a background colour name (`bg`, `bg-subtle`, `bg-muted`, `surface`, `scrim`, `surface-inverse`) or any raw colour string. Applies on every variant and replaces the variant's default
|
|
27
28
|
* surface colour; `style` / `containerStyle` still win over it.
|
|
28
29
|
*/
|
|
29
30
|
bg?: CardBackground;
|
|
@@ -64,7 +65,7 @@ export interface CardProps extends Omit<PressableProps, "style" | "children"> {
|
|
|
64
65
|
*/
|
|
65
66
|
loading?: boolean;
|
|
66
67
|
/**
|
|
67
|
-
* Optional gradient background. Pass a key from `theme.gradients` or a
|
|
68
|
+
* Optional gradient background. Pass a key from `theme.settings.gradients` or a
|
|
68
69
|
* literal `GradientDefinition`. Layered behind the card's content so
|
|
69
70
|
* existing variant/elevation/radius continue to work.
|
|
70
71
|
*/
|
|
@@ -2,7 +2,7 @@ import type React from "react";
|
|
|
2
2
|
import type { PressableProps, View as RNView, StyleProp, TextStyle, ViewStyle } from "react-native";
|
|
3
3
|
import type { HapticType } from "../../utils/hapticUtils.js";
|
|
4
4
|
export type CheckboxSize = "sm" | "md" | "lg";
|
|
5
|
-
export type CheckboxTone = "primary" | "success" | "warning" | "
|
|
5
|
+
export type CheckboxTone = "primary" | "success" | "warning" | "danger";
|
|
6
6
|
export interface CheckboxProps extends Omit<PressableProps, "style" | "children" | "onPress"> {
|
|
7
7
|
checked?: boolean;
|
|
8
8
|
defaultChecked?: boolean;
|
|
@@ -9,7 +9,7 @@ import type { SlotIcon } from "../AppIcon/slotIcon.js";
|
|
|
9
9
|
* IconButton draw as `soft`).
|
|
10
10
|
*/
|
|
11
11
|
export type ChipVariant = "filled" | "outlined" | "soft";
|
|
12
|
-
export type ChipTone = "primary" | "neutral" | "success" | "warning" | "
|
|
12
|
+
export type ChipTone = "primary" | "neutral" | "success" | "warning" | "danger" | "info";
|
|
13
13
|
export type ChipSize = "sm" | "md";
|
|
14
14
|
export type ChipSelectionMode = "single" | "multiple" | "radio";
|
|
15
15
|
export interface ChipProps {
|
|
@@ -89,7 +89,7 @@ interface BaseChoiceGroupProps<T = ChoiceOption> {
|
|
|
89
89
|
indicatorPosition?: ChoiceGroupIndicatorPosition;
|
|
90
90
|
/** Main axis of the option list. Default `'row'`. */
|
|
91
91
|
direction?: ChoiceGroupDirection;
|
|
92
|
-
/** Gap between options. Default `theme.
|
|
92
|
+
/** Gap between options. Default `theme.space.sm`. */
|
|
93
93
|
gap?: number;
|
|
94
94
|
/** Allow options to wrap onto multiple lines (swatch grids). Default `false`. */
|
|
95
95
|
wrap?: boolean;
|
|
@@ -1,8 +1,8 @@
|
|
|
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.js";
|
|
4
|
-
export type DialogVariant = "default" | "success" | "warning" | "
|
|
5
|
-
export type DialogActionTone = "primary" | "neutral" | "info" | "
|
|
4
|
+
export type DialogVariant = "default" | "success" | "warning" | "danger" | "info";
|
|
5
|
+
export type DialogActionTone = "primary" | "neutral" | "info" | "danger";
|
|
6
6
|
export interface DialogAction {
|
|
7
7
|
label: string;
|
|
8
8
|
onPress: () => void;
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* One glyph for Select, InlineSelect, PickerTrigger and PhoneNumberInput so
|
|
5
5
|
* the indicator never drifts between trigger components. It is the design
|
|
6
6
|
* system's line chevron (AppIcon `chevron-down`), reached through the icon
|
|
7
|
-
* registry so an app can swap it with `theme.icons.chevronDown`; it used to
|
|
7
|
+
* registry so an app can swap it with `theme.settings.icons.chevronDown`; it used to
|
|
8
8
|
* be a filled triangle drawn with view borders. Pass `open` to get the 180°
|
|
9
9
|
* rotate-on-open animation; omit it for a static chevron.
|
|
10
10
|
*/
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
* props or via theme tokens — never accidental drift.
|
|
10
10
|
*
|
|
11
11
|
* Responsibilities:
|
|
12
|
-
* - Resolve size
|
|
12
|
+
* - Resolve size dimensions from `theme.components.field`.
|
|
13
13
|
* - Animate the border + background between idle / focused / error.
|
|
14
14
|
* - Render leading + trailing slots either side of `children`.
|
|
15
15
|
* - Become Pressable when `onPress` is set (Select, PickerTrigger).
|
|
@@ -24,9 +24,10 @@
|
|
|
24
24
|
import type React from "react";
|
|
25
25
|
import type { AccessibilityRole, AccessibilityState, StyleProp, TextStyle, ViewStyle } from "react-native";
|
|
26
26
|
import { Animated } from "react-native";
|
|
27
|
-
import type {
|
|
27
|
+
import type { Theme } from "../../theme/types.js";
|
|
28
28
|
export type FieldBaseSize = "sm" | "md" | "lg";
|
|
29
29
|
export type FieldBaseVariant = "outlined" | "filled" | "underline";
|
|
30
|
+
type FieldSide = "top" | "right" | "bottom" | "left";
|
|
30
31
|
/**
|
|
31
32
|
* Pick the most "representative" side colour from a 4-side record. Used by
|
|
32
33
|
* consumers (Input's selectionColor, focus rings, etc.) that need a single
|
|
@@ -40,7 +41,7 @@ export interface FieldBaseProps {
|
|
|
40
41
|
size?: FieldBaseSize;
|
|
41
42
|
/**
|
|
42
43
|
* Controls the resting fill + border treatment. Override the theme default
|
|
43
|
-
* (`theme.components.field.defaultVariant`) via this prop. Default `'outlined'`.
|
|
44
|
+
* (`theme.settings.components.field.defaultVariant`) via this prop. Default `'outlined'`.
|
|
44
45
|
*/
|
|
45
46
|
variant?: FieldBaseVariant;
|
|
46
47
|
/** Parent-controlled focus state — drives the border + fill animation. */
|
|
@@ -124,7 +125,7 @@ export interface FieldBaseProps {
|
|
|
124
125
|
borderBottomLeftRadius?: number;
|
|
125
126
|
/** Bottom-right corner radius. Wins over `borderRadius`. */
|
|
126
127
|
borderBottomRightRadius?: number;
|
|
127
|
-
/** Override border width (shorthand — all four sides). OTP uses 1.5; everything else inherits `
|
|
128
|
+
/** Override border width (shorthand — all four sides). OTP uses 1.5; everything else inherits `size.border`. */
|
|
128
129
|
borderWidth?: number;
|
|
129
130
|
/** Top border width. Wins over `borderWidth`. */
|
|
130
131
|
borderTopWidth?: number;
|
|
@@ -134,9 +135,8 @@ export interface FieldBaseProps {
|
|
|
134
135
|
borderBottomWidth?: number;
|
|
135
136
|
/** Left border width. Wins over `borderWidth`. */
|
|
136
137
|
borderLeftWidth?: number;
|
|
137
|
-
/** Gap between leading / children / trailing. Defaults to `theme.
|
|
138
|
+
/** Gap between leading / children / trailing. Defaults to `theme.space.md` (the spec's 12px). */
|
|
138
139
|
gap?: number;
|
|
139
|
-
fillOverrides?: Partial<FieldVariantTokens>;
|
|
140
140
|
style?: StyleProp<ViewStyle>;
|
|
141
141
|
testID?: string;
|
|
142
142
|
accessibilityRole?: AccessibilityRole;
|
|
@@ -165,18 +165,17 @@ export interface FieldTextStyle {
|
|
|
165
165
|
weightStyle: Pick<TextStyle, "fontFamily" | "fontWeight">;
|
|
166
166
|
}
|
|
167
167
|
/**
|
|
168
|
-
* Resolve the canonical text style chunk for a field's value. Reads
|
|
169
|
-
* `
|
|
170
|
-
*
|
|
171
|
-
* `typography.fontFamily` apply via the shared `fontFor` helper.
|
|
168
|
+
* Resolve the canonical text style chunk for a field's value. Reads the field
|
|
169
|
+
* colours from the theme and the face through the shared `fontFor` helper, so
|
|
170
|
+
* every field component renders the same value and placeholder ink.
|
|
172
171
|
*/
|
|
173
172
|
export declare const resolveFieldTextStyle: (theme: Theme, options?: FieldTextStyleResolverOptions) => FieldTextStyle;
|
|
174
173
|
/**
|
|
175
174
|
* The required-field marker appended to a field's label. Single source of
|
|
176
175
|
* truth for the whole field family (Input, Select, FormField, PickerTrigger →
|
|
177
|
-
* Date/Time/DateRange pickers).
|
|
178
|
-
* `
|
|
179
|
-
*
|
|
176
|
+
* Date/Time/DateRange pickers). Its text is `theme.settings.components.field.requiredMarker`
|
|
177
|
+
* (default `*`) in `colors["danger-text"]`; font family / weight / size are
|
|
178
|
+
* inherited from the parent label `<Text>`.
|
|
180
179
|
*/
|
|
181
180
|
export declare const RequiredMark: React.FC;
|
|
182
181
|
/**
|
|
@@ -200,9 +199,9 @@ export declare const RequiredPlaceholder: React.FC<{
|
|
|
200
199
|
}>;
|
|
201
200
|
/**
|
|
202
201
|
* The circled-exclamation glyph that leads a field's error message. Uses the
|
|
203
|
-
* theme's `icons.error` renderer when one is registered; otherwise
|
|
204
|
-
* ring-and-bang from views so the message never renders bare. Shared
|
|
205
|
-
* every field component that shows an error line (Input, Select, FormField,
|
|
202
|
+
* theme's `settings.icons.error` renderer when one is registered; otherwise
|
|
203
|
+
* draws a ring-and-bang from views so the message never renders bare. Shared
|
|
204
|
+
* by every field component that shows an error line (Input, Select, FormField,
|
|
206
205
|
* the pickers) so the message row reads identically across the family.
|
|
207
206
|
*/
|
|
208
207
|
export declare const FieldErrorGlyph: React.FC<{
|
|
@@ -223,8 +222,8 @@ export declare const hasFieldText: (value: React.ReactNode) => boolean;
|
|
|
223
222
|
*/
|
|
224
223
|
export declare const fieldTextAsString: (value: React.ReactNode) => string | undefined;
|
|
225
224
|
/**
|
|
226
|
-
* The static label above a field, per the design spec: `field
|
|
227
|
-
* the size ladder's `
|
|
225
|
+
* The static label above a field, per the design spec: `field-label` ink,
|
|
226
|
+
* the size ladder's `label-text` size, semibold, `label-gap` below. It stays on
|
|
228
227
|
* that ink through focus and error (the ring and the message row carry the
|
|
229
228
|
* error). Shared by Input, Select, PickerTrigger, NumberInput. The label may
|
|
230
229
|
* be a string or a node, and `help` (a glossary button, say) is drawn right
|
|
@@ -237,15 +236,15 @@ export declare const FieldLabel: React.FC<{
|
|
|
237
236
|
required?: boolean;
|
|
238
237
|
/** Drawn beside the label, after the required marker. */
|
|
239
238
|
help?: React.ReactNode;
|
|
240
|
-
/** Label ink; defaults to `colors
|
|
239
|
+
/** Label ink; defaults to `colors["field-label"]`. */
|
|
241
240
|
color?: string;
|
|
242
241
|
style?: StyleProp<TextStyle>;
|
|
243
242
|
}>;
|
|
244
243
|
/**
|
|
245
|
-
* The helper / error line under a field:
|
|
246
|
-
* from the box, `field
|
|
247
|
-
* `error`, `text
|
|
248
|
-
* Renders nothing without text.
|
|
244
|
+
* The helper / error line under a field: the `message-text` size and
|
|
245
|
+
* `message-gap` from the box, `field-message` red with the circled-exclamation
|
|
246
|
+
* glyph when `error`, `text-muted` otherwise. The text may be a string or a
|
|
247
|
+
* node. Renders nothing without text.
|
|
249
248
|
*/
|
|
250
249
|
export declare const FieldMessage: React.FC<{
|
|
251
250
|
text?: React.ReactNode;
|
|
@@ -254,12 +253,12 @@ export declare const FieldMessage: React.FC<{
|
|
|
254
253
|
style?: StyleProp<TextStyle>;
|
|
255
254
|
}>;
|
|
256
255
|
/**
|
|
257
|
-
* Strict, fully-resolved colour set used internally.
|
|
258
|
-
*
|
|
259
|
-
*
|
|
260
|
-
*
|
|
261
|
-
*
|
|
262
|
-
*
|
|
256
|
+
* Strict, fully-resolved colour set used internally. Every border colour /
|
|
257
|
+
* width is expanded to a 4-side record by the time the box renders, so the
|
|
258
|
+
* animation pipeline can treat per-side and shorthand the same way.
|
|
259
|
+
* `borderFocusedRepresentative` is a single colour pulled from the focused
|
|
260
|
+
* sides — exposed for consumers (Input's selectionColor) that need to mirror
|
|
261
|
+
* the visible focus indicator without re-resolving per side.
|
|
263
262
|
*/
|
|
264
263
|
interface ResolvedFieldColors {
|
|
265
264
|
backgroundIdleEmpty: string;
|
|
@@ -279,11 +278,11 @@ interface ResolvedFieldColors {
|
|
|
279
278
|
}
|
|
280
279
|
/**
|
|
281
280
|
* Resolve the full set of state-aware fill + border colours for a given
|
|
282
|
-
* variant
|
|
283
|
-
*
|
|
284
|
-
*
|
|
281
|
+
* variant, from the field colour names. Border colour + width are normalized
|
|
282
|
+
* to per-side records here; callers that need a single colour read
|
|
283
|
+
* `borderFocusedRepresentative`.
|
|
285
284
|
*/
|
|
286
|
-
export declare const resolveVariantColors: (theme: Theme, variant: FieldBaseVariant
|
|
285
|
+
export declare const resolveVariantColors: (theme: Theme, variant: FieldBaseVariant) => ResolvedFieldColors;
|
|
287
286
|
export declare const FieldBase: React.FC<FieldBaseProps>;
|
|
288
287
|
export default FieldBase;
|
|
289
288
|
//# sourceMappingURL=FieldBase.d.ts.map
|
|
@@ -15,8 +15,7 @@
|
|
|
15
15
|
*/
|
|
16
16
|
import type React from "react";
|
|
17
17
|
import type { StyleProp, TextStyle } from "react-native";
|
|
18
|
-
import { type
|
|
19
|
-
import type { FieldSizeTokens } from "../../theme/types.js";
|
|
18
|
+
import { type resolveFieldSize } from "../../theme/index.js";
|
|
20
19
|
import type { FieldBaseProps, FieldBaseVariant } from "./FieldBase.js";
|
|
21
20
|
/** The floated label's scale; the outlined notch is sized from it. */
|
|
22
21
|
export declare const FLOATED_LABEL_SCALE = 0.85;
|
|
@@ -29,7 +28,7 @@ export interface UseFloatingLabelOptions {
|
|
|
29
28
|
floated: boolean;
|
|
30
29
|
required?: boolean;
|
|
31
30
|
variant: FieldBaseVariant;
|
|
32
|
-
sizeTokens:
|
|
31
|
+
sizeTokens: ReturnType<typeof resolveFieldSize>;
|
|
33
32
|
/** Where the text starts past the leading slot (icon, gaps, divider), px. */
|
|
34
33
|
leadingOffset: number;
|
|
35
34
|
/** Width the trailing slot takes, for a right-aligned label, px. */
|
|
@@ -2,10 +2,10 @@ import React from "react";
|
|
|
2
2
|
import type { View as RNView, StyleProp, ViewStyle } from "react-native";
|
|
3
3
|
import type { HapticType } from "../../utils/hapticUtils.js";
|
|
4
4
|
export type FloatingActionButtonSize = "sm" | "md" | "lg";
|
|
5
|
-
export type FloatingActionButtonTone = "primary" | "success" | "warning" | "
|
|
5
|
+
export type FloatingActionButtonTone = "primary" | "success" | "warning" | "danger" | "neutral";
|
|
6
6
|
export type FloatingActionButtonPosition = "bottomRight" | "bottomLeft" | "bottomCenter";
|
|
7
7
|
export interface FloatingActionButtonProps {
|
|
8
|
-
/** JSX element for the icon. The FAB sizes it
|
|
8
|
+
/** JSX element for the icon. The FAB sizes it with the size's `icon` token. */
|
|
9
9
|
icon: React.ReactNode;
|
|
10
10
|
onPress: () => void;
|
|
11
11
|
/** Text beside the icon; makes the button extended (a pill). */
|
|
@@ -18,9 +18,8 @@ export interface FormFieldProps {
|
|
|
18
18
|
*/
|
|
19
19
|
error?: React.ReactNode;
|
|
20
20
|
/**
|
|
21
|
-
* Appends the required marker to the label. Marker text
|
|
22
|
-
* `theme.components.field.
|
|
23
|
-
* `'*'` in `colors.error`).
|
|
21
|
+
* Appends the required marker to the label. Marker text comes from
|
|
22
|
+
* `theme.settings.components.field.requiredMarker` (default `'*'` in `colors.danger`).
|
|
24
23
|
*/
|
|
25
24
|
required?: boolean;
|
|
26
25
|
/**
|
|
@@ -2,7 +2,7 @@ import type { View as RNView, StyleProp, ViewStyle } from "react-native";
|
|
|
2
2
|
import type { IconVariant } from "../AppIcon/AppIcon.js";
|
|
3
3
|
import type { SlotIcon } from "../AppIcon/slotIcon.js";
|
|
4
4
|
export type IconBadgeSize = "sm" | "md" | "lg";
|
|
5
|
-
export type IconBadgeTone = "primary" | "secondary" | "success" | "warning" | "
|
|
5
|
+
export type IconBadgeTone = "primary" | "secondary" | "success" | "warning" | "danger" | "info" | "neutral";
|
|
6
6
|
export interface IconBadgeProps {
|
|
7
7
|
/**
|
|
8
8
|
* The icon: an AppIcon name (`icon="shield-tick"`), `{ name, variant }`, a
|
|
@@ -2,11 +2,11 @@ import type { GestureResponderEvent, View as RNView, StyleProp, ViewStyle } from
|
|
|
2
2
|
import type { HapticType } from "../../utils/index.js";
|
|
3
3
|
import type { IconVariant } from "../AppIcon/AppIcon.js";
|
|
4
4
|
import type { SlotIcon } from "../AppIcon/slotIcon.js";
|
|
5
|
-
export type IconButtonTone = "primary" | "secondary" | "success" | "warning" | "
|
|
5
|
+
export type IconButtonTone = "primary" | "secondary" | "success" | "warning" | "danger" | "neutral";
|
|
6
6
|
/**
|
|
7
7
|
* `glass` is a frosted white fill with a bright rim and dark ink, for a
|
|
8
8
|
* button over a brand gradient or a photo (a back button on a hero). Its
|
|
9
|
-
* colours are `
|
|
9
|
+
* colours are the glass colours (`glass-fill`, `glass-border`, `on-glass`), the same in both schemes; the tone is
|
|
10
10
|
* unused unless `active` forces the solid fill.
|
|
11
11
|
*/
|
|
12
12
|
export type IconButtonVariant = "solid" | "soft" | "outline" | "ghost" | "glass";
|
|
@@ -68,9 +68,8 @@ export interface InlineSelectProps<T = SelectOption> {
|
|
|
68
68
|
*/
|
|
69
69
|
size?: InlineSelectSize;
|
|
70
70
|
/**
|
|
71
|
-
* Trigger text
|
|
72
|
-
* `
|
|
73
|
-
* (`text.disabled` when disabled).
|
|
71
|
+
* Trigger text and chevron colour. Resolution: prop, then `colors.primary`
|
|
72
|
+
* (`text-disabled` when disabled).
|
|
74
73
|
*/
|
|
75
74
|
color?: string;
|
|
76
75
|
/** Chevron colour override — falls back to `color`'s resolution. */
|
|
@@ -21,7 +21,7 @@ export type InputKeyboardType = "default" | "email-address" | "numeric" | "phone
|
|
|
21
21
|
export interface InputSlotState extends SlotIconState {
|
|
22
22
|
focused: boolean;
|
|
23
23
|
error: boolean;
|
|
24
|
-
/** The field palette's icon colour for this state (`
|
|
24
|
+
/** The field palette's icon colour for this state (`field-icon`, `field-icon-focus`, `field-icon-disabled`). */
|
|
25
25
|
color: string;
|
|
26
26
|
/** The size ladder's icon size for the field's `size`. */
|
|
27
27
|
size: number;
|
|
@@ -133,7 +133,7 @@ export interface InputProps extends Omit<TextInputProps, "style"> {
|
|
|
133
133
|
* - `'float'`: Material-Design floating label that animates from inside the
|
|
134
134
|
* field to the top border on focus / when there's a value.
|
|
135
135
|
*
|
|
136
|
-
* Theme
|
|
136
|
+
* Theme setting: `theme.settings.components.input.defaultLabelMode`.
|
|
137
137
|
*/
|
|
138
138
|
labelMode?: InputLabelMode;
|
|
139
139
|
required?: boolean;
|
|
@@ -25,7 +25,7 @@ export interface NotationProps {
|
|
|
25
25
|
desc?: string;
|
|
26
26
|
/**
|
|
27
27
|
* Subscript ink. Inside a field's or choice's label or message line it defaults to that line's
|
|
28
|
-
* ink, elsewhere to `colors
|
|
28
|
+
* ink, elsewhere to `colors["text-body"]`; pass the parent's colour when it differs.
|
|
29
29
|
*/
|
|
30
30
|
color?: string;
|
|
31
31
|
testID?: string;
|