@webority/mobile-ui 0.88.0 → 0.89.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -0
- package/lib/commonjs/canvasKit/index.js +1 -1
- package/lib/commonjs/canvasKit/meta.js +1 -0
- package/lib/commonjs/components/Accordion/Accordion.js +1 -1
- package/lib/commonjs/components/AmountSlider/AmountSlider.js +1 -1
- package/lib/commonjs/components/AnimatePresence/AnimatePresence.js +1 -1
- package/lib/commonjs/components/AppBar/AppBar.js +1 -1
- package/lib/commonjs/components/AppIcon/AppIcon.js +1 -1
- package/lib/commonjs/components/AsyncBlock/AsyncBlock.js +1 -1
- package/lib/commonjs/components/AuthedImage/AuthedImage.js +1 -1
- package/lib/commonjs/components/Autocomplete/Autocomplete.js +1 -1
- package/lib/commonjs/components/Avatar/Avatar.js +1 -1
- package/lib/commonjs/components/Badge/Badge.js +1 -1
- package/lib/commonjs/components/Banner/Banner.js +1 -1
- package/lib/commonjs/components/BarChart/BarChart.js +1 -1
- package/lib/commonjs/components/BottomNavigation/BottomNavigation.js +1 -1
- package/lib/commonjs/components/BottomSheet/BottomSheet.js +1 -1
- package/lib/commonjs/components/Box/Box.js +1 -1
- package/lib/commonjs/components/Button/Button.js +1 -1
- package/lib/commonjs/components/Calendar/Calendar.js +1 -1
- package/lib/commonjs/components/Calendar/CalendarDay.js +1 -1
- package/lib/commonjs/components/Calendar/calendarStyles.js +1 -1
- package/lib/commonjs/components/Card/Card.js +1 -1
- package/lib/commonjs/components/Carousel/Carousel.js +1 -1
- package/lib/commonjs/components/Checkbox/Checkbox.js +1 -1
- package/lib/commonjs/components/Chip/Chip.js +1 -1
- package/lib/commonjs/components/ChoiceGroup/ChoiceGroup.js +1 -1
- package/lib/commonjs/components/Composer/Composer.js +1 -1
- package/lib/commonjs/components/Confetti/Confetti.js +1 -1
- package/lib/commonjs/components/DatePicker/DatePicker.js +1 -1
- package/lib/commonjs/components/DateRangePicker/DateRangePicker.js +1 -1
- package/lib/commonjs/components/DateSeparator/DateSeparator.js +1 -1
- package/lib/commonjs/components/Descriptions/Descriptions.js +1 -1
- package/lib/commonjs/components/Dialog/Dialog.js +1 -1
- package/lib/commonjs/components/Divider/Divider.js +1 -1
- package/lib/commonjs/components/Drawer/Drawer.js +1 -1
- package/lib/commonjs/components/EmptyState/EmptyState.js +1 -1
- package/lib/commonjs/components/ErrorBoundary/ErrorBoundary.js +1 -1
- package/lib/commonjs/components/FieldBase/Chevron.js +1 -1
- package/lib/commonjs/components/FieldBase/ChoiceText.js +1 -1
- package/lib/commonjs/components/FieldBase/FieldBase.js +1 -1
- package/lib/commonjs/components/FieldBase/useFloatingLabel.js +1 -1
- package/lib/commonjs/components/FilePicker/FilePicker.js +1 -1
- package/lib/commonjs/components/FileViewer/FileViewer.js +1 -1
- package/lib/commonjs/components/FilterChipRow/FilterChipRow.js +1 -1
- package/lib/commonjs/components/FloatingActionButton/FloatingActionButton.js +1 -1
- package/lib/commonjs/components/FormField/FormField.js +1 -1
- package/lib/commonjs/components/IconBadge/IconBadge.js +1 -1
- package/lib/commonjs/components/IconButton/IconButton.js +1 -1
- package/lib/commonjs/components/ImageGallery/ImageGallery.js +1 -1
- package/lib/commonjs/components/InlineSelect/InlineSelect.js +1 -1
- package/lib/commonjs/components/Input/Input.js +1 -1
- package/lib/commonjs/components/KeyboardAwareScrollView/KeyboardAwareScrollView.js +1 -1
- package/lib/commonjs/components/KeyboardToolbar/KeyboardToolbar.js +1 -1
- package/lib/commonjs/components/ListItem/ListItem.js +1 -1
- package/lib/commonjs/components/LoaderOverlay/LoaderOverlay.js +1 -1
- package/lib/commonjs/components/Markdown/Markdown.js +1 -1
- package/lib/commonjs/components/Menu/MenuSurface.js +1 -1
- package/lib/commonjs/components/MessageBubble/MessageBubble.js +1 -1
- package/lib/commonjs/components/MessageList/MessageList.js +1 -1
- package/lib/commonjs/components/Modal/Modal.js +1 -1
- package/lib/commonjs/components/Notation/Notation.js +1 -1
- package/lib/commonjs/components/NumberInput/NumberInput.js +1 -1
- package/lib/commonjs/components/OTPInput/OTPInput.js +1 -1
- package/lib/commonjs/components/OnboardingPager/OnboardingPager.js +1 -1
- package/lib/commonjs/components/OptionSheet/OptionSheet.js +1 -1
- package/lib/commonjs/components/PaymentResult/PaymentResult.js +1 -1
- package/lib/commonjs/components/PermissionPrompt/PermissionPrompt.js +1 -1
- package/lib/commonjs/components/PhoneNumberInput/PhoneNumberInput.js +1 -1
- package/lib/commonjs/components/PickerTrigger/PickerTrigger.js +1 -1
- package/lib/commonjs/components/ProfileCompletion/ProfileCompletion.js +1 -1
- package/lib/commonjs/components/ProfilePicker/ProfilePicker.js +1 -1
- package/lib/commonjs/components/ProgressBar/ProgressBar.js +1 -1
- package/lib/commonjs/components/ProgressRing/ProgressRing.js +1 -1
- package/lib/commonjs/components/Radio/Radio.js +1 -1
- package/lib/commonjs/components/Radio/RadioDot.js +1 -1
- package/lib/commonjs/components/Rating/Rating.js +1 -1
- package/lib/commonjs/components/Repeater/Repeater.js +1 -1
- package/lib/commonjs/components/RichTextEditor/RichTextEditor.js +1 -1
- package/lib/commonjs/components/ScannerOverlay/ScannerOverlay.js +1 -1
- package/lib/commonjs/components/Screen/Screen.js +1 -1
- package/lib/commonjs/components/SearchBar/SearchBar.js +1 -1
- package/lib/commonjs/components/SearchBar/SearchPanel.js +1 -1
- package/lib/commonjs/components/SectionHeader/SectionHeader.js +1 -1
- package/lib/commonjs/components/SegmentedControl/SegmentedControl.js +1 -1
- package/lib/commonjs/components/Select/Select.js +1 -1
- package/lib/commonjs/components/SignaturePad/SignaturePad.js +1 -1
- package/lib/commonjs/components/Skeleton/Skeleton.js +1 -1
- package/lib/commonjs/components/Skeleton/SkeletonContent.js +1 -1
- package/lib/commonjs/components/SlideToConfirm/SlideToConfirm.js +1 -1
- package/lib/commonjs/components/Slider/Slider.js +1 -1
- package/lib/commonjs/components/Slider/valueText.js +1 -1
- package/lib/commonjs/components/SliderField/SliderField.js +1 -1
- package/lib/commonjs/components/Sparkline/Sparkline.js +1 -1
- package/lib/commonjs/components/Spinner/Spinner.js +1 -1
- package/lib/commonjs/components/StatTile/StatTile.js +1 -1
- package/lib/commonjs/components/StatusBadge/StatusBadge.js +1 -1
- package/lib/commonjs/components/Stepper/Stepper.js +1 -1
- package/lib/commonjs/components/Swipeable/Swipeable.js +1 -1
- package/lib/commonjs/components/Switch/Switch.js +1 -1
- package/lib/commonjs/components/Tabs/Tabs.js +1 -1
- package/lib/commonjs/components/TagInput/TagInput.js +1 -1
- package/lib/commonjs/components/Text/Text.js +1 -1
- package/lib/commonjs/components/TimePicker/TimePicker.js +1 -1
- package/lib/commonjs/components/Timeline/Timeline.js +1 -1
- package/lib/commonjs/components/Toast/Toast.js +1 -1
- package/lib/commonjs/components/Toast/ToastProvider.js +1 -1
- package/lib/commonjs/components/Tooltip/RichTooltipBody.js +1 -1
- package/lib/commonjs/components/Tooltip/Tooltip.js +1 -1
- package/lib/commonjs/components/Tour/Tour.js +1 -1
- package/lib/commonjs/components/TypingIndicator/TypingIndicator.js +1 -1
- package/lib/commonjs/components/WheelPicker/Wheel.js +1 -1
- package/lib/commonjs/components/WheelPicker/WheelPicker.js +1 -1
- package/lib/commonjs/hooks/useDragToDismiss.js +1 -1
- package/lib/commonjs/hooks/usePressAnimation.js +1 -1
- package/lib/commonjs/hooks/useRefreshControl.js +1 -1
- package/lib/commonjs/index.js +1 -1
- package/lib/commonjs/initUI.js +1 -1
- package/lib/commonjs/network/NetworkStatusBanner.js +1 -1
- package/lib/commonjs/theme/ThemeContext.js +1 -1
- package/lib/commonjs/theme/componentSizes.js +1 -1
- package/lib/commonjs/theme/index.js +1 -1
- package/lib/commonjs/theme/merge.js +1 -1
- package/lib/commonjs/theme/scale.js +1 -1
- package/lib/commonjs/theme/textStyle.js +1 -1
- package/lib/commonjs/theme/tokens.generated.js +1 -0
- package/lib/commonjs/theme/tokens.js +1 -1
- package/lib/commonjs/utils/color.js +1 -1
- package/lib/module/canvasKit/index.js +1 -1
- package/lib/module/canvasKit/meta.js +1 -0
- package/lib/module/components/Accordion/Accordion.js +1 -1
- package/lib/module/components/AmountSlider/AmountSlider.js +1 -1
- package/lib/module/components/AnimatePresence/AnimatePresence.js +1 -1
- package/lib/module/components/AppBar/AppBar.js +1 -1
- package/lib/module/components/AppIcon/AppIcon.js +1 -1
- package/lib/module/components/AsyncBlock/AsyncBlock.js +1 -1
- package/lib/module/components/AuthedImage/AuthedImage.js +1 -1
- package/lib/module/components/Autocomplete/Autocomplete.js +1 -1
- package/lib/module/components/Avatar/Avatar.js +1 -1
- package/lib/module/components/Badge/Badge.js +1 -1
- package/lib/module/components/Banner/Banner.js +1 -1
- package/lib/module/components/BarChart/BarChart.js +1 -1
- package/lib/module/components/BottomNavigation/BottomNavigation.js +1 -1
- package/lib/module/components/BottomSheet/BottomSheet.js +1 -1
- package/lib/module/components/Box/Box.js +1 -1
- package/lib/module/components/Button/Button.js +1 -1
- package/lib/module/components/Calendar/Calendar.js +1 -1
- package/lib/module/components/Calendar/CalendarDay.js +1 -1
- package/lib/module/components/Calendar/calendarStyles.js +1 -1
- package/lib/module/components/Card/Card.js +1 -1
- package/lib/module/components/Carousel/Carousel.js +1 -1
- package/lib/module/components/Checkbox/Checkbox.js +1 -1
- package/lib/module/components/Chip/Chip.js +1 -1
- package/lib/module/components/ChoiceGroup/ChoiceGroup.js +1 -1
- package/lib/module/components/Composer/Composer.js +1 -1
- package/lib/module/components/Confetti/Confetti.js +1 -1
- package/lib/module/components/DatePicker/DatePicker.js +1 -1
- package/lib/module/components/DateRangePicker/DateRangePicker.js +1 -1
- package/lib/module/components/DateSeparator/DateSeparator.js +1 -1
- package/lib/module/components/Descriptions/Descriptions.js +1 -1
- package/lib/module/components/Dialog/Dialog.js +1 -1
- package/lib/module/components/Divider/Divider.js +1 -1
- package/lib/module/components/Drawer/Drawer.js +1 -1
- package/lib/module/components/EmptyState/EmptyState.js +1 -1
- package/lib/module/components/ErrorBoundary/ErrorBoundary.js +1 -1
- package/lib/module/components/FieldBase/Chevron.js +1 -1
- package/lib/module/components/FieldBase/ChoiceText.js +1 -1
- package/lib/module/components/FieldBase/FieldBase.js +1 -1
- package/lib/module/components/FieldBase/useFloatingLabel.js +1 -1
- package/lib/module/components/FilePicker/FilePicker.js +1 -1
- package/lib/module/components/FileViewer/FileViewer.js +1 -1
- package/lib/module/components/FilterChipRow/FilterChipRow.js +1 -1
- package/lib/module/components/FloatingActionButton/FloatingActionButton.js +1 -1
- package/lib/module/components/FormField/FormField.js +1 -1
- package/lib/module/components/IconBadge/IconBadge.js +1 -1
- package/lib/module/components/IconButton/IconButton.js +1 -1
- package/lib/module/components/ImageGallery/ImageGallery.js +1 -1
- package/lib/module/components/InlineSelect/InlineSelect.js +1 -1
- package/lib/module/components/Input/Input.js +1 -1
- package/lib/module/components/KeyboardAwareScrollView/KeyboardAwareScrollView.js +1 -1
- package/lib/module/components/KeyboardToolbar/KeyboardToolbar.js +1 -1
- package/lib/module/components/ListItem/ListItem.js +1 -1
- package/lib/module/components/LoaderOverlay/LoaderOverlay.js +1 -1
- package/lib/module/components/Markdown/Markdown.js +1 -1
- package/lib/module/components/Menu/MenuSurface.js +1 -1
- package/lib/module/components/MessageBubble/MessageBubble.js +1 -1
- package/lib/module/components/MessageList/MessageList.js +1 -1
- package/lib/module/components/Modal/Modal.js +1 -1
- package/lib/module/components/Notation/Notation.js +1 -1
- package/lib/module/components/NumberInput/NumberInput.js +1 -1
- package/lib/module/components/OTPInput/OTPInput.js +1 -1
- package/lib/module/components/OnboardingPager/OnboardingPager.js +1 -1
- package/lib/module/components/OptionSheet/OptionSheet.js +1 -1
- package/lib/module/components/PaymentResult/PaymentResult.js +1 -1
- package/lib/module/components/PermissionPrompt/PermissionPrompt.js +1 -1
- package/lib/module/components/PhoneNumberInput/PhoneNumberInput.js +1 -1
- package/lib/module/components/PickerTrigger/PickerTrigger.js +1 -1
- package/lib/module/components/ProfileCompletion/ProfileCompletion.js +1 -1
- package/lib/module/components/ProfilePicker/ProfilePicker.js +1 -1
- package/lib/module/components/ProgressBar/ProgressBar.js +1 -1
- package/lib/module/components/ProgressRing/ProgressRing.js +1 -1
- package/lib/module/components/Radio/Radio.js +1 -1
- package/lib/module/components/Radio/RadioDot.js +1 -1
- package/lib/module/components/Rating/Rating.js +1 -1
- package/lib/module/components/Repeater/Repeater.js +1 -1
- package/lib/module/components/RichTextEditor/RichTextEditor.js +1 -1
- package/lib/module/components/ScannerOverlay/ScannerOverlay.js +1 -1
- package/lib/module/components/Screen/Screen.js +1 -1
- package/lib/module/components/SearchBar/SearchBar.js +1 -1
- package/lib/module/components/SearchBar/SearchPanel.js +1 -1
- package/lib/module/components/SectionHeader/SectionHeader.js +1 -1
- package/lib/module/components/SegmentedControl/SegmentedControl.js +1 -1
- package/lib/module/components/Select/Select.js +1 -1
- package/lib/module/components/SignaturePad/SignaturePad.js +1 -1
- package/lib/module/components/Skeleton/Skeleton.js +1 -1
- package/lib/module/components/Skeleton/SkeletonContent.js +1 -1
- package/lib/module/components/SlideToConfirm/SlideToConfirm.js +1 -1
- package/lib/module/components/Slider/Slider.js +1 -1
- package/lib/module/components/Slider/valueText.js +1 -1
- package/lib/module/components/SliderField/SliderField.js +1 -1
- package/lib/module/components/Sparkline/Sparkline.js +1 -1
- package/lib/module/components/Spinner/Spinner.js +1 -1
- package/lib/module/components/StatTile/StatTile.js +1 -1
- package/lib/module/components/StatusBadge/StatusBadge.js +1 -1
- package/lib/module/components/Stepper/Stepper.js +1 -1
- package/lib/module/components/Swipeable/Swipeable.js +1 -1
- package/lib/module/components/Switch/Switch.js +1 -1
- package/lib/module/components/Tabs/Tabs.js +1 -1
- package/lib/module/components/TagInput/TagInput.js +1 -1
- package/lib/module/components/Text/Text.js +1 -1
- package/lib/module/components/TimePicker/TimePicker.js +1 -1
- package/lib/module/components/Timeline/Timeline.js +1 -1
- package/lib/module/components/Toast/Toast.js +1 -1
- package/lib/module/components/Toast/ToastProvider.js +1 -1
- package/lib/module/components/Tooltip/RichTooltipBody.js +1 -1
- package/lib/module/components/Tooltip/Tooltip.js +1 -1
- package/lib/module/components/Tour/Tour.js +1 -1
- package/lib/module/components/TypingIndicator/TypingIndicator.js +1 -1
- package/lib/module/components/WheelPicker/Wheel.js +1 -1
- package/lib/module/components/WheelPicker/WheelPicker.js +1 -1
- package/lib/module/hooks/useDragToDismiss.js +1 -1
- package/lib/module/hooks/usePressAnimation.js +1 -1
- package/lib/module/hooks/useRefreshControl.js +1 -1
- package/lib/module/index.js +1 -1
- package/lib/module/initUI.js +1 -1
- package/lib/module/network/NetworkStatusBanner.js +1 -1
- package/lib/module/theme/ThemeContext.js +1 -1
- package/lib/module/theme/componentSizes.js +1 -1
- package/lib/module/theme/index.js +1 -1
- package/lib/module/theme/merge.js +1 -1
- package/lib/module/theme/scale.js +1 -1
- package/lib/module/theme/textStyle.js +1 -1
- package/lib/module/theme/tokens.generated.js +1 -0
- package/lib/module/theme/tokens.js +1 -1
- package/lib/module/utils/color.js +1 -1
- package/lib/typescript/commonjs/canvasKit/meta.d.ts +32 -0
- package/lib/typescript/commonjs/components/AmountSlider/AmountSlider.d.ts +1 -1
- package/lib/typescript/commonjs/components/AnimatePresence/AnimatePresence.d.ts +1 -1
- package/lib/typescript/commonjs/components/AppBar/AppBar.d.ts +4 -4
- package/lib/typescript/commonjs/components/AppIcon/AppIcon.d.ts +1 -1
- package/lib/typescript/commonjs/components/AppIcon/defaultIcons.d.ts +1 -1
- package/lib/typescript/commonjs/components/Avatar/Avatar.d.ts +4 -4
- package/lib/typescript/commonjs/components/Badge/Badge.d.ts +1 -1
- package/lib/typescript/commonjs/components/Banner/Banner.d.ts +1 -1
- package/lib/typescript/commonjs/components/BarChart/BarChart.d.ts +1 -1
- package/lib/typescript/commonjs/components/BottomNavigation/BottomNavigation.d.ts +8 -10
- package/lib/typescript/commonjs/components/BottomSheet/BottomSheet.d.ts +2 -2
- package/lib/typescript/commonjs/components/Box/Box.d.ts +21 -21
- package/lib/typescript/commonjs/components/Button/Button.d.ts +3 -3
- package/lib/typescript/commonjs/components/Calendar/Calendar.d.ts +1 -1
- package/lib/typescript/commonjs/components/Calendar/calendarStyles.d.ts +9 -9
- package/lib/typescript/commonjs/components/Card/Card.d.ts +7 -6
- package/lib/typescript/commonjs/components/Checkbox/Checkbox.d.ts +1 -1
- package/lib/typescript/commonjs/components/Chip/Chip.d.ts +1 -1
- package/lib/typescript/commonjs/components/ChoiceGroup/ChoiceGroup.d.ts +1 -1
- package/lib/typescript/commonjs/components/Dialog/Dialog.d.ts +2 -2
- package/lib/typescript/commonjs/components/FieldBase/Chevron.d.ts +1 -1
- package/lib/typescript/commonjs/components/FieldBase/FieldBase.d.ts +32 -33
- package/lib/typescript/commonjs/components/FieldBase/useFloatingLabel.d.ts +2 -3
- package/lib/typescript/commonjs/components/FloatingActionButton/FloatingActionButton.d.ts +2 -2
- package/lib/typescript/commonjs/components/FormField/FormField.d.ts +2 -3
- package/lib/typescript/commonjs/components/IconBadge/IconBadge.d.ts +1 -1
- package/lib/typescript/commonjs/components/IconButton/IconButton.d.ts +2 -2
- package/lib/typescript/commonjs/components/InlineSelect/InlineSelect.d.ts +2 -3
- package/lib/typescript/commonjs/components/Input/Input.d.ts +2 -2
- package/lib/typescript/commonjs/components/Notation/Notation.d.ts +1 -1
- package/lib/typescript/commonjs/components/OptionSheet/OptionSheet.d.ts +2 -2
- package/lib/typescript/commonjs/components/PickerTrigger/PickerTrigger.d.ts +2 -3
- package/lib/typescript/commonjs/components/ProfileCompletion/ProfileCompletion.d.ts +3 -4
- package/lib/typescript/commonjs/components/ProfilePicker/ProfilePicker.d.ts +5 -6
- package/lib/typescript/commonjs/components/ProgressBar/ProgressBar.d.ts +1 -1
- package/lib/typescript/commonjs/components/ProgressRing/ProgressRing.d.ts +6 -7
- package/lib/typescript/commonjs/components/Radio/Radio.d.ts +1 -1
- package/lib/typescript/commonjs/components/SearchBar/SearchBar.d.ts +1 -1
- package/lib/typescript/commonjs/components/SegmentedControl/SegmentedControl.d.ts +3 -4
- package/lib/typescript/commonjs/components/Select/Select.d.ts +5 -5
- package/lib/typescript/commonjs/components/Skeleton/Skeleton.d.ts +2 -2
- package/lib/typescript/commonjs/components/SlideToConfirm/SlideToConfirm.d.ts +1 -1
- package/lib/typescript/commonjs/components/Slider/Slider.d.ts +6 -7
- package/lib/typescript/commonjs/components/Slider/valueText.d.ts +1 -1
- package/lib/typescript/commonjs/components/Sparkline/Sparkline.d.ts +1 -1
- package/lib/typescript/commonjs/components/StatusBadge/StatusBadge.d.ts +2 -3
- package/lib/typescript/commonjs/components/Swipeable/Swipeable.d.ts +2 -2
- package/lib/typescript/commonjs/components/Switch/Switch.d.ts +1 -1
- package/lib/typescript/commonjs/components/Tabs/Tabs.d.ts +6 -7
- package/lib/typescript/commonjs/components/Text/Text.d.ts +6 -7
- package/lib/typescript/commonjs/components/Timeline/Timeline.d.ts +1 -1
- package/lib/typescript/commonjs/components/Toast/Toast.d.ts +1 -1
- package/lib/typescript/commonjs/components/Toast/ToastProvider.d.ts +2 -2
- package/lib/typescript/commonjs/components/Tour/Tour.d.ts +2 -2
- package/lib/typescript/commonjs/hooks/usePresenceMotion.d.ts +2 -2
- package/lib/typescript/commonjs/index.d.ts +2 -2
- package/lib/typescript/commonjs/initUI.d.ts +3 -3
- package/lib/typescript/commonjs/theme/ThemeContext.d.ts +5 -3
- package/lib/typescript/commonjs/theme/componentSizes.d.ts +40 -18
- package/lib/typescript/commonjs/theme/index.d.ts +15 -17
- package/lib/typescript/commonjs/theme/merge.d.ts +15 -2
- package/lib/typescript/commonjs/theme/scale.d.ts +6 -4
- package/lib/typescript/commonjs/theme/textStyle.d.ts +4 -17
- package/lib/typescript/commonjs/theme/tokens.generated.d.ts +362 -0
- package/lib/typescript/commonjs/theme/types.d.ts +104 -347
- package/lib/typescript/commonjs/utils/color.d.ts +6 -2
- package/lib/typescript/commonjs/utils/shadows.d.ts +2 -2
- package/lib/typescript/module/canvasKit/meta.d.ts +32 -0
- package/lib/typescript/module/components/AmountSlider/AmountSlider.d.ts +1 -1
- package/lib/typescript/module/components/AnimatePresence/AnimatePresence.d.ts +1 -1
- package/lib/typescript/module/components/AppBar/AppBar.d.ts +4 -4
- package/lib/typescript/module/components/AppIcon/AppIcon.d.ts +1 -1
- package/lib/typescript/module/components/AppIcon/defaultIcons.d.ts +1 -1
- package/lib/typescript/module/components/Avatar/Avatar.d.ts +4 -4
- package/lib/typescript/module/components/Badge/Badge.d.ts +1 -1
- package/lib/typescript/module/components/Banner/Banner.d.ts +1 -1
- package/lib/typescript/module/components/BarChart/BarChart.d.ts +1 -1
- package/lib/typescript/module/components/BottomNavigation/BottomNavigation.d.ts +8 -10
- package/lib/typescript/module/components/BottomSheet/BottomSheet.d.ts +2 -2
- package/lib/typescript/module/components/Box/Box.d.ts +21 -21
- package/lib/typescript/module/components/Button/Button.d.ts +3 -3
- package/lib/typescript/module/components/Calendar/Calendar.d.ts +1 -1
- package/lib/typescript/module/components/Calendar/calendarStyles.d.ts +9 -9
- package/lib/typescript/module/components/Card/Card.d.ts +7 -6
- package/lib/typescript/module/components/Checkbox/Checkbox.d.ts +1 -1
- package/lib/typescript/module/components/Chip/Chip.d.ts +1 -1
- package/lib/typescript/module/components/ChoiceGroup/ChoiceGroup.d.ts +1 -1
- package/lib/typescript/module/components/Dialog/Dialog.d.ts +2 -2
- package/lib/typescript/module/components/FieldBase/Chevron.d.ts +1 -1
- package/lib/typescript/module/components/FieldBase/FieldBase.d.ts +32 -33
- package/lib/typescript/module/components/FieldBase/useFloatingLabel.d.ts +2 -3
- package/lib/typescript/module/components/FloatingActionButton/FloatingActionButton.d.ts +2 -2
- package/lib/typescript/module/components/FormField/FormField.d.ts +2 -3
- package/lib/typescript/module/components/IconBadge/IconBadge.d.ts +1 -1
- package/lib/typescript/module/components/IconButton/IconButton.d.ts +2 -2
- package/lib/typescript/module/components/InlineSelect/InlineSelect.d.ts +2 -3
- package/lib/typescript/module/components/Input/Input.d.ts +2 -2
- package/lib/typescript/module/components/Notation/Notation.d.ts +1 -1
- package/lib/typescript/module/components/OptionSheet/OptionSheet.d.ts +2 -2
- package/lib/typescript/module/components/PickerTrigger/PickerTrigger.d.ts +2 -3
- package/lib/typescript/module/components/ProfileCompletion/ProfileCompletion.d.ts +3 -4
- package/lib/typescript/module/components/ProfilePicker/ProfilePicker.d.ts +5 -6
- package/lib/typescript/module/components/ProgressBar/ProgressBar.d.ts +1 -1
- package/lib/typescript/module/components/ProgressRing/ProgressRing.d.ts +6 -7
- package/lib/typescript/module/components/Radio/Radio.d.ts +1 -1
- package/lib/typescript/module/components/SearchBar/SearchBar.d.ts +1 -1
- package/lib/typescript/module/components/SegmentedControl/SegmentedControl.d.ts +3 -4
- package/lib/typescript/module/components/Select/Select.d.ts +5 -5
- package/lib/typescript/module/components/Skeleton/Skeleton.d.ts +2 -2
- package/lib/typescript/module/components/SlideToConfirm/SlideToConfirm.d.ts +1 -1
- package/lib/typescript/module/components/Slider/Slider.d.ts +6 -7
- package/lib/typescript/module/components/Slider/valueText.d.ts +1 -1
- package/lib/typescript/module/components/Sparkline/Sparkline.d.ts +1 -1
- package/lib/typescript/module/components/StatusBadge/StatusBadge.d.ts +2 -3
- package/lib/typescript/module/components/Swipeable/Swipeable.d.ts +2 -2
- package/lib/typescript/module/components/Switch/Switch.d.ts +1 -1
- package/lib/typescript/module/components/Tabs/Tabs.d.ts +6 -7
- package/lib/typescript/module/components/Text/Text.d.ts +6 -7
- package/lib/typescript/module/components/Timeline/Timeline.d.ts +1 -1
- package/lib/typescript/module/components/Toast/Toast.d.ts +1 -1
- package/lib/typescript/module/components/Toast/ToastProvider.d.ts +2 -2
- package/lib/typescript/module/components/Tour/Tour.d.ts +2 -2
- package/lib/typescript/module/hooks/usePresenceMotion.d.ts +2 -2
- package/lib/typescript/module/index.d.ts +2 -2
- package/lib/typescript/module/initUI.d.ts +3 -3
- package/lib/typescript/module/theme/ThemeContext.d.ts +5 -3
- package/lib/typescript/module/theme/componentSizes.d.ts +40 -18
- package/lib/typescript/module/theme/index.d.ts +15 -17
- package/lib/typescript/module/theme/merge.d.ts +15 -2
- package/lib/typescript/module/theme/scale.d.ts +6 -4
- package/lib/typescript/module/theme/textStyle.d.ts +4 -17
- package/lib/typescript/module/theme/tokens.generated.d.ts +362 -0
- package/lib/typescript/module/theme/types.d.ts +104 -347
- package/lib/typescript/module/utils/color.d.ts +6 -2
- package/lib/typescript/module/utils/shadows.d.ts +2 -2
- package/package.json +14 -15
- package/lib/commonjs/theme/componentTokens.js +0 -1
- package/lib/commonjs/theme/retiredThemeKeys.js +0 -1
- package/lib/module/theme/componentTokens.js +0 -1
- package/lib/module/theme/retiredThemeKeys.js +0 -1
- package/lib/typescript/commonjs/theme/componentTokens.d.ts +0 -762
- package/lib/typescript/commonjs/theme/retiredThemeKeys.d.ts +0 -22
- package/lib/typescript/module/theme/componentTokens.d.ts +0 -762
- package/lib/typescript/module/theme/retiredThemeKeys.d.ts +0 -22
|
@@ -1,20 +1,18 @@
|
|
|
1
|
-
import type { ColorMode, Theme,
|
|
1
|
+
import type { BrandOverrides, ColorMode, Theme, ThemeSettings } from "./types.js";
|
|
2
2
|
/**
|
|
3
|
-
* Set the
|
|
3
|
+
* Set the brand and the settings the app's theme is built from.
|
|
4
4
|
*
|
|
5
|
-
* REPLACES
|
|
6
|
-
* `setTheme(
|
|
7
|
-
*
|
|
8
|
-
*
|
|
5
|
+
* REPLACES both stored values; it does not accumulate them. Calling
|
|
6
|
+
* `setTheme(brandA)` and then `setTheme(undefined, settingsB)` leaves ONLY
|
|
7
|
+
* settingsB live: the brand silently reverts to the base theme. Pass the
|
|
8
|
+
* complete brand and settings in one call, or merge them yourself before calling.
|
|
9
9
|
*
|
|
10
|
-
*
|
|
11
|
-
*
|
|
12
|
-
*
|
|
13
|
-
*
|
|
14
|
-
* behaviour change it is: an app relying on replace to CLEAR a previous
|
|
15
|
-
* override would silently keep it.
|
|
10
|
+
* This is deliberate (one call sets the whole configuration, last call wins) and
|
|
11
|
+
* is pinned by a test. Do not "fix" it to merge without treating that as the
|
|
12
|
+
* behaviour change it is: an app relying on replace to CLEAR a previous brand
|
|
13
|
+
* would silently keep it.
|
|
16
14
|
*/
|
|
17
|
-
export declare const setTheme: (
|
|
15
|
+
export declare const setTheme: (brand?: BrandOverrides, settings?: ThemeSettings) => void;
|
|
18
16
|
export declare const setColorMode: (mode: ColorMode) => void;
|
|
19
17
|
export declare const getColorMode: () => ColorMode;
|
|
20
18
|
export declare const getTheme: () => Theme;
|
|
@@ -25,12 +23,12 @@ export type { Resolved } from "./componentSizes.js";
|
|
|
25
23
|
export { resolveBadgeSize, resolveButtonSize, resolveCheckboxSize, resolveChipSize, resolveEmptyStateSize, resolveFieldSize, resolveFloatingActionButtonSize, resolveListItemSize, resolveOtpInputSize, resolveRadioSize, resolveSegmentedControlSize, resolveSliderSize, resolveSwitchSize, resolveTabsSize, validateComponentTokens, } from "./componentSizes.js";
|
|
26
24
|
export type { GradientProps } from "./Gradient.js";
|
|
27
25
|
export { Gradient, gradientAngle, toBackgroundImage } from "./Gradient.js";
|
|
28
|
-
export {
|
|
29
|
-
export {
|
|
26
|
+
export { mergeBrand } from "./merge.js";
|
|
27
|
+
export { radiusOf, spaceOf, textOf } from "./scale.js";
|
|
30
28
|
export type { ColorSchemePreference, ThemeProviderProps } from "./ThemeContext.js";
|
|
31
29
|
export { ThemeProvider, useTheme, useThemeMode } from "./ThemeContext.js";
|
|
32
|
-
export type { FontWeightKey } from "./textStyle.js";
|
|
33
30
|
export { fontFor } from "./textStyle.js";
|
|
34
31
|
export { darkTheme, lightTheme } from "./tokens.js";
|
|
35
|
-
export
|
|
32
|
+
export { COLOR_NAMES, DURATION_NAMES, EASE_NAMES, FONT_NAMES, LEADING_NAMES, LETTER_SPACING_NAMES, RADIUS_NAMES, SHADOW_NAMES, SIZE_NAMES, SPACE_NAMES, TEXT_NAMES, WEIGHT_NAMES, } from "./tokens.generated.js";
|
|
33
|
+
export type { BrandOverrides, ColorMode, ColorName, ComponentName, ComponentSettings, ComponentSizeTokens, ComponentTokens, DurationName, EaseName, FieldVariant, FontFaces, FontName, FontWeightValue, GradientDefinition, GradientScale, IconRegistry, IconRenderer, LeadingName, LetterSpacingName, PhoneShadow, RadiusName, ShadowName, SizeName, SpaceName, Spring, SpringScale, TextName, TextVariantSpec, Theme, ThemeSettings, TokenSet, WeightName, } from "./types.js";
|
|
36
34
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,3 +1,16 @@
|
|
|
1
|
-
import type { Theme,
|
|
2
|
-
|
|
1
|
+
import type { BrandOverrides, Theme, ThemeSettings } from "./types.js";
|
|
2
|
+
/**
|
|
3
|
+
* A brand that sets a tone colour gets two derived values, both in the brand's
|
|
4
|
+
* own hue, so the library's contrast holds for it too:
|
|
5
|
+
* - the solid fill, moved until it reads at 4.5:1 under its `on-*` ink (set
|
|
6
|
+
* when the brand names the tone or the ink, so a brand ink on a library
|
|
7
|
+
* fill is checked as well);
|
|
8
|
+
* - the tone's `*-text` colour, from that fill, unless the brand names its own;
|
|
9
|
+
* - for primary, the `primary-hover` and `primary-pressed` fills, from that fill
|
|
10
|
+
* and the library's lightness steps, unless the brand names its own, so a
|
|
11
|
+
* moved primary keeps the press order instead of the library's old colours.
|
|
12
|
+
* Without them the brand would get the library's ink for the DEFAULT tone: a
|
|
13
|
+
* different hue, chosen against the default colour.
|
|
14
|
+
*/
|
|
15
|
+
export declare const mergeBrand: (base: Theme, brand: BrandOverrides | undefined, settings: ThemeSettings | undefined) => Theme;
|
|
3
16
|
//# sourceMappingURL=merge.d.ts.map
|
|
@@ -1,5 +1,7 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
|
|
3
|
-
export declare const
|
|
4
|
-
export declare const
|
|
1
|
+
import type { RadiusName, SpaceName, TextName } from "./tokens.generated.js";
|
|
2
|
+
import type { Theme } from "./types.js";
|
|
3
|
+
export declare const scaleStep: (theme: Theme, scale: "space" | "text" | "radius", key: string, path?: string) => number;
|
|
4
|
+
export declare const spaceOf: (theme: Theme, key: SpaceName) => number;
|
|
5
|
+
export declare const radiusOf: (theme: Theme, key: RadiusName) => number;
|
|
6
|
+
export declare const textOf: (theme: Theme, key: TextName) => number;
|
|
5
7
|
//# sourceMappingURL=scale.d.ts.map
|
|
@@ -1,21 +1,8 @@
|
|
|
1
1
|
import type { TextStyle } from "react-native";
|
|
2
|
-
import type { Theme,
|
|
3
|
-
export type FontWeightKey = keyof TypographyScale["fontWeight"];
|
|
2
|
+
import type { Theme, WeightName } from "./types.js";
|
|
4
3
|
/**
|
|
5
|
-
*
|
|
6
|
-
*
|
|
7
|
-
* When the consumer registers a brand `theme.typography.fontFamily.<weight>`,
|
|
8
|
-
* we set `fontFamily` and leave `fontWeight` undefined — RN can't combine the
|
|
9
|
-
* two reliably across iOS/Android once a custom face is in play, so the brand
|
|
10
|
-
* file controls the weight glyph itself. Falls back to `fontWeight` when no
|
|
11
|
-
* brand font is registered for that weight.
|
|
12
|
-
*
|
|
13
|
-
* `face: 'display'` picks `fontFamily.display` when the theme sets it and is
|
|
14
|
-
* otherwise identical to the call without it.
|
|
15
|
-
*
|
|
16
|
-
* Note: the fontWeight scale uses `normal` while FontFamilyScale uses
|
|
17
|
-
* `regular` (the conventional font-name suffix). The helper maps between
|
|
18
|
-
* them transparently.
|
|
4
|
+
* A face file carries its own weight, and the platform cannot combine a custom
|
|
5
|
+
* face with a numeric weight reliably, so a registered face replaces it.
|
|
19
6
|
*/
|
|
20
|
-
export declare const fontFor: (theme: Theme, weight:
|
|
7
|
+
export declare const fontFor: (theme: Theme, weight: WeightName, family?: "display") => Pick<TextStyle, "fontFamily" | "fontWeight">;
|
|
21
8
|
//# sourceMappingURL=textStyle.d.ts.map
|
|
@@ -0,0 +1,362 @@
|
|
|
1
|
+
export declare const COLOR_NAMES: readonly ["bg", "bg-subtle", "bg-muted", "surface", "surface-inverse", "text", "text-body", "text-muted", "text-subtle", "text-inverse", "link", "border", "border-subtle", "field-bg", "field-border", "field-border-focus", "focus-ring", "scrim", "on-scrim", "thumb", "primary", "primary-hover", "primary-soft", "primary-text", "on-primary", "primary-wash", "primary-wash-strong", "neutral", "neutral-hover", "neutral-text", "on-neutral", "success", "success-soft", "success-text", "on-success", "warning", "warning-soft", "warning-text", "on-warning", "danger", "danger-soft", "danger-border", "danger-text", "on-danger", "info", "info-soft", "info-text", "on-info", "primary-pressed", "on-neutral-strong", "text-disabled", "surface-pressed", "surface-hover", "surface-selected", "surface-disabled", "skeleton", "skeleton-highlight", "glass-fill", "glass-border", "on-glass", "glass-badge", "field-bg-focus", "field-bg-disabled", "field-border-error", "field-label", "field-text", "field-text-disabled", "field-placeholder", "field-placeholder-disabled", "field-icon", "field-icon-focus", "field-icon-disabled", "field-caret", "field-message", "avatar-1", "avatar-2", "avatar-3", "avatar-4", "avatar-5", "avatar-6", "avatar-7", "avatar-8"];
|
|
2
|
+
export type ColorName = (typeof COLOR_NAMES)[number];
|
|
3
|
+
export declare const SPACE_NAMES: readonly ["none", "xxs", "xs", "sm", "md", "lg", "xl", "2xl", "3xl", "4xl"];
|
|
4
|
+
export type SpaceName = (typeof SPACE_NAMES)[number];
|
|
5
|
+
export declare const RADIUS_NAMES: readonly ["none", "sm", "md", "lg", "xl", "pill"];
|
|
6
|
+
export type RadiusName = (typeof RADIUS_NAMES)[number];
|
|
7
|
+
export declare const TEXT_NAMES: readonly ["xs", "sm", "base", "lg", "xl", "2xl", "3xl", "4xl", "5xl", "6xl", "7xl", "8xl"];
|
|
8
|
+
export type TextName = (typeof TEXT_NAMES)[number];
|
|
9
|
+
export declare const WEIGHT_NAMES: readonly ["normal", "medium", "semibold", "bold"];
|
|
10
|
+
export type WeightName = (typeof WEIGHT_NAMES)[number];
|
|
11
|
+
export declare const LEADING_NAMES: readonly ["tight", "normal", "relaxed"];
|
|
12
|
+
export type LeadingName = (typeof LEADING_NAMES)[number];
|
|
13
|
+
export declare const LETTER_SPACING_NAMES: readonly ["tight", "normal", "wide"];
|
|
14
|
+
export type LetterSpacingName = (typeof LETTER_SPACING_NAMES)[number];
|
|
15
|
+
export declare const FONT_NAMES: readonly ["ui", "display", "mono"];
|
|
16
|
+
export type FontName = (typeof FONT_NAMES)[number];
|
|
17
|
+
export declare const SHADOW_NAMES: readonly ["card", "elevated", "popover", "modal", "drawer"];
|
|
18
|
+
export type ShadowName = (typeof SHADOW_NAMES)[number];
|
|
19
|
+
export declare const DURATION_NAMES: readonly ["instant", "fast", "default", "slow", "slower"];
|
|
20
|
+
export type DurationName = (typeof DURATION_NAMES)[number];
|
|
21
|
+
export declare const EASE_NAMES: readonly ["in-out", "accelerate", "decelerate", "sharp"];
|
|
22
|
+
export type EaseName = (typeof EASE_NAMES)[number];
|
|
23
|
+
export declare const SIZE_NAMES: readonly ["border"];
|
|
24
|
+
export type SizeName = (typeof SIZE_NAMES)[number];
|
|
25
|
+
export type FontWeightValue = "100" | "200" | "300" | "400" | "500" | "600" | "700" | "800" | "900";
|
|
26
|
+
/** Face name per weight; an empty object means the platform system font. */
|
|
27
|
+
export type FontFaces = Partial<Record<WeightName, string>>;
|
|
28
|
+
export interface PhoneShadow {
|
|
29
|
+
shadowColor: string;
|
|
30
|
+
shadowOffset: {
|
|
31
|
+
width: number;
|
|
32
|
+
height: number;
|
|
33
|
+
};
|
|
34
|
+
shadowOpacity: number;
|
|
35
|
+
shadowRadius: number;
|
|
36
|
+
elevation: number;
|
|
37
|
+
}
|
|
38
|
+
export type ComponentKind = "space" | "text" | "radius" | "px" | "number" | "ms";
|
|
39
|
+
type Sized<S extends string, T> = Record<S, T>;
|
|
40
|
+
type L3 = "sm" | "md" | "lg";
|
|
41
|
+
export interface FieldSizeTokens {
|
|
42
|
+
radius: RadiusName;
|
|
43
|
+
"padding-x": SpaceName;
|
|
44
|
+
"padding-y": SpaceName;
|
|
45
|
+
"min-height": number;
|
|
46
|
+
text: TextName;
|
|
47
|
+
icon: number;
|
|
48
|
+
"label-text": TextName;
|
|
49
|
+
"label-gap": SpaceName;
|
|
50
|
+
"message-text": TextName;
|
|
51
|
+
"message-gap": SpaceName;
|
|
52
|
+
}
|
|
53
|
+
export interface ButtonSizeTokens {
|
|
54
|
+
"padding-x": SpaceName;
|
|
55
|
+
"padding-y": SpaceName;
|
|
56
|
+
"min-height": number;
|
|
57
|
+
text: TextName;
|
|
58
|
+
radius: RadiusName;
|
|
59
|
+
icon: number;
|
|
60
|
+
"badge-icon": number;
|
|
61
|
+
}
|
|
62
|
+
export interface EmptyStateSizeTokens {
|
|
63
|
+
icon: number;
|
|
64
|
+
"title-text": TextName;
|
|
65
|
+
"description-text": TextName;
|
|
66
|
+
"padding-y": SpaceName;
|
|
67
|
+
"title-gap": SpaceName;
|
|
68
|
+
"description-gap": SpaceName;
|
|
69
|
+
}
|
|
70
|
+
export interface BadgeSizeTokens {
|
|
71
|
+
text: TextName;
|
|
72
|
+
"min-width": number;
|
|
73
|
+
height: number;
|
|
74
|
+
"padding-x": SpaceName;
|
|
75
|
+
"dot-size": number;
|
|
76
|
+
}
|
|
77
|
+
export interface BadgeTokens {
|
|
78
|
+
"border-width": number;
|
|
79
|
+
"anchor-offset": number;
|
|
80
|
+
}
|
|
81
|
+
export interface ChipSizeTokens {
|
|
82
|
+
"padding-x": SpaceName;
|
|
83
|
+
"padding-y": SpaceName;
|
|
84
|
+
text: TextName;
|
|
85
|
+
"min-height": number;
|
|
86
|
+
"close-size": number;
|
|
87
|
+
"close-text": TextName;
|
|
88
|
+
gap: SpaceName;
|
|
89
|
+
icon: number;
|
|
90
|
+
}
|
|
91
|
+
export interface SegmentedControlSizeTokens {
|
|
92
|
+
height: number;
|
|
93
|
+
text: TextName;
|
|
94
|
+
"padding-x": SpaceName;
|
|
95
|
+
icon: number;
|
|
96
|
+
}
|
|
97
|
+
export interface SegmentedControlTokens {
|
|
98
|
+
"track-padding": SpaceName;
|
|
99
|
+
"underline-height": number;
|
|
100
|
+
"pill-inset": SpaceName;
|
|
101
|
+
}
|
|
102
|
+
export interface TabsSizeTokens {
|
|
103
|
+
text: TextName;
|
|
104
|
+
"padding-y": SpaceName;
|
|
105
|
+
"padding-x": SpaceName;
|
|
106
|
+
"scrollable-padding-x": SpaceName;
|
|
107
|
+
icon: number;
|
|
108
|
+
}
|
|
109
|
+
export interface TabsTokens {
|
|
110
|
+
"icon-gap": SpaceName;
|
|
111
|
+
"track-padding": SpaceName;
|
|
112
|
+
"underline-height": number;
|
|
113
|
+
"pill-inset": SpaceName;
|
|
114
|
+
"disabled-opacity": number;
|
|
115
|
+
"badge-gap": SpaceName;
|
|
116
|
+
}
|
|
117
|
+
export interface FloatingActionButtonSizeTokens {
|
|
118
|
+
diameter: number;
|
|
119
|
+
icon: number;
|
|
120
|
+
text: TextName;
|
|
121
|
+
"label-padding-x": SpaceName;
|
|
122
|
+
}
|
|
123
|
+
export interface FloatingActionButtonTokens {
|
|
124
|
+
"edge-offset": SpaceName;
|
|
125
|
+
"bottom-offset": SpaceName;
|
|
126
|
+
"secondary-gap": SpaceName;
|
|
127
|
+
"stagger-ms": number;
|
|
128
|
+
}
|
|
129
|
+
export interface ComponentTokens {
|
|
130
|
+
field: Sized<L3, FieldSizeTokens>;
|
|
131
|
+
press: {
|
|
132
|
+
opacity: number;
|
|
133
|
+
};
|
|
134
|
+
disabled: {
|
|
135
|
+
opacity: number;
|
|
136
|
+
};
|
|
137
|
+
button: Sized<"xs" | "sm" | "md" | "lg" | "xl", ButtonSizeTokens>;
|
|
138
|
+
input: Sized<L3, {
|
|
139
|
+
"multiline-min-height": number;
|
|
140
|
+
}>;
|
|
141
|
+
"search-bar": Sized<L3, {
|
|
142
|
+
radius: RadiusName;
|
|
143
|
+
}>;
|
|
144
|
+
"empty-state": Sized<L3, EmptyStateSizeTokens>;
|
|
145
|
+
"list-item": Sized<L3, {
|
|
146
|
+
"padding-y": SpaceName;
|
|
147
|
+
"title-text": TextName;
|
|
148
|
+
"subtitle-text": TextName;
|
|
149
|
+
"min-height": number;
|
|
150
|
+
}>;
|
|
151
|
+
badge: Sized<"sm" | "md", BadgeSizeTokens> & BadgeTokens;
|
|
152
|
+
chip: Sized<"sm" | "md", ChipSizeTokens>;
|
|
153
|
+
checkbox: Sized<L3, {
|
|
154
|
+
"box-size": number;
|
|
155
|
+
}> & {
|
|
156
|
+
"label-gap": SpaceName;
|
|
157
|
+
};
|
|
158
|
+
radio: Sized<L3, {
|
|
159
|
+
outer: number;
|
|
160
|
+
inner: number;
|
|
161
|
+
}> & {
|
|
162
|
+
"label-gap": SpaceName;
|
|
163
|
+
};
|
|
164
|
+
switch: Sized<L3, {
|
|
165
|
+
"track-width": number;
|
|
166
|
+
"track-height": number;
|
|
167
|
+
"thumb-size": number;
|
|
168
|
+
padding: SpaceName;
|
|
169
|
+
}>;
|
|
170
|
+
"otp-input": Sized<L3, {
|
|
171
|
+
cell: number;
|
|
172
|
+
text: TextName;
|
|
173
|
+
radius: RadiusName;
|
|
174
|
+
gap: SpaceName;
|
|
175
|
+
}>;
|
|
176
|
+
"segmented-control": Sized<L3, SegmentedControlSizeTokens> & SegmentedControlTokens;
|
|
177
|
+
tabs: Sized<L3, TabsSizeTokens> & TabsTokens;
|
|
178
|
+
slider: Sized<L3, {
|
|
179
|
+
"track-height": number;
|
|
180
|
+
"thumb-diameter": number;
|
|
181
|
+
}>;
|
|
182
|
+
"floating-action-button": Sized<L3, FloatingActionButtonSizeTokens> & FloatingActionButtonTokens;
|
|
183
|
+
dialog: {
|
|
184
|
+
"icon-wrapper-size": number;
|
|
185
|
+
"action-button-min-height": number;
|
|
186
|
+
};
|
|
187
|
+
toast: {
|
|
188
|
+
"icon-circle-size": number;
|
|
189
|
+
"icon-glyph-text": TextName;
|
|
190
|
+
"tint-bar-width": number;
|
|
191
|
+
"action-min-height": number;
|
|
192
|
+
};
|
|
193
|
+
banner: {
|
|
194
|
+
"tint-bar-width": number;
|
|
195
|
+
};
|
|
196
|
+
}
|
|
197
|
+
export type ComponentName = keyof ComponentTokens;
|
|
198
|
+
type SizeKeysOf<C extends ComponentName> = Extract<keyof ComponentTokens[C], "xs" | "sm" | "md" | "lg" | "xl">;
|
|
199
|
+
export type ComponentSizeTokens<C extends ComponentName> = ComponentTokens[C][SizeKeysOf<C>];
|
|
200
|
+
export declare const COMPONENT_KINDS: {
|
|
201
|
+
readonly field: {
|
|
202
|
+
readonly radius: "radius";
|
|
203
|
+
readonly "padding-x": "space";
|
|
204
|
+
readonly "padding-y": "space";
|
|
205
|
+
readonly "min-height": "px";
|
|
206
|
+
readonly text: "text";
|
|
207
|
+
readonly icon: "px";
|
|
208
|
+
readonly "label-text": "text";
|
|
209
|
+
readonly "label-gap": "space";
|
|
210
|
+
readonly "message-text": "text";
|
|
211
|
+
readonly "message-gap": "space";
|
|
212
|
+
};
|
|
213
|
+
readonly press: {
|
|
214
|
+
readonly opacity: "number";
|
|
215
|
+
};
|
|
216
|
+
readonly disabled: {
|
|
217
|
+
readonly opacity: "number";
|
|
218
|
+
};
|
|
219
|
+
readonly button: {
|
|
220
|
+
readonly "padding-x": "space";
|
|
221
|
+
readonly "padding-y": "space";
|
|
222
|
+
readonly "min-height": "px";
|
|
223
|
+
readonly text: "text";
|
|
224
|
+
readonly radius: "radius";
|
|
225
|
+
readonly icon: "px";
|
|
226
|
+
readonly "badge-icon": "px";
|
|
227
|
+
};
|
|
228
|
+
readonly input: {
|
|
229
|
+
readonly "multiline-min-height": "px";
|
|
230
|
+
};
|
|
231
|
+
readonly "search-bar": {
|
|
232
|
+
readonly radius: "radius";
|
|
233
|
+
};
|
|
234
|
+
readonly "empty-state": {
|
|
235
|
+
readonly icon: "px";
|
|
236
|
+
readonly "title-text": "text";
|
|
237
|
+
readonly "description-text": "text";
|
|
238
|
+
readonly "padding-y": "space";
|
|
239
|
+
readonly "title-gap": "space";
|
|
240
|
+
readonly "description-gap": "space";
|
|
241
|
+
};
|
|
242
|
+
readonly "list-item": {
|
|
243
|
+
readonly "padding-y": "space";
|
|
244
|
+
readonly "title-text": "text";
|
|
245
|
+
readonly "subtitle-text": "text";
|
|
246
|
+
readonly "min-height": "px";
|
|
247
|
+
};
|
|
248
|
+
readonly badge: {
|
|
249
|
+
readonly text: "text";
|
|
250
|
+
readonly "min-width": "px";
|
|
251
|
+
readonly height: "px";
|
|
252
|
+
readonly "padding-x": "space";
|
|
253
|
+
readonly "dot-size": "px";
|
|
254
|
+
readonly "border-width": "px";
|
|
255
|
+
readonly "anchor-offset": "px";
|
|
256
|
+
};
|
|
257
|
+
readonly chip: {
|
|
258
|
+
readonly "padding-x": "space";
|
|
259
|
+
readonly "padding-y": "space";
|
|
260
|
+
readonly text: "text";
|
|
261
|
+
readonly "min-height": "px";
|
|
262
|
+
readonly "close-size": "px";
|
|
263
|
+
readonly "close-text": "text";
|
|
264
|
+
readonly gap: "space";
|
|
265
|
+
readonly icon: "px";
|
|
266
|
+
};
|
|
267
|
+
readonly checkbox: {
|
|
268
|
+
readonly "box-size": "px";
|
|
269
|
+
readonly "label-gap": "space";
|
|
270
|
+
};
|
|
271
|
+
readonly radio: {
|
|
272
|
+
readonly outer: "px";
|
|
273
|
+
readonly inner: "px";
|
|
274
|
+
readonly "label-gap": "space";
|
|
275
|
+
};
|
|
276
|
+
readonly switch: {
|
|
277
|
+
readonly "track-width": "px";
|
|
278
|
+
readonly "track-height": "px";
|
|
279
|
+
readonly "thumb-size": "px";
|
|
280
|
+
readonly padding: "space";
|
|
281
|
+
};
|
|
282
|
+
readonly "otp-input": {
|
|
283
|
+
readonly cell: "px";
|
|
284
|
+
readonly text: "text";
|
|
285
|
+
readonly radius: "radius";
|
|
286
|
+
readonly gap: "space";
|
|
287
|
+
};
|
|
288
|
+
readonly "segmented-control": {
|
|
289
|
+
readonly height: "px";
|
|
290
|
+
readonly text: "text";
|
|
291
|
+
readonly "padding-x": "space";
|
|
292
|
+
readonly icon: "px";
|
|
293
|
+
readonly "track-padding": "space";
|
|
294
|
+
readonly "underline-height": "px";
|
|
295
|
+
readonly "pill-inset": "space";
|
|
296
|
+
};
|
|
297
|
+
readonly tabs: {
|
|
298
|
+
readonly text: "text";
|
|
299
|
+
readonly "padding-y": "space";
|
|
300
|
+
readonly "padding-x": "space";
|
|
301
|
+
readonly "scrollable-padding-x": "space";
|
|
302
|
+
readonly icon: "px";
|
|
303
|
+
readonly "icon-gap": "space";
|
|
304
|
+
readonly "track-padding": "space";
|
|
305
|
+
readonly "underline-height": "px";
|
|
306
|
+
readonly "pill-inset": "space";
|
|
307
|
+
readonly "disabled-opacity": "number";
|
|
308
|
+
readonly "badge-gap": "space";
|
|
309
|
+
};
|
|
310
|
+
readonly slider: {
|
|
311
|
+
readonly "track-height": "px";
|
|
312
|
+
readonly "thumb-diameter": "px";
|
|
313
|
+
};
|
|
314
|
+
readonly "floating-action-button": {
|
|
315
|
+
readonly diameter: "px";
|
|
316
|
+
readonly icon: "px";
|
|
317
|
+
readonly text: "text";
|
|
318
|
+
readonly "label-padding-x": "space";
|
|
319
|
+
readonly "edge-offset": "space";
|
|
320
|
+
readonly "bottom-offset": "space";
|
|
321
|
+
readonly "secondary-gap": "space";
|
|
322
|
+
readonly "stagger-ms": "ms";
|
|
323
|
+
};
|
|
324
|
+
readonly dialog: {
|
|
325
|
+
readonly "icon-wrapper-size": "px";
|
|
326
|
+
readonly "action-button-min-height": "px";
|
|
327
|
+
};
|
|
328
|
+
readonly toast: {
|
|
329
|
+
readonly "icon-circle-size": "px";
|
|
330
|
+
readonly "icon-glyph-text": "text";
|
|
331
|
+
readonly "tint-bar-width": "px";
|
|
332
|
+
readonly "action-min-height": "px";
|
|
333
|
+
};
|
|
334
|
+
readonly banner: {
|
|
335
|
+
readonly "tint-bar-width": "px";
|
|
336
|
+
};
|
|
337
|
+
};
|
|
338
|
+
export interface TokenSet {
|
|
339
|
+
mode: "light" | "dark";
|
|
340
|
+
colors: Record<ColorName, string>;
|
|
341
|
+
space: Record<SpaceName, number>;
|
|
342
|
+
radius: Record<RadiusName, number>;
|
|
343
|
+
text: Record<TextName, {
|
|
344
|
+
size: number;
|
|
345
|
+
lineHeight: number;
|
|
346
|
+
}>;
|
|
347
|
+
weight: Record<WeightName, FontWeightValue>;
|
|
348
|
+
leading: Record<LeadingName, number>;
|
|
349
|
+
"letter-spacing": Record<LetterSpacingName, number>;
|
|
350
|
+
font: Record<FontName, FontFaces>;
|
|
351
|
+
shadow: Record<ShadowName, PhoneShadow>;
|
|
352
|
+
motion: {
|
|
353
|
+
duration: Record<DurationName, number>;
|
|
354
|
+
ease: Record<EaseName, readonly [number, number, number, number]>;
|
|
355
|
+
};
|
|
356
|
+
size: Record<SizeName, number>;
|
|
357
|
+
components: ComponentTokens;
|
|
358
|
+
}
|
|
359
|
+
export declare const lightTokens: TokenSet;
|
|
360
|
+
export declare const darkTokens: TokenSet;
|
|
361
|
+
export {};
|
|
362
|
+
//# sourceMappingURL=tokens.generated.d.ts.map
|