@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
|
@@ -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 ToastVariant = 'default' | 'success' | 'error' | 'warning' | 'info';
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
* a `source` prop would force re-implementing that per app. Wrapping keeps
|
|
22
22
|
* this component ignorant of how the image is fetched.
|
|
23
23
|
*/
|
|
24
|
-
import React from 'react';
|
|
24
|
+
import type React from 'react';
|
|
25
25
|
import type { StyleProp, ViewStyle } from 'react-native';
|
|
26
26
|
import type { HapticType } from '../../utils/index.js';
|
|
27
27
|
export interface ZoomableImageProps {
|
|
@@ -26,6 +26,8 @@ export type { BoxProps, RowProps, SpacerProps, StackProps } from './Box/index.js
|
|
|
26
26
|
export { Box, Row, Spacer, Stack } from './Box/index.js';
|
|
27
27
|
export type { ButtonProps, ButtonSize, ButtonTone, ButtonVariant } from './Button/index.js';
|
|
28
28
|
export { Button } from './Button/index.js';
|
|
29
|
+
export type { CalendarMarkedDate, CalendarMarkKind, CalendarMode, CalendarProps, CalendarRange, CalendarWeekStart } from './Calendar/index.js';
|
|
30
|
+
export { Calendar } from './Calendar/index.js';
|
|
29
31
|
export type { CardElevation, CardPadding, CardProps, CardRadius, CardTextAction, CardVariant } from './Card/index.js';
|
|
30
32
|
export { Card } from './Card/index.js';
|
|
31
33
|
export type { CarouselProps, CarouselRef, PaginationStyle } from './Carousel/index.js';
|
|
@@ -80,7 +82,7 @@ export type { KeyboardAwareScrollViewProps, KeyboardAwareScrollViewRef } from '.
|
|
|
80
82
|
export { KeyboardAwareScrollView } from './KeyboardAwareScrollView/index.js';
|
|
81
83
|
export type { KeyboardToolbarProps } from './KeyboardToolbar/index.js';
|
|
82
84
|
export { KeyboardToolbar } from './KeyboardToolbar/index.js';
|
|
83
|
-
export type { ListItemAction, ListItemProps, ListItemSize } from './ListItem/index.js';
|
|
85
|
+
export type { ListItemAction, ListItemProps, ListItemRightPlacement, ListItemSize } from './ListItem/index.js';
|
|
84
86
|
export { ListItem } from './ListItem/index.js';
|
|
85
87
|
export type { LoaderOverlayProps } from './LoaderOverlay/index.js';
|
|
86
88
|
export { LoaderOverlay, loader, useLoader } from './LoaderOverlay/index.js';
|
|
@@ -10,9 +10,12 @@ export type FontWeightKey = keyof TypographyScale['fontWeight'];
|
|
|
10
10
|
* file controls the weight glyph itself. Falls back to `fontWeight` when no
|
|
11
11
|
* brand font is registered for that weight.
|
|
12
12
|
*
|
|
13
|
+
* `face: 'display'` picks `fontFamily.display` when the theme sets it and is
|
|
14
|
+
* otherwise identical to the call without it.
|
|
15
|
+
*
|
|
13
16
|
* Note: the fontWeight scale uses `normal` while FontFamilyScale uses
|
|
14
17
|
* `regular` (the conventional font-name suffix). The helper maps between
|
|
15
18
|
* them transparently.
|
|
16
19
|
*/
|
|
17
|
-
export declare const fontFor: (theme: Theme, weight: FontWeightKey) => Pick<TextStyle, "fontFamily" | "fontWeight">;
|
|
20
|
+
export declare const fontFor: (theme: Theme, weight: FontWeightKey, face?: "display") => Pick<TextStyle, "fontFamily" | "fontWeight">;
|
|
18
21
|
//# sourceMappingURL=textStyle.d.ts.map
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/** WCAG 2.x contrast ratio of two opaque `#RRGGBB` colours. */
|
|
2
|
+
export declare const contrastRatio: (a: string, b: string) => number;
|
|
3
|
+
/**
|
|
4
|
+
* A tone colour as text that reads at 4.5:1 on the given surfaces and on the
|
|
5
|
+
* tone's own soft tint over each. The colour is returned as it is when it
|
|
6
|
+
* already reads; otherwise its lightness moves (down on a light scheme, up on
|
|
7
|
+
* a dark one) with hue and saturation kept, so the ink stays the brand's own
|
|
8
|
+
* colour, only deeper or lighter. A value that is not a six-digit hex has no
|
|
9
|
+
* lightness to move and is returned unchanged.
|
|
10
|
+
*/
|
|
11
|
+
export declare const deriveToneInk: (tone: string, surfaces: readonly string[], scheme: "light" | "dark") => string;
|
|
12
|
+
/**
|
|
13
|
+
* A tone colour as a solid fill under its `on*` ink, at 4.5:1. The fill is
|
|
14
|
+
* returned as it is when the pair already reads; otherwise its lightness moves
|
|
15
|
+
* away from the ink (darker under a light ink, lighter under a dark one) with
|
|
16
|
+
* hue and saturation kept. A colour that is not a six-digit hex has no
|
|
17
|
+
* lightness to move and is returned unchanged.
|
|
18
|
+
*/
|
|
19
|
+
export declare const deriveSolidFill: (fill: string, on: string) => string;
|
|
20
|
+
/**
|
|
21
|
+
* The hover and pressed fills of a moved or brand-named solid fill, in its own
|
|
22
|
+
* hue. Each takes the size of the library's lightness step from `reference`
|
|
23
|
+
* (the library fill and its two state fills) and moves away from the `on` ink,
|
|
24
|
+
* as the library does (darker under white, lighter under a dark ink), so the
|
|
25
|
+
* label keeps its contrast while pressed and pressed stays further from the
|
|
26
|
+
* fill than hover. A fill with no room for the step on that side steps the
|
|
27
|
+
* other way. A value that is not a six-digit hex has no lightness to step and
|
|
28
|
+
* returns the reference states.
|
|
29
|
+
*/
|
|
30
|
+
export declare const deriveStateFills: (fill: string, on: string, reference: {
|
|
31
|
+
fill: string;
|
|
32
|
+
hover: string;
|
|
33
|
+
pressed: string;
|
|
34
|
+
}) => {
|
|
35
|
+
hover: string;
|
|
36
|
+
pressed: string;
|
|
37
|
+
};
|
|
38
|
+
//# sourceMappingURL=toneInk.d.ts.map
|
|
@@ -43,10 +43,13 @@ export interface ColorPalette {
|
|
|
43
43
|
* Foreground (text/icon) colour to render ON a solid fill of each semantic
|
|
44
44
|
* tone. Solid Button / Badge / Chip / Banner backgrounds read these instead
|
|
45
45
|
* of assuming `text.inverse` (white) — white-on-pale (notably `warning`
|
|
46
|
-
* amber) fails contrast. Library defaults
|
|
47
|
-
* primary/success/error/info
|
|
48
|
-
*
|
|
49
|
-
*
|
|
46
|
+
* amber) fails contrast. Library defaults use white on the light scheme's
|
|
47
|
+
* primary/success/error/info and dark ink on `warning` and on every dark
|
|
48
|
+
* scheme tone, each pair at 4.5:1 or more, and `text.primary` for the
|
|
49
|
+
* surface-like `secondary` tone. A brand that overrides a tone colour (or
|
|
50
|
+
* its `on*` ink) gets the FILL moved, in its own hue, until the pair reads
|
|
51
|
+
* at 4.5:1 (`mergeTheme`); override per-brand to match your palette's
|
|
52
|
+
* luminance.
|
|
50
53
|
*/
|
|
51
54
|
onPrimary: string;
|
|
52
55
|
onSecondary: string;
|
|
@@ -56,6 +59,24 @@ export interface ColorPalette {
|
|
|
56
59
|
onInfo: string;
|
|
57
60
|
/** Ink on a scrim (`background.overlay`), which is dark in both schemes. */
|
|
58
61
|
onOverlay: string;
|
|
62
|
+
/**
|
|
63
|
+
* Each tone as TEXT, on the page surfaces and on that tone's own soft tint
|
|
64
|
+
* (14% of the tone). The tone colours above are fills: `warning` amber and
|
|
65
|
+
* `success` green sit near 2:1 as small text on a light page. These hold
|
|
66
|
+
* 4.5:1 against every `background.*` and the soft tint in both schemes, in
|
|
67
|
+
* the tone's own hue. Every component that draws a tone as text (soft and
|
|
68
|
+
* outline `StatusBadge`, `Banner`, `Chip`, `Button` soft / outline / ghost
|
|
69
|
+
* labels, `Avatar` initials on a tint, a field's required marker, the
|
|
70
|
+
* `FormField` hint and `ErrorBoundary` text) reads them. A brand that
|
|
71
|
+
* overrides a tone colour overrides its ink too.
|
|
72
|
+
*/
|
|
73
|
+
toneText: {
|
|
74
|
+
primary: string;
|
|
75
|
+
success: string;
|
|
76
|
+
warning: string;
|
|
77
|
+
error: string;
|
|
78
|
+
info: string;
|
|
79
|
+
};
|
|
59
80
|
text: {
|
|
60
81
|
primary: string;
|
|
61
82
|
secondary: string;
|
|
@@ -173,6 +194,14 @@ export interface FontFamilyScale {
|
|
|
173
194
|
medium?: string;
|
|
174
195
|
semibold?: string;
|
|
175
196
|
bold?: string;
|
|
197
|
+
/**
|
|
198
|
+
* The title face (a serif, say). The built-in `display`, `h1`, `h2` and
|
|
199
|
+
* `title` `Text` variants, and a registered variant with
|
|
200
|
+
* `fontFamily: 'display'`, draw in it; when unset they use the weight faces
|
|
201
|
+
* above. It is one face: the variant's weight is not sent alongside it, so
|
|
202
|
+
* register the weight you want as this face.
|
|
203
|
+
*/
|
|
204
|
+
display?: string;
|
|
176
205
|
}
|
|
177
206
|
export interface TypographyScale {
|
|
178
207
|
fontSize: {
|
|
@@ -377,6 +406,7 @@ export interface ToastTokens {
|
|
|
377
406
|
iconCircleSize: number;
|
|
378
407
|
iconCircleBorderRadius: number;
|
|
379
408
|
iconGlyphFontSize: number;
|
|
409
|
+
/** Width of the leading tone bar. Library default: 0 (none; the icon carries the tone). Set 4 to restore the bar. */
|
|
380
410
|
tintBarWidth: number;
|
|
381
411
|
/** Default auto-dismiss duration (ms) when toast.duration is unset. 0 = persistent. Library default: 3000. */
|
|
382
412
|
defaultDurationMs?: number;
|
|
@@ -819,6 +849,7 @@ export interface AppBarTokens {
|
|
|
819
849
|
badgeLineHeight?: number;
|
|
820
850
|
}
|
|
821
851
|
export interface BannerTokens {
|
|
852
|
+
/** Width of the leading tone bar. Library default: 0 (none; the icon carries the tone). Set 4 to restore the bar. */
|
|
822
853
|
tintBarWidth?: number;
|
|
823
854
|
iconCircleSize?: number;
|
|
824
855
|
iconCircleRadius?: number;
|
|
@@ -1129,6 +1160,8 @@ export interface TextVariantSpec {
|
|
|
1129
1160
|
letterSpacing?: number | keyof TypographyScale['letterSpacing'];
|
|
1130
1161
|
italic?: boolean;
|
|
1131
1162
|
fontVariant?: TextStyle['fontVariant'];
|
|
1163
|
+
/** `'display'` draws the variant in `typography.fontFamily.display` when the theme sets it; otherwise the weight faces. */
|
|
1164
|
+
fontFamily?: 'display';
|
|
1132
1165
|
}
|
|
1133
1166
|
export interface Theme {
|
|
1134
1167
|
mode: ColorMode;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { AccessibilityState, ViewProps } from 'react-native';
|
|
2
|
+
type AriaStateProps = Pick<ViewProps, 'aria-busy' | 'aria-checked' | 'aria-disabled' | 'aria-expanded' | 'aria-selected'>;
|
|
3
|
+
/**
|
|
4
|
+
* The `aria-*` twin of an `accessibilityState`. React Native Web reads only the
|
|
5
|
+
* `aria-*` props, so a control that builds its state at run time spreads this
|
|
6
|
+
* beside `accessibilityState`; phones read the same values from either.
|
|
7
|
+
*/
|
|
8
|
+
export declare const ariaFromState: (state: AccessibilityState | undefined) => AriaStateProps;
|
|
9
|
+
export {};
|
|
10
|
+
//# sourceMappingURL=ariaState.d.ts.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@webority/mobile-ui",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.9.0",
|
|
4
4
|
"description": "Beautiful, animated, accessible React Native components, theme and form engine for Webority projects.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"react-native",
|
|
@@ -107,7 +107,7 @@
|
|
|
107
107
|
]
|
|
108
108
|
},
|
|
109
109
|
"devDependencies": {
|
|
110
|
-
"@webority/mobile-core": "0.
|
|
110
|
+
"@webority/mobile-core": "0.9.0"
|
|
111
111
|
},
|
|
112
112
|
"scripts": {
|
|
113
113
|
"build": "bob build && node ../../scripts/minify-lib.mjs",
|