orn-ui 0.2.9 → 0.3.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/AGENTS.md +67 -52
- package/README.md +5 -9
- package/lib/commonjs/atoms/Avatar.js +77 -5
- package/lib/commonjs/atoms/Avatar.js.map +1 -1
- package/lib/commonjs/atoms/Badge.js +17 -8
- package/lib/commonjs/atoms/Badge.js.map +1 -1
- package/lib/commonjs/atoms/Button.js +108 -39
- package/lib/commonjs/atoms/Button.js.map +1 -1
- package/lib/commonjs/atoms/Card.js +24 -2
- package/lib/commonjs/atoms/Card.js.map +1 -1
- package/lib/commonjs/atoms/Checkbox.js +41 -10
- package/lib/commonjs/atoms/Checkbox.js.map +1 -1
- package/lib/commonjs/atoms/Divider.js +30 -5
- package/lib/commonjs/atoms/Divider.js.map +1 -1
- package/lib/commonjs/atoms/EmptyState.js +58 -20
- package/lib/commonjs/atoms/EmptyState.js.map +1 -1
- package/lib/commonjs/atoms/Fab.js +32 -12
- package/lib/commonjs/atoms/Fab.js.map +1 -1
- package/lib/commonjs/atoms/Gradient.js +102 -36
- package/lib/commonjs/atoms/Gradient.js.map +1 -1
- package/lib/commonjs/atoms/IconButton.js +25 -4
- package/lib/commonjs/atoms/IconButton.js.map +1 -1
- package/lib/commonjs/atoms/Image.js +61 -25
- package/lib/commonjs/atoms/Image.js.map +1 -1
- package/lib/commonjs/atoms/Input.js +105 -17
- package/lib/commonjs/atoms/Input.js.map +1 -1
- package/lib/commonjs/atoms/KeyValueRow.js +37 -9
- package/lib/commonjs/atoms/KeyValueRow.js.map +1 -1
- package/lib/commonjs/atoms/PressableScale.js +25 -5
- package/lib/commonjs/atoms/PressableScale.js.map +1 -1
- package/lib/commonjs/atoms/ShinyText.js +29 -29
- package/lib/commonjs/atoms/Skeleton.js +28 -13
- package/lib/commonjs/atoms/Skeleton.js.map +1 -1
- package/lib/commonjs/atoms/Spinner.js +81 -22
- package/lib/commonjs/atoms/Spinner.js.map +1 -1
- package/lib/commonjs/atoms/Text.js +56 -5
- package/lib/commonjs/atoms/Text.js.map +1 -1
- package/lib/commonjs/atoms/Transition.js +46 -43
- package/lib/commonjs/atoms/Transition.js.map +1 -1
- package/lib/commonjs/atoms/index.js +6 -0
- package/lib/commonjs/atoms/index.js.map +1 -1
- package/lib/commonjs/atoms/inputValidation.js +56 -0
- package/lib/commonjs/atoms/inputValidation.js.map +1 -0
- package/lib/commonjs/icons/Icon.js +4 -4
- package/lib/commonjs/icons/defaultIcons.js +576 -24
- package/lib/commonjs/icons/defaultIcons.js.map +1 -1
- package/lib/commonjs/icons/index.js +6 -0
- package/lib/commonjs/icons/index.js.map +1 -1
- package/lib/commonjs/molecules/AvatarHeader.js +47 -14
- package/lib/commonjs/molecules/AvatarHeader.js.map +1 -1
- package/lib/commonjs/molecules/FormActions.js +25 -9
- package/lib/commonjs/molecules/FormActions.js.map +1 -1
- package/lib/commonjs/molecules/InfoRow.js +30 -14
- package/lib/commonjs/molecules/InfoRow.js.map +1 -1
- package/lib/commonjs/molecules/OptionCard.js +37 -22
- package/lib/commonjs/molecules/OptionCard.js.map +1 -1
- package/lib/commonjs/molecules/SegmentedControl.js +103 -14
- package/lib/commonjs/molecules/SegmentedControl.js.map +1 -1
- package/lib/commonjs/molecules/Stepper.js +61 -16
- package/lib/commonjs/molecules/Stepper.js.map +1 -1
- package/lib/commonjs/molecules/Steps.js +105 -41
- package/lib/commonjs/molecules/Steps.js.map +1 -1
- package/lib/commonjs/molecules/SymmetricGrid.js +26 -18
- package/lib/commonjs/molecules/SymmetricGrid.js.map +1 -1
- package/lib/commonjs/organisms/Alert.js +49 -35
- package/lib/commonjs/organisms/Alert.js.map +1 -1
- package/lib/commonjs/organisms/AlertProvider.js +10 -10
- package/lib/commonjs/organisms/BottomSheet.js +137 -85
- package/lib/commonjs/organisms/BottomSheet.js.map +1 -1
- package/lib/commonjs/organisms/Chart.js +197 -156
- package/lib/commonjs/organisms/Chart.js.map +1 -1
- package/lib/commonjs/organisms/DateField.js +36 -20
- package/lib/commonjs/organisms/DateField.js.map +1 -1
- package/lib/commonjs/organisms/DatePicker.js +56 -33
- package/lib/commonjs/organisms/DatePicker.js.map +1 -1
- package/lib/commonjs/organisms/List.js +62 -34
- package/lib/commonjs/organisms/List.js.map +1 -1
- package/lib/commonjs/organisms/Modal.js +120 -82
- package/lib/commonjs/organisms/Modal.js.map +1 -1
- package/lib/commonjs/organisms/NavigationBar.js +63 -24
- package/lib/commonjs/organisms/NavigationBar.js.map +1 -1
- package/lib/commonjs/organisms/OptionWheel.js +64 -64
- package/lib/commonjs/organisms/OptionWheel.js.map +1 -1
- package/lib/commonjs/organisms/ReorderableList.js +48 -27
- package/lib/commonjs/organisms/ReorderableList.js.map +1 -1
- package/lib/commonjs/organisms/Screen.js +68 -35
- package/lib/commonjs/organisms/Screen.js.map +1 -1
- package/lib/commonjs/organisms/SearchList.js +56 -26
- package/lib/commonjs/organisms/SearchList.js.map +1 -1
- package/lib/commonjs/organisms/Select.js +45 -24
- package/lib/commonjs/organisms/Select.js.map +1 -1
- package/lib/commonjs/organisms/Slides.js +36 -23
- package/lib/commonjs/organisms/Slides.js.map +1 -1
- package/lib/commonjs/organisms/ThemeToggle.js +10 -9
- package/lib/commonjs/organisms/ThemeToggle.js.map +1 -1
- package/lib/commonjs/organisms/Timeline.js +73 -56
- package/lib/commonjs/organisms/Timeline.js.map +1 -1
- package/lib/commonjs/organisms/Toast.js +46 -15
- package/lib/commonjs/organisms/Toast.js.map +1 -1
- package/lib/commonjs/organisms/ToastProvider.js +14 -10
- package/lib/commonjs/organisms/ToastProvider.js.map +1 -1
- package/lib/commonjs/organisms/Wizard.js +40 -15
- package/lib/commonjs/organisms/Wizard.js.map +1 -1
- package/lib/commonjs/organisms/chart/frame.js +25 -25
- package/lib/commonjs/organisms/chart/frame.js.map +1 -1
- package/lib/commonjs/organisms/chart/marks.js +42 -42
- package/lib/commonjs/organisms/chart/math.js +84 -85
- package/lib/commonjs/organisms/chart/math.js.map +1 -1
- package/lib/commonjs/organisms/chart/palette.js +28 -28
- package/lib/commonjs/organisms/imperativeBridge.js +5 -5
- package/lib/commonjs/organisms/imperativeBridge.js.map +1 -1
- package/lib/commonjs/organisms/useSlides.js +53 -21
- package/lib/commonjs/organisms/useSlides.js.map +1 -1
- package/lib/commonjs/safe-area/SafeAreaUIProvider.js +9 -66
- package/lib/commonjs/safe-area/SafeAreaUIProvider.js.map +1 -1
- package/lib/commonjs/safe-area/index.js.map +1 -1
- package/lib/commonjs/theme/KeyboardAvoidance.js +206 -0
- package/lib/commonjs/theme/KeyboardAvoidance.js.map +1 -0
- package/lib/commonjs/theme/NativeOverlay.js +263 -0
- package/lib/commonjs/theme/NativeOverlay.js.map +1 -0
- package/lib/commonjs/theme/UIProvider.js +86 -33
- package/lib/commonjs/theme/UIProvider.js.map +1 -1
- package/lib/commonjs/theme/colors.js +17 -17
- package/lib/commonjs/theme/colors.js.map +1 -1
- package/lib/commonjs/theme/createStyles.js +19 -16
- package/lib/commonjs/theme/createStyles.js.map +1 -1
- package/lib/commonjs/theme/createTheme.js +6 -6
- package/lib/commonjs/theme/index.js +6 -0
- package/lib/commonjs/theme/index.js.map +1 -1
- package/lib/commonjs/theme/insets.js +1 -1
- package/lib/commonjs/theme/labels.js +29 -1
- package/lib/commonjs/theme/labels.js.map +1 -1
- package/lib/commonjs/theme/palettes.js +25 -23
- package/lib/commonjs/theme/palettes.js.map +1 -1
- package/lib/commonjs/theme/tokens.js +28 -14
- package/lib/commonjs/theme/tokens.js.map +1 -1
- package/lib/commonjs/theme/useKeyboardField.js +36 -0
- package/lib/commonjs/theme/useKeyboardField.js.map +1 -0
- package/lib/commonjs/theme/useReduceMotion.js +31 -0
- package/lib/commonjs/theme/useReduceMotion.js.map +1 -0
- package/lib/module/atoms/Avatar.js +79 -8
- package/lib/module/atoms/Avatar.js.map +1 -1
- package/lib/module/atoms/Badge.js +17 -8
- package/lib/module/atoms/Badge.js.map +1 -1
- package/lib/module/atoms/Button.js +110 -41
- package/lib/module/atoms/Button.js.map +1 -1
- package/lib/module/atoms/Card.js +24 -2
- package/lib/module/atoms/Card.js.map +1 -1
- package/lib/module/atoms/Checkbox.js +42 -11
- package/lib/module/atoms/Checkbox.js.map +1 -1
- package/lib/module/atoms/Divider.js +31 -6
- package/lib/module/atoms/Divider.js.map +1 -1
- package/lib/module/atoms/EmptyState.js +58 -20
- package/lib/module/atoms/EmptyState.js.map +1 -1
- package/lib/module/atoms/Fab.js +33 -13
- package/lib/module/atoms/Fab.js.map +1 -1
- package/lib/module/atoms/Gradient.js +103 -37
- package/lib/module/atoms/Gradient.js.map +1 -1
- package/lib/module/atoms/IconButton.js +25 -4
- package/lib/module/atoms/IconButton.js.map +1 -1
- package/lib/module/atoms/Image.js +61 -25
- package/lib/module/atoms/Image.js.map +1 -1
- package/lib/module/atoms/Input.js +108 -20
- package/lib/module/atoms/Input.js.map +1 -1
- package/lib/module/atoms/KeyValueRow.js +37 -9
- package/lib/module/atoms/KeyValueRow.js.map +1 -1
- package/lib/module/atoms/PressableScale.js +25 -5
- package/lib/module/atoms/PressableScale.js.map +1 -1
- package/lib/module/atoms/ShinyText.js +29 -29
- package/lib/module/atoms/Skeleton.js +30 -13
- package/lib/module/atoms/Skeleton.js.map +1 -1
- package/lib/module/atoms/Spinner.js +82 -23
- package/lib/module/atoms/Spinner.js.map +1 -1
- package/lib/module/atoms/Text.js +56 -5
- package/lib/module/atoms/Text.js.map +1 -1
- package/lib/module/atoms/Transition.js +41 -42
- package/lib/module/atoms/Transition.js.map +1 -1
- package/lib/module/atoms/index.js +1 -1
- package/lib/module/atoms/index.js.map +1 -1
- package/lib/module/atoms/inputValidation.js +52 -0
- package/lib/module/atoms/inputValidation.js.map +1 -0
- package/lib/module/icons/Icon.js +4 -4
- package/lib/module/icons/defaultIcons.js +574 -24
- package/lib/module/icons/defaultIcons.js.map +1 -1
- package/lib/module/icons/index.js +1 -1
- package/lib/module/icons/index.js.map +1 -1
- package/lib/module/molecules/AvatarHeader.js +47 -14
- package/lib/module/molecules/AvatarHeader.js.map +1 -1
- package/lib/module/molecules/FormActions.js +25 -9
- package/lib/module/molecules/FormActions.js.map +1 -1
- package/lib/module/molecules/InfoRow.js +30 -14
- package/lib/module/molecules/InfoRow.js.map +1 -1
- package/lib/module/molecules/OptionCard.js +37 -22
- package/lib/module/molecules/OptionCard.js.map +1 -1
- package/lib/module/molecules/SegmentedControl.js +107 -18
- package/lib/module/molecules/SegmentedControl.js.map +1 -1
- package/lib/module/molecules/Stepper.js +63 -18
- package/lib/module/molecules/Stepper.js.map +1 -1
- package/lib/module/molecules/Steps.js +107 -43
- package/lib/module/molecules/Steps.js.map +1 -1
- package/lib/module/molecules/SymmetricGrid.js +26 -18
- package/lib/module/molecules/SymmetricGrid.js.map +1 -1
- package/lib/module/organisms/Alert.js +51 -37
- package/lib/module/organisms/Alert.js.map +1 -1
- package/lib/module/organisms/AlertProvider.js +10 -10
- package/lib/module/organisms/BottomSheet.js +142 -88
- package/lib/module/organisms/BottomSheet.js.map +1 -1
- package/lib/module/organisms/Chart.js +199 -158
- package/lib/module/organisms/Chart.js.map +1 -1
- package/lib/module/organisms/DateField.js +36 -20
- package/lib/module/organisms/DateField.js.map +1 -1
- package/lib/module/organisms/DatePicker.js +56 -33
- package/lib/module/organisms/DatePicker.js.map +1 -1
- package/lib/module/organisms/List.js +62 -34
- package/lib/module/organisms/List.js.map +1 -1
- package/lib/module/organisms/Modal.js +122 -84
- package/lib/module/organisms/Modal.js.map +1 -1
- package/lib/module/organisms/NavigationBar.js +64 -25
- package/lib/module/organisms/NavigationBar.js.map +1 -1
- package/lib/module/organisms/OptionWheel.js +64 -64
- package/lib/module/organisms/OptionWheel.js.map +1 -1
- package/lib/module/organisms/ReorderableList.js +48 -27
- package/lib/module/organisms/ReorderableList.js.map +1 -1
- package/lib/module/organisms/Screen.js +70 -37
- package/lib/module/organisms/Screen.js.map +1 -1
- package/lib/module/organisms/SearchList.js +56 -26
- package/lib/module/organisms/SearchList.js.map +1 -1
- package/lib/module/organisms/Select.js +46 -25
- package/lib/module/organisms/Select.js.map +1 -1
- package/lib/module/organisms/Slides.js +37 -24
- package/lib/module/organisms/Slides.js.map +1 -1
- package/lib/module/organisms/ThemeToggle.js +11 -10
- package/lib/module/organisms/ThemeToggle.js.map +1 -1
- package/lib/module/organisms/Timeline.js +73 -56
- package/lib/module/organisms/Timeline.js.map +1 -1
- package/lib/module/organisms/Toast.js +47 -16
- package/lib/module/organisms/Toast.js.map +1 -1
- package/lib/module/organisms/ToastProvider.js +15 -11
- package/lib/module/organisms/ToastProvider.js.map +1 -1
- package/lib/module/organisms/Wizard.js +41 -16
- package/lib/module/organisms/Wizard.js.map +1 -1
- package/lib/module/organisms/chart/frame.js +25 -25
- package/lib/module/organisms/chart/frame.js.map +1 -1
- package/lib/module/organisms/chart/marks.js +42 -42
- package/lib/module/organisms/chart/math.js +84 -85
- package/lib/module/organisms/chart/math.js.map +1 -1
- package/lib/module/organisms/chart/palette.js +28 -28
- package/lib/module/organisms/imperativeBridge.js +5 -5
- package/lib/module/organisms/imperativeBridge.js.map +1 -1
- package/lib/module/organisms/useSlides.js +53 -21
- package/lib/module/organisms/useSlides.js.map +1 -1
- package/lib/module/safe-area/SafeAreaUIProvider.js +10 -65
- package/lib/module/safe-area/SafeAreaUIProvider.js.map +1 -1
- package/lib/module/safe-area/index.js +1 -0
- package/lib/module/safe-area/index.js.map +1 -1
- package/lib/module/theme/KeyboardAvoidance.js +198 -0
- package/lib/module/theme/KeyboardAvoidance.js.map +1 -0
- package/lib/module/theme/NativeOverlay.js +257 -0
- package/lib/module/theme/NativeOverlay.js.map +1 -0
- package/lib/module/theme/UIProvider.js +88 -35
- package/lib/module/theme/UIProvider.js.map +1 -1
- package/lib/module/theme/colors.js +17 -17
- package/lib/module/theme/colors.js.map +1 -1
- package/lib/module/theme/createStyles.js +20 -16
- package/lib/module/theme/createStyles.js.map +1 -1
- package/lib/module/theme/createTheme.js +6 -6
- package/lib/module/theme/index.js +1 -1
- package/lib/module/theme/index.js.map +1 -1
- package/lib/module/theme/insets.js +1 -1
- package/lib/module/theme/labels.js +29 -1
- package/lib/module/theme/labels.js.map +1 -1
- package/lib/module/theme/palettes.js +25 -23
- package/lib/module/theme/palettes.js.map +1 -1
- package/lib/module/theme/tokens.js +27 -13
- package/lib/module/theme/tokens.js.map +1 -1
- package/lib/module/theme/useKeyboardField.js +33 -0
- package/lib/module/theme/useKeyboardField.js.map +1 -0
- package/lib/module/theme/useReduceMotion.js +28 -0
- package/lib/module/theme/useReduceMotion.js.map +1 -0
- package/lib/typescript/atoms/Avatar.d.ts +35 -5
- package/lib/typescript/atoms/Avatar.d.ts.map +1 -1
- package/lib/typescript/atoms/Badge.d.ts +14 -3
- package/lib/typescript/atoms/Badge.d.ts.map +1 -1
- package/lib/typescript/atoms/Button.d.ts +34 -3
- package/lib/typescript/atoms/Button.d.ts.map +1 -1
- package/lib/typescript/atoms/Card.d.ts +13 -2
- package/lib/typescript/atoms/Card.d.ts.map +1 -1
- package/lib/typescript/atoms/Checkbox.d.ts +26 -1
- package/lib/typescript/atoms/Checkbox.d.ts.map +1 -1
- package/lib/typescript/atoms/Divider.d.ts +18 -1
- package/lib/typescript/atoms/Divider.d.ts.map +1 -1
- package/lib/typescript/atoms/EmptyState.d.ts +30 -3
- package/lib/typescript/atoms/EmptyState.d.ts.map +1 -1
- package/lib/typescript/atoms/Fab.d.ts +24 -4
- package/lib/typescript/atoms/Fab.d.ts.map +1 -1
- package/lib/typescript/atoms/Gradient.d.ts +21 -15
- package/lib/typescript/atoms/Gradient.d.ts.map +1 -1
- package/lib/typescript/atoms/IconButton.d.ts +18 -4
- package/lib/typescript/atoms/IconButton.d.ts.map +1 -1
- package/lib/typescript/atoms/Image.d.ts +39 -17
- package/lib/typescript/atoms/Image.d.ts.map +1 -1
- package/lib/typescript/atoms/Input.d.ts +57 -7
- package/lib/typescript/atoms/Input.d.ts.map +1 -1
- package/lib/typescript/atoms/KeyValueRow.d.ts +16 -4
- package/lib/typescript/atoms/KeyValueRow.d.ts.map +1 -1
- package/lib/typescript/atoms/PressableScale.d.ts +12 -5
- package/lib/typescript/atoms/PressableScale.d.ts.map +1 -1
- package/lib/typescript/atoms/ShinyText.d.ts +17 -17
- package/lib/typescript/atoms/ShinyText.d.ts.map +1 -1
- package/lib/typescript/atoms/Skeleton.d.ts +12 -7
- package/lib/typescript/atoms/Skeleton.d.ts.map +1 -1
- package/lib/typescript/atoms/Spinner.d.ts +29 -1
- package/lib/typescript/atoms/Spinner.d.ts.map +1 -1
- package/lib/typescript/atoms/Text.d.ts +46 -0
- package/lib/typescript/atoms/Text.d.ts.map +1 -1
- package/lib/typescript/atoms/Transition.d.ts +19 -15
- package/lib/typescript/atoms/Transition.d.ts.map +1 -1
- package/lib/typescript/atoms/index.d.ts +3 -3
- package/lib/typescript/atoms/index.d.ts.map +1 -1
- package/lib/typescript/atoms/inputValidation.d.ts +29 -0
- package/lib/typescript/atoms/inputValidation.d.ts.map +1 -0
- package/lib/typescript/icons/Icon.d.ts +4 -4
- package/lib/typescript/icons/defaultIcons.d.ts +19 -2
- package/lib/typescript/icons/defaultIcons.d.ts.map +1 -1
- package/lib/typescript/icons/index.d.ts +2 -2
- package/lib/typescript/icons/index.d.ts.map +1 -1
- package/lib/typescript/icons/types.d.ts +13 -3
- package/lib/typescript/icons/types.d.ts.map +1 -1
- package/lib/typescript/molecules/AvatarHeader.d.ts +23 -4
- package/lib/typescript/molecules/AvatarHeader.d.ts.map +1 -1
- package/lib/typescript/molecules/FormActions.d.ts +21 -4
- package/lib/typescript/molecules/FormActions.d.ts.map +1 -1
- package/lib/typescript/molecules/InfoRow.d.ts +17 -3
- package/lib/typescript/molecules/InfoRow.d.ts.map +1 -1
- package/lib/typescript/molecules/OptionCard.d.ts +20 -5
- package/lib/typescript/molecules/OptionCard.d.ts.map +1 -1
- package/lib/typescript/molecules/SegmentedControl.d.ts +18 -2
- package/lib/typescript/molecules/SegmentedControl.d.ts.map +1 -1
- package/lib/typescript/molecules/Stepper.d.ts +23 -7
- package/lib/typescript/molecules/Stepper.d.ts.map +1 -1
- package/lib/typescript/molecules/Steps.d.ts +18 -4
- package/lib/typescript/molecules/Steps.d.ts.map +1 -1
- package/lib/typescript/molecules/SymmetricGrid.d.ts +15 -5
- package/lib/typescript/molecules/SymmetricGrid.d.ts.map +1 -1
- package/lib/typescript/organisms/Alert.d.ts +28 -2
- package/lib/typescript/organisms/Alert.d.ts.map +1 -1
- package/lib/typescript/organisms/AlertProvider.d.ts +10 -10
- package/lib/typescript/organisms/AlertProvider.d.ts.map +1 -1
- package/lib/typescript/organisms/BottomSheet.d.ts +20 -5
- package/lib/typescript/organisms/BottomSheet.d.ts.map +1 -1
- package/lib/typescript/organisms/Chart.d.ts +86 -75
- package/lib/typescript/organisms/Chart.d.ts.map +1 -1
- package/lib/typescript/organisms/DateField.d.ts +17 -3
- package/lib/typescript/organisms/DateField.d.ts.map +1 -1
- package/lib/typescript/organisms/DatePicker.d.ts +7 -11
- package/lib/typescript/organisms/DatePicker.d.ts.map +1 -1
- package/lib/typescript/organisms/List.d.ts +30 -3
- package/lib/typescript/organisms/List.d.ts.map +1 -1
- package/lib/typescript/organisms/Modal.d.ts +30 -3
- package/lib/typescript/organisms/Modal.d.ts.map +1 -1
- package/lib/typescript/organisms/NavigationBar.d.ts +26 -7
- package/lib/typescript/organisms/NavigationBar.d.ts.map +1 -1
- package/lib/typescript/organisms/OptionWheel.d.ts +20 -16
- package/lib/typescript/organisms/OptionWheel.d.ts.map +1 -1
- package/lib/typescript/organisms/ReorderableList.d.ts +20 -11
- package/lib/typescript/organisms/ReorderableList.d.ts.map +1 -1
- package/lib/typescript/organisms/Screen.d.ts +27 -8
- package/lib/typescript/organisms/Screen.d.ts.map +1 -1
- package/lib/typescript/organisms/SearchList.d.ts +46 -3
- package/lib/typescript/organisms/SearchList.d.ts.map +1 -1
- package/lib/typescript/organisms/Select.d.ts +26 -6
- package/lib/typescript/organisms/Select.d.ts.map +1 -1
- package/lib/typescript/organisms/Slides.d.ts +44 -26
- package/lib/typescript/organisms/Slides.d.ts.map +1 -1
- package/lib/typescript/organisms/ThemeToggle.d.ts +6 -2
- package/lib/typescript/organisms/ThemeToggle.d.ts.map +1 -1
- package/lib/typescript/organisms/Timeline.d.ts +26 -9
- package/lib/typescript/organisms/Timeline.d.ts.map +1 -1
- package/lib/typescript/organisms/Toast.d.ts +19 -4
- package/lib/typescript/organisms/Toast.d.ts.map +1 -1
- package/lib/typescript/organisms/ToastProvider.d.ts +8 -8
- package/lib/typescript/organisms/ToastProvider.d.ts.map +1 -1
- package/lib/typescript/organisms/Wizard.d.ts +24 -6
- package/lib/typescript/organisms/Wizard.d.ts.map +1 -1
- package/lib/typescript/organisms/chart/frame.d.ts +21 -21
- package/lib/typescript/organisms/chart/frame.d.ts.map +1 -1
- package/lib/typescript/organisms/chart/marks.d.ts +28 -28
- package/lib/typescript/organisms/chart/marks.d.ts.map +1 -1
- package/lib/typescript/organisms/chart/math.d.ts +69 -70
- package/lib/typescript/organisms/chart/math.d.ts.map +1 -1
- package/lib/typescript/organisms/chart/palette.d.ts +2 -2
- package/lib/typescript/organisms/chart/palette.d.ts.map +1 -1
- package/lib/typescript/organisms/imperativeBridge.d.ts +4 -4
- package/lib/typescript/organisms/useSlides.d.ts +8 -16
- package/lib/typescript/organisms/useSlides.d.ts.map +1 -1
- package/lib/typescript/safe-area/SafeAreaUIProvider.d.ts +9 -7
- package/lib/typescript/safe-area/SafeAreaUIProvider.d.ts.map +1 -1
- package/lib/typescript/safe-area/index.d.ts.map +1 -1
- package/lib/typescript/theme/KeyboardAvoidance.d.ts +62 -0
- package/lib/typescript/theme/KeyboardAvoidance.d.ts.map +1 -0
- package/lib/typescript/theme/NativeOverlay.d.ts +43 -0
- package/lib/typescript/theme/NativeOverlay.d.ts.map +1 -0
- package/lib/typescript/theme/UIProvider.d.ts +38 -20
- package/lib/typescript/theme/UIProvider.d.ts.map +1 -1
- package/lib/typescript/theme/colors.d.ts +13 -13
- package/lib/typescript/theme/colors.d.ts.map +1 -1
- package/lib/typescript/theme/createStyles.d.ts +20 -14
- package/lib/typescript/theme/createStyles.d.ts.map +1 -1
- package/lib/typescript/theme/createTheme.d.ts +5 -5
- package/lib/typescript/theme/index.d.ts +1 -1
- package/lib/typescript/theme/index.d.ts.map +1 -1
- package/lib/typescript/theme/insets.d.ts +1 -1
- package/lib/typescript/theme/insets.d.ts.map +1 -1
- package/lib/typescript/theme/labels.d.ts +57 -2
- package/lib/typescript/theme/labels.d.ts.map +1 -1
- package/lib/typescript/theme/palettes.d.ts +25 -19
- package/lib/typescript/theme/palettes.d.ts.map +1 -1
- package/lib/typescript/theme/tokens.d.ts +15 -8
- package/lib/typescript/theme/tokens.d.ts.map +1 -1
- package/lib/typescript/theme/types.d.ts +7 -7
- package/lib/typescript/theme/types.d.ts.map +1 -1
- package/lib/typescript/theme/useKeyboardField.d.ts +17 -0
- package/lib/typescript/theme/useKeyboardField.d.ts.map +1 -0
- package/lib/typescript/theme/useReduceMotion.d.ts +7 -0
- package/lib/typescript/theme/useReduceMotion.d.ts.map +1 -0
- package/llms.txt +4 -4
- package/package.json +15 -14
- package/registry/alert-provider.json +4 -3
- package/registry/alert.json +3 -2
- package/registry/avatar-header.json +1 -1
- package/registry/avatar.json +3 -2
- package/registry/badge.json +1 -1
- package/registry/bottom-sheet.json +1 -1
- package/registry/button.json +3 -2
- package/registry/card.json +1 -1
- package/registry/chart.json +5 -5
- package/registry/checkbox.json +3 -2
- package/registry/core.json +31 -15
- package/registry/date-field.json +1 -1
- package/registry/date-picker.json +3 -2
- package/registry/divider.json +1 -1
- package/registry/empty-state.json +4 -2
- package/registry/fab.json +3 -2
- package/registry/form-actions.json +3 -2
- package/registry/gradient.json +1 -1
- package/registry/icon-button.json +3 -2
- package/registry/image.json +1 -1
- package/registry/index.json +79 -61
- package/registry/info-row.json +1 -1
- package/registry/input.json +5 -1
- package/registry/key-value-row.json +1 -1
- package/registry/list.json +3 -1
- package/registry/manifest.json +3 -1
- package/registry/modal.json +1 -1
- package/registry/navigation-bar.json +1 -1
- package/registry/option-card.json +3 -2
- package/registry/option-wheel.json +1 -1
- package/registry/pressable-scale.json +3 -2
- package/registry/reorderable-list.json +1 -1
- package/registry/screen.json +1 -1
- package/registry/search-list.json +7 -1
- package/registry/segmented-control.json +1 -1
- package/registry/select.json +1 -1
- package/registry/shiny-text.json +1 -1
- package/registry/skeleton.json +3 -2
- package/registry/slides.json +2 -2
- package/registry/spinner.json +1 -1
- package/registry/stepper.json +1 -1
- package/registry/steps.json +1 -1
- package/registry/symmetric-grid.json +1 -1
- package/registry/theme-toggle.json +1 -1
- package/registry/timeline.json +1 -1
- package/registry/title.json +1 -1
- package/registry/toast-provider.json +2 -2
- package/registry/toast.json +1 -1
- package/registry/transition.json +1 -1
- package/registry/wizard.json +1 -1
- package/src/atoms/Avatar.tsx +117 -26
- package/src/atoms/Badge.tsx +20 -9
- package/src/atoms/Button.tsx +102 -30
- package/src/atoms/Card.tsx +23 -3
- package/src/atoms/Checkbox.tsx +49 -12
- package/src/atoms/Divider.tsx +34 -4
- package/src/atoms/EmptyState.tsx +63 -16
- package/src/atoms/Fab.tsx +56 -9
- package/src/atoms/Gradient.tsx +92 -41
- package/src/atoms/IconButton.tsx +27 -4
- package/src/atoms/Image.tsx +74 -28
- package/src/atoms/Input.tsx +129 -19
- package/src/atoms/KeyValueRow.tsx +72 -28
- package/src/atoms/PressableScale.tsx +31 -7
- package/src/atoms/ShinyText.tsx +31 -31
- package/src/atoms/Skeleton.tsx +37 -17
- package/src/atoms/Spinner.tsx +87 -24
- package/src/atoms/Text.tsx +66 -6
- package/src/atoms/Transition.tsx +40 -44
- package/src/atoms/index.ts +3 -3
- package/src/atoms/inputValidation.ts +59 -0
- package/src/icons/Icon.tsx +4 -4
- package/src/icons/defaultIcons.tsx +445 -22
- package/src/icons/index.ts +2 -2
- package/src/icons/types.ts +26 -4
- package/src/molecules/AvatarHeader.tsx +88 -34
- package/src/molecules/FormActions.tsx +36 -6
- package/src/molecules/InfoRow.tsx +39 -12
- package/src/molecules/OptionCard.tsx +55 -20
- package/src/molecules/SegmentedControl.tsx +135 -15
- package/src/molecules/Stepper.tsx +73 -19
- package/src/molecules/Steps.tsx +121 -39
- package/src/molecules/SymmetricGrid.tsx +28 -12
- package/src/organisms/Alert.tsx +97 -26
- package/src/organisms/AlertProvider.tsx +13 -13
- package/src/organisms/BottomSheet.tsx +115 -43
- package/src/organisms/Chart.tsx +223 -165
- package/src/organisms/DateField.tsx +40 -15
- package/src/organisms/DatePicker.tsx +53 -32
- package/src/organisms/List.tsx +64 -15
- package/src/organisms/Modal.tsx +122 -63
- package/src/organisms/NavigationBar.tsx +73 -23
- package/src/organisms/OptionWheel.tsx +70 -66
- package/src/organisms/ReorderableList.tsx +49 -27
- package/src/organisms/Screen.tsx +79 -42
- package/src/organisms/SearchList.tsx +84 -20
- package/src/organisms/Select.tsx +63 -29
- package/src/organisms/Slides.tsx +63 -44
- package/src/organisms/ThemeToggle.tsx +15 -6
- package/src/organisms/Timeline.tsx +79 -62
- package/src/organisms/Toast.tsx +50 -15
- package/src/organisms/ToastProvider.tsx +17 -13
- package/src/organisms/Wizard.tsx +58 -21
- package/src/organisms/chart/frame.tsx +35 -35
- package/src/organisms/chart/marks.tsx +53 -53
- package/src/organisms/chart/math.ts +93 -94
- package/src/organisms/chart/palette.ts +28 -28
- package/src/organisms/imperativeBridge.ts +5 -5
- package/src/organisms/useSlides.ts +66 -31
- package/src/safe-area/SafeAreaUIProvider.tsx +9 -70
- package/src/safe-area/index.ts +1 -0
- package/src/theme/KeyboardAvoidance.tsx +216 -0
- package/src/theme/NativeOverlay.tsx +269 -0
- package/src/theme/UIProvider.tsx +109 -46
- package/src/theme/colors.ts +21 -21
- package/src/theme/createStyles.ts +23 -19
- package/src/theme/createTheme.ts +6 -6
- package/src/theme/index.ts +1 -1
- package/src/theme/insets.ts +1 -1
- package/src/theme/labels.ts +85 -2
- package/src/theme/palettes.ts +33 -25
- package/src/theme/tokens.ts +27 -13
- package/src/theme/types.ts +7 -7
- package/src/theme/useKeyboardField.ts +33 -0
- package/src/theme/useReduceMotion.ts +27 -0
|
@@ -2,16 +2,30 @@ import React from 'react';
|
|
|
2
2
|
import { type StyleProp, type ViewStyle } from 'react-native';
|
|
3
3
|
import type { IconName } from '../icons/types';
|
|
4
4
|
export interface InfoRowProps {
|
|
5
|
+
/** Icon that identifies the kind of data at a glance (decorative for screen readers). */
|
|
5
6
|
icon: IconName;
|
|
7
|
+
/** What the value is ("Email", "Address"). */
|
|
6
8
|
label: string;
|
|
9
|
+
/** The data itself. Empty, `null` or `undefined` shows `placeholder`. */
|
|
7
10
|
value: string | null | undefined;
|
|
11
|
+
/** Text shown, in italics, when there is no value ("No phone number"). */
|
|
8
12
|
placeholder: string;
|
|
9
13
|
style?: StyleProp<ViewStyle>;
|
|
14
|
+
testID?: string;
|
|
10
15
|
}
|
|
11
16
|
/**
|
|
12
17
|
* InfoRow
|
|
13
|
-
*
|
|
14
|
-
* `placeholder`
|
|
18
|
+
* Circular icon on the left + stacked label/value on the right. Shows
|
|
19
|
+
* `placeholder` in italics when there is no value. Meant for detail modals.
|
|
20
|
+
*
|
|
21
|
+
* Gestalt, proximity: label and value sit 2pt apart and the icon a token
|
|
22
|
+
* further, so each row reads as one fact; stack rows with a larger gap.
|
|
23
|
+
* Similarity: every label shares the small muted style and every value the
|
|
24
|
+
* strong one, so a list of rows scans by column. A missing value changes
|
|
25
|
+
* style (muted italics) so it can't be mistaken for data.
|
|
26
|
+
*
|
|
27
|
+
* Accessibility: the row is a single element ("Email, jane@example.com");
|
|
28
|
+
* the icon is decorative.
|
|
15
29
|
*/
|
|
16
|
-
export declare const InfoRow: React.MemoExoticComponent<({ icon, label, value, placeholder, style }: InfoRowProps) => React.JSX.Element>;
|
|
30
|
+
export declare const InfoRow: React.MemoExoticComponent<({ icon, label, value, placeholder, style, testID }: InfoRowProps) => React.JSX.Element>;
|
|
17
31
|
//# sourceMappingURL=InfoRow.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"InfoRow.d.ts","sourceRoot":"","sources":["../../../src/molecules/InfoRow.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAe,MAAM,OAAO,CAAC;AACpC,OAAO,EAAc,KAAK,SAAS,EAAE,KAAK,SAAS,EAAE,MAAM,cAAc,CAAC;AAI1E,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAG/C,MAAM,WAAW,YAAY;IAC3B,IAAI,EAAE,QAAQ,CAAC;IACf,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IACjC,WAAW,EAAE,MAAM,CAAC;IACpB,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"InfoRow.d.ts","sourceRoot":"","sources":["../../../src/molecules/InfoRow.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAe,MAAM,OAAO,CAAC;AACpC,OAAO,EAAc,KAAK,SAAS,EAAE,KAAK,SAAS,EAAE,MAAM,cAAc,CAAC;AAI1E,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAG/C,MAAM,WAAW,YAAY;IAC3B,yFAAyF;IACzF,IAAI,EAAE,QAAQ,CAAC;IACf,8CAA8C;IAC9C,KAAK,EAAE,MAAM,CAAC;IACd,yEAAyE;IACzE,KAAK,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IACjC,0EAA0E;IAC1E,WAAW,EAAE,MAAM,CAAC;IACpB,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;IAC7B,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAuBD;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,OAAO,iFAA6D,YAAY,uBAqB3F,CAAC"}
|
|
@@ -2,12 +2,21 @@ import React from 'react';
|
|
|
2
2
|
import { type StyleProp, type ViewStyle } from 'react-native';
|
|
3
3
|
import type { IconName } from '../icons/types';
|
|
4
4
|
export interface OptionCardProps {
|
|
5
|
+
/** Name of the option. It is also the start of its accessible name. */
|
|
5
6
|
label: string;
|
|
6
|
-
/**
|
|
7
|
+
/**
|
|
8
|
+
* Secondary line: the detail that decides the choice ("arrives in 3 days").
|
|
9
|
+
* Screen readers read it right after the label, not as a hint, because
|
|
10
|
+
* hints can be turned off and this detail is part of the choice.
|
|
11
|
+
*/
|
|
7
12
|
description?: string;
|
|
13
|
+
/** Icon that helps recognize the option. Avoid `check`: it reads as "selected". */
|
|
8
14
|
iconName?: IconName;
|
|
15
|
+
/** Whether this is the chosen option of its group. */
|
|
9
16
|
isSelected: boolean;
|
|
17
|
+
/** Called on press; the group decides which option is selected. */
|
|
10
18
|
onPress: () => void;
|
|
19
|
+
/** Dims the card and ignores presses. @default false */
|
|
11
20
|
disabled?: boolean;
|
|
12
21
|
/** 'vertical': icon on top, text centered below. 'horizontal': in a row. @default 'horizontal' */
|
|
13
22
|
layout?: 'vertical' | 'horizontal';
|
|
@@ -16,10 +25,16 @@ export interface OptionCardProps {
|
|
|
16
25
|
}
|
|
17
26
|
/**
|
|
18
27
|
* OptionCard
|
|
19
|
-
*
|
|
20
|
-
*
|
|
21
|
-
*
|
|
22
|
-
*
|
|
28
|
+
* Mutually exclusive option with an icon and label that highlights when
|
|
29
|
+
* `isSelected`. It is a radio with a card's face, so it announces itself as
|
|
30
|
+
* one: wrap the group in a View with `accessibilityRole="radiogroup"` so the
|
|
31
|
+
* screen reader reads "1 of 3".
|
|
32
|
+
*
|
|
33
|
+
* Gestalt, similarity: every card in a group shares shape, size and type, so
|
|
34
|
+
* they read as alternatives of one question. Von Restorff / figure-ground: the
|
|
35
|
+
* selected one is the only filled card with an accent border and no shadow —
|
|
36
|
+
* it stands out without the others losing legibility (their labels keep the
|
|
37
|
+
* `text` color). The thicker selected border doesn't move the content.
|
|
23
38
|
*/
|
|
24
39
|
export declare const OptionCard: React.MemoExoticComponent<({ label, description, iconName, isSelected, onPress, disabled, layout, style, testID, }: OptionCardProps) => React.JSX.Element>;
|
|
25
40
|
//# sourceMappingURL=OptionCard.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"OptionCard.d.ts","sourceRoot":"","sources":["../../../src/molecules/OptionCard.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAe,MAAM,OAAO,CAAC;AACpC,OAAO,EAAc,KAAK,SAAS,EAAE,KAAK,SAAS,EAAE,MAAM,cAAc,CAAC;AAK1E,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAE/C,MAAM,WAAW,eAAe;IAC9B,KAAK,EAAE,MAAM,CAAC;IACd
|
|
1
|
+
{"version":3,"file":"OptionCard.d.ts","sourceRoot":"","sources":["../../../src/molecules/OptionCard.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAe,MAAM,OAAO,CAAC;AACpC,OAAO,EAAc,KAAK,SAAS,EAAE,KAAK,SAAS,EAAE,MAAM,cAAc,CAAC;AAK1E,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAE/C,MAAM,WAAW,eAAe;IAC9B,uEAAuE;IACvE,KAAK,EAAE,MAAM,CAAC;IACd;;;;OAIG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,mFAAmF;IACnF,QAAQ,CAAC,EAAE,QAAQ,CAAC;IACpB,sDAAsD;IACtD,UAAU,EAAE,OAAO,CAAC;IACpB,mEAAmE;IACnE,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,wDAAwD;IACxD,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,kGAAkG;IAClG,MAAM,CAAC,EAAE,UAAU,GAAG,YAAY,CAAC;IACnC,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;IAC7B,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAsDD;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,UAAU,sHAWlB,eAAe,uBA6CnB,CAAC"}
|
|
@@ -2,21 +2,37 @@ import React from 'react';
|
|
|
2
2
|
import { type StyleProp, type ViewStyle } from 'react-native';
|
|
3
3
|
export interface SegmentedControlOption<T extends string = string> {
|
|
4
4
|
value: T;
|
|
5
|
+
/** Visible text. Kept to one line (ellipsized); screen readers get it whole. */
|
|
5
6
|
label: string;
|
|
7
|
+
/** Disables only this segment. */
|
|
6
8
|
disabled?: boolean;
|
|
7
9
|
}
|
|
8
10
|
export interface SegmentedControlProps<T extends string = string> {
|
|
11
|
+
/** The choices, all visible at once. Two to four read best (Hick); more belong in a Select. */
|
|
9
12
|
options: SegmentedControlOption<T>[];
|
|
13
|
+
/** The selected option's value. */
|
|
10
14
|
value: T;
|
|
15
|
+
/** Called with the new value; not called when pressing the segment already selected. */
|
|
11
16
|
onChange: (value: T) => void;
|
|
17
|
+
/** Disables the whole control. @default false */
|
|
12
18
|
disabled?: boolean;
|
|
13
19
|
style?: StyleProp<ViewStyle>;
|
|
14
20
|
testID?: string;
|
|
15
21
|
}
|
|
16
22
|
/**
|
|
17
23
|
* SegmentedControl
|
|
18
|
-
*
|
|
19
|
-
*
|
|
24
|
+
* Picks one option among a few, all visible. It knows no global state:
|
|
25
|
+
* it receives `value` and reports through `onChange`.
|
|
26
|
+
*
|
|
27
|
+
* Gestalt, common region: one track holds every segment, so they read as a
|
|
28
|
+
* single question. Similarity: equal widths and one line each, so no option
|
|
29
|
+
* looks more important. Figure-ground: the selected segment is raised (surface
|
|
30
|
+
* + shadow) above the sunken track; in dark, where shadows vanish, it takes
|
|
31
|
+
* the soft accent fill. Fitts: every segment reaches 44pt.
|
|
32
|
+
*
|
|
33
|
+
* Continuity: the selection is one indicator that slides from the old segment
|
|
34
|
+
* to the new one, so the eye follows the change instead of seeing one fill
|
|
35
|
+
* vanish and another appear. With Reduce Motion it jumps.
|
|
20
36
|
*/
|
|
21
37
|
declare function SegmentedControlInner<T extends string>({ options, value, onChange, disabled, style, testID, }: SegmentedControlProps<T>): React.JSX.Element;
|
|
22
38
|
export declare const SegmentedControl: typeof SegmentedControlInner;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SegmentedControl.d.ts","sourceRoot":"","sources":["../../../src/molecules/SegmentedControl.tsx"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"SegmentedControl.d.ts","sourceRoot":"","sources":["../../../src/molecules/SegmentedControl.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA4C,MAAM,OAAO,CAAC;AACjE,OAAO,EAQL,KAAK,SAAS,EACd,KAAK,SAAS,EACf,MAAM,cAAc,CAAC;AAKtB,MAAM,WAAW,sBAAsB,CAAC,CAAC,SAAS,MAAM,GAAG,MAAM;IAC/D,KAAK,EAAE,CAAC,CAAC;IACT,gFAAgF;IAChF,KAAK,EAAE,MAAM,CAAC;IACd,kCAAkC;IAClC,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED,MAAM,WAAW,qBAAqB,CAAC,CAAC,SAAS,MAAM,GAAG,MAAM;IAC9D,+FAA+F;IAC/F,OAAO,EAAE,sBAAsB,CAAC,CAAC,CAAC,EAAE,CAAC;IACrC,mCAAmC;IACnC,KAAK,EAAE,CAAC,CAAC;IACT,wFAAwF;IACxF,QAAQ,EAAE,CAAC,KAAK,EAAE,CAAC,KAAK,IAAI,CAAC;IAC7B,iDAAiD;IACjD,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;IAC7B,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAmDD;;;;;;;;;;;;;;GAcG;AACH,iBAAS,qBAAqB,CAAC,CAAC,SAAS,MAAM,EAAE,EAC/C,OAAO,EACP,KAAK,EACL,QAAQ,EACR,QAAgB,EAChB,KAAK,EACL,MAAM,GACP,EAAE,qBAAqB,CAAC,CAAC,CAAC,qBA2F1B;AAID,eAAO,MAAM,gBAAgB,EAAkC,OAAO,qBAAqB,CAAC"}
|
|
@@ -2,9 +2,13 @@ import React from 'react';
|
|
|
2
2
|
import { type StyleProp, type ViewStyle } from 'react-native';
|
|
3
3
|
export type StepperSize = 'sm' | 'md' | 'lg';
|
|
4
4
|
export interface StepperProps {
|
|
5
|
+
/** Current value, as text (it may be mid-typing, e.g. "" or "1."). */
|
|
5
6
|
value: string;
|
|
7
|
+
/** Receives the cleaned-up text while typing, and the clamped value on blur. */
|
|
6
8
|
onChangeText: (text: string) => void;
|
|
9
|
+
/** "+" pressed (or swipe up with a screen reader). Do the arithmetic here. */
|
|
7
10
|
onIncrement: () => void;
|
|
11
|
+
/** "-" pressed (or swipe down with a screen reader). */
|
|
8
12
|
onDecrement: () => void;
|
|
9
13
|
/** Scale of the control: height, buttons, icon and typography. @default 'md' */
|
|
10
14
|
size?: StepperSize;
|
|
@@ -25,23 +29,35 @@ export interface StepperProps {
|
|
|
25
29
|
/** Accepts a decimal separator, normalizing comma to dot. @default false */
|
|
26
30
|
allowDecimals?: boolean;
|
|
27
31
|
style?: StyleProp<ViewStyle>;
|
|
32
|
+
/** Accessible name of the numeric field. @default labels.quantity */
|
|
33
|
+
accessibilityLabel?: string;
|
|
34
|
+
/** Accessible name of the "+" button. @default labels.increment */
|
|
28
35
|
incrementAccessibilityLabel?: string;
|
|
36
|
+
/** Accessible name of the "-" button. @default labels.decrement */
|
|
29
37
|
decrementAccessibilityLabel?: string;
|
|
30
38
|
testID?: string;
|
|
31
39
|
}
|
|
32
|
-
/**
|
|
40
|
+
/** Keeps only what can be part of a number allowed by the range. */
|
|
33
41
|
export declare function sanitizeNumeric(text: string, { allowDecimals, allowNegative }?: {
|
|
34
42
|
allowDecimals?: boolean | undefined;
|
|
35
43
|
allowNegative?: boolean | undefined;
|
|
36
44
|
}): string;
|
|
37
45
|
/**
|
|
38
46
|
* Stepper
|
|
39
|
-
*
|
|
40
|
-
*
|
|
47
|
+
* "-" button + editable numeric input + "+" button. `size` controls only the
|
|
48
|
+
* scale and `block` only the width, so both axes combine freely.
|
|
41
49
|
*
|
|
42
|
-
*
|
|
43
|
-
* `onIncrement`/`onDecrement`—,
|
|
44
|
-
*
|
|
50
|
+
* The component doesn't do the buttons' arithmetic —that lives in
|
|
51
|
+
* `onIncrement`/`onDecrement`—, but it does clean up what is typed and signals
|
|
52
|
+
* when the value hit an end of the range by disabling the button that would pass it.
|
|
53
|
+
*
|
|
54
|
+
* Gestalt, common region: the three parts share one border, so they read as a
|
|
55
|
+
* single control; the field is set apart by its fill (it can be typed into).
|
|
56
|
+
* Fitts: every button reaches 44pt, `sm` through hitSlop.
|
|
57
|
+
*
|
|
58
|
+
* Accessibility: the field is an adjustable element — VoiceOver/TalkBack users
|
|
59
|
+
* swipe up/down to step the value — and every name comes from `labels`. Like
|
|
60
|
+
* Input, it stays visible above the keyboard while typing.
|
|
45
61
|
*/
|
|
46
|
-
export declare const Stepper: React.MemoExoticComponent<({ value, onChangeText, onIncrement, onDecrement, size, block, editable, min, max, allowDecimals, style, incrementAccessibilityLabel, decrementAccessibilityLabel, testID, }: StepperProps) => React.JSX.Element>;
|
|
62
|
+
export declare const Stepper: React.MemoExoticComponent<({ value, onChangeText, onIncrement, onDecrement, size, block, editable, min, max, allowDecimals, style, accessibilityLabel, incrementAccessibilityLabel, decrementAccessibilityLabel, testID, }: StepperProps) => React.JSX.Element>;
|
|
47
63
|
//# sourceMappingURL=Stepper.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Stepper.d.ts","sourceRoot":"","sources":["../../../src/molecules/Stepper.tsx"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"Stepper.d.ts","sourceRoot":"","sources":["../../../src/molecules/Stepper.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAoD,MAAM,OAAO,CAAC;AACzE,OAAO,EAKL,KAAK,SAAS,EACd,KAAK,SAAS,EACf,MAAM,cAAc,CAAC;AAMtB,MAAM,MAAM,WAAW,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;AAE7C,MAAM,WAAW,YAAY;IAC3B,sEAAsE;IACtE,KAAK,EAAE,MAAM,CAAC;IACd,gFAAgF;IAChF,YAAY,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IACrC,8EAA8E;IAC9E,WAAW,EAAE,MAAM,IAAI,CAAC;IACxB,wDAAwD;IACxD,WAAW,EAAE,MAAM,IAAI,CAAC;IACxB,gFAAgF;IAChF,IAAI,CAAC,EAAE,WAAW,CAAC;IACnB,yFAAyF;IACzF,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB;;;OAGG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;;OAGG;IACH,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,mFAAmF;IACnF,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,4EAA4E;IAC5E,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;IAC7B,qEAAqE;IACrE,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,mEAAmE;IACnE,2BAA2B,CAAC,EAAE,MAAM,CAAC;IACrC,mEAAmE;IACnE,2BAA2B,CAAC,EAAE,MAAM,CAAC;IACrC,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAwCD,oEAAoE;AACpE,wBAAgB,eAAe,CAAC,IAAI,EAAE,MAAM,EAAE,EAAE,aAAqB,EAAE,aAAqB,EAAE;;;CAAK,GAAG,MAAM,CAO3G;AAED;;;;;;;;;;;;;;;;GAgBG;AACH,eAAO,MAAM,OAAO,8NAiBf,YAAY,uBA4GhB,CAAC"}
|
|
@@ -1,15 +1,18 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { type StyleProp, type ViewStyle } from 'react-native';
|
|
3
3
|
export interface StepItem {
|
|
4
|
+
/** Short name of the step ("Payment"). */
|
|
4
5
|
label: string;
|
|
6
|
+
/** Optional second line with a detail ("Card or cash"). */
|
|
5
7
|
description?: string;
|
|
6
8
|
}
|
|
7
9
|
export type StepStatus = 'completed' | 'current' | 'pending';
|
|
8
10
|
export interface StepsProps {
|
|
11
|
+
/** The sequence, in order. */
|
|
9
12
|
steps: StepItem[];
|
|
10
13
|
/** Index of the current step (0-based). Earlier steps become 'completed'. */
|
|
11
14
|
current: number;
|
|
12
|
-
/** @default 'horizontal' */
|
|
15
|
+
/** Lays the steps out in a row or in a column. @default 'horizontal' */
|
|
13
16
|
orientation?: 'horizontal' | 'vertical';
|
|
14
17
|
/**
|
|
15
18
|
* What the circle of an already-completed step shows: a check, or its number.
|
|
@@ -19,11 +22,22 @@ export interface StepsProps {
|
|
|
19
22
|
/** If provided, each step is tappable and reports its index. */
|
|
20
23
|
onStepPress?: (index: number) => void;
|
|
21
24
|
style?: StyleProp<ViewStyle>;
|
|
25
|
+
/** Root testID; each step gets `<testID>-<index>`. */
|
|
26
|
+
testID?: string;
|
|
22
27
|
}
|
|
23
28
|
/**
|
|
24
29
|
* Steps
|
|
25
|
-
*
|
|
26
|
-
*
|
|
30
|
+
* Multi-step progress indicator. The visual base of `Wizard`, but usable on
|
|
31
|
+
* its own to show progress through a flow that is navigated some other way.
|
|
32
|
+
*
|
|
33
|
+
* Gestalt, continuity: a connector line runs through the circles, so the steps
|
|
34
|
+
* read as one path; the stretch already walked is filled with the accent.
|
|
35
|
+
* Similarity: every step is the same circle + label, and the state only
|
|
36
|
+
* changes fill and color (done = filled, current = outlined accent, pending =
|
|
37
|
+
* grey). Von Restorff: the current step is the only accent-colored label.
|
|
38
|
+
*
|
|
39
|
+
* Accessibility: each step announces "Step 2 of 3: Payment, current", with
|
|
40
|
+
* every word from `labels`.
|
|
27
41
|
*/
|
|
28
|
-
export declare const Steps: React.MemoExoticComponent<({ steps, current, orientation, completedIndicator, onStepPress, style }: StepsProps) => React.JSX.Element>;
|
|
42
|
+
export declare const Steps: React.MemoExoticComponent<({ steps, current, orientation, completedIndicator, onStepPress, style, testID, }: StepsProps) => React.JSX.Element>;
|
|
29
43
|
//# sourceMappingURL=Steps.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Steps.d.ts","sourceRoot":"","sources":["../../../src/molecules/Steps.tsx"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"Steps.d.ts","sourceRoot":"","sources":["../../../src/molecules/Steps.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA+D,MAAM,OAAO,CAAC;AACpF,OAAO,EAML,KAAK,SAAS,EACd,KAAK,SAAS,EACf,MAAM,cAAc,CAAC;AAMtB,MAAM,WAAW,QAAQ;IACvB,0CAA0C;IAC1C,KAAK,EAAE,MAAM,CAAC;IACd,2DAA2D;IAC3D,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,MAAM,MAAM,UAAU,GAAG,WAAW,GAAG,SAAS,GAAG,SAAS,CAAC;AAE7D,MAAM,WAAW,UAAU;IACzB,8BAA8B;IAC9B,KAAK,EAAE,QAAQ,EAAE,CAAC;IAClB,6EAA6E;IAC7E,OAAO,EAAE,MAAM,CAAC;IAChB,wEAAwE;IACxE,WAAW,CAAC,EAAE,YAAY,GAAG,UAAU,CAAC;IACxC;;;OAGG;IACH,kBAAkB,CAAC,EAAE,OAAO,GAAG,QAAQ,CAAC;IACxC,gEAAgE;IAChE,WAAW,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACtC,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;IAC7B,sDAAsD;IACtD,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AA0ED;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,KAAK,+GASb,UAAU,uBAqKd,CAAC"}
|
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { type StyleProp, type ViewStyle } from 'react-native';
|
|
3
3
|
export interface SymmetricGridProps<T> {
|
|
4
|
+
/** Items to lay out, in reading order. */
|
|
4
5
|
data: T[];
|
|
6
|
+
/** Renders one cell; it gets the full cell width. */
|
|
5
7
|
renderItem: (item: T, index: number) => React.ReactElement;
|
|
8
|
+
/** Stable key per item. */
|
|
6
9
|
keyExtractor: (item: T, index: number) => string;
|
|
7
10
|
/** Columns per row. @default 2 */
|
|
8
11
|
columns?: number;
|
|
@@ -14,13 +17,20 @@ export interface SymmetricGridProps<T> {
|
|
|
14
17
|
*/
|
|
15
18
|
balanceLastRow?: boolean;
|
|
16
19
|
style?: StyleProp<ViewStyle>;
|
|
20
|
+
testID?: string;
|
|
17
21
|
}
|
|
18
22
|
/**
|
|
19
23
|
* SymmetricGrid
|
|
20
|
-
*
|
|
21
|
-
*
|
|
22
|
-
*
|
|
23
|
-
*
|
|
24
|
+
* Law of Prägnanz (good form): groups items into even rows of N columns.
|
|
25
|
+
* The last row, when incomplete, is centered by default instead of sticking
|
|
26
|
+
* to one edge — that is what makes it read as a "short row" and not as a
|
|
27
|
+
* broken layout with a gap on one side.
|
|
28
|
+
*
|
|
29
|
+
* Gestalt, similarity: every cell has exactly the same width, also in the
|
|
30
|
+
* centered short row, so items read as peers. The horizontal gap is padding
|
|
31
|
+
* inside each cell (and a negative margin on the row), not flex `gap`: a
|
|
32
|
+
* `100 / columns %` width plus a gap made every row wider than the grid and
|
|
33
|
+
* pushed the right column out of the container.
|
|
24
34
|
*/
|
|
25
|
-
export declare function SymmetricGrid<T>({ data, renderItem, keyExtractor, columns, gap, balanceLastRow, style, }: SymmetricGridProps<T>): React.JSX.Element;
|
|
35
|
+
export declare function SymmetricGrid<T>({ data, renderItem, keyExtractor, columns, gap, balanceLastRow, style, testID, }: SymmetricGridProps<T>): React.JSX.Element;
|
|
26
36
|
//# sourceMappingURL=SymmetricGrid.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SymmetricGrid.d.ts","sourceRoot":"","sources":["../../../src/molecules/SymmetricGrid.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAkB,MAAM,OAAO,CAAC;AACvC,OAAO,EAAQ,KAAK,SAAS,EAAE,KAAK,SAAS,EAAE,MAAM,cAAc,CAAC;
|
|
1
|
+
{"version":3,"file":"SymmetricGrid.d.ts","sourceRoot":"","sources":["../../../src/molecules/SymmetricGrid.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAkB,MAAM,OAAO,CAAC;AACvC,OAAO,EAAQ,KAAK,SAAS,EAAE,KAAK,SAAS,EAAE,MAAM,cAAc,CAAC;AAIpE,MAAM,WAAW,kBAAkB,CAAC,CAAC;IACnC,0CAA0C;IAC1C,IAAI,EAAE,CAAC,EAAE,CAAC;IACV,qDAAqD;IACrD,UAAU,EAAE,CAAC,IAAI,EAAE,CAAC,EAAE,KAAK,EAAE,MAAM,KAAK,KAAK,CAAC,YAAY,CAAC;IAC3D,2BAA2B;IAC3B,YAAY,EAAE,CAAC,IAAI,EAAE,CAAC,EAAE,KAAK,EAAE,MAAM,KAAK,MAAM,CAAC;IACjD,kCAAkC;IAClC,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,4EAA4E;IAC5E,GAAG,CAAC,EAAE,MAAM,CAAC;IACb;;;OAGG;IACH,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;IAC7B,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAeD;;;;;;;;;;;;GAYG;AACH,wBAAgB,aAAa,CAAC,CAAC,EAAE,EAC/B,IAAI,EACJ,UAAU,EACV,YAAY,EACZ,OAAW,EACX,GAAG,EACH,cAAqB,EACrB,KAAK,EACL,MAAM,GACP,EAAE,kBAAkB,CAAC,CAAC,CAAC,qBAqCvB"}
|
|
@@ -2,28 +2,54 @@ import React from 'react';
|
|
|
2
2
|
import { type ButtonVariant } from '../atoms/Button';
|
|
3
3
|
export type AlertType = 'success' | 'error' | 'warning' | 'info' | 'question';
|
|
4
4
|
export interface AlertButton {
|
|
5
|
+
/** Button label. */
|
|
5
6
|
text: string;
|
|
7
|
+
/** Called on press; without it the button calls `onClose`. */
|
|
6
8
|
onPress?: () => void;
|
|
9
|
+
/** 'cancel' renders outline, 'destructive' renders in the error color. */
|
|
7
10
|
style?: 'cancel' | 'default' | 'destructive';
|
|
11
|
+
/** Explicit Button variant; wins over `style`. */
|
|
8
12
|
variant?: ButtonVariant;
|
|
9
13
|
}
|
|
10
14
|
export interface AlertProps {
|
|
15
|
+
/** Shows or hides the dialog. */
|
|
11
16
|
visible: boolean;
|
|
17
|
+
/** Short heading; screen readers announce it as a header. */
|
|
12
18
|
title: string;
|
|
19
|
+
/** Optional explanation under the title. */
|
|
13
20
|
message?: string;
|
|
21
|
+
/** Icon and color of the dialog. @default 'info' */
|
|
14
22
|
type?: AlertType;
|
|
23
|
+
/** Tap on the backdrop, Android back, VoiceOver escape. Without it the backdrop does nothing. */
|
|
15
24
|
onClose?: () => void;
|
|
25
|
+
/** Custom buttons; three or more stack vertically. */
|
|
16
26
|
buttons?: AlertButton[];
|
|
27
|
+
/** Shorthand: label of the confirm button. @default labels.confirm */
|
|
17
28
|
confirmText?: string;
|
|
29
|
+
/** Shorthand: label of the cancel button (shown with `onCancel` or `cancelText`). @default labels.cancel */
|
|
18
30
|
cancelText?: string;
|
|
31
|
+
/** Shorthand: confirm action. */
|
|
19
32
|
onConfirm?: () => void;
|
|
33
|
+
/** Shorthand: cancel action (falls back to `onClose`). */
|
|
20
34
|
onCancel?: () => void;
|
|
35
|
+
/** The confirm button uses the destructive color (delete, discard). @default false */
|
|
36
|
+
destructive?: boolean;
|
|
37
|
+
/** Draws the dialog inside its parent instead of over the screen (docs, previews). @default false */
|
|
21
38
|
inline?: boolean;
|
|
22
39
|
}
|
|
23
40
|
/**
|
|
24
41
|
* Alert
|
|
25
|
-
*
|
|
26
|
-
*
|
|
42
|
+
* Declarative dialog component. For imperative use (showing it from a
|
|
43
|
+
* handler without lifting your own state), use AlertProvider + useAlert().
|
|
44
|
+
*
|
|
45
|
+
* Gestalt, figure-ground: the overlay dims everything behind, so the dialog
|
|
46
|
+
* is the only figure. Proximity: icon, title and message sit together and the
|
|
47
|
+
* buttons a larger step below, as the answer block. Von Restorff: only the
|
|
48
|
+
* main action is filled (or red when `destructive`); cancel is outline.
|
|
49
|
+
* Hick: two buttons side by side; three or more stack so each reads alone.
|
|
50
|
+
*
|
|
51
|
+
* Accessibility: the title is a header, the dialog is modal for VoiceOver and
|
|
52
|
+
* the escape gesture (two-finger Z) calls `onClose`.
|
|
27
53
|
*/
|
|
28
54
|
export declare const Alert: React.MemoExoticComponent<(props: AlertProps) => React.JSX.Element | null>;
|
|
29
55
|
//# sourceMappingURL=Alert.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Alert.d.ts","sourceRoot":"","sources":["../../../src/organisms/Alert.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAe,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"Alert.d.ts","sourceRoot":"","sources":["../../../src/organisms/Alert.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAe,MAAM,OAAO,CAAC;AAKpC,OAAO,EAAU,KAAK,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAI7D,MAAM,MAAM,SAAS,GAAG,SAAS,GAAG,OAAO,GAAG,SAAS,GAAG,MAAM,GAAG,UAAU,CAAC;AAE9E,MAAM,WAAW,WAAW;IAC1B,oBAAoB;IACpB,IAAI,EAAE,MAAM,CAAC;IACb,8DAA8D;IAC9D,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,0EAA0E;IAC1E,KAAK,CAAC,EAAE,QAAQ,GAAG,SAAS,GAAG,aAAa,CAAC;IAC7C,kDAAkD;IAClD,OAAO,CAAC,EAAE,aAAa,CAAC;CACzB;AAED,MAAM,WAAW,UAAU;IACzB,iCAAiC;IACjC,OAAO,EAAE,OAAO,CAAC;IACjB,6DAA6D;IAC7D,KAAK,EAAE,MAAM,CAAC;IACd,4CAA4C;IAC5C,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,oDAAoD;IACpD,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB,iGAAiG;IACjG,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,sDAAsD;IACtD,OAAO,CAAC,EAAE,WAAW,EAAE,CAAC;IACxB,sEAAsE;IACtE,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,4GAA4G;IAC5G,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,iCAAiC;IACjC,SAAS,CAAC,EAAE,MAAM,IAAI,CAAC;IACvB,0DAA0D;IAC1D,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAC;IACtB,sFAAsF;IACtF,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,qGAAqG;IACrG,MAAM,CAAC,EAAE,OAAO,CAAC;CAClB;AAgFD;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,KAAK,oCAAgB,UAAU,8BA2F1C,CAAC"}
|
|
@@ -8,30 +8,30 @@ export interface AlertOptions {
|
|
|
8
8
|
cancelText?: string;
|
|
9
9
|
}
|
|
10
10
|
export interface ConfirmOptions extends AlertOptions {
|
|
11
|
-
/**
|
|
11
|
+
/** Shows the confirm button as destructive/red (for "delete", etc.). */
|
|
12
12
|
destructive?: boolean;
|
|
13
13
|
}
|
|
14
14
|
interface AlertContextValue {
|
|
15
|
-
/**
|
|
15
|
+
/** Shows a single-button alert. Resolves when it closes. */
|
|
16
16
|
alert: (options: AlertOptions) => Promise<void>;
|
|
17
|
-
/**
|
|
17
|
+
/** Shows confirm/cancel. Resolves true if confirmed, false if cancelled. */
|
|
18
18
|
confirm: (options: ConfirmOptions) => Promise<boolean>;
|
|
19
19
|
hide: () => void;
|
|
20
20
|
}
|
|
21
21
|
/**
|
|
22
|
-
*
|
|
23
|
-
*
|
|
24
|
-
*
|
|
22
|
+
* Opens an alert from outside the React tree —a service, an interceptor—
|
|
23
|
+
* without going through the hook. Without a mounted <AlertProvider> it
|
|
24
|
+
* resolves immediately, so an `await` never hangs.
|
|
25
25
|
*/
|
|
26
26
|
export declare function showAlert(options: AlertOptions): Promise<void>;
|
|
27
|
-
/**
|
|
27
|
+
/** Same as showAlert, but resolves true/false. Without a provider, false. */
|
|
28
28
|
export declare function showConfirm(options: ConfirmOptions): Promise<boolean>;
|
|
29
29
|
export declare function hideAlert(): void;
|
|
30
30
|
/**
|
|
31
31
|
* AlertProvider
|
|
32
|
-
*
|
|
33
|
-
*
|
|
34
|
-
* `const ok = await confirm({ title: '
|
|
32
|
+
* Mounts a single imperatively controlled <Alert>. Place it once near the
|
|
33
|
+
* root (inside UIProvider). Async handlers can do
|
|
34
|
+
* `const ok = await confirm({ title: 'Delete', destructive: true })`.
|
|
35
35
|
*/
|
|
36
36
|
export declare function AlertProvider({ children }: {
|
|
37
37
|
children: React.ReactNode;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AlertProvider.d.ts","sourceRoot":"","sources":["../../../src/organisms/AlertProvider.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAuF,MAAM,OAAO,CAAC;AAC5G,OAAO,EAA2B,KAAK,SAAS,EAAE,MAAM,SAAS,CAAC;AAGlE,MAAM,WAAW,YAAY;IAC3B,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAED,MAAM,WAAW,cAAe,SAAQ,YAAY;IAClD,
|
|
1
|
+
{"version":3,"file":"AlertProvider.d.ts","sourceRoot":"","sources":["../../../src/organisms/AlertProvider.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAuF,MAAM,OAAO,CAAC;AAC5G,OAAO,EAA2B,KAAK,SAAS,EAAE,MAAM,SAAS,CAAC;AAGlE,MAAM,WAAW,YAAY;IAC3B,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAED,MAAM,WAAW,cAAe,SAAQ,YAAY;IAClD,wEAAwE;IACxE,WAAW,CAAC,EAAE,OAAO,CAAC;CACvB;AAED,UAAU,iBAAiB;IACzB,4DAA4D;IAC5D,KAAK,EAAE,CAAC,OAAO,EAAE,YAAY,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IAChD,4EAA4E;IAC5E,OAAO,EAAE,CAAC,OAAO,EAAE,cAAc,KAAK,OAAO,CAAC,OAAO,CAAC,CAAC;IACvD,IAAI,EAAE,MAAM,IAAI,CAAC;CAClB;AAKD;;;;GAIG;AACH,wBAAgB,SAAS,CAAC,OAAO,EAAE,YAAY,GAAG,OAAO,CAAC,IAAI,CAAC,CAE9D;AAED,6EAA6E;AAC7E,wBAAgB,WAAW,CAAC,OAAO,EAAE,cAAc,GAAG,OAAO,CAAC,OAAO,CAAC,CAErE;AAED,wBAAgB,SAAS,IAAI,IAAI,CAEhC;AAYD;;;;;GAKG;AACH,wBAAgB,aAAa,CAAC,EAAE,QAAQ,EAAE,EAAE;IAAE,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAA;CAAE,qBAuFxE;AAED,wBAAgB,QAAQ,IAAI,iBAAiB,CAM5C"}
|
|
@@ -2,8 +2,11 @@ import React from 'react';
|
|
|
2
2
|
import { type ViewStyle } from 'react-native';
|
|
3
3
|
export type FooterPlacement = 'fixed' | 'scroll' | 'hide-with-keyboard';
|
|
4
4
|
export interface BottomSheetProps {
|
|
5
|
+
/** Shows or hides the sheet (it slides in and out). */
|
|
5
6
|
visible: boolean;
|
|
7
|
+
/** Called by the backdrop, the close button, the drag and Android back. */
|
|
6
8
|
onClose: () => void;
|
|
9
|
+
/** Sheet content. */
|
|
7
10
|
children: React.ReactNode;
|
|
8
11
|
/** With a title, the header appears, with its close button. */
|
|
9
12
|
title?: string;
|
|
@@ -21,17 +24,29 @@ export interface BottomSheetProps {
|
|
|
21
24
|
draggable?: boolean;
|
|
22
25
|
/** Fraction of the screen (0-1) or pixels. @default 0.9 */
|
|
23
26
|
maxHeight?: number;
|
|
27
|
+
/** Accessible name of the close button and backdrop. @default labels.close */
|
|
24
28
|
closeAccessibilityLabel?: string;
|
|
29
|
+
/** Style of the sheet itself (background, radius). */
|
|
25
30
|
containerStyle?: ViewStyle;
|
|
31
|
+
/** Style of the content area (padding). */
|
|
26
32
|
contentStyle?: ViewStyle;
|
|
33
|
+
/** Draws the sheet inside its parent instead of over the screen (docs, previews). @default false */
|
|
34
|
+
inline?: boolean;
|
|
27
35
|
testID?: string;
|
|
28
36
|
}
|
|
29
37
|
/**
|
|
30
38
|
* BottomSheet
|
|
31
|
-
*
|
|
32
|
-
* gesture-handler
|
|
33
|
-
* scroll
|
|
34
|
-
*
|
|
39
|
+
* Sheet that slides in from the bottom, with drag to close (PanResponder, not
|
|
40
|
+
* an external gesture-handler: the library is zero-dependency). Header, footer
|
|
41
|
+
* and scroll are optional, so it covers both the bare sheet and the full
|
|
42
|
+
* form.
|
|
43
|
+
*
|
|
44
|
+
* Gestalt, figure-ground: the backdrop dims the screen, so the sheet is the
|
|
45
|
+
* only figure. Common region: header, content and footer share one panel;
|
|
46
|
+
* the footer's top border separates the actions from the content. Continuity:
|
|
47
|
+
* it slides from the edge it lives on and the drag follows the finger back
|
|
48
|
+
* down; a short flick closes it too. Fitts: content sits in the thumb zone.
|
|
49
|
+
* Reduce Motion: it appears and leaves without sliding.
|
|
35
50
|
*/
|
|
36
|
-
export declare const BottomSheet: React.MemoExoticComponent<({ visible, onClose, children, title, footer, footerPlacement, scrollable, draggable, maxHeight, closeAccessibilityLabel, containerStyle, contentStyle, testID, }: BottomSheetProps) => React.JSX.Element | null>;
|
|
51
|
+
export declare const BottomSheet: React.MemoExoticComponent<({ visible, onClose, children, title, footer, footerPlacement, scrollable, draggable, maxHeight, closeAccessibilityLabel, containerStyle, contentStyle, inline, testID, }: BottomSheetProps) => React.JSX.Element | null>;
|
|
37
52
|
//# sourceMappingURL=BottomSheet.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BottomSheet.d.ts","sourceRoot":"","sources":["../../../src/organisms/BottomSheet.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA4C,MAAM,OAAO,CAAC;AACjE,OAAO,
|
|
1
|
+
{"version":3,"file":"BottomSheet.d.ts","sourceRoot":"","sources":["../../../src/organisms/BottomSheet.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA4C,MAAM,OAAO,CAAC;AACjE,OAAO,EAUL,KAAK,SAAS,EACf,MAAM,cAAc,CAAC;AAmBtB,MAAM,MAAM,eAAe,GAAG,OAAO,GAAG,QAAQ,GAAG,oBAAoB,CAAC;AAExE,MAAM,WAAW,gBAAgB;IAC/B,uDAAuD;IACvD,OAAO,EAAE,OAAO,CAAC;IACjB,2EAA2E;IAC3E,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,qBAAqB;IACrB,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,+DAA+D;IAC/D,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,sEAAsE;IACtE,MAAM,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACzB;;;;OAIG;IACH,eAAe,CAAC,EAAE,eAAe,CAAC;IAClC,6DAA6D;IAC7D,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,uDAAuD;IACvD,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,2DAA2D;IAC3D,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,8EAA8E;IAC9E,uBAAuB,CAAC,EAAE,MAAM,CAAC;IACjC,sDAAsD;IACtD,cAAc,CAAC,EAAE,SAAS,CAAC;IAC3B,2CAA2C;IAC3C,YAAY,CAAC,EAAE,SAAS,CAAC;IACzB,oGAAoG;IACpG,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AA4CD;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,WAAW,uMAgBnB,gBAAgB,8BAgMpB,CAAC"}
|