@lichens-innovation/react-native-common 3.9.0 → 3.11.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +56 -25
- package/dist/index.d.ts +1859 -9
- package/dist/index.js +4665 -9
- package/dist/index.js.map +1 -1
- package/dist/rjsf.d.ts +125 -0
- package/dist/rjsf.js +1484 -0
- package/dist/rjsf.js.map +1 -0
- package/package.json +50 -12
- package/dist/components/battery/battery-level.d.ts +0 -9
- package/dist/components/battery/battery-level.js +0 -9
- package/dist/components/battery/battery-level.js.map +0 -1
- package/dist/components/battery/battery.utils.d.ts +0 -2
- package/dist/components/battery/battery.utils.js +0 -24
- package/dist/components/battery/battery.utils.js.map +0 -1
- package/dist/components/battery/index.d.ts +0 -2
- package/dist/components/battery/index.js +0 -3
- package/dist/components/battery/index.js.map +0 -1
- package/dist/components/bottom-sheet/bottom-sheet.constants.d.ts +0 -1
- package/dist/components/bottom-sheet/bottom-sheet.constants.js +0 -2
- package/dist/components/bottom-sheet/bottom-sheet.constants.js.map +0 -1
- package/dist/components/bottom-sheet/default-backdrop.d.ts +0 -3
- package/dist/components/bottom-sheet/default-backdrop.js +0 -4
- package/dist/components/bottom-sheet/default-backdrop.js.map +0 -1
- package/dist/components/bottom-sheet/default-backdrop.windows.d.ts +0 -2
- package/dist/components/bottom-sheet/default-backdrop.windows.js +0 -3
- package/dist/components/bottom-sheet/default-backdrop.windows.js.map +0 -1
- package/dist/components/bottom-sheet/default-sheet-background.d.ts +0 -3
- package/dist/components/bottom-sheet/default-sheet-background.js +0 -8
- package/dist/components/bottom-sheet/default-sheet-background.js.map +0 -1
- package/dist/components/bottom-sheet/index.d.ts +0 -4
- package/dist/components/bottom-sheet/index.js +0 -5
- package/dist/components/bottom-sheet/index.js.map +0 -1
- package/dist/components/bottom-sheet/use-bottom-sheet-toggler.d.ts +0 -7
- package/dist/components/bottom-sheet/use-bottom-sheet-toggler.js +0 -39
- package/dist/components/bottom-sheet/use-bottom-sheet-toggler.js.map +0 -1
- package/dist/components/code-scanner/barcode-scanner-dialog.d.ts +0 -11
- package/dist/components/code-scanner/barcode-scanner-dialog.js +0 -32
- package/dist/components/code-scanner/barcode-scanner-dialog.js.map +0 -1
- package/dist/components/code-scanner/barcode-scanner.d.ts +0 -7
- package/dist/components/code-scanner/barcode-scanner.js +0 -34
- package/dist/components/code-scanner/barcode-scanner.js.map +0 -1
- package/dist/components/code-scanner/barcode-scanner.utils.d.ts +0 -4
- package/dist/components/code-scanner/barcode-scanner.utils.js +0 -38
- package/dist/components/code-scanner/barcode-scanner.utils.js.map +0 -1
- package/dist/components/code-scanner/index.d.ts +0 -3
- package/dist/components/code-scanner/index.js +0 -4
- package/dist/components/code-scanner/index.js.map +0 -1
- package/dist/components/dialogs/dialog-close-only.d.ts +0 -12
- package/dist/components/dialogs/dialog-close-only.js +0 -39
- package/dist/components/dialogs/dialog-close-only.js.map +0 -1
- package/dist/components/dialogs/dialog-ok-cancel.d.ts +0 -13
- package/dist/components/dialogs/dialog-ok-cancel.js +0 -44
- package/dist/components/dialogs/dialog-ok-cancel.js.map +0 -1
- package/dist/components/dialogs/dialog-single-textinput.d.ts +0 -16
- package/dist/components/dialogs/dialog-single-textinput.js +0 -59
- package/dist/components/dialogs/dialog-single-textinput.js.map +0 -1
- package/dist/components/dialogs/dialog-syntax-color-result.d.ts +0 -14
- package/dist/components/dialogs/dialog-syntax-color-result.js +0 -47
- package/dist/components/dialogs/dialog-syntax-color-result.js.map +0 -1
- package/dist/components/dialogs/index.d.ts +0 -5
- package/dist/components/dialogs/index.js +0 -6
- package/dist/components/dialogs/index.js.map +0 -1
- package/dist/components/dialogs/use-dialog-styles.d.ts +0 -4
- package/dist/components/dialogs/use-dialog-styles.js +0 -13
- package/dist/components/dialogs/use-dialog-styles.js.map +0 -1
- package/dist/components/drop-down-selector/drop-down-selector-item.d.ts +0 -8
- package/dist/components/drop-down-selector/drop-down-selector-item.js +0 -24
- package/dist/components/drop-down-selector/drop-down-selector-item.js.map +0 -1
- package/dist/components/drop-down-selector/drop-down-selector-left-icon.d.ts +0 -7
- package/dist/components/drop-down-selector/drop-down-selector-left-icon.js +0 -9
- package/dist/components/drop-down-selector/drop-down-selector-left-icon.js.map +0 -1
- package/dist/components/drop-down-selector/drop-down-selector.d.ts +0 -17
- package/dist/components/drop-down-selector/drop-down-selector.js +0 -60
- package/dist/components/drop-down-selector/drop-down-selector.js.map +0 -1
- package/dist/components/drop-down-selector/drop-down-selector.utils.d.ts +0 -22
- package/dist/components/drop-down-selector/drop-down-selector.utils.js +0 -37
- package/dist/components/drop-down-selector/drop-down-selector.utils.js.map +0 -1
- package/dist/components/drop-down-selector/drop-down-selector.windows.d.ts +0 -2
- package/dist/components/drop-down-selector/drop-down-selector.windows.js +0 -3
- package/dist/components/drop-down-selector/drop-down-selector.windows.js.map +0 -1
- package/dist/components/drop-down-selector/index.d.ts +0 -1
- package/dist/components/drop-down-selector/index.js +0 -2
- package/dist/components/drop-down-selector/index.js.map +0 -1
- package/dist/components/error/error-boundary-screen.d.ts +0 -2
- package/dist/components/error/error-boundary-screen.js +0 -35
- package/dist/components/error/error-boundary-screen.js.map +0 -1
- package/dist/components/error/error-boundary-screen.windows.d.ts +0 -2
- package/dist/components/error/error-boundary-screen.windows.js +0 -3
- package/dist/components/error/error-boundary-screen.windows.js.map +0 -1
- package/dist/components/error/error-boundary.d.ts +0 -3
- package/dist/components/error/error-boundary.js +0 -27
- package/dist/components/error/error-boundary.js.map +0 -1
- package/dist/components/error/error-boundary.windows.d.ts +0 -2
- package/dist/components/error/error-boundary.windows.js +0 -3
- package/dist/components/error/error-boundary.windows.js.map +0 -1
- package/dist/components/error/error-details.d.ts +0 -7
- package/dist/components/error/error-details.js +0 -32
- package/dist/components/error/error-details.js.map +0 -1
- package/dist/components/error/index.d.ts +0 -4
- package/dist/components/error/index.js +0 -5
- package/dist/components/error/index.js.map +0 -1
- package/dist/components/error/use-error-details.d.ts +0 -7
- package/dist/components/error/use-error-details.js +0 -19
- package/dist/components/error/use-error-details.js.map +0 -1
- package/dist/components/event-logs/event-logs-screen.d.ts +0 -2
- package/dist/components/event-logs/event-logs-screen.js +0 -63
- package/dist/components/event-logs/event-logs-screen.js.map +0 -1
- package/dist/components/event-logs/index.d.ts +0 -2
- package/dist/components/event-logs/index.js +0 -3
- package/dist/components/event-logs/index.js.map +0 -1
- package/dist/components/event-logs/live-logs-viewer/index.d.ts +0 -6
- package/dist/components/event-logs/live-logs-viewer/index.js +0 -7
- package/dist/components/event-logs/live-logs-viewer/index.js.map +0 -1
- package/dist/components/event-logs/live-logs-viewer/log-entry-item-suffix.d.ts +0 -7
- package/dist/components/event-logs/live-logs-viewer/log-entry-item-suffix.js +0 -6
- package/dist/components/event-logs/live-logs-viewer/log-entry-item-suffix.js.map +0 -1
- package/dist/components/event-logs/live-logs-viewer/log-entry-item.d.ts +0 -7
- package/dist/components/event-logs/live-logs-viewer/log-entry-item.js +0 -35
- package/dist/components/event-logs/live-logs-viewer/log-entry-item.js.map +0 -1
- package/dist/components/event-logs/live-logs-viewer/logs-viewer.d.ts +0 -7
- package/dist/components/event-logs/live-logs-viewer/logs-viewer.js +0 -44
- package/dist/components/event-logs/live-logs-viewer/logs-viewer.js.map +0 -1
- package/dist/components/event-logs/live-logs-viewer/logs-viewer.utils.d.ts +0 -1
- package/dist/components/event-logs/live-logs-viewer/logs-viewer.utils.js +0 -6
- package/dist/components/event-logs/live-logs-viewer/logs-viewer.utils.js.map +0 -1
- package/dist/components/event-logs/live-logs-viewer/use-auto-scroll.d.ts +0 -7
- package/dist/components/event-logs/live-logs-viewer/use-auto-scroll.js +0 -20
- package/dist/components/event-logs/live-logs-viewer/use-auto-scroll.js.map +0 -1
- package/dist/components/event-logs/live-logs-viewer/use-logs-actions.d.ts +0 -6
- package/dist/components/event-logs/live-logs-viewer/use-logs-actions.js +0 -24
- package/dist/components/event-logs/live-logs-viewer/use-logs-actions.js.map +0 -1
- package/dist/components/header-actions/header-back-button.d.ts +0 -2
- package/dist/components/header-actions/header-back-button.js +0 -5
- package/dist/components/header-actions/header-back-button.js.map +0 -1
- package/dist/components/header-actions/header-back-button.windows.d.ts +0 -2
- package/dist/components/header-actions/header-back-button.windows.js +0 -3
- package/dist/components/header-actions/header-back-button.windows.js.map +0 -1
- package/dist/components/header-actions/header-button.d.ts +0 -7
- package/dist/components/header-actions/header-button.js +0 -18
- package/dist/components/header-actions/header-button.js.map +0 -1
- package/dist/components/header-actions/index.d.ts +0 -2
- package/dist/components/header-actions/index.js +0 -3
- package/dist/components/header-actions/index.js.map +0 -1
- package/dist/components/index.d.ts +0 -18
- package/dist/components/index.js +0 -19
- package/dist/components/index.js.map +0 -1
- package/dist/components/language-selector/index.d.ts +0 -4
- package/dist/components/language-selector/index.js +0 -5
- package/dist/components/language-selector/index.js.map +0 -1
- package/dist/components/language-selector/language-selector-menu.d.ts +0 -3
- package/dist/components/language-selector/language-selector-menu.js +0 -13
- package/dist/components/language-selector/language-selector-menu.js.map +0 -1
- package/dist/components/language-selector/language-selector-segmented.d.ts +0 -3
- package/dist/components/language-selector/language-selector-segmented.js +0 -9
- package/dist/components/language-selector/language-selector-segmented.js.map +0 -1
- package/dist/components/language-selector/language-selector.d.ts +0 -3
- package/dist/components/language-selector/language-selector.js +0 -10
- package/dist/components/language-selector/language-selector.js.map +0 -1
- package/dist/components/language-selector/language-selector.types.d.ts +0 -9
- package/dist/components/language-selector/language-selector.types.js +0 -1
- package/dist/components/language-selector/language-selector.types.js.map +0 -1
- package/dist/components/layout/full-centered.d.ts +0 -7
- package/dist/components/layout/full-centered.js +0 -4
- package/dist/components/layout/full-centered.js.map +0 -1
- package/dist/components/layout/index.d.ts +0 -4
- package/dist/components/layout/index.js +0 -5
- package/dist/components/layout/index.js.map +0 -1
- package/dist/components/layout/orientation-aware-tabs/index.d.ts +0 -2
- package/dist/components/layout/orientation-aware-tabs/index.js +0 -3
- package/dist/components/layout/orientation-aware-tabs/index.js.map +0 -1
- package/dist/components/layout/orientation-aware-tabs/orientation-aware-tab-button.d.ts +0 -9
- package/dist/components/layout/orientation-aware-tabs/orientation-aware-tab-button.js +0 -40
- package/dist/components/layout/orientation-aware-tabs/orientation-aware-tab-button.js.map +0 -1
- package/dist/components/layout/orientation-aware-tabs/orientation-aware-tabs-layout.d.ts +0 -15
- package/dist/components/layout/orientation-aware-tabs/orientation-aware-tabs-layout.js +0 -40
- package/dist/components/layout/orientation-aware-tabs/orientation-aware-tabs-layout.js.map +0 -1
- package/dist/components/layout/resizable/horizontal-resizable-split-view.d.ts +0 -3
- package/dist/components/layout/resizable/horizontal-resizable-split-view.js +0 -80
- package/dist/components/layout/resizable/horizontal-resizable-split-view.js.map +0 -1
- package/dist/components/layout/resizable/horizontal-resizable-split-view.types.d.ts +0 -20
- package/dist/components/layout/resizable/horizontal-resizable-split-view.types.js +0 -1
- package/dist/components/layout/resizable/horizontal-resizable-split-view.types.js.map +0 -1
- package/dist/components/layout/resizable/horizontal-resizable-split-view.utils.d.ts +0 -2
- package/dist/components/layout/resizable/horizontal-resizable-split-view.utils.js +0 -23
- package/dist/components/layout/resizable/horizontal-resizable-split-view.utils.js.map +0 -1
- package/dist/components/layout/resizable/index.d.ts +0 -6
- package/dist/components/layout/resizable/index.js +0 -7
- package/dist/components/layout/resizable/index.js.map +0 -1
- package/dist/components/layout/resizable/resizable-overlay-view.d.ts +0 -3
- package/dist/components/layout/resizable/resizable-overlay-view.js +0 -132
- package/dist/components/layout/resizable/resizable-overlay-view.js.map +0 -1
- package/dist/components/layout/resizable/resizable-overlay-view.utils.d.ts +0 -16
- package/dist/components/layout/resizable/resizable-overlay-view.utils.js +0 -19
- package/dist/components/layout/resizable/resizable-overlay-view.utils.js.map +0 -1
- package/dist/components/layout/resizable/vertical-resizable-overlay-view.types.d.ts +0 -28
- package/dist/components/layout/resizable/vertical-resizable-overlay-view.types.js +0 -1
- package/dist/components/layout/resizable/vertical-resizable-overlay-view.types.js.map +0 -1
- package/dist/components/layout/resizable/vertical-resizable-overlay-view.utils.d.ts +0 -2
- package/dist/components/layout/resizable/vertical-resizable-overlay-view.utils.js +0 -31
- package/dist/components/layout/resizable/vertical-resizable-overlay-view.utils.js.map +0 -1
- package/dist/components/layout/resizable/vertical-resizable-split-view.d.ts +0 -3
- package/dist/components/layout/resizable/vertical-resizable-split-view.js +0 -79
- package/dist/components/layout/resizable/vertical-resizable-split-view.js.map +0 -1
- package/dist/components/layout/resizable/vertical-resizable-split-view.types.d.ts +0 -20
- package/dist/components/layout/resizable/vertical-resizable-split-view.types.js +0 -1
- package/dist/components/layout/resizable/vertical-resizable-split-view.types.js.map +0 -1
- package/dist/components/layout/resizable/vertical-resizable-split-view.utils.d.ts +0 -2
- package/dist/components/layout/resizable/vertical-resizable-split-view.utils.js +0 -23
- package/dist/components/layout/resizable/vertical-resizable-split-view.utils.js.map +0 -1
- package/dist/components/layout/safe-container.d.ts +0 -8
- package/dist/components/layout/safe-container.js +0 -18
- package/dist/components/layout/safe-container.js.map +0 -1
- package/dist/components/layout/safe-container.windows.d.ts +0 -8
- package/dist/components/layout/safe-container.windows.js +0 -16
- package/dist/components/layout/safe-container.windows.js.map +0 -1
- package/dist/components/lists/index.d.ts +0 -2
- package/dist/components/lists/index.js +0 -3
- package/dist/components/lists/index.js.map +0 -1
- package/dist/components/lists/list-header.d.ts +0 -5
- package/dist/components/lists/list-header.js +0 -17
- package/dist/components/lists/list-header.js.map +0 -1
- package/dist/components/lists/list-items-separator.d.ts +0 -2
- package/dist/components/lists/list-items-separator.js +0 -17
- package/dist/components/lists/list-items-separator.js.map +0 -1
- package/dist/components/on-off-toggle/index.d.ts +0 -1
- package/dist/components/on-off-toggle/index.js +0 -2
- package/dist/components/on-off-toggle/index.js.map +0 -1
- package/dist/components/on-off-toggle/on-off-toggle.d.ts +0 -9
- package/dist/components/on-off-toggle/on-off-toggle.js +0 -27
- package/dist/components/on-off-toggle/on-off-toggle.js.map +0 -1
- package/dist/components/score-indicator/index.d.ts +0 -1
- package/dist/components/score-indicator/index.js +0 -2
- package/dist/components/score-indicator/index.js.map +0 -1
- package/dist/components/score-indicator/score-indicator.d.ts +0 -6
- package/dist/components/score-indicator/score-indicator.js +0 -31
- package/dist/components/score-indicator/score-indicator.js.map +0 -1
- package/dist/components/snack-bar/index.d.ts +0 -2
- package/dist/components/snack-bar/index.js +0 -3
- package/dist/components/snack-bar/index.js.map +0 -1
- package/dist/components/snack-bar/snackbar-provider.d.ts +0 -8
- package/dist/components/snack-bar/snackbar-provider.js +0 -31
- package/dist/components/snack-bar/snackbar-provider.js.map +0 -1
- package/dist/components/snack-bar/snackbar.constants.d.ts +0 -5
- package/dist/components/snack-bar/snackbar.constants.js +0 -6
- package/dist/components/snack-bar/snackbar.constants.js.map +0 -1
- package/dist/components/spinner/activity-progress-bar-stats.d.ts +0 -8
- package/dist/components/spinner/activity-progress-bar-stats.js +0 -27
- package/dist/components/spinner/activity-progress-bar-stats.js.map +0 -1
- package/dist/components/spinner/activity-progress-bar.d.ts +0 -10
- package/dist/components/spinner/activity-progress-bar.js +0 -21
- package/dist/components/spinner/activity-progress-bar.js.map +0 -1
- package/dist/components/spinner/activity-progress.utils.d.ts +0 -10
- package/dist/components/spinner/activity-progress.utils.js +0 -20
- package/dist/components/spinner/activity-progress.utils.js.map +0 -1
- package/dist/components/spinner/full-centered-spinner.d.ts +0 -2
- package/dist/components/spinner/full-centered-spinner.js +0 -5
- package/dist/components/spinner/full-centered-spinner.js.map +0 -1
- package/dist/components/spinner/index.d.ts +0 -5
- package/dist/components/spinner/index.js +0 -6
- package/dist/components/spinner/index.js.map +0 -1
- package/dist/components/spinner/modal-spinner.d.ts +0 -9
- package/dist/components/spinner/modal-spinner.js +0 -34
- package/dist/components/spinner/modal-spinner.js.map +0 -1
- package/dist/components/syntax/index.d.ts +0 -4
- package/dist/components/syntax/index.js +0 -5
- package/dist/components/syntax/index.js.map +0 -1
- package/dist/components/syntax/styles/dark.d.ts +0 -92
- package/dist/components/syntax/styles/dark.js +0 -92
- package/dist/components/syntax/styles/dark.js.map +0 -1
- package/dist/components/syntax/styles/index.d.ts +0 -2
- package/dist/components/syntax/styles/index.js +0 -3
- package/dist/components/syntax/styles/index.js.map +0 -1
- package/dist/components/syntax/styles/light.d.ts +0 -110
- package/dist/components/syntax/styles/light.js +0 -110
- package/dist/components/syntax/styles/light.js.map +0 -1
- package/dist/components/syntax/syntax-coloring-tag-code.d.ts +0 -9
- package/dist/components/syntax/syntax-coloring-tag-code.js +0 -27
- package/dist/components/syntax/syntax-coloring-tag-code.js.map +0 -1
- package/dist/components/syntax/syntax-coloring-tag-pre.d.ts +0 -9
- package/dist/components/syntax/syntax-coloring-tag-pre.js +0 -18
- package/dist/components/syntax/syntax-coloring-tag-pre.js.map +0 -1
- package/dist/components/syntax/syntax-coloring.d.ts +0 -8
- package/dist/components/syntax/syntax-coloring.js +0 -25
- package/dist/components/syntax/syntax-coloring.js.map +0 -1
- package/dist/components/tab-bar-icon.d.ts +0 -14
- package/dist/components/tab-bar-icon.js +0 -12
- package/dist/components/tab-bar-icon.js.map +0 -1
- package/dist/components/voice-recognition/index.d.ts +0 -2
- package/dist/components/voice-recognition/index.js +0 -3
- package/dist/components/voice-recognition/index.js.map +0 -1
- package/dist/components/voice-recognition/voice-recognition-text-input.d.ts +0 -10
- package/dist/components/voice-recognition/voice-recognition-text-input.js +0 -104
- package/dist/components/voice-recognition/voice-recognition-text-input.js.map +0 -1
- package/dist/components/voice-recognition/voice-recognition.utils.d.ts +0 -7
- package/dist/components/voice-recognition/voice-recognition.utils.js +0 -24
- package/dist/components/voice-recognition/voice-recognition.utils.js.map +0 -1
- package/dist/config/env.config.d.ts +0 -2
- package/dist/config/env.config.js +0 -4
- package/dist/config/env.config.js.map +0 -1
- package/dist/config/index.d.ts +0 -1
- package/dist/config/index.js +0 -2
- package/dist/config/index.js.map +0 -1
- package/dist/hooks/camera-image-picker/camera-image-picker.utils.d.ts +0 -4
- package/dist/hooks/camera-image-picker/camera-image-picker.utils.js +0 -16
- package/dist/hooks/camera-image-picker/camera-image-picker.utils.js.map +0 -1
- package/dist/hooks/camera-image-picker/index.d.ts +0 -2
- package/dist/hooks/camera-image-picker/index.js +0 -3
- package/dist/hooks/camera-image-picker/index.js.map +0 -1
- package/dist/hooks/camera-image-picker/use-camera-image-picker.d.ts +0 -5
- package/dist/hooks/camera-image-picker/use-camera-image-picker.js +0 -53
- package/dist/hooks/camera-image-picker/use-camera-image-picker.js.map +0 -1
- package/dist/hooks/index.d.ts +0 -9
- package/dist/hooks/index.js +0 -10
- package/dist/hooks/index.js.map +0 -1
- package/dist/hooks/use-animate-on-focus.windows.d.ts +0 -1
- package/dist/hooks/use-animate-on-focus.windows.js +0 -5
- package/dist/hooks/use-animate-on-focus.windows.js.map +0 -1
- package/dist/hooks/use-image-picker.d.ts +0 -11
- package/dist/hooks/use-image-picker.js +0 -35
- package/dist/hooks/use-image-picker.js.map +0 -1
- package/dist/hooks/use-image-picker.windows.d.ts +0 -1
- package/dist/hooks/use-image-picker.windows.js +0 -5
- package/dist/hooks/use-image-picker.windows.js.map +0 -1
- package/dist/hooks/use-invalidate-queries-on-focus.d.ts +0 -2
- package/dist/hooks/use-invalidate-queries-on-focus.js +0 -11
- package/dist/hooks/use-invalidate-queries-on-focus.js.map +0 -1
- package/dist/hooks/use-on-html-message.d.ts +0 -5
- package/dist/hooks/use-on-html-message.js +0 -30
- package/dist/hooks/use-on-html-message.js.map +0 -1
- package/dist/hooks/use-single-file-selector.d.ts +0 -17
- package/dist/hooks/use-single-file-selector.js +0 -32
- package/dist/hooks/use-single-file-selector.js.map +0 -1
- package/dist/hooks/use-single-file-selector.windows.d.ts +0 -1
- package/dist/hooks/use-single-file-selector.windows.js +0 -5
- package/dist/hooks/use-single-file-selector.windows.js.map +0 -1
- package/dist/hooks/use-timeout-state.d.ts +0 -1
- package/dist/hooks/use-timeout-state.js +0 -11
- package/dist/hooks/use-timeout-state.js.map +0 -1
- package/dist/hooks/use-timeout-toggle.d.ts +0 -1
- package/dist/hooks/use-timeout-toggle.js +0 -20
- package/dist/hooks/use-timeout-toggle.js.map +0 -1
- package/dist/hooks/use-updates.d.ts +0 -8
- package/dist/hooks/use-updates.js +0 -68
- package/dist/hooks/use-updates.js.map +0 -1
- package/dist/hooks/use-updates.windows.d.ts +0 -1
- package/dist/hooks/use-updates.windows.js +0 -5
- package/dist/hooks/use-updates.windows.js.map +0 -1
- package/dist/hooks/use-window-orientation.d.ts +0 -3
- package/dist/hooks/use-window-orientation.js +0 -10
- package/dist/hooks/use-window-orientation.js.map +0 -1
- package/dist/i18n/en/common.json +0 -184
- package/dist/i18n/fr/common.json +0 -184
- package/dist/i18n/i18n.d.ts +0 -17
- package/dist/i18n/i18n.js +0 -47
- package/dist/i18n/i18n.js.map +0 -1
- package/dist/i18n/i18n.utils.d.ts +0 -1
- package/dist/i18n/i18n.utils.js +0 -7
- package/dist/i18n/i18n.utils.js.map +0 -1
- package/dist/i18n/i18n.utils.windows.d.ts +0 -1
- package/dist/i18n/i18n.utils.windows.js +0 -6
- package/dist/i18n/i18n.utils.windows.js.map +0 -1
- package/dist/i18n/index.d.ts +0 -2
- package/dist/i18n/index.js +0 -3
- package/dist/i18n/index.js.map +0 -1
- package/dist/logger/index.d.ts +0 -4
- package/dist/logger/index.js +0 -5
- package/dist/logger/index.js.map +0 -1
- package/dist/logger/logger.d.ts +0 -17
- package/dist/logger/logger.js +0 -162
- package/dist/logger/logger.js.map +0 -1
- package/dist/logger/logger.types.d.ts +0 -25
- package/dist/logger/logger.types.js +0 -8
- package/dist/logger/logger.types.js.map +0 -1
- package/dist/logger/logger.utils.d.ts +0 -6
- package/dist/logger/logger.utils.js +0 -40
- package/dist/logger/logger.utils.js.map +0 -1
- package/dist/logger/logger.windows.d.ts +0 -18
- package/dist/logger/logger.windows.js +0 -65
- package/dist/logger/logger.windows.js.map +0 -1
- package/dist/logger/use-log-entry-color.d.ts +0 -1
- package/dist/logger/use-log-entry-color.js +0 -23
- package/dist/logger/use-log-entry-color.js.map +0 -1
- package/dist/services/device-finder/device-finder.d.ts +0 -31
- package/dist/services/device-finder/device-finder.js +0 -104
- package/dist/services/device-finder/device-finder.js.map +0 -1
- package/dist/services/device-finder/device-finder.types.d.ts +0 -8
- package/dist/services/device-finder/device-finder.types.js +0 -1
- package/dist/services/device-finder/device-finder.types.js.map +0 -1
- package/dist/services/device-finder/device-finder.windows.d.ts +0 -18
- package/dist/services/device-finder/device-finder.windows.js +0 -48
- package/dist/services/device-finder/device-finder.windows.js.map +0 -1
- package/dist/services/device-finder/index.d.ts +0 -2
- package/dist/services/device-finder/index.js +0 -3
- package/dist/services/device-finder/index.js.map +0 -1
- package/dist/services/files/index.d.ts +0 -2
- package/dist/services/files/index.js +0 -3
- package/dist/services/files/index.js.map +0 -1
- package/dist/services/files/native-file-system.d.ts +0 -15
- package/dist/services/files/native-file-system.js +0 -101
- package/dist/services/files/native-file-system.js.map +0 -1
- package/dist/services/files/native-file-system.types.d.ts +0 -38
- package/dist/services/files/native-file-system.types.js +0 -6
- package/dist/services/files/native-file-system.types.js.map +0 -1
- package/dist/services/files/native-file-system.windows.d.ts +0 -14
- package/dist/services/files/native-file-system.windows.js +0 -31
- package/dist/services/files/native-file-system.windows.js.map +0 -1
- package/dist/services/index.d.ts +0 -3
- package/dist/services/index.js +0 -4
- package/dist/services/index.js.map +0 -1
- package/dist/services/wifi/index.d.ts +0 -6
- package/dist/services/wifi/index.js +0 -7
- package/dist/services/wifi/index.js.map +0 -1
- package/dist/services/wifi/query-keys.d.ts +0 -10
- package/dist/services/wifi/query-keys.js +0 -11
- package/dist/services/wifi/query-keys.js.map +0 -1
- package/dist/services/wifi/use-wifi-info.d.ts +0 -472
- package/dist/services/wifi/use-wifi-info.js +0 -95
- package/dist/services/wifi/use-wifi-info.js.map +0 -1
- package/dist/services/wifi/wifi-info.types.d.ts +0 -22
- package/dist/services/wifi/wifi-info.types.js +0 -21
- package/dist/services/wifi/wifi-info.types.js.map +0 -1
- package/dist/services/wifi/wifi-info.utils.d.ts +0 -15
- package/dist/services/wifi/wifi-info.utils.js +0 -114
- package/dist/services/wifi/wifi-info.utils.js.map +0 -1
- package/dist/services/wifi/wifi-info.utils.simulator.d.ts +0 -3
- package/dist/services/wifi/wifi-info.utils.simulator.js +0 -23
- package/dist/services/wifi/wifi-info.utils.simulator.js.map +0 -1
- package/dist/services/wifi/wifi-info.utils.windows.d.ts +0 -2
- package/dist/services/wifi/wifi-info.utils.windows.js +0 -6
- package/dist/services/wifi/wifi-info.utils.windows.js.map +0 -1
- package/dist/services/wifi/wifi-infos-context.d.ts +0 -170
- package/dist/services/wifi/wifi-infos-context.js +0 -34
- package/dist/services/wifi/wifi-infos-context.js.map +0 -1
- package/dist/store/common-logs.store.d.ts +0 -13
- package/dist/store/common-logs.store.js +0 -32
- package/dist/store/common-logs.store.js.map +0 -1
- package/dist/store/common.store.d.ts +0 -12
- package/dist/store/common.store.js +0 -40
- package/dist/store/common.store.js.map +0 -1
- package/dist/store/index.d.ts +0 -3
- package/dist/store/index.js +0 -4
- package/dist/store/index.js.map +0 -1
- package/dist/store/react-query-provider.d.ts +0 -4
- package/dist/store/react-query-provider.js +0 -7
- package/dist/store/react-query-provider.js.map +0 -1
- package/dist/theme/dark-colors-scheme.d.ts +0 -42
- package/dist/theme/dark-colors-scheme.js +0 -44
- package/dist/theme/dark-colors-scheme.js.map +0 -1
- package/dist/theme/index.d.ts +0 -3
- package/dist/theme/index.js +0 -4
- package/dist/theme/index.js.map +0 -1
- package/dist/theme/light-colors-scheme.d.ts +0 -42
- package/dist/theme/light-colors-scheme.js +0 -44
- package/dist/theme/light-colors-scheme.js.map +0 -1
- package/dist/theme/theme.d.ts +0 -171
- package/dist/theme/theme.js +0 -27
- package/dist/theme/theme.js.map +0 -1
- package/dist/utils/alert.utils.d.ts +0 -1
- package/dist/utils/alert.utils.js +0 -12
- package/dist/utils/alert.utils.js.map +0 -1
- package/dist/utils/axios.config.d.ts +0 -2
- package/dist/utils/axios.config.js +0 -15
- package/dist/utils/axios.config.js.map +0 -1
- package/dist/utils/base64.utils.d.ts +0 -2
- package/dist/utils/base64.utils.js +0 -8
- package/dist/utils/base64.utils.js.map +0 -1
- package/dist/utils/clipboard.utils.d.ts +0 -1
- package/dist/utils/clipboard.utils.js +0 -12
- package/dist/utils/clipboard.utils.js.map +0 -1
- package/dist/utils/date.utils.d.ts +0 -3
- package/dist/utils/date.utils.js +0 -15
- package/dist/utils/date.utils.js.map +0 -1
- package/dist/utils/device.utils.d.ts +0 -4
- package/dist/utils/device.utils.js +0 -28
- package/dist/utils/device.utils.js.map +0 -1
- package/dist/utils/device.utils.windows.d.ts +0 -3
- package/dist/utils/device.utils.windows.js +0 -11
- package/dist/utils/device.utils.windows.js.map +0 -1
- package/dist/utils/digest-auth.d.ts +0 -32
- package/dist/utils/digest-auth.js +0 -151
- package/dist/utils/digest-auth.js.map +0 -1
- package/dist/utils/env.utils.d.ts +0 -5
- package/dist/utils/env.utils.js +0 -32
- package/dist/utils/env.utils.js.map +0 -1
- package/dist/utils/env.utils.windows.d.ts +0 -3
- package/dist/utils/env.utils.windows.js +0 -11
- package/dist/utils/env.utils.windows.js.map +0 -1
- package/dist/utils/errors.utils.d.ts +0 -6
- package/dist/utils/errors.utils.js +0 -9
- package/dist/utils/errors.utils.js.map +0 -1
- package/dist/utils/file-picker.utils.d.ts +0 -30
- package/dist/utils/file-picker.utils.js +0 -18
- package/dist/utils/file-picker.utils.js.map +0 -1
- package/dist/utils/file-picker.utils.windows.d.ts +0 -9
- package/dist/utils/file-picker.utils.windows.js +0 -6
- package/dist/utils/file-picker.utils.windows.js.map +0 -1
- package/dist/utils/file.utils.d.ts +0 -28
- package/dist/utils/file.utils.js +0 -105
- package/dist/utils/file.utils.js.map +0 -1
- package/dist/utils/filename.utils.d.ts +0 -40
- package/dist/utils/filename.utils.js +0 -129
- package/dist/utils/filename.utils.js.map +0 -1
- package/dist/utils/font.utils.d.ts +0 -1
- package/dist/utils/font.utils.js +0 -8
- package/dist/utils/font.utils.js.map +0 -1
- package/dist/utils/image.utils.d.ts +0 -1
- package/dist/utils/image.utils.js +0 -16
- package/dist/utils/image.utils.js.map +0 -1
- package/dist/utils/index.d.ts +0 -22
- package/dist/utils/index.js +0 -23
- package/dist/utils/index.js.map +0 -1
- package/dist/utils/licences.utils.d.ts +0 -16
- package/dist/utils/licences.utils.js +0 -19
- package/dist/utils/licences.utils.js.map +0 -1
- package/dist/utils/linking.utils.d.ts +0 -3
- package/dist/utils/linking.utils.js +0 -33
- package/dist/utils/linking.utils.js.map +0 -1
- package/dist/utils/network.utils.d.ts +0 -4
- package/dist/utils/network.utils.js +0 -41
- package/dist/utils/network.utils.js.map +0 -1
- package/dist/utils/platform.utils.d.ts +0 -1
- package/dist/utils/platform.utils.js +0 -6
- package/dist/utils/platform.utils.js.map +0 -1
- package/dist/utils/sharing.utils.d.ts +0 -9
- package/dist/utils/sharing.utils.js +0 -58
- package/dist/utils/sharing.utils.js.map +0 -1
- package/dist/utils/sharing.utils.windows.d.ts +0 -3
- package/dist/utils/sharing.utils.windows.js +0 -11
- package/dist/utils/sharing.utils.windows.js.map +0 -1
- package/dist/utils/sqlite.utils.d.ts +0 -10
- package/dist/utils/sqlite.utils.js +0 -36
- package/dist/utils/sqlite.utils.js.map +0 -1
- package/dist/utils/storage.d.ts +0 -10
- package/dist/utils/storage.js +0 -60
- package/dist/utils/storage.js.map +0 -1
- package/dist/utils/storage.windows.d.ts +0 -10
- package/dist/utils/storage.windows.js +0 -34
- package/dist/utils/storage.windows.js.map +0 -1
- package/dist/utils/webview.utils.d.ts +0 -9
- package/dist/utils/webview.utils.js +0 -18
- package/dist/utils/webview.utils.js.map +0 -1
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { ReactNode } from 'react';
|
|
2
|
-
import { StyleProp, ViewStyle } from 'react-native';
|
|
3
|
-
export interface HorizontalResizableSplitViewProps {
|
|
4
|
-
/** Content to display in the left section */
|
|
5
|
-
leftContent: ReactNode;
|
|
6
|
-
/** Content to display in the right section */
|
|
7
|
-
rightContent: ReactNode;
|
|
8
|
-
/** Initial proportion for the left section (0 to 1). Default: 0.5 */
|
|
9
|
-
initialLeftRatio?: number;
|
|
10
|
-
/** Minimum proportion for the left section (0 to 1). Default: 0.15 */
|
|
11
|
-
minLeftRatio?: number;
|
|
12
|
-
/** Maximum proportion for the left section (0 to 1). Default: 0.85 */
|
|
13
|
-
maxLeftRatio?: number;
|
|
14
|
-
/** Style for the drag handle container */
|
|
15
|
-
handleContainerStyle?: StyleProp<ViewStyle>;
|
|
16
|
-
/** Style for the drag handle bar */
|
|
17
|
-
handleStyle?: StyleProp<ViewStyle>;
|
|
18
|
-
/** Whether to hide the drag handle. Default: false */
|
|
19
|
-
hideHandle?: boolean;
|
|
20
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
//# sourceMappingURL=horizontal-resizable-split-view.types.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"horizontal-resizable-split-view.types.js","sourceRoot":"","sources":["../../../../src/components/layout/resizable/horizontal-resizable-split-view.types.ts"],"names":[],"mappings":""}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { isNullish } from '@lichens-innovation/ts-common';
|
|
2
|
-
export const validateResizableSplitViewProps = (props) => {
|
|
3
|
-
const { initialLeftRatio, minLeftRatio, maxLeftRatio } = props;
|
|
4
|
-
if (!isNullish(initialLeftRatio)) {
|
|
5
|
-
if (initialLeftRatio < 0 || initialLeftRatio > 1)
|
|
6
|
-
throw new Error(`initialLeftRatio must be between 0 and 1. Provided: ${initialLeftRatio}`);
|
|
7
|
-
}
|
|
8
|
-
if (!isNullish(minLeftRatio)) {
|
|
9
|
-
if (minLeftRatio < 0 || minLeftRatio > 1)
|
|
10
|
-
throw new Error(`minLeftRatio must be between 0 and 1. Provided: ${minLeftRatio}`);
|
|
11
|
-
}
|
|
12
|
-
if (!isNullish(maxLeftRatio)) {
|
|
13
|
-
if (maxLeftRatio < 0 || maxLeftRatio > 1)
|
|
14
|
-
throw new Error(`maxLeftRatio must be between 0 and 1. Provided: ${maxLeftRatio}`);
|
|
15
|
-
}
|
|
16
|
-
if (!isNullish(minLeftRatio) && !isNullish(maxLeftRatio) && minLeftRatio >= maxLeftRatio)
|
|
17
|
-
throw new Error(`minLeftRatio must be less than maxLeftRatio. Provided: ${JSON.stringify({ minLeftRatio, maxLeftRatio })}`);
|
|
18
|
-
if (!isNullish(initialLeftRatio) && !isNullish(minLeftRatio) && initialLeftRatio < minLeftRatio)
|
|
19
|
-
throw new Error(`initialLeftRatio must be >= minLeftRatio. Provided: ${JSON.stringify({ initialLeftRatio, minLeftRatio })}`);
|
|
20
|
-
if (!isNullish(initialLeftRatio) && !isNullish(maxLeftRatio) && initialLeftRatio > maxLeftRatio)
|
|
21
|
-
throw new Error(`initialLeftRatio must be <= maxLeftRatio. Provided: ${JSON.stringify({ initialLeftRatio, maxLeftRatio })}`);
|
|
22
|
-
};
|
|
23
|
-
//# sourceMappingURL=horizontal-resizable-split-view.utils.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"horizontal-resizable-split-view.utils.js","sourceRoot":"","sources":["../../../../src/components/layout/resizable/horizontal-resizable-split-view.utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,+BAA+B,CAAC;AAG1D,MAAM,CAAC,MAAM,+BAA+B,GAAG,CAAC,KAAwC,EAAE,EAAE;IAC1F,MAAM,EAAE,gBAAgB,EAAE,YAAY,EAAE,YAAY,EAAE,GAAG,KAAK,CAAC;IAE/D,IAAI,CAAC,SAAS,CAAC,gBAAgB,CAAC,EAAE,CAAC;QACjC,IAAI,gBAAgB,GAAG,CAAC,IAAI,gBAAgB,GAAG,CAAC;YAC9C,MAAM,IAAI,KAAK,CAAC,uDAAuD,gBAAgB,EAAE,CAAC,CAAC;IAC/F,CAAC;IAED,IAAI,CAAC,SAAS,CAAC,YAAY,CAAC,EAAE,CAAC;QAC7B,IAAI,YAAY,GAAG,CAAC,IAAI,YAAY,GAAG,CAAC;YACtC,MAAM,IAAI,KAAK,CAAC,mDAAmD,YAAY,EAAE,CAAC,CAAC;IACvF,CAAC;IAED,IAAI,CAAC,SAAS,CAAC,YAAY,CAAC,EAAE,CAAC;QAC7B,IAAI,YAAY,GAAG,CAAC,IAAI,YAAY,GAAG,CAAC;YACtC,MAAM,IAAI,KAAK,CAAC,mDAAmD,YAAY,EAAE,CAAC,CAAC;IACvF,CAAC;IAED,IAAI,CAAC,SAAS,CAAC,YAAY,CAAC,IAAI,CAAC,SAAS,CAAC,YAAY,CAAC,IAAI,YAAY,IAAI,YAAY;QACtF,MAAM,IAAI,KAAK,CACb,0DAA0D,IAAI,CAAC,SAAS,CAAC,EAAE,YAAY,EAAE,YAAY,EAAE,CAAC,EAAE,CAC3G,CAAC;IAEJ,IAAI,CAAC,SAAS,CAAC,gBAAgB,CAAC,IAAI,CAAC,SAAS,CAAC,YAAY,CAAC,IAAI,gBAAgB,GAAG,YAAY;QAC7F,MAAM,IAAI,KAAK,CACb,uDAAuD,IAAI,CAAC,SAAS,CAAC,EAAE,gBAAgB,EAAE,YAAY,EAAE,CAAC,EAAE,CAC5G,CAAC;IAEJ,IAAI,CAAC,SAAS,CAAC,gBAAgB,CAAC,IAAI,CAAC,SAAS,CAAC,YAAY,CAAC,IAAI,gBAAgB,GAAG,YAAY;QAC7F,MAAM,IAAI,KAAK,CACb,uDAAuD,IAAI,CAAC,SAAS,CAAC,EAAE,gBAAgB,EAAE,YAAY,EAAE,CAAC,EAAE,CAC5G,CAAC;AACN,CAAC,CAAC"}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
export * from './horizontal-resizable-split-view';
|
|
2
|
-
export * from './horizontal-resizable-split-view.types';
|
|
3
|
-
export * from './resizable-overlay-view';
|
|
4
|
-
export * from './vertical-resizable-overlay-view.types';
|
|
5
|
-
export * from './vertical-resizable-split-view';
|
|
6
|
-
export * from './vertical-resizable-split-view.types';
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
export * from './horizontal-resizable-split-view';
|
|
2
|
-
export * from './horizontal-resizable-split-view.types';
|
|
3
|
-
export * from './resizable-overlay-view';
|
|
4
|
-
export * from './vertical-resizable-overlay-view.types';
|
|
5
|
-
export * from './vertical-resizable-split-view';
|
|
6
|
-
export * from './vertical-resizable-split-view.types';
|
|
7
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/layout/resizable/index.ts"],"names":[],"mappings":"AAAA,cAAc,mCAAmC,CAAC;AAClD,cAAc,yCAAyC,CAAC;AACxD,cAAc,0BAA0B,CAAC;AACzC,cAAc,yCAAyC,CAAC;AACxD,cAAc,iCAAiC,CAAC;AAChD,cAAc,uCAAuC,CAAC"}
|
|
@@ -1,132 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { StyleSheet, View } from 'react-native';
|
|
3
|
-
import { Gesture, GestureDetector } from 'react-native-gesture-handler';
|
|
4
|
-
import Animated, { useAnimatedStyle, useSharedValue, withSpring } from 'react-native-reanimated';
|
|
5
|
-
import { isDevelopment } from '../../../utils';
|
|
6
|
-
import { computeResizableOverlayLayoutValues } from './resizable-overlay-view.utils';
|
|
7
|
-
import { validateResizableOverlayProps } from './vertical-resizable-overlay-view.utils';
|
|
8
|
-
const DRAG_HANDLE_HEIGHT = 20;
|
|
9
|
-
const DEFAULT_ANIMATION_CONFIG = { damping: 25, stiffness: 300, mass: 0.8 };
|
|
10
|
-
const OVERLAY_ANCHOR_STYLES = {
|
|
11
|
-
topLeft: { top: 0, left: 0 },
|
|
12
|
-
topRight: { top: 0, right: 0 },
|
|
13
|
-
bottomLeft: { bottom: 0, left: 0 },
|
|
14
|
-
bottomRight: { bottom: 0, right: 0 },
|
|
15
|
-
};
|
|
16
|
-
export const ResizableOverlayView = (props) => {
|
|
17
|
-
if (isDevelopment())
|
|
18
|
-
validateResizableOverlayProps(props);
|
|
19
|
-
const { foregroundContent, backgroundContent, initialForegroundRatio = 0.5, minForegroundRatio = 0.15, maxForegroundRatio = 0.85, foregroundContentAspectRatio, handleContainerStyle, handleStyle, hideHandle = false, anchorType = 'topRight', } = props;
|
|
20
|
-
// Anchor styles
|
|
21
|
-
const overlayAnchorStyle = OVERLAY_ANCHOR_STYLES[anchorType];
|
|
22
|
-
const isBottomAnchored = ['bottomLeft', 'bottomRight'].includes(anchorType);
|
|
23
|
-
const isLeftAnchored = ['topLeft', 'bottomLeft'].includes(anchorType);
|
|
24
|
-
// Shared values for animation
|
|
25
|
-
const overlayHeight = useSharedValue(0);
|
|
26
|
-
const containerHeight = useSharedValue(0);
|
|
27
|
-
const containerWidth = useSharedValue(0);
|
|
28
|
-
const minHeight = useSharedValue(0);
|
|
29
|
-
const maxHeight = useSharedValue(0);
|
|
30
|
-
const startY = useSharedValue(0);
|
|
31
|
-
const isDragging = useSharedValue(false);
|
|
32
|
-
// Handle container layout measurement
|
|
33
|
-
const handleLayout = (event) => {
|
|
34
|
-
const computedValues = computeResizableOverlayLayoutValues({
|
|
35
|
-
event,
|
|
36
|
-
initialForegroundRatio,
|
|
37
|
-
minForegroundRatio,
|
|
38
|
-
maxForegroundRatio,
|
|
39
|
-
foregroundContentAspectRatio,
|
|
40
|
-
});
|
|
41
|
-
containerHeight.value = computedValues.containerHeight;
|
|
42
|
-
containerWidth.value = computedValues.containerWidth;
|
|
43
|
-
minHeight.value = computedValues.minHeight;
|
|
44
|
-
maxHeight.value = computedValues.maxHeight;
|
|
45
|
-
overlayHeight.value = computedValues.overlayHeight;
|
|
46
|
-
};
|
|
47
|
-
const panGesture = Gesture.Pan()
|
|
48
|
-
.onStart(() => {
|
|
49
|
-
startY.value = overlayHeight.value;
|
|
50
|
-
isDragging.value = true;
|
|
51
|
-
})
|
|
52
|
-
.onUpdate((event) => {
|
|
53
|
-
// If the overlay is anchored to the bottom, dragging up should INCREASE its height.
|
|
54
|
-
const direction = isBottomAnchored ? -1 : 1;
|
|
55
|
-
const newHeight = startY.value + direction * event.translationY;
|
|
56
|
-
overlayHeight.value = Math.max(minHeight.value, Math.min(newHeight, maxHeight.value));
|
|
57
|
-
})
|
|
58
|
-
.onEnd(() => {
|
|
59
|
-
isDragging.value = false;
|
|
60
|
-
});
|
|
61
|
-
const overlayAnimatedStyle = useAnimatedStyle(() => {
|
|
62
|
-
let height = overlayHeight.value;
|
|
63
|
-
let width;
|
|
64
|
-
if (foregroundContentAspectRatio !== undefined) {
|
|
65
|
-
const calculatedWidth = height * foregroundContentAspectRatio;
|
|
66
|
-
if (calculatedWidth > containerWidth.value) {
|
|
67
|
-
// Width exceeds container, recalculate height to maintain aspect ratio
|
|
68
|
-
width = containerWidth.value;
|
|
69
|
-
height = Math.max(containerWidth.value / foregroundContentAspectRatio, minHeight.value);
|
|
70
|
-
}
|
|
71
|
-
else {
|
|
72
|
-
width = calculatedWidth;
|
|
73
|
-
}
|
|
74
|
-
}
|
|
75
|
-
return width !== undefined ? { height, width } : { height };
|
|
76
|
-
});
|
|
77
|
-
const dragHandleContainerAnimatedStyle = useAnimatedStyle(() => {
|
|
78
|
-
let effectiveHeight = overlayHeight.value;
|
|
79
|
-
let effectiveWidth = containerWidth.value;
|
|
80
|
-
if (foregroundContentAspectRatio !== undefined) {
|
|
81
|
-
const calculatedWidth = effectiveHeight * foregroundContentAspectRatio;
|
|
82
|
-
if (calculatedWidth > containerWidth.value) {
|
|
83
|
-
effectiveHeight = Math.max(containerWidth.value / foregroundContentAspectRatio, minHeight.value);
|
|
84
|
-
effectiveWidth = containerWidth.value;
|
|
85
|
-
}
|
|
86
|
-
else {
|
|
87
|
-
effectiveWidth = calculatedWidth;
|
|
88
|
-
}
|
|
89
|
-
}
|
|
90
|
-
// Always compute an explicit `left` to avoid stale left/right values when `anchorType` changes.
|
|
91
|
-
const left = isLeftAnchored ? 0 : Math.max(0, containerWidth.value - effectiveWidth);
|
|
92
|
-
// If anchored at bottom, the handle must attach to the TOP edge of the overlay.
|
|
93
|
-
// Otherwise (top anchor), it attaches to the BOTTOM edge.
|
|
94
|
-
const top = isBottomAnchored
|
|
95
|
-
? containerHeight.value - effectiveHeight - DRAG_HANDLE_HEIGHT / 2
|
|
96
|
-
: effectiveHeight - DRAG_HANDLE_HEIGHT / 2;
|
|
97
|
-
return {
|
|
98
|
-
top,
|
|
99
|
-
width: effectiveWidth,
|
|
100
|
-
left,
|
|
101
|
-
};
|
|
102
|
-
}, [foregroundContentAspectRatio, isBottomAnchored, isLeftAnchored]);
|
|
103
|
-
const dragHandleAnimatedStyle = useAnimatedStyle(() => ({
|
|
104
|
-
transform: [{ scale: withSpring(isDragging.value ? 1.2 : 1, DEFAULT_ANIMATION_CONFIG) }],
|
|
105
|
-
}));
|
|
106
|
-
return (_jsxs(View, { style: [styles.container], onLayout: handleLayout, children: [_jsx(View, { style: styles.backgroundSection, children: backgroundContent }), _jsx(Animated.View, { style: [styles.overlaySection, overlayAnchorStyle, overlayAnimatedStyle], children: foregroundContent }), !hideHandle && (_jsx(GestureDetector, { gesture: panGesture, children: _jsx(Animated.View, { style: [styles.handleContainer, handleContainerStyle, dragHandleContainerAnimatedStyle], children: _jsx(Animated.View, { style: [styles.handle, handleStyle, dragHandleAnimatedStyle] }) }) }))] }));
|
|
107
|
-
};
|
|
108
|
-
const styles = StyleSheet.create({
|
|
109
|
-
container: {
|
|
110
|
-
flex: 1,
|
|
111
|
-
},
|
|
112
|
-
backgroundSection: {
|
|
113
|
-
flex: 1,
|
|
114
|
-
},
|
|
115
|
-
overlaySection: {
|
|
116
|
-
position: 'absolute',
|
|
117
|
-
overflow: 'hidden',
|
|
118
|
-
},
|
|
119
|
-
handleContainer: {
|
|
120
|
-
position: 'absolute',
|
|
121
|
-
height: DRAG_HANDLE_HEIGHT,
|
|
122
|
-
alignItems: 'center',
|
|
123
|
-
justifyContent: 'center',
|
|
124
|
-
},
|
|
125
|
-
handle: {
|
|
126
|
-
width: 40,
|
|
127
|
-
height: 4,
|
|
128
|
-
backgroundColor: '#888888',
|
|
129
|
-
borderRadius: 4,
|
|
130
|
-
},
|
|
131
|
-
});
|
|
132
|
-
//# sourceMappingURL=resizable-overlay-view.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"resizable-overlay-view.js","sourceRoot":"","sources":["../../../../src/components/layout/resizable/resizable-overlay-view.tsx"],"names":[],"mappings":";AACA,OAAO,EAAqB,UAAU,EAAE,IAAI,EAAa,MAAM,cAAc,CAAC;AAC9E,OAAO,EAAE,OAAO,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAC;AACxE,OAAO,QAAQ,EAAE,EAAE,gBAAgB,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AACjG,OAAO,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAC/C,OAAO,EAAE,mCAAmC,EAAE,MAAM,gCAAgC,CAAC;AAErF,OAAO,EAAE,6BAA6B,EAAE,MAAM,yCAAyC,CAAC;AAExF,MAAM,kBAAkB,GAAG,EAAE,CAAC;AAC9B,MAAM,wBAAwB,GAAG,EAAE,OAAO,EAAE,EAAE,EAAE,SAAS,EAAE,GAAG,EAAE,IAAI,EAAE,GAAG,EAAE,CAAC;AAE5E,MAAM,qBAAqB,GAAoF;IAC7G,OAAO,EAAE,EAAE,GAAG,EAAE,CAAC,EAAE,IAAI,EAAE,CAAC,EAAE;IAC5B,QAAQ,EAAE,EAAE,GAAG,EAAE,CAAC,EAAE,KAAK,EAAE,CAAC,EAAE;IAC9B,UAAU,EAAE,EAAE,MAAM,EAAE,CAAC,EAAE,IAAI,EAAE,CAAC,EAAE;IAClC,WAAW,EAAE,EAAE,MAAM,EAAE,CAAC,EAAE,KAAK,EAAE,CAAC,EAAE;CACrC,CAAC;AAEF,MAAM,CAAC,MAAM,oBAAoB,GAAyD,CAAC,KAAK,EAAE,EAAE;IAClG,IAAI,aAAa,EAAE;QAAE,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IACD,eAAe,EAAE;QACf,QAAQ,EAAE,UAAU;QACpB,MAAM,EAAE,kBAAkB;QAC1B,UAAU,EAAE,QAAQ;QACpB,cAAc,EAAE,QAAQ;KACzB;IACD,MAAM,EAAE;QACN,KAAK,EAAE,EAAE;QACT,MAAM,EAAE,CAAC;QACT,eAAe,EAAE,SAAS;QAC1B,YAAY,EAAE,CAAC;KAChB;CACF,CAAC,CAAC"}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import type { LayoutChangeEvent } from 'react-native';
|
|
2
|
-
interface ComputeResizableOverlayLayoutValuesArgs {
|
|
3
|
-
event: LayoutChangeEvent;
|
|
4
|
-
initialForegroundRatio: number;
|
|
5
|
-
minForegroundRatio: number;
|
|
6
|
-
maxForegroundRatio: number;
|
|
7
|
-
foregroundContentAspectRatio?: number;
|
|
8
|
-
}
|
|
9
|
-
export declare const computeResizableOverlayLayoutValues: ({ event, initialForegroundRatio, minForegroundRatio, maxForegroundRatio, foregroundContentAspectRatio, }: ComputeResizableOverlayLayoutValuesArgs) => {
|
|
10
|
-
containerHeight: number;
|
|
11
|
-
containerWidth: number;
|
|
12
|
-
minHeight: number;
|
|
13
|
-
maxHeight: number;
|
|
14
|
-
overlayHeight: number;
|
|
15
|
-
};
|
|
16
|
-
export {};
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
export const computeResizableOverlayLayoutValues = ({ event, initialForegroundRatio, minForegroundRatio, maxForegroundRatio, foregroundContentAspectRatio, }) => {
|
|
2
|
-
const { height, width } = event.nativeEvent.layout;
|
|
3
|
-
if (height <= 0)
|
|
4
|
-
return { containerHeight: 0, containerWidth: 0, minHeight: 0, maxHeight: 0, overlayHeight: 0 };
|
|
5
|
-
// Always keep container & bounds updated (layout can change over time).
|
|
6
|
-
const computedMinHeight = height * minForegroundRatio;
|
|
7
|
-
const computedMaxHeightFromContainer = height * maxForegroundRatio;
|
|
8
|
-
const computedMaxHeightFromAspectRatio = foregroundContentAspectRatio !== undefined ? width / foregroundContentAspectRatio : Number.POSITIVE_INFINITY;
|
|
9
|
-
const computedMaxHeight = Math.max(computedMinHeight, Math.min(computedMaxHeightFromContainer, computedMaxHeightFromAspectRatio));
|
|
10
|
-
const computedOverlayHeight = Math.max(computedMinHeight, Math.min(height * initialForegroundRatio, computedMaxHeight));
|
|
11
|
-
return {
|
|
12
|
-
containerHeight: height,
|
|
13
|
-
containerWidth: width,
|
|
14
|
-
minHeight: computedMinHeight,
|
|
15
|
-
maxHeight: computedMaxHeight,
|
|
16
|
-
overlayHeight: computedOverlayHeight,
|
|
17
|
-
};
|
|
18
|
-
};
|
|
19
|
-
//# sourceMappingURL=resizable-overlay-view.utils.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"resizable-overlay-view.utils.js","sourceRoot":"","sources":["../../../../src/components/layout/resizable/resizable-overlay-view.utils.ts"],"names":[],"mappings":"AAUA,MAAM,CAAC,MAAM,mCAAmC,GAAG,CAAC,EAClD,KAAK,EACL,sBAAsB,EACtB,kBAAkB,EAClB,kBAAkB,EAClB,4BAA4B,GACY,EAAE,EAAE;IAC5C,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,GAAG,KAAK,CAAC,WAAW,CAAC,MAAM,CAAC;IACnD,IAAI,MAAM,IAAI,CAAC;QAAE,OAAO,EAAE,eAAe,EAAE,CAAC,EAAE,cAAc,EAAE,CAAC,EAAE,SAAS,EAAE,CAAC,EAAE,SAAS,EAAE,CAAC,EAAE,aAAa,EAAE,CAAC,EAAE,CAAC;IAEhH,wEAAwE;IACxE,MAAM,iBAAiB,GAAG,MAAM,GAAG,kBAAkB,CAAC;IACtD,MAAM,8BAA8B,GAAG,MAAM,GAAG,kBAAkB,CAAC;IACnE,MAAM,gCAAgC,GACpC,4BAA4B,KAAK,SAAS,CAAC,CAAC,CAAC,KAAK,GAAG,4BAA4B,CAAC,CAAC,CAAC,MAAM,CAAC,iBAAiB,CAAC;IAC/G,MAAM,iBAAiB,GAAG,IAAI,CAAC,GAAG,CAChC,iBAAiB,EACjB,IAAI,CAAC,GAAG,CAAC,8BAA8B,EAAE,gCAAgC,CAAC,CAC3E,CAAC;IAEF,MAAM,qBAAqB,GAAG,IAAI,CAAC,GAAG,CACpC,iBAAiB,EACjB,IAAI,CAAC,GAAG,CAAC,MAAM,GAAG,sBAAsB,EAAE,iBAAiB,CAAC,CAC7D,CAAC;IAEF,OAAO;QACL,eAAe,EAAE,MAAM;QACvB,cAAc,EAAE,KAAK;QACrB,SAAS,EAAE,iBAAiB;QAC5B,SAAS,EAAE,iBAAiB;QAC5B,aAAa,EAAE,qBAAqB;KACrC,CAAC;AACJ,CAAC,CAAC"}
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import { ReactNode } from 'react';
|
|
2
|
-
import { StyleProp, ViewStyle } from 'react-native';
|
|
3
|
-
export type VerticalResizableOverlayViewAnchorType = 'topLeft' | 'topRight' | 'bottomLeft' | 'bottomRight';
|
|
4
|
-
export interface VerticalResizableOverlayViewProps {
|
|
5
|
-
/** Content to display in the overlay section (foreground, on top) */
|
|
6
|
-
foregroundContent: ReactNode;
|
|
7
|
-
/** Content to display in the background section (fills the entire container) */
|
|
8
|
-
backgroundContent: ReactNode;
|
|
9
|
-
/**
|
|
10
|
-
* Where the overlay is anchored inside the container.
|
|
11
|
-
* Default: topRight
|
|
12
|
-
*/
|
|
13
|
-
anchorType?: VerticalResizableOverlayViewAnchorType;
|
|
14
|
-
/** Initial height ratio for the foreground overlay (0 to 1). Default: 0.5 */
|
|
15
|
-
initialForegroundRatio?: number;
|
|
16
|
-
/** Minimum height ratio for the foreground overlay (0 to 1). Default: 0.15 */
|
|
17
|
-
minForegroundRatio?: number;
|
|
18
|
-
/** Maximum height ratio for the foreground overlay (0 to 1). Default: 0.85 */
|
|
19
|
-
maxForegroundRatio?: number;
|
|
20
|
-
/** Aspect ratio (width/height) for the foreground content. If provided, width will be calculated based on height */
|
|
21
|
-
foregroundContentAspectRatio?: number;
|
|
22
|
-
/** Style for the drag handle container */
|
|
23
|
-
handleContainerStyle?: StyleProp<ViewStyle>;
|
|
24
|
-
/** Style for the drag handle bar */
|
|
25
|
-
handleStyle?: StyleProp<ViewStyle>;
|
|
26
|
-
/** Whether to hide the drag handle. Default: false */
|
|
27
|
-
hideHandle?: boolean;
|
|
28
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
//# sourceMappingURL=vertical-resizable-overlay-view.types.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"vertical-resizable-overlay-view.types.js","sourceRoot":"","sources":["../../../../src/components/layout/resizable/vertical-resizable-overlay-view.types.ts"],"names":[],"mappings":""}
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import { isNullish } from '@lichens-innovation/ts-common';
|
|
2
|
-
export const validateResizableOverlayProps = (props) => {
|
|
3
|
-
const { foregroundContentAspectRatio, initialForegroundRatio, minForegroundRatio, maxForegroundRatio } = props;
|
|
4
|
-
if (!isNullish(foregroundContentAspectRatio)) {
|
|
5
|
-
if (foregroundContentAspectRatio <= 0)
|
|
6
|
-
throw new Error('foregroundContentAspectRatio must be greater than 0. Provided: ' + foregroundContentAspectRatio);
|
|
7
|
-
}
|
|
8
|
-
if (!isNullish(initialForegroundRatio)) {
|
|
9
|
-
if (initialForegroundRatio < 0 || initialForegroundRatio > 1)
|
|
10
|
-
throw new Error(`initialForegroundRatio must be between 0 and 1. Provided: ${initialForegroundRatio}`);
|
|
11
|
-
}
|
|
12
|
-
if (!isNullish(minForegroundRatio)) {
|
|
13
|
-
if (minForegroundRatio < 0 || minForegroundRatio > 1)
|
|
14
|
-
throw new Error(`minForegroundRatio must be between 0 and 1. Provided: ${minForegroundRatio}`);
|
|
15
|
-
}
|
|
16
|
-
if (!isNullish(maxForegroundRatio)) {
|
|
17
|
-
if (maxForegroundRatio < 0 || maxForegroundRatio > 1)
|
|
18
|
-
throw new Error(`maxForegroundRatio must be between 0 and 1. Provided: ${maxForegroundRatio}`);
|
|
19
|
-
}
|
|
20
|
-
if (!isNullish(minForegroundRatio) && !isNullish(maxForegroundRatio) && minForegroundRatio >= maxForegroundRatio)
|
|
21
|
-
throw new Error(`minForegroundRatio must be less than maxForegroundRatio. Provided: ${JSON.stringify({ minForegroundRatio, maxForegroundRatio })}`);
|
|
22
|
-
if (!isNullish(initialForegroundRatio) &&
|
|
23
|
-
!isNullish(minForegroundRatio) &&
|
|
24
|
-
initialForegroundRatio < minForegroundRatio)
|
|
25
|
-
throw new Error(`initialForegroundRatio must be >= minForegroundRatio. Provided: ${JSON.stringify({ initialForegroundRatio, minForegroundRatio })}`);
|
|
26
|
-
if (!isNullish(initialForegroundRatio) &&
|
|
27
|
-
!isNullish(maxForegroundRatio) &&
|
|
28
|
-
initialForegroundRatio > maxForegroundRatio)
|
|
29
|
-
throw new Error(`initialForegroundRatio must be <= maxForegroundRatio. Provided: ${JSON.stringify({ initialForegroundRatio, maxForegroundRatio })}`);
|
|
30
|
-
};
|
|
31
|
-
//# sourceMappingURL=vertical-resizable-overlay-view.utils.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"vertical-resizable-overlay-view.utils.js","sourceRoot":"","sources":["../../../../src/components/layout/resizable/vertical-resizable-overlay-view.utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,+BAA+B,CAAC;AAG1D,MAAM,CAAC,MAAM,6BAA6B,GAAG,CAAC,KAAwC,EAAE,EAAE;IACxF,MAAM,EAAE,4BAA4B,EAAE,sBAAsB,EAAE,kBAAkB,EAAE,kBAAkB,EAAE,GAAG,KAAK,CAAC;IAE/G,IAAI,CAAC,SAAS,CAAC,4BAA4B,CAAC,EAAE,CAAC;QAC7C,IAAI,4BAA4B,IAAI,CAAC;YACnC,MAAM,IAAI,KAAK,CAAC,iEAAiE,GAAG,4BAA4B,CAAC,CAAC;IACtH,CAAC;IAED,IAAI,CAAC,SAAS,CAAC,sBAAsB,CAAC,EAAE,CAAC;QACvC,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"}
|
|
@@ -1,79 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { useCallback, useState } from 'react';
|
|
3
|
-
import { StyleSheet, View } from 'react-native';
|
|
4
|
-
import { Gesture, GestureDetector } from 'react-native-gesture-handler';
|
|
5
|
-
import Animated, { useAnimatedStyle, useSharedValue, withSpring } from 'react-native-reanimated';
|
|
6
|
-
import { isDevelopment } from '../../../utils';
|
|
7
|
-
import { validateResizableSplitViewProps } from './vertical-resizable-split-view.utils';
|
|
8
|
-
const DRAG_HANDLE_HEIGHT = 20;
|
|
9
|
-
const DEFAULT_ANIMATION_CONFIG = { damping: 25, stiffness: 300, mass: 0.8 };
|
|
10
|
-
export const VerticalResizableSplitView = (props) => {
|
|
11
|
-
if (isDevelopment())
|
|
12
|
-
validateResizableSplitViewProps(props);
|
|
13
|
-
const { topContent, bottomContent, initialTopRatio = 0.5, minTopRatio = 0.15, maxTopRatio = 0.85, handleContainerStyle, handleStyle, hideHandle = false, } = props;
|
|
14
|
-
// Track measured container height
|
|
15
|
-
const [isReady, setIsReady] = useState(false);
|
|
16
|
-
// Shared values for animation
|
|
17
|
-
const topSectionHeight = useSharedValue(0);
|
|
18
|
-
const minHeight = useSharedValue(0);
|
|
19
|
-
const maxHeight = useSharedValue(0);
|
|
20
|
-
const startY = useSharedValue(0);
|
|
21
|
-
const isDragging = useSharedValue(false);
|
|
22
|
-
// Handle container layout measurement
|
|
23
|
-
const handleLayout = useCallback((event) => {
|
|
24
|
-
const { height } = event.nativeEvent.layout;
|
|
25
|
-
if (height > 0 && !isReady) {
|
|
26
|
-
minHeight.value = height * minTopRatio;
|
|
27
|
-
maxHeight.value = height * maxTopRatio;
|
|
28
|
-
topSectionHeight.value = height * initialTopRatio;
|
|
29
|
-
setIsReady(true);
|
|
30
|
-
}
|
|
31
|
-
}, [minTopRatio, maxTopRatio, initialTopRatio, minHeight, maxHeight, topSectionHeight, isReady]);
|
|
32
|
-
const panGesture = Gesture.Pan()
|
|
33
|
-
.onStart(() => {
|
|
34
|
-
startY.value = topSectionHeight.value;
|
|
35
|
-
isDragging.value = true;
|
|
36
|
-
})
|
|
37
|
-
.onUpdate((event) => {
|
|
38
|
-
const newHeight = startY.value + event.translationY;
|
|
39
|
-
topSectionHeight.value = Math.max(minHeight.value, Math.min(newHeight, maxHeight.value));
|
|
40
|
-
})
|
|
41
|
-
.onEnd(() => {
|
|
42
|
-
isDragging.value = false;
|
|
43
|
-
});
|
|
44
|
-
const topSectionAnimatedStyle = useAnimatedStyle(() => ({ height: topSectionHeight.value }));
|
|
45
|
-
const dragHandleContainerAnimatedStyle = useAnimatedStyle(() => ({
|
|
46
|
-
top: topSectionHeight.value - DRAG_HANDLE_HEIGHT / 2,
|
|
47
|
-
}));
|
|
48
|
-
const dragHandleAnimatedStyle = useAnimatedStyle(() => ({
|
|
49
|
-
transform: [{ scale: withSpring(isDragging.value ? 1.2 : 1, DEFAULT_ANIMATION_CONFIG) }],
|
|
50
|
-
}));
|
|
51
|
-
return (_jsxs(View, { style: [styles.container], onLayout: handleLayout, children: [_jsx(Animated.View, { style: [styles.topSection, topSectionAnimatedStyle], children: topContent }), !hideHandle && (_jsx(GestureDetector, { gesture: panGesture, children: _jsx(Animated.View, { style: [styles.handleContainer, handleContainerStyle, dragHandleContainerAnimatedStyle], children: _jsx(Animated.View, { style: [styles.handle, handleStyle, dragHandleAnimatedStyle] }) }) })), _jsx(View, { style: [styles.bottomSection], children: bottomContent })] }));
|
|
52
|
-
};
|
|
53
|
-
const styles = StyleSheet.create({
|
|
54
|
-
container: {
|
|
55
|
-
flex: 1,
|
|
56
|
-
},
|
|
57
|
-
topSection: {
|
|
58
|
-
overflow: 'hidden',
|
|
59
|
-
},
|
|
60
|
-
bottomSection: {
|
|
61
|
-
flex: 1,
|
|
62
|
-
overflow: 'hidden',
|
|
63
|
-
},
|
|
64
|
-
handleContainer: {
|
|
65
|
-
position: 'absolute',
|
|
66
|
-
left: 0,
|
|
67
|
-
right: 0,
|
|
68
|
-
height: DRAG_HANDLE_HEIGHT,
|
|
69
|
-
alignItems: 'center',
|
|
70
|
-
justifyContent: 'center',
|
|
71
|
-
},
|
|
72
|
-
handle: {
|
|
73
|
-
width: 40,
|
|
74
|
-
height: 4,
|
|
75
|
-
backgroundColor: '#888888',
|
|
76
|
-
borderRadius: 2,
|
|
77
|
-
},
|
|
78
|
-
});
|
|
79
|
-
//# sourceMappingURL=vertical-resizable-split-view.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"vertical-resizable-split-view.js","sourceRoot":"","sources":["../../../../src/components/layout/resizable/vertical-resizable-split-view.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,WAAW,EAAE,QAAQ,EAA0B,MAAM,OAAO,CAAC;AACtE,OAAO,EAAqB,UAAU,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AACnE,OAAO,EAAE,OAAO,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAC;AACxE,OAAO,QAAQ,EAAE,EAAE,gBAAgB,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AACjG,OAAO,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAE/C,OAAO,EAAE,+BAA+B,EAAE,MAAM,uCAAuC,CAAC;AAExF,MAAM,kBAAkB,GAAG,EAAE,CAAC;AAC9B,MAAM,wBAAwB,GAAG,EAAE,OAAO,EAAE,EAAE,EAAE,SAAS,EAAE,GAAG,EAAE,IAAI,EAAE,GAAG,EAAE,CAAC;AAE5E,MAAM,CAAC,MAAM,0BAA0B,GAAuD,CAAC,KAAK,EAAE,EAAE;IACtG,IAAI,aAAa,EAAE;QAAE,+BAA+B,CAAC,KAAK,CAAC,CAAC;IAE5D,MAAM,EACJ,UAAU,EACV,aAAa,EACb,eAAe,GAAG,GAAG,EACrB,WAAW,GAAG,IAAI,EAClB,WAAW,GAAG,IAAI,EAClB,oBAAoB,EACpB,WAAW,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CAAgC,CAAC,YACpG,KAAC,QAAQ,CAAC,IAAI,IAAC,KAAK,EAAE,CAAC,MAAM,CAAC,MAAM,EAAE,WAAW,EAAE,uBAAuB,CAAC,GAAI,GACjE,GACA,CACnB,EAED,KAAC,IAAI,IAAC,KAAK,EAAE,CAAC,MAAM,CAAC,aAAa,CAAC,YAAG,aAAa,GAAQ,IACtD,CACR,CAAC;AACJ,CAAC,CAAC;AAEF,MAAM,MAAM,GAAG,UAAU,CAAC,MAAM,CAAC;IAC/B,SAAS,EAAE;QACT,IAAI,EAAE,CAAC;KACR;IACD,UAAU,EAAE;QACV,QAAQ,EAAE,QAAQ;KACnB;IACD,aAAa,EAAE;QACb,IAAI,EAAE,CAAC;QACP,QAAQ,EAAE,QAAQ;KACnB;IACD,eAAe,EAAE;QACf,QAAQ,EAAE,UAAU;QACpB,IAAI,EAAE,CAAC;QACP,KAAK,EAAE,CAAC;QACR,MAAM,EAAE,kBAAkB;QAC1B,UAAU,EAAE,QAAQ;QACpB,cAAc,EAAE,QAAQ;KACzB;IACD,MAAM,EAAE;QACN,KAAK,EAAE,EAAE;QACT,MAAM,EAAE,CAAC;QACT,eAAe,EAAE,SAAS;QAC1B,YAAY,EAAE,CAAC;KAChB;CACF,CAAC,CAAC"}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { ReactNode } from 'react';
|
|
2
|
-
import { StyleProp, ViewStyle } from 'react-native';
|
|
3
|
-
export interface VerticalResizableSplitViewProps {
|
|
4
|
-
/** Content to display in the top section */
|
|
5
|
-
topContent: ReactNode;
|
|
6
|
-
/** Content to display in the bottom section */
|
|
7
|
-
bottomContent: ReactNode;
|
|
8
|
-
/** Initial proportion for the top section (0 to 1). Default: 0.5 */
|
|
9
|
-
initialTopRatio?: number;
|
|
10
|
-
/** Minimum proportion for the top section (0 to 1). Default: 0.15 */
|
|
11
|
-
minTopRatio?: number;
|
|
12
|
-
/** Maximum proportion for the top section (0 to 1). Default: 0.85 */
|
|
13
|
-
maxTopRatio?: number;
|
|
14
|
-
/** Style for the drag handle container */
|
|
15
|
-
handleContainerStyle?: StyleProp<ViewStyle>;
|
|
16
|
-
/** Style for the drag handle bar */
|
|
17
|
-
handleStyle?: StyleProp<ViewStyle>;
|
|
18
|
-
/** Whether to hide the drag handle. Default: false */
|
|
19
|
-
hideHandle?: boolean;
|
|
20
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
//# sourceMappingURL=vertical-resizable-split-view.types.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"vertical-resizable-split-view.types.js","sourceRoot":"","sources":["../../../../src/components/layout/resizable/vertical-resizable-split-view.types.ts"],"names":[],"mappings":""}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { isNullish } from '@lichens-innovation/ts-common';
|
|
2
|
-
export const validateResizableSplitViewProps = (props) => {
|
|
3
|
-
const { initialTopRatio, minTopRatio, maxTopRatio } = props;
|
|
4
|
-
if (!isNullish(initialTopRatio)) {
|
|
5
|
-
if (initialTopRatio < 0 || initialTopRatio > 1)
|
|
6
|
-
throw new Error(`initialTopRatio must be between 0 and 1. Provided: ${initialTopRatio}`);
|
|
7
|
-
}
|
|
8
|
-
if (!isNullish(minTopRatio)) {
|
|
9
|
-
if (minTopRatio < 0 || minTopRatio > 1)
|
|
10
|
-
throw new Error(`minTopRatio must be between 0 and 1. Provided: ${minTopRatio}`);
|
|
11
|
-
}
|
|
12
|
-
if (!isNullish(maxTopRatio)) {
|
|
13
|
-
if (maxTopRatio < 0 || maxTopRatio > 1)
|
|
14
|
-
throw new Error(`maxTopRatio must be between 0 and 1. Provided: ${maxTopRatio}`);
|
|
15
|
-
}
|
|
16
|
-
if (!isNullish(minTopRatio) && !isNullish(maxTopRatio) && minTopRatio >= maxTopRatio)
|
|
17
|
-
throw new Error(`minTopRatio must be less than maxTopRatio. Provided: ${JSON.stringify({ minTopRatio, maxTopRatio })}`);
|
|
18
|
-
if (!isNullish(initialTopRatio) && !isNullish(minTopRatio) && initialTopRatio < minTopRatio)
|
|
19
|
-
throw new Error(`initialTopRatio must be >= minTopRatio. Provided: ${JSON.stringify({ initialTopRatio, minTopRatio })}`);
|
|
20
|
-
if (!isNullish(initialTopRatio) && !isNullish(maxTopRatio) && initialTopRatio > maxTopRatio)
|
|
21
|
-
throw new Error(`initialTopRatio must be <= maxTopRatio. Provided: ${JSON.stringify({ initialTopRatio, maxTopRatio })}`);
|
|
22
|
-
};
|
|
23
|
-
//# sourceMappingURL=vertical-resizable-split-view.utils.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"vertical-resizable-split-view.utils.js","sourceRoot":"","sources":["../../../../src/components/layout/resizable/vertical-resizable-split-view.utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,+BAA+B,CAAC;AAG1D,MAAM,CAAC,MAAM,+BAA+B,GAAG,CAAC,KAAsC,EAAE,EAAE;IACxF,MAAM,EAAE,eAAe,EAAE,WAAW,EAAE,WAAW,EAAE,GAAG,KAAK,CAAC;IAE5D,IAAI,CAAC,SAAS,CAAC,eAAe,CAAC,EAAE,CAAC;QAChC,IAAI,eAAe,GAAG,CAAC,IAAI,eAAe,GAAG,CAAC;YAC5C,MAAM,IAAI,KAAK,CAAC,sDAAsD,eAAe,EAAE,CAAC,CAAC;IAC7F,CAAC;IAED,IAAI,CAAC,SAAS,CAAC,WAAW,CAAC,EAAE,CAAC;QAC5B,IAAI,WAAW,GAAG,CAAC,IAAI,WAAW,GAAG,CAAC;YACpC,MAAM,IAAI,KAAK,CAAC,kDAAkD,WAAW,EAAE,CAAC,CAAC;IACrF,CAAC;IAED,IAAI,CAAC,SAAS,CAAC,WAAW,CAAC,EAAE,CAAC;QAC5B,IAAI,WAAW,GAAG,CAAC,IAAI,WAAW,GAAG,CAAC;YACpC,MAAM,IAAI,KAAK,CAAC,kDAAkD,WAAW,EAAE,CAAC,CAAC;IACrF,CAAC;IAED,IAAI,CAAC,SAAS,CAAC,WAAW,CAAC,IAAI,CAAC,SAAS,CAAC,WAAW,CAAC,IAAI,WAAW,IAAI,WAAW;QAClF,MAAM,IAAI,KAAK,CACb,wDAAwD,IAAI,CAAC,SAAS,CAAC,EAAE,WAAW,EAAE,WAAW,EAAE,CAAC,EAAE,CACvG,CAAC;IAEJ,IAAI,CAAC,SAAS,CAAC,eAAe,CAAC,IAAI,CAAC,SAAS,CAAC,WAAW,CAAC,IAAI,eAAe,GAAG,WAAW;QACzF,MAAM,IAAI,KAAK,CACb,qDAAqD,IAAI,CAAC,SAAS,CAAC,EAAE,eAAe,EAAE,WAAW,EAAE,CAAC,EAAE,CACxG,CAAC;IAEJ,IAAI,CAAC,SAAS,CAAC,eAAe,CAAC,IAAI,CAAC,SAAS,CAAC,WAAW,CAAC,IAAI,eAAe,GAAG,WAAW;QACzF,MAAM,IAAI,KAAK,CACb,qDAAqD,IAAI,CAAC,SAAS,CAAC,EAAE,eAAe,EAAE,WAAW,EAAE,CAAC,EAAE,CACxG,CAAC;AACN,CAAC,CAAC"}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { FunctionComponent, PropsWithChildren } from 'react';
|
|
2
|
-
import { ViewStyle } from 'react-native';
|
|
3
|
-
type SafeContainerProps = PropsWithChildren<{
|
|
4
|
-
style?: ViewStyle;
|
|
5
|
-
shouldAnimate?: boolean;
|
|
6
|
-
}>;
|
|
7
|
-
export declare const SafeContainer: FunctionComponent<SafeContainerProps>;
|
|
8
|
-
export {};
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import { useIsFocused } from '@react-navigation/native';
|
|
3
|
-
import { StyleSheet } from 'react-native';
|
|
4
|
-
import Animated, { FadeInUp } from 'react-native-reanimated';
|
|
5
|
-
import { SafeAreaView } from 'react-native-safe-area-context';
|
|
6
|
-
export const SafeContainer = ({ children, style, shouldAnimate = false }) => {
|
|
7
|
-
const isScreenFocused = useIsFocused();
|
|
8
|
-
if (!isScreenFocused) {
|
|
9
|
-
return null;
|
|
10
|
-
}
|
|
11
|
-
return (_jsx(SafeAreaView, { style: [styles.container, style], children: _jsx(Animated.View, { style: styles.container, entering: shouldAnimate ? FadeInUp.duration(500) : undefined, children: children }) }));
|
|
12
|
-
};
|
|
13
|
-
const styles = StyleSheet.create({
|
|
14
|
-
container: {
|
|
15
|
-
flex: 1,
|
|
16
|
-
},
|
|
17
|
-
});
|
|
18
|
-
//# sourceMappingURL=safe-container.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"safe-container.js","sourceRoot":"","sources":["../../../src/components/layout/safe-container.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAExD,OAAO,EAAE,UAAU,EAAa,MAAM,cAAc,CAAC;AACrD,OAAO,QAAQ,EAAE,EAAE,QAAQ,EAAE,MAAM,yBAAyB,CAAC;AAC7D,OAAO,EAAE,YAAY,EAAE,MAAM,gCAAgC,CAAC;AAO9D,MAAM,CAAC,MAAM,aAAa,GAA0C,CAAC,EAAE,QAAQ,EAAE,KAAK,EAAE,aAAa,GAAG,KAAK,EAAE,EAAE,EAAE;IACjH,MAAM,eAAe,GAAG,YAAY,EAAE,CAAC;IACvC,IAAI,CAAC,eAAe,EAAE,CAAC;QACrB,OAAO,IAAI,CAAC;IACd,CAAC;IAED,OAAO,CACL,KAAC,YAAY,IAAC,KAAK,EAAE,CAAC,MAAM,CAAC,SAAS,EAAE,KAAK,CAAC,YAC5C,KAAC,QAAQ,CAAC,IAAI,IAAC,KAAK,EAAE,MAAM,CAAC,SAAS,EAAE,QAAQ,EAAE,aAAa,CAAC,CAAC,CAAC,QAAQ,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,SAAS,YACjG,QAAQ,GACK,GACH,CAChB,CAAC;AACJ,CAAC,CAAC;AAEF,MAAM,MAAM,GAAG,UAAU,CAAC,MAAM,CAAC;IAC/B,SAAS,EAAE;QACT,IAAI,EAAE,CAAC;KACR;CACF,CAAC,CAAC"}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { FunctionComponent, PropsWithChildren } from 'react';
|
|
2
|
-
import { ViewStyle } from 'react-native';
|
|
3
|
-
type SafeContainerProps = PropsWithChildren<{
|
|
4
|
-
style?: ViewStyle;
|
|
5
|
-
shouldAnimate?: boolean;
|
|
6
|
-
}>;
|
|
7
|
-
export declare const SafeContainer: FunctionComponent<SafeContainerProps>;
|
|
8
|
-
export {};
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import { useIsFocused } from '@react-navigation/native';
|
|
3
|
-
import { SafeAreaView, StyleSheet } from 'react-native';
|
|
4
|
-
export const SafeContainer = ({ children, style }) => {
|
|
5
|
-
const isScreenFocused = useIsFocused();
|
|
6
|
-
if (!isScreenFocused) {
|
|
7
|
-
return null;
|
|
8
|
-
}
|
|
9
|
-
return _jsx(SafeAreaView, { style: [styles.container, style], children: children });
|
|
10
|
-
};
|
|
11
|
-
const styles = StyleSheet.create({
|
|
12
|
-
container: {
|
|
13
|
-
flex: 1,
|
|
14
|
-
},
|
|
15
|
-
});
|
|
16
|
-
//# sourceMappingURL=safe-container.windows.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"safe-container.windows.js","sourceRoot":"","sources":["../../../src/components/layout/safe-container.windows.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAExD,OAAO,EAAE,YAAY,EAAE,UAAU,EAAa,MAAM,cAAc,CAAC;AAOnE,MAAM,CAAC,MAAM,aAAa,GAA0C,CAAC,EAAE,QAAQ,EAAE,KAAK,EAAE,EAAE,EAAE;IAC1F,MAAM,eAAe,GAAG,YAAY,EAAE,CAAC;IACvC,IAAI,CAAC,eAAe,EAAE,CAAC;QACrB,OAAO,IAAI,CAAC;IACd,CAAC;IAED,OAAO,KAAC,YAAY,IAAC,KAAK,EAAE,CAAC,MAAM,CAAC,SAAS,EAAE,KAAK,CAAC,YAAG,QAAQ,GAAgB,CAAC;AACnF,CAAC,CAAC;AAEF,MAAM,MAAM,GAAG,UAAU,CAAC,MAAM,CAAC;IAC/B,SAAS,EAAE;QACT,IAAI,EAAE,CAAC;KACR;CACF,CAAC,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/lists/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAC;AAC9B,cAAc,wBAAwB,CAAC"}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import { StyleSheet, View } from 'react-native';
|
|
3
|
-
import { Text } from 'react-native-paper';
|
|
4
|
-
import { useAppTheme } from '../../theme/theme';
|
|
5
|
-
export const ListHeader = ({ title }) => {
|
|
6
|
-
const styles = useStyles();
|
|
7
|
-
return (_jsx(View, { style: styles.container, children: _jsx(Text, { variant: "titleMedium", children: title }) }));
|
|
8
|
-
};
|
|
9
|
-
const useStyles = () => {
|
|
10
|
-
const theme = useAppTheme();
|
|
11
|
-
return StyleSheet.create({
|
|
12
|
-
container: {
|
|
13
|
-
paddingHorizontal: theme.spacing(1),
|
|
14
|
-
},
|
|
15
|
-
});
|
|
16
|
-
};
|
|
17
|
-
//# sourceMappingURL=list-header.js.map
|