@webority/mobile-ui 0.128.0 → 0.130.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/dist/canvas-kit/kit.js +8340 -8095
- package/dist/canvas-kit/manifest.json +492 -333
- package/dist/canvas-kit/release.json +6 -6
- package/lib/commonjs/components/Accordion/Accordion.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/AppIcon/catalog.g.js +1 -1
- package/lib/commonjs/components/AppIcon/glyphs.g.js +1 -1
- package/lib/commonjs/components/AppIcon/variants.g.js +1 -1
- package/lib/commonjs/components/AppLockOverlay/AppLockOverlay.js +1 -1
- package/lib/commonjs/components/Avatar/Avatar.js +1 -1
- package/lib/commonjs/components/Banner/Banner.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/Card/Card.js +1 -1
- package/lib/commonjs/components/Checkbox/Checkbox.js +1 -1
- package/lib/commonjs/components/Composer/Composer.js +1 -1
- package/lib/commonjs/components/Confirm/confirm.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/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/FileViewer/FileViewerImage.js +1 -0
- package/lib/commonjs/components/FileViewer/fileSource.js +1 -0
- 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/IconBadge/IconBadge.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/ListItem/ListItem.js +1 -1
- package/lib/commonjs/components/Markdown/Markdown.js +1 -1
- package/lib/commonjs/components/Menu/Menu.js +1 -1
- package/lib/commonjs/components/Menu/MenuSurface.js +1 -1
- package/lib/commonjs/components/Menu/useContextMenu.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/OTPInput/OTPResendRow.js +1 -0
- package/lib/commonjs/components/OTPInput/index.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/PickerTrigger/PickerTrigger.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/Radio/Radio.js +1 -1
- package/lib/commonjs/components/Rating/Rating.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/Select/Select.js +1 -1
- package/lib/commonjs/components/SliderField/SliderField.js +1 -1
- package/lib/commonjs/components/SquircleImage/SquircleImage.js +1 -1
- package/lib/commonjs/components/Text/Text.js +1 -1
- package/lib/commonjs/components/Text/textInk.js +1 -0
- package/lib/commonjs/components/TimePicker/TimePicker.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/index.js +1 -1
- package/lib/commonjs/components/not-drawn.json +1 -0
- package/lib/commonjs/form/HookFormField.js +1 -1
- package/lib/commonjs/hooks/index.js +1 -1
- package/lib/commonjs/hooks/useFieldErrorScroll.js +1 -0
- package/lib/commonjs/hooks/useResendCountdown.js +1 -0
- package/lib/commonjs/icons.js +1 -0
- package/lib/commonjs/index.js +1 -1
- package/lib/commonjs/navigation/DiscardGuard.js +1 -1
- package/lib/commonjs/navigation/index.js +1 -1
- package/lib/commonjs/navigation/useNavigationTheme.js +1 -0
- package/lib/commonjs/sizes.js +1 -0
- package/lib/commonjs/squircle.js +1 -0
- package/lib/commonjs/utils/feedback.js +1 -1
- package/lib/commonjs/utils/hapticUtils.js +1 -1
- package/lib/module/components/Accordion/Accordion.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/AppIcon/catalog.g.js +1 -1
- package/lib/module/components/AppIcon/glyphs.g.js +1 -1
- package/lib/module/components/AppIcon/variants.g.js +1 -1
- package/lib/module/components/AppLockOverlay/AppLockOverlay.js +1 -1
- package/lib/module/components/Avatar/Avatar.js +1 -1
- package/lib/module/components/Banner/Banner.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/Card/Card.js +1 -1
- package/lib/module/components/Checkbox/Checkbox.js +1 -1
- package/lib/module/components/Composer/Composer.js +1 -1
- package/lib/module/components/Confirm/confirm.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/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/FileViewer/FileViewerImage.js +1 -0
- package/lib/module/components/FileViewer/fileSource.js +1 -0
- 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/IconBadge/IconBadge.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/ListItem/ListItem.js +1 -1
- package/lib/module/components/Markdown/Markdown.js +1 -1
- package/lib/module/components/Menu/Menu.js +1 -1
- package/lib/module/components/Menu/MenuSurface.js +1 -1
- package/lib/module/components/Menu/useContextMenu.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/OTPInput/OTPResendRow.js +1 -0
- package/lib/module/components/OTPInput/index.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/PickerTrigger/PickerTrigger.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/Radio/Radio.js +1 -1
- package/lib/module/components/Rating/Rating.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/Select/Select.js +1 -1
- package/lib/module/components/SliderField/SliderField.js +1 -1
- package/lib/module/components/SquircleImage/SquircleImage.js +1 -1
- package/lib/module/components/Text/Text.js +1 -1
- package/lib/module/components/Text/textInk.js +1 -0
- package/lib/module/components/TimePicker/TimePicker.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/index.js +1 -1
- package/lib/module/components/not-drawn.json +1 -0
- package/lib/module/form/HookFormField.js +1 -1
- package/lib/module/hooks/index.js +1 -1
- package/lib/module/hooks/useFieldErrorScroll.js +1 -0
- package/lib/module/hooks/useResendCountdown.js +1 -0
- package/lib/module/icons.js +1 -0
- package/lib/module/index.js +1 -1
- package/lib/module/navigation/DiscardGuard.js +1 -1
- package/lib/module/navigation/index.js +1 -1
- package/lib/module/navigation/useNavigationTheme.js +1 -0
- package/lib/module/sizes.js +1 -0
- package/lib/module/squircle.js +1 -0
- package/lib/module/utils/feedback.js +1 -1
- package/lib/module/utils/hapticUtils.js +1 -1
- package/lib/typescript/commonjs/components/Accordion/Accordion.d.ts +2 -1
- package/lib/typescript/commonjs/components/AppBar/AppBar.d.ts +2 -1
- package/lib/typescript/commonjs/components/AppIcon/AppIcon.d.ts +6 -3
- package/lib/typescript/commonjs/components/AppIcon/catalog.g.d.ts +1 -1
- package/lib/typescript/commonjs/components/AppIcon/glyphs.g.d.ts +1 -0
- package/lib/typescript/commonjs/components/AppIcon/index.d.ts +1 -1
- package/lib/typescript/commonjs/components/AppLockOverlay/AppLockOverlay.d.ts +3 -3
- package/lib/typescript/commonjs/components/Avatar/Avatar.d.ts +7 -0
- package/lib/typescript/commonjs/components/Banner/Banner.d.ts +3 -2
- package/lib/typescript/commonjs/components/BottomSheet/BottomSheet.d.ts +4 -4
- package/lib/typescript/commonjs/components/Box/Box.d.ts +2 -2
- package/lib/typescript/commonjs/components/Button/Button.d.ts +3 -0
- package/lib/typescript/commonjs/components/Card/Card.d.ts +6 -7
- package/lib/typescript/commonjs/components/Checkbox/Checkbox.d.ts +2 -1
- package/lib/typescript/commonjs/components/Chip/Chip.d.ts +2 -1
- package/lib/typescript/commonjs/components/Composer/Composer.d.ts +4 -0
- package/lib/typescript/commonjs/components/DatePicker/DatePicker.d.ts +7 -17
- package/lib/typescript/commonjs/components/DateRangePicker/DateRangePicker.d.ts +7 -17
- package/lib/typescript/commonjs/components/Descriptions/Descriptions.d.ts +2 -2
- package/lib/typescript/commonjs/components/Dialog/Dialog.d.ts +1 -1
- package/lib/typescript/commonjs/components/Drawer/Drawer.d.ts +4 -4
- package/lib/typescript/commonjs/components/FieldBase/FieldBase.d.ts +8 -6
- package/lib/typescript/commonjs/components/FileViewer/FileViewer.d.ts +5 -33
- package/lib/typescript/commonjs/components/FileViewer/FileViewerImage.d.ts +5 -0
- package/lib/typescript/commonjs/components/FileViewer/fileSource.d.ts +24 -0
- package/lib/typescript/commonjs/components/FileViewer/index.d.ts +1 -1
- package/lib/typescript/commonjs/components/FloatingActionButton/FloatingActionButton.d.ts +8 -0
- package/lib/typescript/commonjs/components/ForceUpdateDialog/ForceUpdateDialog.d.ts +3 -3
- package/lib/typescript/commonjs/components/IconBadge/IconBadge.d.ts +4 -0
- package/lib/typescript/commonjs/components/IconBadge/index.d.ts +1 -1
- package/lib/typescript/commonjs/components/Input/Input.d.ts +3 -2
- package/lib/typescript/commonjs/components/ListItem/ListItem.d.ts +7 -7
- package/lib/typescript/commonjs/components/Markdown/Markdown.d.ts +3 -1
- package/lib/typescript/commonjs/components/Menu/Menu.d.ts +3 -3
- package/lib/typescript/commonjs/components/Menu/useContextMenu.d.ts +1 -1
- package/lib/typescript/commonjs/components/Modal/Modal.d.ts +14 -4
- package/lib/typescript/commonjs/components/NumberInput/NumberInput.d.ts +2 -0
- package/lib/typescript/commonjs/components/OTPInput/OTPResendRow.d.ts +25 -0
- package/lib/typescript/commonjs/components/OTPInput/index.d.ts +2 -0
- package/lib/typescript/commonjs/components/OptionSheet/OptionSheet.d.ts +5 -5
- package/lib/typescript/commonjs/components/PhoneNumberInput/PhoneNumberInput.d.ts +3 -2
- package/lib/typescript/commonjs/components/PickerTrigger/PickerTrigger.d.ts +7 -2
- package/lib/typescript/commonjs/components/PickerTrigger/index.d.ts +1 -1
- package/lib/typescript/commonjs/components/ProgressBar/ProgressBar.d.ts +2 -0
- package/lib/typescript/commonjs/components/Radio/Radio.d.ts +2 -0
- package/lib/typescript/commonjs/components/Rating/Rating.d.ts +2 -0
- package/lib/typescript/commonjs/components/SearchBar/SearchBar.d.ts +5 -3
- package/lib/typescript/commonjs/components/SectionHeader/SectionHeader.d.ts +2 -0
- package/lib/typescript/commonjs/components/SegmentedControl/SegmentedControl.d.ts +2 -0
- package/lib/typescript/commonjs/components/Select/Select.d.ts +4 -3
- package/lib/typescript/commonjs/components/Slider/Slider.d.ts +2 -0
- package/lib/typescript/commonjs/components/SliderField/SliderField.d.ts +2 -2
- package/lib/typescript/commonjs/components/SquircleImage/SquircleImage.d.ts +4 -3
- package/lib/typescript/commonjs/components/Stepper/Stepper.d.ts +2 -0
- package/lib/typescript/commonjs/components/Switch/Switch.d.ts +2 -0
- package/lib/typescript/commonjs/components/Text/Text.d.ts +2 -0
- package/lib/typescript/commonjs/components/Text/textInk.d.ts +14 -0
- package/lib/typescript/commonjs/components/TimePicker/TimePicker.d.ts +7 -18
- package/lib/typescript/commonjs/components/Tooltip/Tooltip.d.ts +4 -3
- package/lib/typescript/commonjs/components/Tour/Tour.d.ts +1 -1
- package/lib/typescript/commonjs/components/index.d.ts +5 -6
- package/lib/typescript/commonjs/form/HookFormField.d.ts +4 -4
- package/lib/typescript/commonjs/hooks/index.d.ts +4 -0
- package/lib/typescript/commonjs/hooks/useFieldErrorScroll.d.ts +28 -0
- package/lib/typescript/commonjs/hooks/useResendCountdown.d.ts +16 -0
- package/lib/typescript/commonjs/icons.d.ts +3 -0
- package/lib/typescript/commonjs/index.d.ts +9 -8
- package/lib/typescript/commonjs/navigation/index.d.ts +1 -0
- package/lib/typescript/commonjs/navigation/useNavigationTheme.d.ts +7 -0
- package/lib/typescript/commonjs/sizes.d.ts +2 -0
- package/lib/typescript/commonjs/squircle.d.ts +2 -0
- package/lib/typescript/commonjs/utils/feedback.d.ts +2 -2
- package/lib/typescript/commonjs/utils/hapticUtils.d.ts +2 -0
- package/lib/typescript/module/components/Accordion/Accordion.d.ts +2 -1
- package/lib/typescript/module/components/AppBar/AppBar.d.ts +2 -1
- package/lib/typescript/module/components/AppIcon/AppIcon.d.ts +6 -3
- package/lib/typescript/module/components/AppIcon/catalog.g.d.ts +1 -1
- package/lib/typescript/module/components/AppIcon/glyphs.g.d.ts +1 -0
- package/lib/typescript/module/components/AppIcon/index.d.ts +1 -1
- package/lib/typescript/module/components/AppLockOverlay/AppLockOverlay.d.ts +3 -3
- package/lib/typescript/module/components/Avatar/Avatar.d.ts +7 -0
- package/lib/typescript/module/components/Banner/Banner.d.ts +3 -2
- package/lib/typescript/module/components/BottomSheet/BottomSheet.d.ts +4 -4
- package/lib/typescript/module/components/Box/Box.d.ts +2 -2
- package/lib/typescript/module/components/Button/Button.d.ts +3 -0
- package/lib/typescript/module/components/Card/Card.d.ts +6 -7
- package/lib/typescript/module/components/Checkbox/Checkbox.d.ts +2 -1
- package/lib/typescript/module/components/Chip/Chip.d.ts +2 -1
- package/lib/typescript/module/components/Composer/Composer.d.ts +4 -0
- package/lib/typescript/module/components/DatePicker/DatePicker.d.ts +7 -17
- package/lib/typescript/module/components/DateRangePicker/DateRangePicker.d.ts +7 -17
- package/lib/typescript/module/components/Descriptions/Descriptions.d.ts +2 -2
- package/lib/typescript/module/components/Dialog/Dialog.d.ts +1 -1
- package/lib/typescript/module/components/Drawer/Drawer.d.ts +4 -4
- package/lib/typescript/module/components/FieldBase/FieldBase.d.ts +8 -6
- package/lib/typescript/module/components/FileViewer/FileViewer.d.ts +5 -33
- package/lib/typescript/module/components/FileViewer/FileViewerImage.d.ts +5 -0
- package/lib/typescript/module/components/FileViewer/fileSource.d.ts +24 -0
- package/lib/typescript/module/components/FileViewer/index.d.ts +1 -1
- package/lib/typescript/module/components/FloatingActionButton/FloatingActionButton.d.ts +8 -0
- package/lib/typescript/module/components/ForceUpdateDialog/ForceUpdateDialog.d.ts +3 -3
- package/lib/typescript/module/components/IconBadge/IconBadge.d.ts +4 -0
- package/lib/typescript/module/components/IconBadge/index.d.ts +1 -1
- package/lib/typescript/module/components/Input/Input.d.ts +3 -2
- package/lib/typescript/module/components/ListItem/ListItem.d.ts +7 -7
- package/lib/typescript/module/components/Markdown/Markdown.d.ts +3 -1
- package/lib/typescript/module/components/Menu/Menu.d.ts +3 -3
- package/lib/typescript/module/components/Menu/useContextMenu.d.ts +1 -1
- package/lib/typescript/module/components/Modal/Modal.d.ts +14 -4
- package/lib/typescript/module/components/NumberInput/NumberInput.d.ts +2 -0
- package/lib/typescript/module/components/OTPInput/OTPResendRow.d.ts +25 -0
- package/lib/typescript/module/components/OTPInput/index.d.ts +2 -0
- package/lib/typescript/module/components/OptionSheet/OptionSheet.d.ts +5 -5
- package/lib/typescript/module/components/PhoneNumberInput/PhoneNumberInput.d.ts +3 -2
- package/lib/typescript/module/components/PickerTrigger/PickerTrigger.d.ts +7 -2
- package/lib/typescript/module/components/PickerTrigger/index.d.ts +1 -1
- package/lib/typescript/module/components/ProgressBar/ProgressBar.d.ts +2 -0
- package/lib/typescript/module/components/Radio/Radio.d.ts +2 -0
- package/lib/typescript/module/components/Rating/Rating.d.ts +2 -0
- package/lib/typescript/module/components/SearchBar/SearchBar.d.ts +5 -3
- package/lib/typescript/module/components/SectionHeader/SectionHeader.d.ts +2 -0
- package/lib/typescript/module/components/SegmentedControl/SegmentedControl.d.ts +2 -0
- package/lib/typescript/module/components/Select/Select.d.ts +4 -3
- package/lib/typescript/module/components/Slider/Slider.d.ts +2 -0
- package/lib/typescript/module/components/SliderField/SliderField.d.ts +2 -2
- package/lib/typescript/module/components/SquircleImage/SquircleImage.d.ts +4 -3
- package/lib/typescript/module/components/Stepper/Stepper.d.ts +2 -0
- package/lib/typescript/module/components/Switch/Switch.d.ts +2 -0
- package/lib/typescript/module/components/Text/Text.d.ts +2 -0
- package/lib/typescript/module/components/Text/textInk.d.ts +14 -0
- package/lib/typescript/module/components/TimePicker/TimePicker.d.ts +7 -18
- package/lib/typescript/module/components/Tooltip/Tooltip.d.ts +4 -3
- package/lib/typescript/module/components/Tour/Tour.d.ts +1 -1
- package/lib/typescript/module/components/index.d.ts +5 -6
- package/lib/typescript/module/form/HookFormField.d.ts +4 -4
- package/lib/typescript/module/hooks/index.d.ts +4 -0
- package/lib/typescript/module/hooks/useFieldErrorScroll.d.ts +28 -0
- package/lib/typescript/module/hooks/useResendCountdown.d.ts +16 -0
- package/lib/typescript/module/icons.d.ts +3 -0
- package/lib/typescript/module/index.d.ts +9 -8
- package/lib/typescript/module/navigation/index.d.ts +1 -0
- package/lib/typescript/module/navigation/useNavigationTheme.d.ts +7 -0
- package/lib/typescript/module/sizes.d.ts +2 -0
- package/lib/typescript/module/squircle.d.ts +2 -0
- package/lib/typescript/module/utils/feedback.d.ts +2 -2
- package/lib/typescript/module/utils/hapticUtils.d.ts +2 -0
- package/package.json +37 -7
- package/lib/commonjs/components/Notation/Notation.js +0 -1
- package/lib/commonjs/components/Notation/index.js +0 -1
- package/lib/module/components/Notation/Notation.js +0 -1
- package/lib/module/components/Notation/index.js +0 -1
- package/lib/typescript/commonjs/components/Notation/Notation.d.ts +0 -53
- package/lib/typescript/commonjs/components/Notation/index.d.ts +0 -3
- package/lib/typescript/module/components/Notation/Notation.d.ts +0 -53
- package/lib/typescript/module/components/Notation/index.d.ts +0 -3
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
* USAGE:
|
|
8
8
|
*
|
|
9
9
|
* const [open, setOpen] = useState(false);
|
|
10
|
-
* <BottomSheet
|
|
10
|
+
* <BottomSheet open={open} onClose={() => setOpen(false)} snapPoints={[200, '50%', '90%']}>
|
|
11
11
|
* <YourContent />
|
|
12
12
|
* </BottomSheet>
|
|
13
13
|
*/
|
|
@@ -39,9 +39,9 @@ export interface BottomSheetProps {
|
|
|
39
39
|
*/
|
|
40
40
|
snapPoints?: SnapPoint[];
|
|
41
41
|
/** Whether the sheet is open. Set it to false in `onClose`; a sheet closed by the person stays closed until this goes false and true again. */
|
|
42
|
-
|
|
42
|
+
open: boolean;
|
|
43
43
|
/**
|
|
44
|
-
* Called after the person dismisses the sheet (a handle drag, a swipe down, the scrim, Android Back, Escape) and `onBeforeClose` allowed it. The parent sets `
|
|
44
|
+
* Called after the person dismisses the sheet (a handle drag, a swipe down, the scrim, Android Back, Escape) and `onBeforeClose` allowed it. The parent sets `open` to false in it; a sheet closed this way stays closed until `open` goes false and true again.
|
|
45
45
|
*/
|
|
46
46
|
onClose: () => void;
|
|
47
47
|
/** The snap point to open at, and the one to move to when it changes. Omitted, the sheet opens at its first snap point. A drag does not move it: follow the position with `onSnapChange`. */
|
|
@@ -132,7 +132,7 @@ export interface BottomSheetProps {
|
|
|
132
132
|
*/
|
|
133
133
|
presentation?: BottomSheetPresentation;
|
|
134
134
|
/**
|
|
135
|
-
* Whether a sheet that opens as it mounts (`
|
|
135
|
+
* Whether a sheet that opens as it mounts (`open` on the first render)
|
|
136
136
|
* slides up into place. When false it is drawn at its snap
|
|
137
137
|
* point at once, and a re-measured host moves it without a spring, until
|
|
138
138
|
* its first close; later opens slide as usual. Default true.
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type React from "react";
|
|
2
2
|
import type { View as RNView, StyleProp, ViewProps, ViewStyle } from "react-native";
|
|
3
3
|
import type { RadiusName, SpaceName, Theme } from "../../theme/types.js";
|
|
4
|
-
export type BackgroundToken = "bg" | "bg-subtle" | "bg-muted" | "surface" | "scrim" | "surface-inverse";
|
|
4
|
+
export type BackgroundToken = "bg" | "bg-subtle" | "bg-muted" | "surface" | "scrim" | "surface-inverse" | "primary-wash";
|
|
5
5
|
export interface BoxProps extends ViewProps {
|
|
6
6
|
/** padding (all sides) */
|
|
7
7
|
p?: SpaceName;
|
|
@@ -23,7 +23,7 @@ export interface BoxProps extends ViewProps {
|
|
|
23
23
|
ml?: SpaceName;
|
|
24
24
|
/** Flexbox gap between children (spacing token). */
|
|
25
25
|
gap?: SpaceName;
|
|
26
|
-
/** Background: a colour name (bg, bg-subtle, bg-muted, surface, scrim, surface-inverse) or a raw colour string. */
|
|
26
|
+
/** Background: a colour name (bg, bg-subtle, bg-muted, surface, scrim, surface-inverse, primary-wash) or a raw colour string. */
|
|
27
27
|
bg?: BackgroundToken | (string & {});
|
|
28
28
|
radius?: RadiusName;
|
|
29
29
|
/** Draw a hairline border in `colors.border`. */
|
|
@@ -62,6 +62,9 @@ export interface ButtonProps extends Omit<PressableProps, "style" | "children">
|
|
|
62
62
|
* `leftIcon`.
|
|
63
63
|
*/
|
|
64
64
|
leftIconBadge?: boolean;
|
|
65
|
+
/**
|
|
66
|
+
* Haptic on press. Defaults to a light tap (`impactLight`); a `HapticType` changes it and `false` switches it off. The app-wide switch (`configureFeedback`) silences it too.
|
|
67
|
+
*/
|
|
65
68
|
haptic?: HapticType | false;
|
|
66
69
|
rounded?: boolean;
|
|
67
70
|
/**
|
|
@@ -12,10 +12,10 @@ export interface CardTextAction {
|
|
|
12
12
|
accessibilityLabel?: string;
|
|
13
13
|
}
|
|
14
14
|
export type CardElevation = "none" | ShadowName;
|
|
15
|
-
export type CardRadius = "sm" | "md" | "lg" | "xl";
|
|
15
|
+
export type CardRadius = "sm" | "md" | "lg" | "xl" | "pill";
|
|
16
16
|
export type CardPadding = "none" | "sm" | "md" | "lg" | "xl";
|
|
17
17
|
export type CardTitleFont = "sans" | "serif";
|
|
18
|
-
declare const BACKGROUND_TOKENS: readonly ["bg", "bg-subtle", "bg-muted", "surface", "scrim", "surface-inverse"];
|
|
18
|
+
declare const BACKGROUND_TOKENS: readonly ["bg", "bg-subtle", "bg-muted", "surface", "scrim", "surface-inverse", "primary-wash"];
|
|
19
19
|
type CardBackgroundToken = (typeof BACKGROUND_TOKENS)[number];
|
|
20
20
|
export type CardBackground = CardBackgroundToken | (string & {});
|
|
21
21
|
export interface CardLabels {
|
|
@@ -35,8 +35,8 @@ export interface CardProps extends Omit<PressableProps, "style" | "children"> {
|
|
|
35
35
|
/** Press feedback of a card with `onPress`. `false` draws none. Default `'scale'`. */
|
|
36
36
|
pressAnimation?: PressAnimationPreset | false;
|
|
37
37
|
/**
|
|
38
|
-
* Background colour: a background colour name (`bg`, `bg-subtle`, `bg-muted`, `surface`, `scrim`, `surface-inverse`) or any raw colour string. Applies on every variant and replaces the variant's default
|
|
39
|
-
* surface colour; `
|
|
38
|
+
* Background colour: a background colour name (`bg`, `bg-subtle`, `bg-muted`, `surface`, `scrim`, `surface-inverse`, `primary-wash`) or any raw colour string. Applies on every variant and replaces the variant's default
|
|
39
|
+
* surface colour; `containerStyle`, then `style`, still win over it.
|
|
40
40
|
*/
|
|
41
41
|
bg?: CardBackground;
|
|
42
42
|
/** Free-form header slot. When given it replaces the built-in header below. */
|
|
@@ -95,8 +95,9 @@ export interface CardProps extends Omit<PressableProps, "style" | "children"> {
|
|
|
95
95
|
*/
|
|
96
96
|
contextMenu?: ContextMenuConfig;
|
|
97
97
|
accessibilityLabel?: string;
|
|
98
|
+
/** The outer box. Applied last on that node, so it wins over containerStyle. */
|
|
98
99
|
style?: StyleProp<ViewStyle>;
|
|
99
|
-
/** Alias
|
|
100
|
+
/** Alias of style, applied before it on the same node. Use style. */
|
|
100
101
|
containerStyle?: StyleProp<ViewStyle>;
|
|
101
102
|
/** Style applied to the header wrapper View. */
|
|
102
103
|
headerStyle?: StyleProp<ViewStyle>;
|
|
@@ -104,8 +105,6 @@ export interface CardProps extends Omit<PressableProps, "style" | "children"> {
|
|
|
104
105
|
bodyStyle?: StyleProp<ViewStyle>;
|
|
105
106
|
/** Style applied to the footer wrapper View. */
|
|
106
107
|
footerStyle?: StyleProp<ViewStyle>;
|
|
107
|
-
/** Per-instance override of the corner radius. Wins over the `radius` token. */
|
|
108
|
-
borderRadius?: number;
|
|
109
108
|
testID?: string;
|
|
110
109
|
}
|
|
111
110
|
declare const Card: React.MemoExoticComponent<React.ForwardRefExoticComponent<CardProps & React.RefAttributes<RNView>>> & {
|
|
@@ -38,11 +38,12 @@ export interface CheckboxProps extends Omit<PressableProps, "style" | "children"
|
|
|
38
38
|
accessibilityLabel?: string;
|
|
39
39
|
/** Haptic feedback for interactions. Pass false to disable; pass a HapticType to override the default. */
|
|
40
40
|
haptic?: HapticType | false;
|
|
41
|
+
/** The outer box. Applied last on that node, so it wins over containerStyle. */
|
|
41
42
|
style?: StyleProp<ViewStyle>;
|
|
42
43
|
boxStyle?: StyleProp<ViewStyle>;
|
|
43
44
|
/** Style override for the indeterminate bar inside the box. */
|
|
44
45
|
indeterminateBarStyle?: StyleProp<ViewStyle>;
|
|
45
|
-
/**
|
|
46
|
+
/** Alias of style, applied before it on the same node. Use style. */
|
|
46
47
|
containerStyle?: StyleProp<ViewStyle>;
|
|
47
48
|
/** Style override for the label text. */
|
|
48
49
|
labelStyle?: StyleProp<TextStyle>;
|
|
@@ -65,9 +65,10 @@ export interface ChipProps {
|
|
|
65
65
|
accessibilityLabel?: string;
|
|
66
66
|
/** Haptic feedback for interactions. Pass false to disable; pass a HapticType to override the default. */
|
|
67
67
|
haptic?: HapticType | false;
|
|
68
|
+
/** The outer box. Applied last on that node, so it wins over containerStyle. */
|
|
68
69
|
style?: StyleProp<ViewStyle>;
|
|
69
70
|
textStyle?: StyleProp<TextStyle>;
|
|
70
|
-
/**
|
|
71
|
+
/** Alias of style, applied before it on the same node. Use style. */
|
|
71
72
|
containerStyle?: StyleProp<ViewStyle>;
|
|
72
73
|
/** Style override for the count text. */
|
|
73
74
|
countStyle?: StyleProp<TextStyle>;
|
|
@@ -34,6 +34,10 @@ export interface ComposerProps {
|
|
|
34
34
|
* to send an attachment alone: `onSend` then gets an empty string. `loading` and `disabled` still block.
|
|
35
35
|
*/
|
|
36
36
|
canSend?: boolean;
|
|
37
|
+
/** Draws a ring on the box that moves between two theme colours, for a typing or loading state. Holds still under reduced motion. */
|
|
38
|
+
ring?: boolean;
|
|
39
|
+
/** `onText` shows the send button only while there is something to send or stop. Default `always`. */
|
|
40
|
+
sendReveal?: "always" | "onText";
|
|
37
41
|
maxLength?: number;
|
|
38
42
|
/** The box grows to this many lines, then scrolls. Default 5. */
|
|
39
43
|
maxLines?: number;
|
|
@@ -2,7 +2,7 @@ import type React from "react";
|
|
|
2
2
|
import type { StyleProp, ViewStyle } from "react-native";
|
|
3
3
|
import type { HapticType } from "../../utils/index.js";
|
|
4
4
|
import type { CalendarWeekStart } from "../Calendar/index.js";
|
|
5
|
-
import type {
|
|
5
|
+
import type { PickerTriggerPassThroughProps } from "../PickerTrigger/index.js";
|
|
6
6
|
export type WeekStart = CalendarWeekStart;
|
|
7
7
|
export interface DatePickerLabels {
|
|
8
8
|
title: string;
|
|
@@ -24,9 +24,9 @@ export declare const DEFAULT_DATE_PICKER_LABELS: Readonly<DatePickerLabels>;
|
|
|
24
24
|
/**
|
|
25
25
|
* DatePicker operates in two modes:
|
|
26
26
|
*
|
|
27
|
-
* 1. **Controlled-modal mode
|
|
27
|
+
* 1. **Controlled-modal mode**: pass `open` (plus `onChange` / `onClose`)
|
|
28
28
|
* and own the open state externally. The component renders only the modal.
|
|
29
|
-
* 2. **Trigger mode
|
|
29
|
+
* 2. **Trigger mode**: omit `open`. The component renders a built-in
|
|
30
30
|
* PickerTrigger field (label / value / placeholder / chevron / clear /
|
|
31
31
|
* helper / error / size / variant) and manages its own open state. The
|
|
32
32
|
* field opens the modal on press and closes it on confirm/cancel.
|
|
@@ -35,8 +35,8 @@ export declare const DEFAULT_DATE_PICKER_LABELS: Readonly<DatePickerLabels>;
|
|
|
35
35
|
* where the consumer may not need either callback. In controlled-modal mode
|
|
36
36
|
* they remain semantically required.
|
|
37
37
|
*/
|
|
38
|
-
export interface DatePickerProps {
|
|
39
|
-
|
|
38
|
+
export interface DatePickerProps extends PickerTriggerPassThroughProps {
|
|
39
|
+
open?: boolean;
|
|
40
40
|
value?: Date | null;
|
|
41
41
|
onChange?: (date: Date) => void;
|
|
42
42
|
onClose?: () => void;
|
|
@@ -48,8 +48,9 @@ export interface DatePickerProps {
|
|
|
48
48
|
weekStartsOn?: WeekStart;
|
|
49
49
|
title?: string;
|
|
50
50
|
labels?: Partial<DatePickerLabels>;
|
|
51
|
+
/** The outer box. Applied last on that node, so it wins over containerStyle. Applied to the calendar card. */
|
|
51
52
|
style?: StyleProp<ViewStyle>;
|
|
52
|
-
/**
|
|
53
|
+
/** Alias of style, applied before it on the same node. Use style. Applied to the calendar card. */
|
|
53
54
|
containerStyle?: StyleProp<ViewStyle>;
|
|
54
55
|
/** Style override for the header label text wrapper (month/year). */
|
|
55
56
|
headerLabelStyle?: StyleProp<ViewStyle>;
|
|
@@ -60,18 +61,7 @@ export interface DatePickerProps {
|
|
|
60
61
|
/** Haptic feedback for interactions. Pass false to disable; pass a HapticType to override the default. */
|
|
61
62
|
haptic?: HapticType | false;
|
|
62
63
|
testID?: string;
|
|
63
|
-
label?: string;
|
|
64
|
-
placeholder?: string;
|
|
65
|
-
helperText?: string;
|
|
66
|
-
error?: string | boolean;
|
|
67
|
-
required?: boolean;
|
|
68
|
-
disabled?: boolean;
|
|
69
|
-
size?: PickerTriggerSize;
|
|
70
|
-
variant?: PickerTriggerVariant;
|
|
71
|
-
clearable?: boolean;
|
|
72
|
-
onClear?: () => void;
|
|
73
64
|
formatValue?: (date: Date) => string;
|
|
74
|
-
triggerStyle?: StyleProp<ViewStyle>;
|
|
75
65
|
}
|
|
76
66
|
declare const DatePicker: React.FC<DatePickerProps>;
|
|
77
67
|
export { DatePicker };
|
|
@@ -2,7 +2,7 @@ import type { View as RNView, StyleProp, ViewStyle } from "react-native";
|
|
|
2
2
|
import type { HapticType } from "../../utils/index.js";
|
|
3
3
|
import type { CalendarMark } from "../Calendar/index.js";
|
|
4
4
|
import type { CalendarWeekStart } from "../Calendar/calendarDates.js";
|
|
5
|
-
import type {
|
|
5
|
+
import type { PickerTriggerPassThroughProps } from "../PickerTrigger/index.js";
|
|
6
6
|
export type WeekStart = CalendarWeekStart;
|
|
7
7
|
export interface DateRange {
|
|
8
8
|
start: Date | null;
|
|
@@ -18,35 +18,24 @@ export declare const DEFAULT_DATE_RANGE_PICKER_LABELS: Readonly<DateRangePickerL
|
|
|
18
18
|
/**
|
|
19
19
|
* DateRangePicker — supports two usage modes:
|
|
20
20
|
*
|
|
21
|
-
* 1. Controlled-modal mode (pass `
|
|
21
|
+
* 1. Controlled-modal mode (pass `open` + `onClose`): renders only the
|
|
22
22
|
* modal; parent owns open/close state.
|
|
23
|
-
* 2. Trigger mode (omit `
|
|
23
|
+
* 2. Trigger mode (omit `open`): renders a built-in `PickerTrigger`
|
|
24
24
|
* field that opens an internally-managed modal on tap. Confirm fires
|
|
25
25
|
* `onChange?.(...)` and closes.
|
|
26
26
|
*/
|
|
27
|
-
export interface DateRangePickerProps {
|
|
28
|
-
|
|
27
|
+
export interface DateRangePickerProps extends PickerTriggerPassThroughProps {
|
|
28
|
+
open?: boolean;
|
|
29
29
|
value: DateRange;
|
|
30
30
|
onChange?: (range: {
|
|
31
31
|
start: Date;
|
|
32
32
|
end: Date;
|
|
33
33
|
}) => void;
|
|
34
34
|
onClose?: () => void;
|
|
35
|
-
label?: string;
|
|
36
|
-
placeholder?: string;
|
|
37
|
-
helperText?: string;
|
|
38
|
-
error?: string | boolean;
|
|
39
|
-
required?: boolean;
|
|
40
|
-
disabled?: boolean;
|
|
41
|
-
size?: PickerTriggerSize;
|
|
42
|
-
variant?: PickerTriggerVariant;
|
|
43
|
-
clearable?: boolean;
|
|
44
|
-
onClear?: () => void;
|
|
45
35
|
formatValue?: (range: {
|
|
46
36
|
start: Date;
|
|
47
37
|
end: Date;
|
|
48
38
|
}) => string;
|
|
49
|
-
triggerStyle?: StyleProp<ViewStyle>;
|
|
50
39
|
minDate?: Date;
|
|
51
40
|
maxDate?: Date;
|
|
52
41
|
disabledDates?: Date[];
|
|
@@ -63,8 +52,9 @@ export interface DateRangePickerProps {
|
|
|
63
52
|
* to override the default.
|
|
64
53
|
*/
|
|
65
54
|
haptic?: HapticType | false;
|
|
55
|
+
/** The outer box, applied to the calendar card. Applied last on that node, so it wins over containerStyle. */
|
|
66
56
|
style?: StyleProp<ViewStyle>;
|
|
67
|
-
/**
|
|
57
|
+
/** Applied to the calendar card. Alias of style, applied before it on the same node. Use style. */
|
|
68
58
|
containerStyle?: StyleProp<ViewStyle>;
|
|
69
59
|
/** Style override for the header label (month/year) wrapper. */
|
|
70
60
|
headerLabelStyle?: StyleProp<ViewStyle>;
|
|
@@ -11,8 +11,8 @@ export interface DescriptionItem {
|
|
|
11
11
|
*/
|
|
12
12
|
label: React.ReactNode;
|
|
13
13
|
/**
|
|
14
|
-
* A string, a number
|
|
15
|
-
* size, weight and colour (`strong`, `tone`)
|
|
14
|
+
* A string, a number or a list of those renders as text in the value's
|
|
15
|
+
* size, weight and colour (`strong`, `tone`). Any other node (a badge, a
|
|
16
16
|
* Text of your own) renders as-is in a View and owns its type. Empty renders as a plain hyphen, "-".
|
|
17
17
|
*/
|
|
18
18
|
value?: React.ReactNode;
|
|
@@ -27,12 +27,12 @@ export interface DrawerLabels {
|
|
|
27
27
|
}
|
|
28
28
|
export declare const DEFAULT_DRAWER_LABELS: DrawerLabels;
|
|
29
29
|
export interface DrawerProps {
|
|
30
|
-
/** Controlled
|
|
31
|
-
|
|
30
|
+
/** Controlled open state. Omit to use internal state. */
|
|
31
|
+
open?: boolean;
|
|
32
32
|
/** Initial visibility for uncontrolled usage. */
|
|
33
|
-
|
|
33
|
+
defaultOpen?: boolean;
|
|
34
34
|
/** Fired whenever the drawer transitions open/closed. */
|
|
35
|
-
|
|
35
|
+
onOpenChange?: (open: boolean) => void;
|
|
36
36
|
/** Edge the drawer slides in from. */
|
|
37
37
|
side?: DrawerSide;
|
|
38
38
|
/** Drawer dimension along the slide axis (width for left/right, height for top/bottom). */
|
|
@@ -116,15 +116,15 @@ export interface FieldBaseProps {
|
|
|
116
116
|
paddingRight?: number;
|
|
117
117
|
/** Override vertical padding (single-line). Multiline parents usually leave this default. */
|
|
118
118
|
paddingVertical?: number;
|
|
119
|
-
/**
|
|
120
|
-
|
|
121
|
-
/** Top-left corner radius. Wins over `
|
|
119
|
+
/** Corner radius token (shorthand for all four corners), resolved through `theme.radius`. SearchBar pill uses `"pill"`. */
|
|
120
|
+
radius?: keyof Theme["radius"];
|
|
121
|
+
/** Top-left corner radius. Wins over `radius`. */
|
|
122
122
|
borderTopLeftRadius?: number;
|
|
123
|
-
/** Top-right corner radius. Wins over `
|
|
123
|
+
/** Top-right corner radius. Wins over `radius`. */
|
|
124
124
|
borderTopRightRadius?: number;
|
|
125
|
-
/** Bottom-left corner radius. Wins over `
|
|
125
|
+
/** Bottom-left corner radius. Wins over `radius`. */
|
|
126
126
|
borderBottomLeftRadius?: number;
|
|
127
|
-
/** Bottom-right corner radius. Wins over `
|
|
127
|
+
/** Bottom-right corner radius. Wins over `radius`. */
|
|
128
128
|
borderBottomRightRadius?: number;
|
|
129
129
|
/** Override border width (shorthand — all four sides). OTP uses 1.5; everything else inherits `size.border`. */
|
|
130
130
|
borderWidth?: number;
|
|
@@ -138,6 +138,8 @@ export interface FieldBaseProps {
|
|
|
138
138
|
borderLeftWidth?: number;
|
|
139
139
|
/** Gap between leading / children / trailing. Defaults to `theme.space.md` (the spec's 12px). */
|
|
140
140
|
gap?: number;
|
|
141
|
+
/** Drop the room below the field, for a field that sits tight on the content under it. */
|
|
142
|
+
flushBottom?: boolean;
|
|
141
143
|
style?: StyleProp<ViewStyle>;
|
|
142
144
|
testID?: string;
|
|
143
145
|
accessibilityRole?: AccessibilityRole;
|
|
@@ -1,20 +1,12 @@
|
|
|
1
|
-
import { type DownloadHttpClient } from "@webority/mobile-core/download";
|
|
2
1
|
import type React from "react";
|
|
3
2
|
import type { StyleProp, ViewStyle } from "react-native";
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
/**
|
|
8
|
-
* Fetches a remote `uri`. Pass the app's signed-in client (mobile-core's
|
|
9
|
-
* `userClient`, or its own) for a document behind sign-in; defaults to
|
|
10
|
-
* mobile-core's `publicClient`.
|
|
11
|
-
*/
|
|
12
|
-
client?: DownloadHttpClient;
|
|
13
|
-
/** Reuse a previously downloaded copy of this URL instead of re-fetching. Default true. */
|
|
14
|
-
cache?: boolean;
|
|
15
|
-
}
|
|
3
|
+
import { type FileViewerSource } from "./fileSource.js";
|
|
4
|
+
export type { FileViewerSource } from "./fileSource.js";
|
|
5
|
+
export type FileViewerKind = "auto" | "pdf" | "image";
|
|
16
6
|
export interface FileViewerProps {
|
|
17
7
|
source: FileViewerSource;
|
|
8
|
+
/** Default "auto": a picture when the file name ends in a picture extension, otherwise a PDF. Pass "image" for a signed link with no extension. */
|
|
9
|
+
kind?: FileViewerKind;
|
|
18
10
|
onLoadComplete?: (numberOfPages: number) => void;
|
|
19
11
|
onPageChanged?: (page: number, numberOfPages: number) => void;
|
|
20
12
|
onError?: (error: Error) => void;
|
|
@@ -28,26 +20,6 @@ export interface FileViewerProps {
|
|
|
28
20
|
testID?: string;
|
|
29
21
|
accessibilityLabel?: string;
|
|
30
22
|
}
|
|
31
|
-
/**
|
|
32
|
-
* Renders a PDF via our own native rasterizer (Core Graphics on iOS, PdfRenderer on
|
|
33
|
-
* Android), with no third-party PDF dependency. Pages are paged through a plain
|
|
34
|
-
* `ScrollView` with manual windowed mounting, not a `FlatList`: a
|
|
35
|
-
* `VirtualizedList`-based component would trip React Native's "VirtualizedLists
|
|
36
|
-
* should never be nested inside plain ScrollViews" the moment a consumer embeds
|
|
37
|
-
* FileViewer in their own scrolling screen, which is a completely ordinary way to
|
|
38
|
-
* use it. Avoiding the VirtualizedList primitive entirely removes that whole class
|
|
39
|
-
* of warning rather than working around one instance of it. The WebView fallback
|
|
40
|
-
* consumer apps use for non-PDF office documents is a distinct rendering strategy
|
|
41
|
-
* and stays app-side.
|
|
42
|
-
*
|
|
43
|
-
* Pages render one at a time, nearest the reader first, `RENDER_AHEAD` each way,
|
|
44
|
-
* and their files are kept, so scrolling back or ahead never lands on a blank
|
|
45
|
-
* page; only `MOUNT_AROUND` pages each side decode their image. Pinch zooms around
|
|
46
|
-
* the fingers and a double tap zooms in on the tap or back out; the transform sits
|
|
47
|
-
* on the whole scroll view, so while zoomed a one-finger drag pans and, past the
|
|
48
|
-
* zoomed page's top or bottom edge, carries on into the document's scroll. A
|
|
49
|
-
* settled zoom re-renders the page in view at the sharper scale it needs.
|
|
50
|
-
*/
|
|
51
23
|
export declare const FileViewer: React.FC<FileViewerProps>;
|
|
52
24
|
export default FileViewer;
|
|
53
25
|
//# sourceMappingURL=FileViewer.d.ts.map
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type React from "react";
|
|
2
|
+
import type { FileViewerProps } from "./FileViewer.js";
|
|
3
|
+
/** FileViewer's picture mode: one zoomable image that fills the viewer, sharing its zoom and loading shell. */
|
|
4
|
+
export declare const FileViewerImage: React.FC<Omit<FileViewerProps, "kind" | "onPageChanged">>;
|
|
5
|
+
//# sourceMappingURL=FileViewerImage.d.ts.map
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { type DownloadHttpClient } from "@webority/mobile-core/download";
|
|
2
|
+
import type { FileViewerKind } from "./FileViewer.js";
|
|
3
|
+
export interface FileViewerSource {
|
|
4
|
+
uri: string;
|
|
5
|
+
headers?: Record<string, string>;
|
|
6
|
+
/**
|
|
7
|
+
* Fetches a remote `uri`. Pass the app's signed-in client (mobile-core's
|
|
8
|
+
* `userClient`, or its own) for a document behind sign-in; defaults to
|
|
9
|
+
* mobile-core's `publicClient`.
|
|
10
|
+
*/
|
|
11
|
+
client?: DownloadHttpClient;
|
|
12
|
+
/** Reuse a previously downloaded copy of this URL instead of re-fetching. Default true. */
|
|
13
|
+
cache?: boolean;
|
|
14
|
+
}
|
|
15
|
+
export declare const HAS_SCHEME: RegExp;
|
|
16
|
+
/**
|
|
17
|
+
* Named from the whole URL, so two documents whose URLs end the same
|
|
18
|
+
* (`/collateral/123` and `/leads/123`) never share one saved copy.
|
|
19
|
+
*/
|
|
20
|
+
export declare const cacheFileName: (uri: string) => string;
|
|
21
|
+
export declare const localPathFromSource: (source: FileViewerSource) => Promise<string>;
|
|
22
|
+
/** "auto" reads the file name: a picture extension is a picture, anything else a PDF. */
|
|
23
|
+
export declare const resolveKind: (kind: FileViewerKind, uri: string) => "pdf" | "image";
|
|
24
|
+
//# sourceMappingURL=fileSource.d.ts.map
|
|
@@ -27,13 +27,20 @@ export interface FloatingActionButtonProps {
|
|
|
27
27
|
position?: FloatingActionButtonPosition;
|
|
28
28
|
bottomOffset?: number;
|
|
29
29
|
disabled?: boolean;
|
|
30
|
+
/**
|
|
31
|
+
* Replaces the icon with a Spinner and ignores presses, for an action already in flight.
|
|
32
|
+
* The button keeps its colours and reports itself busy to assistive technology.
|
|
33
|
+
*/
|
|
34
|
+
loading?: boolean;
|
|
30
35
|
hideOnScroll?: boolean;
|
|
31
36
|
isScrolling?: boolean;
|
|
32
37
|
accessibilityLabel: string;
|
|
33
38
|
accessibilityHint?: string;
|
|
34
39
|
/** Haptic feedback for interactions. Pass false to disable; pass a HapticType to override the default. */
|
|
35
40
|
haptic?: HapticType | false;
|
|
41
|
+
/** The outer box. Applied last on that node, so it wins over containerStyle. */
|
|
36
42
|
style?: StyleProp<ViewStyle>;
|
|
43
|
+
/** Alias of style, applied before it on the same node. Use style. */
|
|
37
44
|
containerStyle?: StyleProp<ViewStyle>;
|
|
38
45
|
labelStyle?: StyleProp<ViewStyle>;
|
|
39
46
|
testID?: string;
|
|
@@ -81,6 +88,7 @@ export interface FloatingActionButtonGroupProps {
|
|
|
81
88
|
hideOnScroll?: boolean;
|
|
82
89
|
/** Whether the list behind the group is scrolling right now; wire to your scroll handler. */
|
|
83
90
|
isScrolling?: boolean;
|
|
91
|
+
/** Styles the group wrapper, not an alias of `style`. */
|
|
84
92
|
containerStyle?: StyleProp<ViewStyle>;
|
|
85
93
|
secondaryActionStyle?: StyleProp<ViewStyle>;
|
|
86
94
|
labelPillStyle?: StyleProp<ViewStyle>;
|
|
@@ -8,8 +8,8 @@ export interface ForceUpdateDialogLabels {
|
|
|
8
8
|
}
|
|
9
9
|
export declare const DEFAULT_FORCE_UPDATE_DIALOG_LABELS: ForceUpdateDialogLabels;
|
|
10
10
|
export interface ForceUpdateDialogProps {
|
|
11
|
-
/** Whether the dialog is
|
|
12
|
-
|
|
11
|
+
/** Whether the dialog is open. */
|
|
12
|
+
open: boolean;
|
|
13
13
|
/** Called when the dialog is dismissed (only fired when `mandatory` is `false`). */
|
|
14
14
|
onClose?: () => void;
|
|
15
15
|
/**
|
|
@@ -43,7 +43,7 @@ export interface ForceUpdateDialogProps {
|
|
|
43
43
|
* const { isUpdateRequired, updateUrl } = useVersionCheck(isAppReady);
|
|
44
44
|
* return (
|
|
45
45
|
* <ForceUpdateDialog
|
|
46
|
-
*
|
|
46
|
+
* open={isUpdateRequired}
|
|
47
47
|
* mandatory
|
|
48
48
|
* updateUrl={updateUrl}
|
|
49
49
|
* />
|
|
@@ -11,6 +11,8 @@ export type IconBadgeTone = Tone;
|
|
|
11
11
|
* overlaps.
|
|
12
12
|
*/
|
|
13
13
|
export type IconBadgeFill = "tint" | "halo" | "surface";
|
|
14
|
+
/** `circle`: a full circle. `squircle`: a smooth-cornered square drawn as a path on both platforms. */
|
|
15
|
+
export type IconBadgeShape = "circle" | "squircle";
|
|
14
16
|
export interface IconBadgeProps {
|
|
15
17
|
/**
|
|
16
18
|
* The icon: an AppIcon name (`icon="shield-tick"`), `{ name, variant }`, a
|
|
@@ -32,6 +34,8 @@ export interface IconBadgeProps {
|
|
|
32
34
|
color?: string;
|
|
33
35
|
/** Default `'tint'`. See {@link IconBadgeFill}. */
|
|
34
36
|
fill?: IconBadgeFill;
|
|
37
|
+
/** Default `'circle'`. `'squircle'` draws the smooth-cornered shape instead. */
|
|
38
|
+
shape?: IconBadgeShape;
|
|
35
39
|
/** Width and height in points, for a host that sizes the circle itself. Wins over `size`; a named icon takes half of it, rounded. */
|
|
36
40
|
dimension?: number;
|
|
37
41
|
/**
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export type { IconBadgeFill, IconBadgeProps, IconBadgeSize, IconBadgeTone } from "./IconBadge.js";
|
|
1
|
+
export type { IconBadgeFill, IconBadgeProps, IconBadgeShape, IconBadgeSize, IconBadgeTone } from "./IconBadge.js";
|
|
2
2
|
export { IconBadge } from "./IconBadge.js";
|
|
3
3
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import type React from "react";
|
|
2
2
|
import type { BlurEvent, FocusEvent, StyleProp, TextInputProps, TextStyle, ViewStyle } from "react-native";
|
|
3
3
|
import { TextInput } from "react-native";
|
|
4
|
+
import type { RadiusName } from "../../theme/types.js";
|
|
4
5
|
import type { FieldVariant, Size } from "../../types/vocabulary.js";
|
|
5
6
|
import type { SlotIcon, SlotIconState } from "../AppIcon/slotIcon.js";
|
|
6
7
|
import type { ButtonTone, ButtonVariant } from "../Button/index.js";
|
|
@@ -171,8 +172,8 @@ export interface InputProps extends Omit<TextInputProps, "style"> {
|
|
|
171
172
|
labelStyle?: StyleProp<TextStyle>;
|
|
172
173
|
/** Style applied to the helper/error text below the field. */
|
|
173
174
|
messageStyle?: StyleProp<TextStyle>;
|
|
174
|
-
/**
|
|
175
|
-
|
|
175
|
+
/** A theme radius name (`sm`, `md`, `lg`, `xl`, `pill`) for the field's corner. Wins over the field size's radius. */
|
|
176
|
+
radius?: Exclude<RadiusName, "none">;
|
|
176
177
|
onFocus?: (e: FocusEvent) => void;
|
|
177
178
|
onBlur?: (e: BlurEvent) => void;
|
|
178
179
|
accessibilityLabel?: string;
|
|
@@ -10,7 +10,7 @@ export type ListItemSize = Extract<Size, "sm" | "md" | "lg">;
|
|
|
10
10
|
/** `menu` is a popup menu row: 48 pt high, no press scale, announced as a menu item. */
|
|
11
11
|
export type ListItemVariant = "list" | "menu";
|
|
12
12
|
/**
|
|
13
|
-
* Where the `
|
|
13
|
+
* Where the `trailing` slot sits. `side` is beside the text, `below` is under the
|
|
14
14
|
* subtitle and description, and `auto` is `side` until the user's text size is
|
|
15
15
|
* above 1.2 times the default, then `below`, so a badge stops squeezing the title.
|
|
16
16
|
*/
|
|
@@ -43,7 +43,7 @@ export interface ListItemProps {
|
|
|
43
43
|
subtitle?: React.ReactNode;
|
|
44
44
|
description?: string;
|
|
45
45
|
/**
|
|
46
|
-
* Content drawn in the text column under the description, before a `
|
|
46
|
+
* Content drawn in the text column under the description, before a `trailing`
|
|
47
47
|
* slot placed below. Inside the row's press target.
|
|
48
48
|
*/
|
|
49
49
|
children?: React.ReactNode;
|
|
@@ -51,17 +51,17 @@ export interface ListItemProps {
|
|
|
51
51
|
titleLines?: number;
|
|
52
52
|
/** Lines a text subtitle may take before it is truncated. Default 1; 0 for no limit. */
|
|
53
53
|
subtitleLines?: number;
|
|
54
|
-
|
|
54
|
+
leading?: React.ReactNode;
|
|
55
55
|
/**
|
|
56
56
|
* A leading icon in a tinted circle (an IconBadge sized to the row). Drawn in
|
|
57
|
-
* the
|
|
57
|
+
* the leading slot when `leading` is not given; `leading` wins when both are set.
|
|
58
58
|
*/
|
|
59
59
|
icon?: SlotIcon;
|
|
60
60
|
/** Tone of the `icon` circle. Default `'primary'`. */
|
|
61
61
|
iconTone?: Tone;
|
|
62
|
-
|
|
62
|
+
trailing?: React.ReactNode;
|
|
63
63
|
/**
|
|
64
|
-
* Where the `
|
|
64
|
+
* Where the `trailing` slot is drawn. Default `'auto'`: beside the text, and
|
|
65
65
|
* under the subtitle when the font scale is above 1.2. The chevron always
|
|
66
66
|
* stays at the side.
|
|
67
67
|
*/
|
|
@@ -69,7 +69,7 @@ export interface ListItemProps {
|
|
|
69
69
|
/**
|
|
70
70
|
* Selection mode. The whole row becomes one checkbox (role `checkbox`, with
|
|
71
71
|
* its `checked` state announced) and the box is drawn in the leading slot,
|
|
72
|
-
* before any `
|
|
72
|
+
* before any `leading` or `icon`. Pressing the row calls `onCheckedChange` and
|
|
73
73
|
* `onPress` is not used. The box is a drawing, not a control, so nothing
|
|
74
74
|
* nests inside the row's press target.
|
|
75
75
|
*/
|
|
@@ -18,6 +18,8 @@ export interface MarkdownProps<T = string> {
|
|
|
18
18
|
onAppLinkPress?: (target: T) => void;
|
|
19
19
|
/** Called instead of Linking.openURL when a web or contact link is pressed. */
|
|
20
20
|
onLinkPress?: (href: string) => void;
|
|
21
|
+
/** Opens a relative link, such as `/pricing`, in the host. Without it, relative links show as plain text. */
|
|
22
|
+
onPageLinkPress?: (href: string) => void;
|
|
21
23
|
/**
|
|
22
24
|
* When true, renders the component as its authored skeleton placeholder shape.
|
|
23
25
|
* The placeholder mirrors the real layout's footprint so the UI doesn't reflow
|
|
@@ -33,7 +35,7 @@ export interface MarkdownProps<T = string> {
|
|
|
33
35
|
* Renders the shared markdown grammar with the theme's own type scale and colours,
|
|
34
36
|
* with no dependency. Inline HTML is plain text.
|
|
35
37
|
*/
|
|
36
|
-
export declare function Markdown<T = string>({ children, links, headings, resolveLink, isCitation, onOpenCitation, onAppLinkPress, onLinkPress, loading, style, textStyle, testID, }: MarkdownProps<T>): React.ReactElement | null;
|
|
38
|
+
export declare function Markdown<T = string>({ children, links, headings, resolveLink, isCitation, onOpenCitation, onAppLinkPress, onLinkPress, onPageLinkPress, loading, style, textStyle, testID, }: MarkdownProps<T>): React.ReactElement | null;
|
|
37
39
|
export declare namespace Markdown {
|
|
38
40
|
var displayName: string;
|
|
39
41
|
}
|
|
@@ -20,9 +20,9 @@ export interface MenuProps {
|
|
|
20
20
|
presentation?: MenuPresentation;
|
|
21
21
|
/** Default `'disable'`: unavailable items stay visible, dimmed and focusable. */
|
|
22
22
|
unavailable?: MenuUnavailable;
|
|
23
|
-
/** Controlled
|
|
24
|
-
|
|
25
|
-
|
|
23
|
+
/** Controlled open state. */
|
|
24
|
+
open?: boolean;
|
|
25
|
+
onOpenChange?: (open: boolean) => void;
|
|
26
26
|
/** Haptic on choosing an item. Pass false to disable; a HapticType to override. */
|
|
27
27
|
haptic?: HapticType | false;
|
|
28
28
|
/** Accessible name of the menu when there is no `title`. */
|
|
@@ -21,7 +21,7 @@ export interface ContextMenuConfig {
|
|
|
21
21
|
presentation?: MenuPresentation;
|
|
22
22
|
/** Preferred side of the pressed view. Default `'bottom'`. */
|
|
23
23
|
placement?: PlacementPreference;
|
|
24
|
-
|
|
24
|
+
onOpenChange?: (open: boolean) => void;
|
|
25
25
|
accessibilityLabel?: string;
|
|
26
26
|
/** Accessible names of the tap-outside area (`close`, default 'Close menu') and of a submenu's Back row (`back`, default 'Back'). */
|
|
27
27
|
labels?: Partial<MenuLabels>;
|