@webority/mobile-ui 0.8.1 → 0.9.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/lib/commonjs/components/Accordion/Accordion.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/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/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 -0
- package/lib/commonjs/components/Calendar/CalendarDay.js +1 -0
- package/lib/commonjs/components/Calendar/calendarDates.js +1 -0
- package/lib/commonjs/components/Calendar/calendarStyles.js +1 -0
- package/lib/commonjs/components/Calendar/index.js +1 -0
- 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/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/Descriptions/Descriptions.js +1 -1
- package/lib/commonjs/components/Dialog/Dialog.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/ErrorBoundary/withErrorBoundary.js +1 -1
- package/lib/commonjs/components/FieldBase/Chevron.js +1 -1
- package/lib/commonjs/components/FieldBase/FieldBase.js +1 -1
- package/lib/commonjs/components/FilePicker/FilePicker.js +1 -1
- package/lib/commonjs/components/FloatingActionButton/FloatingActionButton.js +1 -1
- package/lib/commonjs/components/ForceUpdateDialog/ForceUpdateDialog.js +1 -1
- package/lib/commonjs/components/FormField/FormField.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/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/Modal/Modal.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/OptionSheet/OptionSheet.js +1 -1
- package/lib/commonjs/components/PhoneNumberInput/PhoneNumberInput.js +1 -1
- package/lib/commonjs/components/ProfilePicker/ProfilePicker.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/Radio/RadioGroup.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/SearchBar/SearchBar.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/Skeleton/Skeleton.js +1 -1
- package/lib/commonjs/components/Skeleton/SkeletonClock.js +1 -1
- package/lib/commonjs/components/Skeleton/SkeletonContent.js +1 -1
- package/lib/commonjs/components/Skeleton/SkeletonProvider.js +1 -1
- package/lib/commonjs/components/Skeleton/SkeletonSkip.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/SliderField/SliderField.js +1 -1
- package/lib/commonjs/components/Spinner/Spinner.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/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/ZoomableImage/ZoomableImage.js +1 -1
- package/lib/commonjs/components/index.js +1 -1
- package/lib/commonjs/form/FormContext.js +1 -1
- package/lib/commonjs/network/NetworkStatusBanner.js +1 -1
- package/lib/commonjs/theme/ThemeContext.js +1 -1
- package/lib/commonjs/theme/merge.js +1 -1
- package/lib/commonjs/theme/textStyle.js +1 -1
- package/lib/commonjs/theme/tokens.js +1 -1
- package/lib/commonjs/theme/toneInk.js +1 -0
- package/lib/commonjs/utils/ariaState.js +1 -0
- package/lib/module/components/Accordion/Accordion.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/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/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 -0
- package/lib/module/components/Calendar/CalendarDay.js +1 -0
- package/lib/module/components/Calendar/calendarDates.js +1 -0
- package/lib/module/components/Calendar/calendarStyles.js +1 -0
- package/lib/module/components/Calendar/index.js +1 -0
- 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/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/Descriptions/Descriptions.js +1 -1
- package/lib/module/components/Dialog/Dialog.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/ErrorBoundary/withErrorBoundary.js +1 -1
- package/lib/module/components/FieldBase/Chevron.js +1 -1
- package/lib/module/components/FieldBase/FieldBase.js +1 -1
- package/lib/module/components/FilePicker/FilePicker.js +1 -1
- package/lib/module/components/FloatingActionButton/FloatingActionButton.js +1 -1
- package/lib/module/components/ForceUpdateDialog/ForceUpdateDialog.js +1 -1
- package/lib/module/components/FormField/FormField.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/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/Modal/Modal.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/OptionSheet/OptionSheet.js +1 -1
- package/lib/module/components/PhoneNumberInput/PhoneNumberInput.js +1 -1
- package/lib/module/components/ProfilePicker/ProfilePicker.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/Radio/RadioGroup.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/SearchBar/SearchBar.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/Skeleton/Skeleton.js +1 -1
- package/lib/module/components/Skeleton/SkeletonClock.js +1 -1
- package/lib/module/components/Skeleton/SkeletonContent.js +1 -1
- package/lib/module/components/Skeleton/SkeletonProvider.js +1 -1
- package/lib/module/components/Skeleton/SkeletonSkip.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/SliderField/SliderField.js +1 -1
- package/lib/module/components/Spinner/Spinner.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/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/ZoomableImage/ZoomableImage.js +1 -1
- package/lib/module/components/index.js +1 -1
- package/lib/module/form/FormContext.js +1 -1
- package/lib/module/network/NetworkStatusBanner.js +1 -1
- package/lib/module/theme/ThemeContext.js +1 -1
- package/lib/module/theme/merge.js +1 -1
- package/lib/module/theme/textStyle.js +1 -1
- package/lib/module/theme/tokens.js +1 -1
- package/lib/module/theme/toneInk.js +1 -0
- package/lib/module/utils/ariaState.js +1 -0
- package/lib/typescript/commonjs/components/Accordion/Accordion.d.ts +1 -1
- package/lib/typescript/commonjs/components/AnimatePresence/AnimatePresence.d.ts +1 -1
- package/lib/typescript/commonjs/components/AppBar/AppBar.d.ts +1 -1
- package/lib/typescript/commonjs/components/AppIcon/AppIcon.d.ts +1 -1
- package/lib/typescript/commonjs/components/AsyncBlock/AsyncBlock.d.ts +1 -1
- package/lib/typescript/commonjs/components/Avatar/Avatar.d.ts +2 -2
- 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/BottomNavigation/BottomNavigation.d.ts +6 -0
- package/lib/typescript/commonjs/components/BottomSheet/BottomSheet.d.ts +1 -1
- package/lib/typescript/commonjs/components/Box/Box.d.ts +1 -1
- package/lib/typescript/commonjs/components/Calendar/Calendar.d.ts +70 -0
- package/lib/typescript/commonjs/components/Calendar/CalendarDay.d.ts +30 -0
- package/lib/typescript/commonjs/components/Calendar/calendarDates.d.ts +24 -0
- package/lib/typescript/commonjs/components/Calendar/calendarStyles.d.ts +125 -0
- package/lib/typescript/commonjs/components/Calendar/index.d.ts +4 -0
- package/lib/typescript/commonjs/components/Carousel/Carousel.d.ts +1 -1
- package/lib/typescript/commonjs/components/Chip/Chip.d.ts +1 -1
- package/lib/typescript/commonjs/components/ChoiceGroup/ChoiceGroup.d.ts +11 -1
- package/lib/typescript/commonjs/components/Confetti/Confetti.d.ts +1 -1
- package/lib/typescript/commonjs/components/DatePicker/DatePicker.d.ts +1 -1
- package/lib/typescript/commonjs/components/DateRangePicker/DateRangePicker.d.ts +7 -1
- package/lib/typescript/commonjs/components/Descriptions/Descriptions.d.ts +1 -1
- package/lib/typescript/commonjs/components/Dialog/Dialog.d.ts +1 -1
- package/lib/typescript/commonjs/components/Drawer/Drawer.d.ts +1 -1
- package/lib/typescript/commonjs/components/EmptyState/EmptyState.d.ts +1 -1
- package/lib/typescript/commonjs/components/ErrorBoundary/withErrorBoundary.d.ts +1 -1
- package/lib/typescript/commonjs/components/FieldBase/Chevron.d.ts +1 -1
- package/lib/typescript/commonjs/components/FilePicker/FilePicker.d.ts +1 -1
- package/lib/typescript/commonjs/components/ForceUpdateDialog/ForceUpdateDialog.d.ts +1 -1
- package/lib/typescript/commonjs/components/InlineSelect/InlineSelect.d.ts +1 -1
- package/lib/typescript/commonjs/components/ListItem/ListItem.d.ts +24 -0
- package/lib/typescript/commonjs/components/ListItem/index.d.ts +1 -1
- package/lib/typescript/commonjs/components/LoaderOverlay/LoaderOverlay.d.ts +1 -1
- package/lib/typescript/commonjs/components/Markdown/Markdown.d.ts +1 -1
- package/lib/typescript/commonjs/components/Modal/Modal.d.ts +1 -1
- package/lib/typescript/commonjs/components/ProfilePicker/ProfilePicker.d.ts +1 -1
- package/lib/typescript/commonjs/components/Radio/RadioDot.d.ts +1 -1
- package/lib/typescript/commonjs/components/Radio/RadioGroup.d.ts +1 -1
- package/lib/typescript/commonjs/components/Rating/Rating.d.ts +1 -1
- package/lib/typescript/commonjs/components/Repeater/Repeater.d.ts +1 -1
- package/lib/typescript/commonjs/components/RichTextEditor/RichTextEditor.d.ts +1 -1
- package/lib/typescript/commonjs/components/SectionHeader/SectionHeader.d.ts +1 -1
- package/lib/typescript/commonjs/components/SegmentedControl/SegmentedControl.d.ts +7 -0
- package/lib/typescript/commonjs/components/Skeleton/Skeleton.d.ts +1 -1
- package/lib/typescript/commonjs/components/Skeleton/SkeletonClock.d.ts +1 -1
- package/lib/typescript/commonjs/components/Skeleton/SkeletonProvider.d.ts +1 -1
- package/lib/typescript/commonjs/components/Skeleton/SkeletonSkip.d.ts +1 -1
- package/lib/typescript/commonjs/components/Spinner/Spinner.d.ts +1 -1
- package/lib/typescript/commonjs/components/StatusBadge/StatusBadge.d.ts +1 -1
- package/lib/typescript/commonjs/components/Stepper/Stepper.d.ts +1 -1
- package/lib/typescript/commonjs/components/Swipeable/Swipeable.d.ts +1 -1
- package/lib/typescript/commonjs/components/Text/Text.d.ts +1 -1
- package/lib/typescript/commonjs/components/TimePicker/TimePicker.d.ts +1 -1
- 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 +1 -1
- package/lib/typescript/commonjs/components/ZoomableImage/ZoomableImage.d.ts +1 -1
- package/lib/typescript/commonjs/components/index.d.ts +3 -1
- package/lib/typescript/commonjs/form/FormContext.d.ts +1 -1
- package/lib/typescript/commonjs/network/NetworkStatusBanner.d.ts +1 -1
- package/lib/typescript/commonjs/theme/ThemeContext.d.ts +1 -1
- package/lib/typescript/commonjs/theme/textStyle.d.ts +4 -1
- package/lib/typescript/commonjs/theme/toneInk.d.ts +38 -0
- package/lib/typescript/commonjs/theme/types.d.ts +37 -4
- package/lib/typescript/commonjs/utils/ariaState.d.ts +10 -0
- package/lib/typescript/module/components/Accordion/Accordion.d.ts +1 -1
- package/lib/typescript/module/components/AnimatePresence/AnimatePresence.d.ts +1 -1
- package/lib/typescript/module/components/AppBar/AppBar.d.ts +1 -1
- package/lib/typescript/module/components/AppIcon/AppIcon.d.ts +1 -1
- package/lib/typescript/module/components/AsyncBlock/AsyncBlock.d.ts +1 -1
- package/lib/typescript/module/components/Avatar/Avatar.d.ts +2 -2
- 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/BottomNavigation/BottomNavigation.d.ts +6 -0
- package/lib/typescript/module/components/BottomSheet/BottomSheet.d.ts +1 -1
- package/lib/typescript/module/components/Box/Box.d.ts +1 -1
- package/lib/typescript/module/components/Calendar/Calendar.d.ts +70 -0
- package/lib/typescript/module/components/Calendar/CalendarDay.d.ts +30 -0
- package/lib/typescript/module/components/Calendar/calendarDates.d.ts +24 -0
- package/lib/typescript/module/components/Calendar/calendarStyles.d.ts +125 -0
- package/lib/typescript/module/components/Calendar/index.d.ts +4 -0
- package/lib/typescript/module/components/Carousel/Carousel.d.ts +1 -1
- package/lib/typescript/module/components/Chip/Chip.d.ts +1 -1
- package/lib/typescript/module/components/ChoiceGroup/ChoiceGroup.d.ts +11 -1
- package/lib/typescript/module/components/Confetti/Confetti.d.ts +1 -1
- package/lib/typescript/module/components/DatePicker/DatePicker.d.ts +1 -1
- package/lib/typescript/module/components/DateRangePicker/DateRangePicker.d.ts +7 -1
- package/lib/typescript/module/components/Descriptions/Descriptions.d.ts +1 -1
- package/lib/typescript/module/components/Dialog/Dialog.d.ts +1 -1
- package/lib/typescript/module/components/Drawer/Drawer.d.ts +1 -1
- package/lib/typescript/module/components/EmptyState/EmptyState.d.ts +1 -1
- package/lib/typescript/module/components/ErrorBoundary/withErrorBoundary.d.ts +1 -1
- package/lib/typescript/module/components/FieldBase/Chevron.d.ts +1 -1
- package/lib/typescript/module/components/FilePicker/FilePicker.d.ts +1 -1
- package/lib/typescript/module/components/ForceUpdateDialog/ForceUpdateDialog.d.ts +1 -1
- package/lib/typescript/module/components/InlineSelect/InlineSelect.d.ts +1 -1
- package/lib/typescript/module/components/ListItem/ListItem.d.ts +24 -0
- package/lib/typescript/module/components/ListItem/index.d.ts +1 -1
- package/lib/typescript/module/components/LoaderOverlay/LoaderOverlay.d.ts +1 -1
- package/lib/typescript/module/components/Markdown/Markdown.d.ts +1 -1
- package/lib/typescript/module/components/Modal/Modal.d.ts +1 -1
- package/lib/typescript/module/components/ProfilePicker/ProfilePicker.d.ts +1 -1
- package/lib/typescript/module/components/Radio/RadioDot.d.ts +1 -1
- package/lib/typescript/module/components/Radio/RadioGroup.d.ts +1 -1
- package/lib/typescript/module/components/Rating/Rating.d.ts +1 -1
- package/lib/typescript/module/components/Repeater/Repeater.d.ts +1 -1
- package/lib/typescript/module/components/RichTextEditor/RichTextEditor.d.ts +1 -1
- package/lib/typescript/module/components/SectionHeader/SectionHeader.d.ts +1 -1
- package/lib/typescript/module/components/SegmentedControl/SegmentedControl.d.ts +7 -0
- package/lib/typescript/module/components/Skeleton/Skeleton.d.ts +1 -1
- package/lib/typescript/module/components/Skeleton/SkeletonClock.d.ts +1 -1
- package/lib/typescript/module/components/Skeleton/SkeletonProvider.d.ts +1 -1
- package/lib/typescript/module/components/Skeleton/SkeletonSkip.d.ts +1 -1
- package/lib/typescript/module/components/Spinner/Spinner.d.ts +1 -1
- package/lib/typescript/module/components/StatusBadge/StatusBadge.d.ts +1 -1
- package/lib/typescript/module/components/Stepper/Stepper.d.ts +1 -1
- package/lib/typescript/module/components/Swipeable/Swipeable.d.ts +1 -1
- package/lib/typescript/module/components/Text/Text.d.ts +1 -1
- package/lib/typescript/module/components/TimePicker/TimePicker.d.ts +1 -1
- 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 +1 -1
- package/lib/typescript/module/components/ZoomableImage/ZoomableImage.d.ts +1 -1
- package/lib/typescript/module/components/index.d.ts +3 -1
- package/lib/typescript/module/form/FormContext.d.ts +1 -1
- package/lib/typescript/module/network/NetworkStatusBanner.d.ts +1 -1
- package/lib/typescript/module/theme/ThemeContext.d.ts +1 -1
- package/lib/typescript/module/theme/textStyle.d.ts +4 -1
- package/lib/typescript/module/theme/toneInk.d.ts +38 -0
- package/lib/typescript/module/theme/types.d.ts +37 -4
- package/lib/typescript/module/utils/ariaState.d.ts +10 -0
- package/package.json +2 -2
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Calendar: an inline month grid for picking one day or a range, with marked
|
|
3
|
+
* days (holidays, events, pending requests) drawn as dots and read aloud with
|
|
4
|
+
* each day. DateRangePicker renders this same grid inside its sheet.
|
|
5
|
+
*/
|
|
6
|
+
import type { View as RNView, StyleProp, ViewStyle } from 'react-native';
|
|
7
|
+
import type { HapticType } from '../../utils/index.js';
|
|
8
|
+
import type { StatusBadgeTone } from '../StatusBadge/index.js';
|
|
9
|
+
import type { CalendarWeekStart } from './calendarDates.js';
|
|
10
|
+
export type CalendarMode = 'single' | 'range';
|
|
11
|
+
export type CalendarMarkKind = 'holiday' | 'event' | 'pending';
|
|
12
|
+
export interface CalendarMarkedDate {
|
|
13
|
+
date: Date;
|
|
14
|
+
kind: CalendarMarkKind;
|
|
15
|
+
/** What the day is ("Dussehra", "Casual leave"); read aloud before the kind. */
|
|
16
|
+
label?: string;
|
|
17
|
+
/** Dot colour. Default: `error` for a holiday, `primary` for an event, `warning` for pending. */
|
|
18
|
+
tone?: StatusBadgeTone;
|
|
19
|
+
}
|
|
20
|
+
/** A selection. Single mode uses `start` only; a range in progress has no `end` yet. */
|
|
21
|
+
export interface CalendarRange {
|
|
22
|
+
start: Date;
|
|
23
|
+
end?: Date;
|
|
24
|
+
}
|
|
25
|
+
export interface CalendarProps {
|
|
26
|
+
/** `single` picks one day; `range` picks a start, then an end. Default `single`. */
|
|
27
|
+
mode?: CalendarMode;
|
|
28
|
+
/** The selection; `null` when nothing is picked. */
|
|
29
|
+
value: CalendarRange | null;
|
|
30
|
+
/**
|
|
31
|
+
* Fires on every day tap. In range mode the first tap gives `{ start }`, the
|
|
32
|
+
* second `{ start, end }`; a tap before the start, or after a complete range,
|
|
33
|
+
* starts again from the tapped day.
|
|
34
|
+
*/
|
|
35
|
+
onChange: (range: CalendarRange) => void;
|
|
36
|
+
/** The month shown (any day in it). Omit to let the calendar own it. */
|
|
37
|
+
month?: Date;
|
|
38
|
+
/** Fires when the shown month changes, by the arrows or a tap on a neighbouring month's day. */
|
|
39
|
+
onMonthChange?: (month: Date) => void;
|
|
40
|
+
minDate?: Date;
|
|
41
|
+
maxDate?: Date;
|
|
42
|
+
/** Days that cannot be picked, besides those outside `minDate` and `maxDate`. */
|
|
43
|
+
disabledDates?: Date[];
|
|
44
|
+
/** First weekday of the grid: 0 Sunday, 1 Monday, 6 Saturday. Default 0. */
|
|
45
|
+
weekStartsOn?: CalendarWeekStart;
|
|
46
|
+
/** BCP 47 locale for month, weekday and day names. Default `'en-IN'`. */
|
|
47
|
+
locale?: string;
|
|
48
|
+
markedDates?: CalendarMarkedDate[];
|
|
49
|
+
/** Range mode: strike holidays inside a complete range and read them as not counted. */
|
|
50
|
+
strikeMarkedInRange?: boolean;
|
|
51
|
+
/**
|
|
52
|
+
* Fixed width and height of each day, at least 44. Unset, days share the
|
|
53
|
+
* width equally and stay at least 44 tall.
|
|
54
|
+
*/
|
|
55
|
+
cellSize?: number;
|
|
56
|
+
/** Haptic feedback for interactions. Pass false to disable; pass a HapticType to override the default. */
|
|
57
|
+
haptic?: HapticType | false;
|
|
58
|
+
/** Names the calendar; read with the month heading ("Leave dates, October 2026"). */
|
|
59
|
+
accessibilityLabel?: string;
|
|
60
|
+
style?: StyleProp<ViewStyle>;
|
|
61
|
+
/** Style override for the month and year heading wrapper. */
|
|
62
|
+
headerLabelStyle?: StyleProp<ViewStyle>;
|
|
63
|
+
/** Style override for the previous and next month buttons. */
|
|
64
|
+
navButtonStyle?: StyleProp<ViewStyle>;
|
|
65
|
+
testID?: string;
|
|
66
|
+
}
|
|
67
|
+
declare const Calendar: import("react").ForwardRefExoticComponent<CalendarProps & import("react").RefAttributes<RNView>>;
|
|
68
|
+
export { Calendar };
|
|
69
|
+
export default Calendar;
|
|
70
|
+
//# sourceMappingURL=Calendar.d.ts.map
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import type { StyleProp, ViewStyle } from 'react-native';
|
|
2
|
+
import type { CalendarCell } from './calendarDates.js';
|
|
3
|
+
import type { CalendarStyles } from './calendarStyles.js';
|
|
4
|
+
export interface CalendarDot {
|
|
5
|
+
key: string;
|
|
6
|
+
color: string;
|
|
7
|
+
}
|
|
8
|
+
export interface CalendarDayProps {
|
|
9
|
+
cell: CalendarCell;
|
|
10
|
+
accessibilityLabel: string;
|
|
11
|
+
disabled: boolean;
|
|
12
|
+
/** The single selected day, or the start or end of the range. */
|
|
13
|
+
edge: boolean;
|
|
14
|
+
/** Strictly between the start and end of a complete range. */
|
|
15
|
+
mid: boolean;
|
|
16
|
+
barLeft: boolean;
|
|
17
|
+
barRight: boolean;
|
|
18
|
+
today: boolean;
|
|
19
|
+
struck: boolean;
|
|
20
|
+
dots?: readonly CalendarDot[];
|
|
21
|
+
/** Day number colour for a holiday; ignored on a selected, disabled or neighbouring-month day. */
|
|
22
|
+
inkColor?: string;
|
|
23
|
+
cellStyle: StyleProp<ViewStyle>;
|
|
24
|
+
styles: CalendarStyles;
|
|
25
|
+
maxFontSizeMultiplier: number;
|
|
26
|
+
onPressDay: (cell: CalendarCell) => void;
|
|
27
|
+
}
|
|
28
|
+
/** One day of the grid; memoised so a tap re-renders only the days whose state changed. */
|
|
29
|
+
export declare const CalendarDay: import("react").MemoExoticComponent<({ cell, accessibilityLabel, disabled, edge, mid, barLeft, barRight, today, struck, dots, inkColor, cellStyle, styles, maxFontSizeMultiplier, onPressDay }: CalendarDayProps) => import("react").JSX.Element>;
|
|
30
|
+
//# sourceMappingURL=CalendarDay.d.ts.map
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/** First weekday of the grid: 0 Sunday, 1 Monday, 6 Saturday. */
|
|
2
|
+
export type CalendarWeekStart = 0 | 1 | 6;
|
|
3
|
+
export interface CalendarCell {
|
|
4
|
+
date: Date;
|
|
5
|
+
iso: string;
|
|
6
|
+
inMonth: boolean;
|
|
7
|
+
}
|
|
8
|
+
/** A grid is always six weeks, so the calendar keeps one height across months. */
|
|
9
|
+
export declare const GRID_CELLS = 42;
|
|
10
|
+
export declare const startOfDay: (date: Date) => Date;
|
|
11
|
+
export declare const startOfMonth: (date: Date) => Date;
|
|
12
|
+
export declare const addMonths: (date: Date, delta: number) => Date;
|
|
13
|
+
export declare const isSameDay: (a: Date, b: Date) => boolean;
|
|
14
|
+
/** Local calendar day as `yyyy-MM-dd`, the key every day lookup uses. */
|
|
15
|
+
export declare const toIso: (date: Date) => string;
|
|
16
|
+
/** Whole days from `a` to `b`; rounded because a DST day is 23 or 25 hours long. */
|
|
17
|
+
export declare const daysBetween: (a: Date, b: Date) => number;
|
|
18
|
+
export declare const buildMonthMatrix: (month: Date, weekStartsOn: CalendarWeekStart) => CalendarCell[];
|
|
19
|
+
/** Short weekday names in grid order, each keyed by its weekday number (0 Sunday). */
|
|
20
|
+
export declare const weekdayLabels: (locale: string, weekStartsOn: CalendarWeekStart) => {
|
|
21
|
+
weekday: number;
|
|
22
|
+
label: string;
|
|
23
|
+
}[];
|
|
24
|
+
//# sourceMappingURL=calendarDates.d.ts.map
|
|
@@ -0,0 +1,125 @@
|
|
|
1
|
+
import type { Theme } from '../../theme/types.js';
|
|
2
|
+
/** The smallest day cell: the 44 pt minimum touch target. */
|
|
3
|
+
export declare const MIN_CELL_SIZE = 44;
|
|
4
|
+
export declare const NAV_BUTTON_SIZE = 36;
|
|
5
|
+
export declare const buildCalendarStyles: (theme: Theme) => {
|
|
6
|
+
root: {
|
|
7
|
+
alignSelf: "stretch";
|
|
8
|
+
};
|
|
9
|
+
headerRow: {
|
|
10
|
+
flexDirection: "row";
|
|
11
|
+
alignItems: "center";
|
|
12
|
+
justifyContent: "space-between";
|
|
13
|
+
marginBottom: number;
|
|
14
|
+
};
|
|
15
|
+
navBtn: {
|
|
16
|
+
alignItems: "center";
|
|
17
|
+
justifyContent: "center";
|
|
18
|
+
backgroundColor: string;
|
|
19
|
+
borderCurve: "continuous";
|
|
20
|
+
width: number;
|
|
21
|
+
height: number;
|
|
22
|
+
borderRadius: 9999;
|
|
23
|
+
};
|
|
24
|
+
navBtnPressed: {
|
|
25
|
+
backgroundColor: string;
|
|
26
|
+
};
|
|
27
|
+
navBtnDisabled: {
|
|
28
|
+
opacity: number;
|
|
29
|
+
};
|
|
30
|
+
navText: {
|
|
31
|
+
fontWeight?: "normal" | "bold" | "100" | "200" | "300" | "400" | "500" | "600" | "700" | "800" | "900" | 100 | 200 | 300 | 400 | 500 | 600 | 700 | 800 | 900 | "ultralight" | "thin" | "light" | "medium" | "regular" | "semibold" | "condensedBold" | "condensed" | "heavy" | "black" | undefined | undefined;
|
|
32
|
+
fontFamily?: string | undefined | undefined;
|
|
33
|
+
fontSize: number;
|
|
34
|
+
lineHeight: number;
|
|
35
|
+
color: string;
|
|
36
|
+
};
|
|
37
|
+
headerLabelWrap: {
|
|
38
|
+
flex: number;
|
|
39
|
+
alignItems: "center";
|
|
40
|
+
};
|
|
41
|
+
headerLabel: {
|
|
42
|
+
fontWeight?: "normal" | "bold" | "100" | "200" | "300" | "400" | "500" | "600" | "700" | "800" | "900" | 100 | 200 | 300 | 400 | 500 | 600 | 700 | 800 | 900 | "ultralight" | "thin" | "light" | "medium" | "regular" | "semibold" | "condensedBold" | "condensed" | "heavy" | "black" | undefined | undefined;
|
|
43
|
+
fontFamily?: string | undefined | undefined;
|
|
44
|
+
fontSize: number;
|
|
45
|
+
color: string;
|
|
46
|
+
};
|
|
47
|
+
weekdayRow: {
|
|
48
|
+
flexDirection: "row";
|
|
49
|
+
justifyContent: "center";
|
|
50
|
+
marginBottom: number;
|
|
51
|
+
};
|
|
52
|
+
weekdayCell: {
|
|
53
|
+
alignItems: "center";
|
|
54
|
+
paddingVertical: number;
|
|
55
|
+
};
|
|
56
|
+
weekdayText: {
|
|
57
|
+
fontWeight?: "normal" | "bold" | "100" | "200" | "300" | "400" | "500" | "600" | "700" | "800" | "900" | 100 | 200 | 300 | 400 | 500 | 600 | 700 | 800 | 900 | "ultralight" | "thin" | "light" | "medium" | "regular" | "semibold" | "condensedBold" | "condensed" | "heavy" | "black" | undefined | undefined;
|
|
58
|
+
fontFamily?: string | undefined | undefined;
|
|
59
|
+
fontSize: number;
|
|
60
|
+
color: string;
|
|
61
|
+
letterSpacing: number;
|
|
62
|
+
};
|
|
63
|
+
gridRow: {
|
|
64
|
+
flexDirection: "row";
|
|
65
|
+
justifyContent: "center";
|
|
66
|
+
};
|
|
67
|
+
dayCell: {
|
|
68
|
+
alignItems: "center";
|
|
69
|
+
justifyContent: "center";
|
|
70
|
+
padding: number;
|
|
71
|
+
};
|
|
72
|
+
barLeft: {
|
|
73
|
+
position: "absolute";
|
|
74
|
+
left: number;
|
|
75
|
+
right: "50%";
|
|
76
|
+
top: "5%";
|
|
77
|
+
bottom: "5%";
|
|
78
|
+
};
|
|
79
|
+
barRight: {
|
|
80
|
+
position: "absolute";
|
|
81
|
+
left: "50%";
|
|
82
|
+
right: number;
|
|
83
|
+
top: "5%";
|
|
84
|
+
bottom: "5%";
|
|
85
|
+
};
|
|
86
|
+
rangeFill: {
|
|
87
|
+
backgroundColor: string;
|
|
88
|
+
};
|
|
89
|
+
dayInner: {
|
|
90
|
+
borderCurve: "continuous";
|
|
91
|
+
width: "90%";
|
|
92
|
+
height: "90%";
|
|
93
|
+
alignItems: "center";
|
|
94
|
+
justifyContent: "center";
|
|
95
|
+
borderRadius: 9999;
|
|
96
|
+
};
|
|
97
|
+
dayEdge: {
|
|
98
|
+
backgroundColor: string;
|
|
99
|
+
};
|
|
100
|
+
dayMid: {
|
|
101
|
+
borderRadius: 0;
|
|
102
|
+
};
|
|
103
|
+
dayText: {
|
|
104
|
+
fontWeight?: "normal" | "bold" | "100" | "200" | "300" | "400" | "500" | "600" | "700" | "800" | "900" | 100 | 200 | 300 | 400 | 500 | 600 | 700 | 800 | 900 | "ultralight" | "thin" | "light" | "medium" | "regular" | "semibold" | "condensedBold" | "condensed" | "heavy" | "black" | undefined | undefined;
|
|
105
|
+
fontFamily?: string | undefined | undefined;
|
|
106
|
+
fontSize: number;
|
|
107
|
+
};
|
|
108
|
+
dayStruck: {
|
|
109
|
+
textDecorationLine: "line-through";
|
|
110
|
+
};
|
|
111
|
+
dots: {
|
|
112
|
+
position: "absolute";
|
|
113
|
+
bottom: number;
|
|
114
|
+
flexDirection: "row";
|
|
115
|
+
gap: number;
|
|
116
|
+
};
|
|
117
|
+
dot: {
|
|
118
|
+
borderCurve: "continuous";
|
|
119
|
+
width: number;
|
|
120
|
+
height: number;
|
|
121
|
+
borderRadius: 9999;
|
|
122
|
+
};
|
|
123
|
+
};
|
|
124
|
+
export type CalendarStyles = ReturnType<typeof buildCalendarStyles>;
|
|
125
|
+
//# sourceMappingURL=calendarStyles.d.ts.map
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
* ref.current?.next();
|
|
19
19
|
* ref.current?.prev();
|
|
20
20
|
*/
|
|
21
|
-
import React from 'react';
|
|
21
|
+
import type React from 'react';
|
|
22
22
|
import type { StyleProp, ViewStyle } from 'react-native';
|
|
23
23
|
import type { HapticType } from '../../utils/index.js';
|
|
24
24
|
export type PaginationStyle = 'dots' | 'bars' | 'numbers';
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
* Same data contract as Select: `ChoiceOption[]` by default, `getOption*`
|
|
25
25
|
* accessors for custom shapes.
|
|
26
26
|
*/
|
|
27
|
-
import React from 'react';
|
|
27
|
+
import type React from 'react';
|
|
28
28
|
import type { View as RNView, StyleProp, ViewStyle } from 'react-native';
|
|
29
29
|
import type { HapticType } from '../../utils/index.js';
|
|
30
30
|
import type { SlotIcon } from '../AppIcon/slotIcon.js';
|
|
@@ -103,6 +103,16 @@ interface BaseChoiceGroupProps<T = ChoiceOption> {
|
|
|
103
103
|
disabled?: boolean;
|
|
104
104
|
/** Density of the built-in templates (padding / fontSize / icon / dot). Default `'md'`. */
|
|
105
105
|
size?: ChoiceGroupSize;
|
|
106
|
+
/**
|
|
107
|
+
* Lines an option label may take in the built-in templates before it ends in
|
|
108
|
+
* an ellipsis. Default `1`. Screen readers always get the full label.
|
|
109
|
+
*/
|
|
110
|
+
labelLines?: number;
|
|
111
|
+
/**
|
|
112
|
+
* Lines an option description may take in the card before it ends in an
|
|
113
|
+
* ellipsis. Default `2`. The card's accessible label carries the full description.
|
|
114
|
+
*/
|
|
115
|
+
descriptionLines?: number;
|
|
106
116
|
/** Haptic on select. Pass false to disable; pass a HapticType to override. */
|
|
107
117
|
haptic?: HapticType | false;
|
|
108
118
|
accessibilityLabel?: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import React from 'react';
|
|
1
|
+
import type React from 'react';
|
|
2
2
|
import type { StyleProp, ViewStyle } from 'react-native';
|
|
3
3
|
export type ConfettiPreset = 'pop' | 'rain' | 'fireworks';
|
|
4
4
|
export type ConfettiShape = 'strip' | 'square' | 'circle' | 'triangle' | 'star' | 'streamer';
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import type { ReactNode } from 'react';
|
|
2
2
|
import type { View as RNView, StyleProp, ViewStyle } from 'react-native';
|
|
3
3
|
import type { HapticType } from '../../utils/index.js';
|
|
4
|
+
import type { CalendarMarkedDate } from '../Calendar/index.js';
|
|
5
|
+
import type { CalendarWeekStart } from '../Calendar/calendarDates.js';
|
|
4
6
|
import type { PickerTriggerSize, PickerTriggerVariant } from '../PickerTrigger/index.js';
|
|
5
|
-
export type WeekStart =
|
|
7
|
+
export type WeekStart = CalendarWeekStart;
|
|
6
8
|
export interface DateRange {
|
|
7
9
|
start: Date | null;
|
|
8
10
|
end: Date | null;
|
|
@@ -42,6 +44,10 @@ export interface DateRangePickerProps {
|
|
|
42
44
|
minDate?: Date;
|
|
43
45
|
maxDate?: Date;
|
|
44
46
|
disabledDates?: Date[];
|
|
47
|
+
/** Holidays, events and pending requests drawn on the grid; see `Calendar`. */
|
|
48
|
+
markedDates?: CalendarMarkedDate[];
|
|
49
|
+
/** Strike holidays inside the chosen range and read them as not counted; see `Calendar`. */
|
|
50
|
+
strikeMarkedInRange?: boolean;
|
|
45
51
|
locale?: string;
|
|
46
52
|
weekStartsOn?: WeekStart;
|
|
47
53
|
title?: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import React from 'react';
|
|
1
|
+
import type React from 'react';
|
|
2
2
|
import type { StyleProp, TextStyle, ViewStyle } from 'react-native';
|
|
3
3
|
import type { HapticType } from '../../utils/hapticUtils.js';
|
|
4
4
|
export type DialogVariant = 'default' | 'success' | 'warning' | 'error' | 'info';
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
* ref.current?.close();
|
|
18
18
|
* ref.current?.toggle();
|
|
19
19
|
*/
|
|
20
|
-
import React from 'react';
|
|
20
|
+
import type React from 'react';
|
|
21
21
|
import type { StyleProp, ViewStyle } from 'react-native';
|
|
22
22
|
import type { HapticType } from '../../utils/index.js';
|
|
23
23
|
export type DrawerSide = 'left' | 'right' | 'top' | 'bottom';
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
* be a filled triangle drawn with view borders. Pass `open` to get the 180°
|
|
9
9
|
* rotate-on-open animation; omit it for a static chevron.
|
|
10
10
|
*/
|
|
11
|
-
import React from 'react';
|
|
11
|
+
import type React from 'react';
|
|
12
12
|
import type { StyleProp, ViewStyle } from 'react-native';
|
|
13
13
|
export interface ChevronProps {
|
|
14
14
|
color: string;
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
* (compression, EXIF strip, local copy) before it lands in `files` —
|
|
21
21
|
* plug the app's image pipeline in there.
|
|
22
22
|
*/
|
|
23
|
-
import React from 'react';
|
|
23
|
+
import type React from 'react';
|
|
24
24
|
import type { StyleProp, ViewStyle } from 'react-native';
|
|
25
25
|
import type { HapticType } from '../../utils/index.js';
|
|
26
26
|
export type FilePickerVariant = 'card' | 'list';
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
* />
|
|
22
22
|
* ```
|
|
23
23
|
*/
|
|
24
|
-
import React from 'react';
|
|
24
|
+
import type React from 'react';
|
|
25
25
|
import type { View as RNView, StyleProp, TextStyle, ViewStyle } from 'react-native';
|
|
26
26
|
import type { HapticType } from '../../utils/index.js';
|
|
27
27
|
import type { SelectOption, SelectValue } from '../OptionSheet/OptionSheet.js';
|
|
@@ -6,6 +6,12 @@ import type { ButtonProps } from '../Button/index.js';
|
|
|
6
6
|
import type { IconBadgeTone } from '../IconBadge/index.js';
|
|
7
7
|
import type { SwipeableAction } from '../Swipeable/index.js';
|
|
8
8
|
export type ListItemSize = 'sm' | 'md' | 'lg';
|
|
9
|
+
/**
|
|
10
|
+
* Where the `right` slot sits. `side` is beside the text, `below` is under the
|
|
11
|
+
* subtitle and description, and `auto` is `side` until the user's text size is
|
|
12
|
+
* above 1.2 times the default, then `below`, so a badge stops squeezing the title.
|
|
13
|
+
*/
|
|
14
|
+
export type ListItemRightPlacement = 'auto' | 'side' | 'below';
|
|
9
15
|
/** One button of the `actions` row, drawn with the library Button at size `sm`. */
|
|
10
16
|
export interface ListItemAction {
|
|
11
17
|
label: string;
|
|
@@ -46,6 +52,24 @@ export interface ListItemProps {
|
|
|
46
52
|
/** Tone of the `icon` circle. Default `'primary'`. */
|
|
47
53
|
iconTone?: IconBadgeTone;
|
|
48
54
|
right?: React.ReactNode;
|
|
55
|
+
/**
|
|
56
|
+
* Where the `right` slot is drawn. Default `'auto'`: beside the text, and
|
|
57
|
+
* under the subtitle when the font scale is above 1.2. The chevron always
|
|
58
|
+
* stays at the side.
|
|
59
|
+
*/
|
|
60
|
+
rightPlacement?: ListItemRightPlacement;
|
|
61
|
+
/**
|
|
62
|
+
* Selection mode. The whole row becomes one checkbox (role `checkbox`, with
|
|
63
|
+
* its `checked` state announced) and the box is drawn in the leading slot,
|
|
64
|
+
* before any `left` or `icon`. Pressing the row calls `onCheckedChange` and
|
|
65
|
+
* `onPress` is not used. The box is a drawing, not a control, so nothing
|
|
66
|
+
* nests inside the row's press target.
|
|
67
|
+
*/
|
|
68
|
+
selectable?: boolean;
|
|
69
|
+
/** Whether the row is checked. Controlled: update it from `onCheckedChange`. Used only with `selectable`. */
|
|
70
|
+
checked?: boolean;
|
|
71
|
+
/** Called with the next value when a `selectable` row is pressed. */
|
|
72
|
+
onCheckedChange?: (checked: boolean) => void;
|
|
49
73
|
/**
|
|
50
74
|
* A row of buttons under the item: a node drawn as is, or an array of
|
|
51
75
|
* `ListItemAction` drawn as small Buttons. They sit outside the row's press
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
export type { SwipeableAction } from '../Swipeable/index.js';
|
|
2
|
-
export type { ListItemAction, ListItemProps, ListItemSize } from './ListItem.js';
|
|
2
|
+
export type { ListItemAction, ListItemProps, ListItemRightPlacement, ListItemSize } from './ListItem.js';
|
|
3
3
|
export { default, ListItem } from './ListItem.js';
|
|
4
4
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import React from 'react';
|
|
1
|
+
import type React from 'react';
|
|
2
2
|
import type { View as RNView, StyleProp, ViewStyle } from 'react-native';
|
|
3
3
|
import type { HapticType } from '../../utils/hapticUtils.js';
|
|
4
4
|
export type ModalPresentation = 'centered' | 'bottom' | 'fullScreen';
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
* once (optimistic) while the app uploads it and reflects the result back
|
|
15
15
|
* through `value`.
|
|
16
16
|
*/
|
|
17
|
-
import React from 'react';
|
|
17
|
+
import type React from 'react';
|
|
18
18
|
import type { View as RNView, StyleProp, ViewStyle } from 'react-native';
|
|
19
19
|
import type { HapticType } from '../../utils/index.js';
|
|
20
20
|
import type { IconName, SlotIconRef } from '../AppIcon/index.js';
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
* animation or the disabled/selected colour rules. Purely visual — no press
|
|
7
7
|
* handling, no a11y role; the parent control owns those.
|
|
8
8
|
*/
|
|
9
|
-
import React from 'react';
|
|
9
|
+
import type React from 'react';
|
|
10
10
|
import type { StyleProp, ViewStyle } from 'react-native';
|
|
11
11
|
export type RadioDotSize = 'sm' | 'md' | 'lg';
|
|
12
12
|
export interface RadioDotProps {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import React from 'react';
|
|
1
|
+
import type React from 'react';
|
|
2
2
|
import type { TextInput as RNTextInput, StyleProp, TextStyle, ViewStyle } from 'react-native';
|
|
3
3
|
import type { HapticType } from '../../utils/index.js';
|
|
4
4
|
import type { MarkdownAction } from './markdownActions.js';
|
|
@@ -71,6 +71,13 @@ export interface SegmentedControlProps {
|
|
|
71
71
|
* default under this prop.
|
|
72
72
|
*/
|
|
73
73
|
radius?: SegmentedControlRadius;
|
|
74
|
+
/**
|
|
75
|
+
* Lines a segment label may take before it is truncated: 1 (default) or 2.
|
|
76
|
+
* At 2 the segment is taller by one line, so a two-word label ("Second
|
|
77
|
+
* half") wraps instead of ending in an ellipsis; a one-word label stays on
|
|
78
|
+
* one line, centred.
|
|
79
|
+
*/
|
|
80
|
+
labelLines?: 1 | 2;
|
|
74
81
|
/** Haptic feedback for interactions. Pass false to disable; pass a HapticType to override the default. */
|
|
75
82
|
haptic?: HapticType | false;
|
|
76
83
|
accessibilityLabel?: string;
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
* circle (50%), or text (small radius, slightly inset height). Set width /
|
|
23
23
|
* height directly for full control.
|
|
24
24
|
*/
|
|
25
|
-
import React from 'react';
|
|
25
|
+
import type React from 'react';
|
|
26
26
|
import type { StyleProp, ViewStyle } from 'react-native';
|
|
27
27
|
import type { RadiusScale } from '../../theme/types.js';
|
|
28
28
|
import type { SkeletonColors } from './SkeletonProvider.js';
|
|
@@ -13,8 +13,8 @@
|
|
|
13
13
|
* Skeleton interpolates that value into its own translateX / opacity output.
|
|
14
14
|
* One native-driver loop, no drift, ~zero JS cost.
|
|
15
15
|
*/
|
|
16
|
+
import type React from 'react';
|
|
16
17
|
import type { ReactNode } from 'react';
|
|
17
|
-
import React from 'react';
|
|
18
18
|
import { Animated } from 'react-native';
|
|
19
19
|
import type { SkeletonSpeed, SkeletonVariant } from './Skeleton.js';
|
|
20
20
|
export interface SkeletonClockValue {
|
|
@@ -13,8 +13,8 @@
|
|
|
13
13
|
* if the user toggles the setting while the app is open the skeletons stop
|
|
14
14
|
* shimmering immediately.
|
|
15
15
|
*/
|
|
16
|
+
import type React from 'react';
|
|
16
17
|
import type { ReactNode } from 'react';
|
|
17
|
-
import React from 'react';
|
|
18
18
|
import type { SkeletonRadius, SkeletonSpeed, SkeletonVariant } from './Skeleton.js';
|
|
19
19
|
/**
|
|
20
20
|
* Per-instance color override for a skeleton. `background` is the resting
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
* <ListItem title="Inbox item" />
|
|
15
15
|
* </Swipeable>
|
|
16
16
|
*/
|
|
17
|
-
import React from 'react';
|
|
17
|
+
import type React from 'react';
|
|
18
18
|
import type { StyleProp, ViewStyle } from 'react-native';
|
|
19
19
|
import type { HapticType } from '../../utils/index.js';
|
|
20
20
|
export type SwipeableTone = 'primary' | 'success' | 'warning' | 'error' | 'neutral';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import React from 'react';
|
|
1
|
+
import type React from 'react';
|
|
2
2
|
import type { TextProps as RNTextProps, Text as RNTextRef, StyleProp, TextStyle } from 'react-native';
|
|
3
3
|
import type { FontWeightKey } from '../../theme/index.js';
|
|
4
4
|
import type { Theme, TypographyScale } from '../../theme/types.js';
|