@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 type React from "react";
|
|
2
|
-
import type { TextStyle
|
|
3
|
-
import type {
|
|
4
|
-
export type ColorMode = "
|
|
2
|
+
import type { TextStyle } from "react-native";
|
|
3
|
+
import type { ColorName, FontFaces, FontName, LetterSpacingName, RadiusName, TextName, TokenSet, WeightName } from "./tokens.generated.js";
|
|
4
|
+
export type ColorMode = TokenSet["mode"];
|
|
5
5
|
/**
|
|
6
6
|
* A linear gradient definition used by Button, Card and consumer components.
|
|
7
7
|
* `colors` must have at least 2 entries. `start`/`end` are unit vectors in a
|
|
@@ -20,7 +20,7 @@ export interface GradientDefinition {
|
|
|
20
20
|
};
|
|
21
21
|
}
|
|
22
22
|
export interface GradientScale {
|
|
23
|
-
/** Brand-primary gradient
|
|
23
|
+
/** Brand-primary gradient: used by `Button gradient` and `Card gradient="primary"`. */
|
|
24
24
|
primary?: GradientDefinition;
|
|
25
25
|
/** Secondary brand gradient. */
|
|
26
26
|
secondary?: GradientDefinition;
|
|
@@ -29,298 +29,10 @@ export interface GradientScale {
|
|
|
29
29
|
/** Free-form named gradients. Consumer extends as needed. */
|
|
30
30
|
[key: string]: GradientDefinition | undefined;
|
|
31
31
|
}
|
|
32
|
-
export
|
|
33
|
-
primary: string;
|
|
34
|
-
primaryHover: string;
|
|
35
|
-
primaryPressed: string;
|
|
36
|
-
primaryMuted: string;
|
|
37
|
-
secondary: string;
|
|
38
|
-
secondaryHover: string;
|
|
39
|
-
success: string;
|
|
40
|
-
warning: string;
|
|
41
|
-
error: string;
|
|
42
|
-
info: string;
|
|
43
|
-
/**
|
|
44
|
-
* Foreground (text/icon) colour to render ON a solid fill of each semantic
|
|
45
|
-
* tone. Solid Button / Badge / Chip / Banner backgrounds read these instead
|
|
46
|
-
* of assuming `text.inverse` (white) — white-on-pale (notably `warning`
|
|
47
|
-
* amber) fails contrast. Library defaults use white on the light scheme's
|
|
48
|
-
* primary/success/error/info and dark ink on `warning` and on every dark
|
|
49
|
-
* scheme tone, each pair at 4.5:1 or more, and `text.primary` for the
|
|
50
|
-
* surface-like `secondary` tone. A brand that overrides a tone colour (or
|
|
51
|
-
* its `on*` ink) gets the FILL moved, in its own hue, until the pair reads
|
|
52
|
-
* at 4.5:1 (`mergeTheme`); override per-brand to match your palette's
|
|
53
|
-
* luminance.
|
|
54
|
-
*/
|
|
55
|
-
onPrimary: string;
|
|
56
|
-
/** Text and icons on a filled neutral surface. */
|
|
57
|
-
onNeutral: string;
|
|
58
|
-
onSecondary: string;
|
|
59
|
-
onSuccess: string;
|
|
60
|
-
onWarning: string;
|
|
61
|
-
onError: string;
|
|
62
|
-
onInfo: string;
|
|
63
|
-
/** Ink on a scrim (`background.overlay`), which is dark in both schemes. */
|
|
64
|
-
onOverlay: string;
|
|
65
|
-
/**
|
|
66
|
-
* Each tone as TEXT, on the page surfaces and on that tone's own soft tint
|
|
67
|
-
* (14% of the tone). The tone colours above are fills: `warning` amber and
|
|
68
|
-
* `success` green sit near 2:1 as small text on a light page. These hold
|
|
69
|
-
* 4.5:1 against every `background.*` and the soft tint in both schemes, in
|
|
70
|
-
* the tone's own hue. Every component that draws a tone as text (soft and
|
|
71
|
-
* outline `StatusBadge`, `Banner`, `Chip`, `Button` soft / outline / ghost
|
|
72
|
-
* labels, `Avatar` initials on a tint, a field's required marker, the
|
|
73
|
-
* `FormField` hint and `ErrorBoundary` text) reads them. A brand that
|
|
74
|
-
* overrides a tone colour overrides its ink too.
|
|
75
|
-
*/
|
|
76
|
-
toneText: {
|
|
77
|
-
primary: string;
|
|
78
|
-
success: string;
|
|
79
|
-
warning: string;
|
|
80
|
-
error: string;
|
|
81
|
-
info: string;
|
|
82
|
-
};
|
|
83
|
-
text: {
|
|
84
|
-
primary: string;
|
|
85
|
-
secondary: string;
|
|
86
|
-
tertiary: string;
|
|
87
|
-
inverse: string;
|
|
88
|
-
/** Emphasis ink for labels and lead-in lines that sit above body text. */
|
|
89
|
-
strong: string;
|
|
90
|
-
disabled: string;
|
|
91
|
-
link: string;
|
|
92
|
-
};
|
|
93
|
-
background: {
|
|
94
|
-
primary: string;
|
|
95
|
-
secondary: string;
|
|
96
|
-
tertiary: string;
|
|
97
|
-
elevated: string;
|
|
98
|
-
overlay: string;
|
|
99
|
-
inverse: string;
|
|
100
|
-
};
|
|
101
|
-
border: {
|
|
102
|
-
primary: string;
|
|
103
|
-
secondary: string;
|
|
104
|
-
focus: string;
|
|
105
|
-
error: string;
|
|
106
|
-
/**
|
|
107
|
-
* Global outline thickness shared by every input-style control —
|
|
108
|
-
* Input, SearchBar, Select, OTPInput, Checkbox, Radio, outlined Card,
|
|
109
|
-
* outline Chip, Avatar border, outline Button, etc. Library default: 1.5.
|
|
110
|
-
* Component-specific tokens (e.g. `theme.components.input.borderWidth`)
|
|
111
|
-
* still win when set.
|
|
112
|
-
*/
|
|
113
|
-
width: number;
|
|
114
|
-
};
|
|
115
|
-
/**
|
|
116
|
-
* The field family's own palette — Input, Select, SearchBar, NumberInput,
|
|
117
|
-
* PhoneNumberInput, the picker triggers: everything that composes
|
|
118
|
-
* FieldBase. Kept apart from the brand tones because a field's resting fill,
|
|
119
|
-
* hairline border and focus ring are a quieter set than `primary` /
|
|
120
|
-
* `border.focus` (the design spec draws the focus ring in a soft blue while
|
|
121
|
-
* buttons stay on the brand colour). Each key names the state it paints.
|
|
122
|
-
*/
|
|
123
|
-
field: {
|
|
124
|
-
/** Resting fill (idle, empty or filled alike). */
|
|
125
|
-
background: string;
|
|
126
|
-
/** Fill while focused. */
|
|
127
|
-
backgroundFocused: string;
|
|
128
|
-
/** Fill while disabled. */
|
|
129
|
-
backgroundDisabled: string;
|
|
130
|
-
/** Resting hairline border (outlined box, underline rule, leading-icon divider). */
|
|
131
|
-
border: string;
|
|
132
|
-
/** Border while focused. */
|
|
133
|
-
borderFocused: string;
|
|
134
|
-
/** Border while in error. */
|
|
135
|
-
borderError: string;
|
|
136
|
-
/** Static label above the field. Stays put across focus/error. */
|
|
137
|
-
label: string;
|
|
138
|
-
/** Typed value. */
|
|
139
|
-
text: string;
|
|
140
|
-
/** Typed value while disabled; the spec dims it to the disabled placeholder ink. */
|
|
141
|
-
textDisabled: string;
|
|
142
|
-
/** Placeholder while enabled. */
|
|
143
|
-
placeholder: string;
|
|
144
|
-
/** Placeholder while disabled. */
|
|
145
|
-
placeholderDisabled: string;
|
|
146
|
-
/** Leading / trailing icon while idle. */
|
|
147
|
-
icon: string;
|
|
148
|
-
/** Leading / trailing icon while focused. */
|
|
149
|
-
iconFocused: string;
|
|
150
|
-
/** Leading / trailing icon while disabled. */
|
|
151
|
-
iconDisabled: string;
|
|
152
|
-
/** Caret and text-selection tint. */
|
|
153
|
-
caret: string;
|
|
154
|
-
/** Error message text and its glyph below the field. */
|
|
155
|
-
message: string;
|
|
156
|
-
};
|
|
157
|
-
surface: {
|
|
158
|
-
pressed: string;
|
|
159
|
-
hovered: string;
|
|
160
|
-
selected: string;
|
|
161
|
-
disabled: string;
|
|
162
|
-
};
|
|
163
|
-
/**
|
|
164
|
-
* A frosted control on a coloured or gradient surface: the `glass` variant
|
|
165
|
-
* of Button and IconButton (a "Switch" pill on a brand-colour card, a back
|
|
166
|
-
* button over a hero image). The surface under it is the brand colour in
|
|
167
|
-
* both colour schemes, so unlike every other group these values are the
|
|
168
|
-
* SAME in the light and dark themes. Bound to `text.inverse` they would
|
|
169
|
-
* flip with the scheme and put near-white ink on a pale fill in dark mode.
|
|
170
|
-
* A brand whose gradients are pale overrides the group.
|
|
171
|
-
*/
|
|
172
|
-
glass: {
|
|
173
|
-
/** Translucent white fill; the surface shows through it. */
|
|
174
|
-
fill: string;
|
|
175
|
-
/** Specular rim, a step brighter than the fill, so the box has an edge. */
|
|
176
|
-
border: string;
|
|
177
|
-
/** Label and icon ink on the fill. */
|
|
178
|
-
on: string;
|
|
179
|
-
/** Opaque disc behind a badged slot icon (`Button leftIconBadge`). */
|
|
180
|
-
badge: string;
|
|
181
|
-
};
|
|
182
|
-
skeleton: {
|
|
183
|
-
background: string;
|
|
184
|
-
highlight: string;
|
|
185
|
-
};
|
|
186
|
-
/**
|
|
187
|
-
* Fixed hue set Avatar hashes a user's name against to pick an initials
|
|
188
|
-
* background — same index always resolves to the same colour for a given
|
|
189
|
-
* name. Light/dark themes each tune the 8 hues for contrast against their
|
|
190
|
-
* own surface; the hues themselves stay recognisably paired across modes.
|
|
191
|
-
*/
|
|
192
|
-
avatarPalette: readonly string[];
|
|
193
|
-
}
|
|
194
|
-
export interface FontFamilyScale {
|
|
195
|
-
/** Font family for normal-weight text. Falls back to platform system font when undefined. */
|
|
196
|
-
regular?: string;
|
|
197
|
-
medium?: string;
|
|
198
|
-
semibold?: string;
|
|
199
|
-
bold?: string;
|
|
200
|
-
/**
|
|
201
|
-
* The title face (a serif, say). The built-in `display`, `h1`, `h2` and
|
|
202
|
-
* `title` `Text` variants, and a registered variant with
|
|
203
|
-
* `fontFamily: 'display'`, draw in it; when unset they use the weight faces
|
|
204
|
-
* above. It is one face: the variant's weight is not sent alongside it, so
|
|
205
|
-
* register the weight you want as this face.
|
|
206
|
-
*/
|
|
207
|
-
display?: string;
|
|
208
|
-
}
|
|
209
|
-
export interface TypographyScale {
|
|
210
|
-
fontSize: {
|
|
211
|
-
xs: number;
|
|
212
|
-
sm: number;
|
|
213
|
-
base: number;
|
|
214
|
-
lg: number;
|
|
215
|
-
xl: number;
|
|
216
|
-
"2xl": number;
|
|
217
|
-
"3xl": number;
|
|
218
|
-
"4xl": number;
|
|
219
|
-
};
|
|
220
|
-
fontWeight: {
|
|
221
|
-
normal: TextStyle["fontWeight"];
|
|
222
|
-
medium: TextStyle["fontWeight"];
|
|
223
|
-
semibold: TextStyle["fontWeight"];
|
|
224
|
-
bold: TextStyle["fontWeight"];
|
|
225
|
-
};
|
|
226
|
-
/**
|
|
227
|
-
* Optional brand font families. When set, library text components prefer
|
|
228
|
-
* `fontFamily.<weight>` over `fontWeight.<weight>` to match the consumer
|
|
229
|
-
* app's typeface. Each key is independently optional — leave undefined to
|
|
230
|
-
* fall back to the system font for that weight.
|
|
231
|
-
*/
|
|
232
|
-
fontFamily?: FontFamilyScale;
|
|
233
|
-
lineHeight: {
|
|
234
|
-
tight: number;
|
|
235
|
-
normal: number;
|
|
236
|
-
relaxed: number;
|
|
237
|
-
};
|
|
238
|
-
letterSpacing: {
|
|
239
|
-
tight: number;
|
|
240
|
-
normal: number;
|
|
241
|
-
wide: number;
|
|
242
|
-
};
|
|
243
|
-
}
|
|
244
|
-
export interface SpacingScale {
|
|
245
|
-
none: 0;
|
|
246
|
-
xxs: number;
|
|
247
|
-
xs: number;
|
|
248
|
-
sm: number;
|
|
249
|
-
md: number;
|
|
250
|
-
lg: number;
|
|
251
|
-
xl: number;
|
|
252
|
-
"2xl": number;
|
|
253
|
-
"3xl": number;
|
|
254
|
-
"4xl": number;
|
|
255
|
-
}
|
|
256
|
-
export interface RadiusScale {
|
|
257
|
-
none: 0;
|
|
258
|
-
sm: number;
|
|
259
|
-
md: number;
|
|
260
|
-
lg: number;
|
|
261
|
-
xl: number;
|
|
262
|
-
pill: 9999;
|
|
263
|
-
}
|
|
264
|
-
export type SpacingKey = keyof SpacingScale;
|
|
265
|
-
export type FontSizeKey = keyof TypographyScale["fontSize"];
|
|
266
|
-
export type RadiusKey = keyof RadiusScale;
|
|
267
|
-
export interface ShadowDefinition {
|
|
268
|
-
shadowColor: string;
|
|
269
|
-
shadowOffset: {
|
|
270
|
-
width: number;
|
|
271
|
-
height: number;
|
|
272
|
-
};
|
|
273
|
-
shadowOpacity: number;
|
|
274
|
-
shadowRadius: number;
|
|
275
|
-
elevation: number;
|
|
276
|
-
}
|
|
277
|
-
export interface ShadowScale {
|
|
278
|
-
none: ViewStyle;
|
|
279
|
-
xs: ShadowDefinition;
|
|
280
|
-
sm: ShadowDefinition;
|
|
281
|
-
md: ShadowDefinition;
|
|
282
|
-
lg: ShadowDefinition;
|
|
283
|
-
xl: ShadowDefinition;
|
|
284
|
-
"2xl": ShadowDefinition;
|
|
285
|
-
}
|
|
286
|
-
export interface MotionScale {
|
|
287
|
-
duration: {
|
|
288
|
-
instant: number;
|
|
289
|
-
fast: number;
|
|
290
|
-
normal: number;
|
|
291
|
-
slow: number;
|
|
292
|
-
slower: number;
|
|
293
|
-
};
|
|
294
|
-
easing: {
|
|
295
|
-
standard: readonly [number, number, number, number];
|
|
296
|
-
accelerate: readonly [number, number, number, number];
|
|
297
|
-
decelerate: readonly [number, number, number, number];
|
|
298
|
-
sharp: readonly [number, number, number, number];
|
|
299
|
-
};
|
|
300
|
-
spring: {
|
|
301
|
-
gentle: {
|
|
302
|
-
damping: number;
|
|
303
|
-
stiffness: number;
|
|
304
|
-
mass: number;
|
|
305
|
-
};
|
|
306
|
-
bouncy: {
|
|
307
|
-
damping: number;
|
|
308
|
-
stiffness: number;
|
|
309
|
-
mass: number;
|
|
310
|
-
};
|
|
311
|
-
snappy: {
|
|
312
|
-
damping: number;
|
|
313
|
-
stiffness: number;
|
|
314
|
-
mass: number;
|
|
315
|
-
};
|
|
316
|
-
};
|
|
317
|
-
/** Length in ms of the opacity fade that replaces movement under Reduce Motion. Never collapsed. */
|
|
318
|
-
fadeDuration: number;
|
|
319
|
-
}
|
|
320
|
-
export type * from "./componentTokens.js";
|
|
32
|
+
export type * from "./tokens.generated.js";
|
|
321
33
|
/**
|
|
322
34
|
* Renderer signature for theme-level icons. Each registry entry receives a
|
|
323
|
-
* pixel `size` and a `color` and returns whatever JSX the consumer wants
|
|
35
|
+
* pixel `size` and a `color` and returns whatever JSX the consumer wants -
|
|
324
36
|
* an SVG, a vector-icons glyph, an Image, an emoji-wrapped Text, anything.
|
|
325
37
|
*/
|
|
326
38
|
export type IconRenderer = (props: {
|
|
@@ -331,21 +43,21 @@ export type IconRenderer = (props: {
|
|
|
331
43
|
* Theme-level icon registry. Library components read from this when they
|
|
332
44
|
* need to render an icon internally (Input password toggle, SearchBar
|
|
333
45
|
* magnifier/clear, ImageGallery close, etc.). Consumers provide the
|
|
334
|
-
* implementations
|
|
46
|
+
* implementations: the library ships with no icon dependency.
|
|
335
47
|
*
|
|
336
|
-
* Slots default to `undefined
|
|
48
|
+
* Slots default to `undefined`: if a slot is missing the library renders
|
|
337
49
|
* a small text/SVG fallback (or nothing, depending on the call site).
|
|
338
50
|
*/
|
|
339
51
|
export interface IconRegistry {
|
|
340
|
-
/** Magnifier icon
|
|
52
|
+
/** Magnifier icon: SearchBar leading slot when no `leftIcon` prop. */
|
|
341
53
|
search?: IconRenderer;
|
|
342
|
-
/** Close/dismiss icon
|
|
54
|
+
/** Close/dismiss icon: SearchBar clear, ImageGallery close, etc. */
|
|
343
55
|
close?: IconRenderer;
|
|
344
|
-
/** Show-password icon
|
|
56
|
+
/** Show-password icon: Input password toggle (visible state). */
|
|
345
57
|
eye?: IconRenderer;
|
|
346
|
-
/** Hide-password icon
|
|
58
|
+
/** Hide-password icon: Input password toggle (masked state). */
|
|
347
59
|
eyeOff?: IconRenderer;
|
|
348
|
-
/** Paperclip/attachment icon
|
|
60
|
+
/** Paperclip/attachment icon: FilePicker trigger. Text-only trigger when unset. */
|
|
349
61
|
attachment?: IconRenderer;
|
|
350
62
|
/**
|
|
351
63
|
* Circled-exclamation glyph drawn before a field's error message. When
|
|
@@ -367,34 +79,97 @@ export interface IconRegistry {
|
|
|
367
79
|
*/
|
|
368
80
|
selectedTick?: IconRenderer;
|
|
369
81
|
}
|
|
370
|
-
/**
|
|
371
|
-
* An app's own text style, registered under a name in `theme.textVariants` and
|
|
372
|
-
* used as `<Text variant="cardTitle">`. Sizes, line heights and letter spacing
|
|
373
|
-
* take a typography token or a raw number.
|
|
374
|
-
*/
|
|
375
82
|
export interface TextVariantSpec {
|
|
376
|
-
size:
|
|
377
|
-
weight?:
|
|
378
|
-
/**
|
|
379
|
-
lineHeight?: number
|
|
380
|
-
|
|
381
|
-
color?: string;
|
|
83
|
+
size: TextName;
|
|
84
|
+
weight?: WeightName;
|
|
85
|
+
/** Line height in px; when unset the variant takes its text step's own line height. */
|
|
86
|
+
lineHeight?: number;
|
|
87
|
+
color?: ColorName;
|
|
382
88
|
uppercase?: boolean;
|
|
383
|
-
|
|
384
|
-
letterSpacing?: number | keyof TypographyScale["letterSpacing"];
|
|
89
|
+
letterSpacing?: LetterSpacingName;
|
|
385
90
|
italic?: boolean;
|
|
386
91
|
fontVariant?: TextStyle["fontVariant"];
|
|
387
|
-
/** `'display'` draws the variant in `typography.fontFamily.display` when the theme sets it; otherwise the weight faces. */
|
|
388
92
|
fontFamily?: "display";
|
|
389
|
-
/** Announce text in this variant as a heading (accessibilityRole header). */
|
|
390
93
|
heading?: boolean;
|
|
391
94
|
}
|
|
392
|
-
export
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
95
|
+
export type FieldVariant = "outlined" | "filled" | "underline";
|
|
96
|
+
type ToneValue = "primary" | "success" | "warning" | "danger" | "info" | "neutral";
|
|
97
|
+
export interface ComponentSettings {
|
|
98
|
+
field?: {
|
|
99
|
+
defaultVariant?: FieldVariant;
|
|
100
|
+
requiredMarker?: string;
|
|
101
|
+
};
|
|
102
|
+
input?: {
|
|
103
|
+
defaultVariant?: FieldVariant;
|
|
104
|
+
defaultLabelMode?: "float" | "top";
|
|
105
|
+
tintLabelOnFocus?: boolean;
|
|
106
|
+
shakeOnError?: boolean;
|
|
107
|
+
};
|
|
108
|
+
"search-bar"?: {
|
|
109
|
+
defaultVariant?: FieldVariant;
|
|
110
|
+
};
|
|
111
|
+
select?: {
|
|
112
|
+
defaultVariant?: FieldVariant;
|
|
113
|
+
};
|
|
114
|
+
"otp-input"?: {
|
|
115
|
+
shakeOnError?: boolean;
|
|
116
|
+
};
|
|
117
|
+
"option-sheet"?: {
|
|
118
|
+
selectedMarker?: "dot" | "icon";
|
|
119
|
+
};
|
|
120
|
+
"profile-picker"?: {
|
|
121
|
+
defaultTone?: ToneValue;
|
|
122
|
+
defaultVariant?: "solid" | "soft" | "outline";
|
|
123
|
+
defaultAvatarTone?: ToneValue | "secondary";
|
|
124
|
+
};
|
|
125
|
+
slider?: {
|
|
126
|
+
thumbPressAnimation?: boolean;
|
|
127
|
+
};
|
|
128
|
+
rating?: {
|
|
129
|
+
pulseOnPress?: boolean;
|
|
130
|
+
};
|
|
131
|
+
stepper?: {
|
|
132
|
+
pulseAnimation?: boolean;
|
|
133
|
+
};
|
|
134
|
+
tooltip?: {
|
|
135
|
+
enableScaleAnimation?: boolean;
|
|
136
|
+
};
|
|
137
|
+
toast?: {
|
|
138
|
+
enableSwipeDismiss?: boolean;
|
|
139
|
+
defaultDurationMs?: number;
|
|
140
|
+
};
|
|
141
|
+
}
|
|
142
|
+
export interface ThemeSettings {
|
|
143
|
+
icons?: IconRegistry;
|
|
144
|
+
gradients?: GradientScale;
|
|
145
|
+
textVariants?: Record<string, TextVariantSpec>;
|
|
146
|
+
maxFontSizeMultiplier?: number;
|
|
147
|
+
components?: ComponentSettings;
|
|
148
|
+
}
|
|
149
|
+
/** A product's brand, generated by `webority brand` as theme/generated/brand.phone.js. Never spacing, text or component sizes. */
|
|
150
|
+
export interface BrandOverrides {
|
|
151
|
+
colors?: {
|
|
152
|
+
light?: Partial<Record<ColorName, string>>;
|
|
153
|
+
dark?: Partial<Record<ColorName, string>>;
|
|
154
|
+
};
|
|
155
|
+
radius?: Partial<Record<Exclude<RadiusName, "none" | "pill">, number>>;
|
|
156
|
+
font?: Partial<Record<FontName, FontFaces>>;
|
|
157
|
+
}
|
|
158
|
+
export interface Spring {
|
|
159
|
+
damping: number;
|
|
160
|
+
stiffness: number;
|
|
161
|
+
mass: number;
|
|
162
|
+
}
|
|
163
|
+
export interface SpringScale {
|
|
164
|
+
gentle: Spring;
|
|
165
|
+
bouncy: Spring;
|
|
166
|
+
snappy: Spring;
|
|
167
|
+
}
|
|
168
|
+
export interface Theme extends Omit<TokenSet, "motion"> {
|
|
169
|
+
motion: TokenSet["motion"] & {
|
|
170
|
+
spring: SpringScale;
|
|
171
|
+
fadeDuration: number;
|
|
172
|
+
};
|
|
398
173
|
/**
|
|
399
174
|
* Corner smoothing of the squircle Android draws behind Button, Card,
|
|
400
175
|
* fields, Box and the other smooth-cornered hosts: 0 is a plain rounded
|
|
@@ -403,30 +178,12 @@ export interface Theme {
|
|
|
403
178
|
* `SQUIRCLE_SMOOTHING` (0.6, Figma's "iOS" preset).
|
|
404
179
|
*/
|
|
405
180
|
cornerSmoothing: number;
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
* their own via theme overrides. Components that accept gradient inputs
|
|
414
|
-
* (Button, Card) read from here when consumers pass a string token, OR
|
|
415
|
-
* accept a `GradientDefinition` literal directly.
|
|
416
|
-
*/
|
|
417
|
-
gradients: GradientScale;
|
|
418
|
-
/** The app's own `Text` variants, by name. A built-in variant name always wins. */
|
|
419
|
-
textVariants?: Record<string, TextVariantSpec>;
|
|
420
|
-
/**
|
|
421
|
-
* Upper bound on how far system font scaling grows any `Text`, as
|
|
422
|
-
* `maxFontSizeMultiplier`. Unset leaves React Native's default (no cap).
|
|
423
|
-
* A `maxFontSizeMultiplier` on the `Text` itself wins. Set it through
|
|
424
|
-
* ThemeProvider `lightOverrides` and `darkOverrides`.
|
|
425
|
-
*/
|
|
426
|
-
maxFontSizeMultiplier?: number;
|
|
181
|
+
settings: {
|
|
182
|
+
icons: IconRegistry;
|
|
183
|
+
gradients: GradientScale;
|
|
184
|
+
textVariants: Record<string, TextVariantSpec>;
|
|
185
|
+
maxFontSizeMultiplier?: number;
|
|
186
|
+
components: ComponentSettings;
|
|
187
|
+
};
|
|
427
188
|
}
|
|
428
|
-
export type DeepPartial<T> = T extends object ? {
|
|
429
|
-
[K in keyof T]?: DeepPartial<T[K]>;
|
|
430
|
-
} : T;
|
|
431
|
-
export type ThemeOverrides = DeepPartial<Theme>;
|
|
432
189
|
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* The tint a pressed control paints over a fill in one of the theme's accent
|
|
3
|
-
* colours (primary, success, warning,
|
|
4
|
-
* `surface
|
|
3
|
+
* colours (primary, success, warning, danger). The theme's own
|
|
4
|
+
* `surface-pressed` colour is meant for its surfaces: a dark wash in the light
|
|
5
5
|
* theme and a WHITE wash in the dark theme, which on a coloured fill reads
|
|
6
6
|
* as the control flashing white. A coloured fill darkens on press in either
|
|
7
7
|
* theme, so this is fixed rather than themed.
|
|
@@ -14,6 +14,10 @@ export declare const ACCENT_PRESSED_TINT = "rgba(0, 0, 0, 0.12)";
|
|
|
14
14
|
* caller sets to the nearest flat theme surface.
|
|
15
15
|
*/
|
|
16
16
|
export declare const tintOf: (color: string, opacity: number, fallback: string) => string;
|
|
17
|
+
/** `color` with its alpha replaced by `alpha`, as `rgba()`; null when `color` is not hex or rgb(). */
|
|
18
|
+
export declare const withAlpha: (color: string, alpha: number) => string | null;
|
|
19
|
+
/** `color` fully transparent, the start of a fade that keeps its hue; "transparent" when `color` cannot be read. */
|
|
20
|
+
export declare const transparentOf: (color: string) => string;
|
|
17
21
|
/**
|
|
18
22
|
* The OPAQUE colour of `color` at `opacity` laid over `over`: what `tintOf`
|
|
19
23
|
* would look like on that surface, as a flat `#RRGGBB`. For a tint that sits
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { ViewStyle } from "react-native";
|
|
2
|
-
import type {
|
|
3
|
-
export declare const shadowStyle: (shadows:
|
|
2
|
+
import type { ShadowName, Theme } from "../theme/types.js";
|
|
3
|
+
export declare const shadowStyle: (shadows: Theme["shadow"], level: ShadowName) => ViewStyle;
|
|
4
4
|
/**
|
|
5
5
|
* Whether this platform draws a `boxShadow`. Android paints an outset box
|
|
6
6
|
* shadow only from API 28; below that the style is ignored, so a caller
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@webority/mobile-ui",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.90.0",
|
|
4
4
|
"description": "Beautiful, animated, accessible React Native components, theme and form engine for Webority projects.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"react-native",
|
|
@@ -40,16 +40,6 @@
|
|
|
40
40
|
"default": "./lib/commonjs/canvasKit/index.js"
|
|
41
41
|
}
|
|
42
42
|
},
|
|
43
|
-
"./retired-theme-keys": {
|
|
44
|
-
"import": {
|
|
45
|
-
"types": "./lib/typescript/module/theme/retiredThemeKeys.d.ts",
|
|
46
|
-
"default": "./lib/module/theme/retiredThemeKeys.js"
|
|
47
|
-
},
|
|
48
|
-
"require": {
|
|
49
|
-
"types": "./lib/typescript/commonjs/theme/retiredThemeKeys.d.ts",
|
|
50
|
-
"default": "./lib/commonjs/theme/retiredThemeKeys.js"
|
|
51
|
-
}
|
|
52
|
-
},
|
|
53
43
|
"./package.json": "./package.json"
|
|
54
44
|
},
|
|
55
45
|
"main": "./lib/commonjs/index.js",
|
|
@@ -93,8 +83,8 @@
|
|
|
93
83
|
"react-native-safe-area-context": ">=5.4.0",
|
|
94
84
|
"react-native-svg": ">=15.0.0",
|
|
95
85
|
"react-native-worklets": ">=0.10.0",
|
|
96
|
-
"@webority/canvas-kit": "0.
|
|
97
|
-
"@webority/mobile-core": "0.
|
|
86
|
+
"@webority/canvas-kit": "0.90.0",
|
|
87
|
+
"@webority/mobile-core": "0.90.0"
|
|
98
88
|
},
|
|
99
89
|
"peerDependenciesMeta": {
|
|
100
90
|
"@webority/canvas-kit": {
|
|
@@ -155,9 +145,10 @@
|
|
|
155
145
|
"react-test-renderer": "19.2.8",
|
|
156
146
|
"rimraf": "6.1.3",
|
|
157
147
|
"typescript": "5.9.3",
|
|
158
|
-
"@webority/canvas-kit": "0.
|
|
148
|
+
"@webority/canvas-kit": "0.90.0",
|
|
159
149
|
"@webority/mobile-dev": "0.0.0",
|
|
160
|
-
"@webority/
|
|
150
|
+
"@webority/tokens": "0.90.0",
|
|
151
|
+
"@webority/mobile-core": "0.90.0"
|
|
161
152
|
},
|
|
162
153
|
"scripts": {
|
|
163
154
|
"build": "bob build && node ../mobile-dev/scripts/minify-lib.mjs",
|
|
@@ -165,6 +156,8 @@
|
|
|
165
156
|
"lint": "biome lint ./src",
|
|
166
157
|
"lint:fix": "biome lint --write ./src",
|
|
167
158
|
"test": "jest",
|
|
159
|
+
"tokens": "node ../tokens/dist/webority.js brand --library --out ../tokens/dist --phone src/theme/tokens.generated.ts",
|
|
160
|
+
"tokens:check": "node ../tokens/dist/webority.js brand --library --out ../tokens/dist --phone src/theme/tokens.generated.ts --check",
|
|
168
161
|
"typecheck": "tsc --noEmit"
|
|
169
162
|
}
|
|
170
163
|
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.RETIRED_THEME_KEYS_RELEASE=exports.RETIRED_THEME_KEYS=void 0;const RETIRED_THEME_KEYS_RELEASE=exports.RETIRED_THEME_KEYS_RELEASE="0.19.0",sized=(e,n)=>Object.entries(n).map(([n,[i,o]])=>({path:`components.${e}.<size>.${n}`,to:i,...o?{scale:o}:{}})),gone=(e,n)=>({path:e,to:null,hint:n}),renamed=(e,n,i)=>({path:e,to:n,...i?{scale:i}:{}}),RETIRED_THEME_KEYS=exports.RETIRED_THEME_KEYS=[...sized("button",{paddingHorizontal:["paddingX","spacing"],paddingVertical:["paddingY","spacing"],fontSize:["text","fontSize"],borderRadius:["radius","radius"],iconSize:["icon",void 0]}),...sized("field",{paddingHorizontal:["paddingX","spacing"],paddingVertical:["paddingY","spacing"],fontSize:["text","fontSize"],borderRadius:["radius","radius"],iconSize:["icon",void 0],labelFontSize:["labelText","fontSize"],messageFontSize:["messageText","fontSize"]}),...sized("badge",{fontSize:["text","fontSize"],paddingHorizontal:["paddingX","spacing"]}),...sized("chip",{paddingHorizontal:["paddingX","spacing"],paddingVertical:["paddingY","spacing"],fontSize:["text","fontSize"],closeFontSize:["closeText","fontSize"],iconSize:["icon",void 0]}),...sized("emptyState",{iconSize:["icon",void 0],titleFontSize:["titleText","fontSize"],descriptionFontSize:["descriptionText","fontSize"],paddingVertical:["paddingY","spacing"]}),...sized("listItem",{paddingVertical:["paddingY","spacing"],titleFontSize:["titleText","fontSize"],subtitleFontSize:["subtitleText","fontSize"]}),...sized("otpInput",{fontSize:["text","fontSize"],borderRadius:["radius","radius"]}),...sized("segmentedControl",{fontSize:["text","fontSize"],paddingHorizontal:["paddingX","spacing"],iconSize:["icon",void 0]}),...sized("tabs",{fontSize:["text","fontSize"],paddingVertical:["paddingY","spacing"],paddingHorizontal:["paddingX","spacing"],scrollablePaddingHorizontal:["scrollablePaddingX","spacing"],iconSize:["icon",void 0]}),renamed("components.searchBar.<size>.borderRadius","radius","radius"),gone("components.searchBar.<size>.minHeight","set components.field.<size>.minHeight"),gone("components.searchBar.<size>.paddingHorizontal","set components.field.<size>.paddingX"),gone("components.searchBar.<size>.fontSize","set components.field.<size>.text"),gone("components.searchBar.<size>.iconSize","set components.field.<size>.icon"),gone("components.input.<size>","set components.field.<size>"),gone("components.input.borderRadius","set components.field.<size>.radius"),gone("components.select.borderRadius","set components.field.<size>.radius"),gone("components.phoneNumberInput","set components.field.<size>"),renamed("components.accordion.cardPaddingVertical","cardPaddingY","spacing"),renamed("components.appBar.badgePaddingHorizontal","badgePaddingX","spacing"),renamed("components.appBar.badgeFontSize","badgeText","fontSize"),renamed("components.avatar.fontSize","text","fontSize"),renamed("components.banner.iconGlyphFontSize","iconGlyphText","fontSize"),renamed("components.banner.closeGlyphFontSize","closeGlyphText","fontSize"),renamed("components.banner.actionButtonPaddingHorizontal","actionButtonPaddingX","spacing"),renamed("components.banner.actionButtonPaddingVertical","actionButtonPaddingY","spacing"),gone("components.banner.iconCircleRadius","the icon circle is always round"),gone("components.banner.closeButtonRadius","the close button is always round"),renamed("components.bottomNavigation.borderRadius","radius","radius"),renamed("components.choiceGroup.borderRadius","radius","radius"),renamed("components.datePicker.navTextFontSize","navText","fontSize"),renamed("components.datePicker.dayInnerBorderRadius","dayInnerRadius","radius"),renamed("components.datePicker.yearInnerBorderRadius","yearInnerRadius","radius"),renamed("components.dateRangePicker.navTextFontSize","navText","fontSize"),gone("components.dialog.iconWrapperBorderRadius","the icon disc is always round"),renamed("components.filePicker.borderRadius","radius","radius"),renamed("components.tabs.tabIconSpacing","iconGap","spacing"),gone("components.tabs.tabPaddingHorizontal","set components.tabs.<size>.paddingX"),gone("components.tabs.tabPaddingVertical","set components.tabs.<size>.paddingY"),gone("components.tabs.tabIconSize","set components.tabs.<size>.icon"),renamed("components.toast.iconGlyphFontSize","iconGlyphText","fontSize"),gone("components.toast.iconCircleBorderRadius","the icon circle is always round"),renamed("radius.full","pill"),gone("radius.xs","use sm, or none"),gone("radius.2xl","use xl")];
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";export{};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";export const RETIRED_THEME_KEYS_RELEASE="0.19.0";const sized=(e,n)=>Object.entries(n).map(([n,[i,o]])=>({path:`components.${e}.<size>.${n}`,to:i,...o?{scale:o}:{}})),gone=(e,n)=>({path:e,to:null,hint:n}),renamed=(e,n,i)=>({path:e,to:n,...i?{scale:i}:{}});export const RETIRED_THEME_KEYS=[...sized("button",{paddingHorizontal:["paddingX","spacing"],paddingVertical:["paddingY","spacing"],fontSize:["text","fontSize"],borderRadius:["radius","radius"],iconSize:["icon",void 0]}),...sized("field",{paddingHorizontal:["paddingX","spacing"],paddingVertical:["paddingY","spacing"],fontSize:["text","fontSize"],borderRadius:["radius","radius"],iconSize:["icon",void 0],labelFontSize:["labelText","fontSize"],messageFontSize:["messageText","fontSize"]}),...sized("badge",{fontSize:["text","fontSize"],paddingHorizontal:["paddingX","spacing"]}),...sized("chip",{paddingHorizontal:["paddingX","spacing"],paddingVertical:["paddingY","spacing"],fontSize:["text","fontSize"],closeFontSize:["closeText","fontSize"],iconSize:["icon",void 0]}),...sized("emptyState",{iconSize:["icon",void 0],titleFontSize:["titleText","fontSize"],descriptionFontSize:["descriptionText","fontSize"],paddingVertical:["paddingY","spacing"]}),...sized("listItem",{paddingVertical:["paddingY","spacing"],titleFontSize:["titleText","fontSize"],subtitleFontSize:["subtitleText","fontSize"]}),...sized("otpInput",{fontSize:["text","fontSize"],borderRadius:["radius","radius"]}),...sized("segmentedControl",{fontSize:["text","fontSize"],paddingHorizontal:["paddingX","spacing"],iconSize:["icon",void 0]}),...sized("tabs",{fontSize:["text","fontSize"],paddingVertical:["paddingY","spacing"],paddingHorizontal:["paddingX","spacing"],scrollablePaddingHorizontal:["scrollablePaddingX","spacing"],iconSize:["icon",void 0]}),renamed("components.searchBar.<size>.borderRadius","radius","radius"),gone("components.searchBar.<size>.minHeight","set components.field.<size>.minHeight"),gone("components.searchBar.<size>.paddingHorizontal","set components.field.<size>.paddingX"),gone("components.searchBar.<size>.fontSize","set components.field.<size>.text"),gone("components.searchBar.<size>.iconSize","set components.field.<size>.icon"),gone("components.input.<size>","set components.field.<size>"),gone("components.input.borderRadius","set components.field.<size>.radius"),gone("components.select.borderRadius","set components.field.<size>.radius"),gone("components.phoneNumberInput","set components.field.<size>"),renamed("components.accordion.cardPaddingVertical","cardPaddingY","spacing"),renamed("components.appBar.badgePaddingHorizontal","badgePaddingX","spacing"),renamed("components.appBar.badgeFontSize","badgeText","fontSize"),renamed("components.avatar.fontSize","text","fontSize"),renamed("components.banner.iconGlyphFontSize","iconGlyphText","fontSize"),renamed("components.banner.closeGlyphFontSize","closeGlyphText","fontSize"),renamed("components.banner.actionButtonPaddingHorizontal","actionButtonPaddingX","spacing"),renamed("components.banner.actionButtonPaddingVertical","actionButtonPaddingY","spacing"),gone("components.banner.iconCircleRadius","the icon circle is always round"),gone("components.banner.closeButtonRadius","the close button is always round"),renamed("components.bottomNavigation.borderRadius","radius","radius"),renamed("components.choiceGroup.borderRadius","radius","radius"),renamed("components.datePicker.navTextFontSize","navText","fontSize"),renamed("components.datePicker.dayInnerBorderRadius","dayInnerRadius","radius"),renamed("components.datePicker.yearInnerBorderRadius","yearInnerRadius","radius"),renamed("components.dateRangePicker.navTextFontSize","navText","fontSize"),gone("components.dialog.iconWrapperBorderRadius","the icon disc is always round"),renamed("components.filePicker.borderRadius","radius","radius"),renamed("components.tabs.tabIconSpacing","iconGap","spacing"),gone("components.tabs.tabPaddingHorizontal","set components.tabs.<size>.paddingX"),gone("components.tabs.tabPaddingVertical","set components.tabs.<size>.paddingY"),gone("components.tabs.tabIconSize","set components.tabs.<size>.icon"),renamed("components.toast.iconGlyphFontSize","iconGlyphText","fontSize"),gone("components.toast.iconCircleBorderRadius","the icon circle is always round"),renamed("radius.full","pill"),gone("radius.xs","use sm, or none"),gone("radius.2xl","use xl")];
|