react-native-platform-components 1.4.0 → 1.6.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/PlatformComponents.podspec +1 -1
- package/README.md +33 -31
- package/android/src/main/java/com/platformcomponents/PCButtonGroupView.kt +175 -9
- package/android/src/main/java/com/platformcomponents/PCButtonGroupViewManager.kt +52 -2
- package/android/src/main/java/com/platformcomponents/PCButtonSupport.kt +44 -12
- package/android/src/main/java/com/platformcomponents/PCButtonView.kt +187 -5
- package/android/src/main/java/com/platformcomponents/PCButtonViewManager.kt +85 -7
- package/android/src/main/java/com/platformcomponents/PCContextMenuView.kt +41 -151
- package/android/src/main/java/com/platformcomponents/PCContextMenuViewManager.kt +7 -63
- package/android/src/main/java/com/platformcomponents/PCDatePickerView.kt +310 -115
- package/android/src/main/java/com/platformcomponents/PCDatePickerViewManager.kt +23 -3
- package/android/src/main/java/com/platformcomponents/PCExpressive.kt +6 -1
- package/android/src/main/java/com/platformcomponents/PCFloatingActionButtonView.kt +485 -0
- package/android/src/main/java/com/platformcomponents/PCFloatingActionButtonViewManager.kt +109 -0
- package/android/src/main/java/com/platformcomponents/PCFloatingToolbarView.kt +132 -0
- package/android/src/main/java/com/platformcomponents/PCFloatingToolbarViewManager.kt +8 -0
- package/android/src/main/java/com/platformcomponents/PCHaptics.kt +46 -0
- package/android/src/main/java/com/platformcomponents/PCImageLoader.kt +42 -7
- package/android/src/main/java/com/platformcomponents/PCLiquidGlassContainerView.kt +32 -0
- package/android/src/main/java/com/platformcomponents/PCLiquidGlassContainerViewManager.kt +31 -0
- package/android/src/main/java/com/platformcomponents/PCLiquidGlassView.kt +32 -6
- package/android/src/main/java/com/platformcomponents/PCLiquidGlassViewManager.kt +4 -0
- package/android/src/main/java/com/platformcomponents/PCMenuSupport.kt +280 -0
- package/android/src/main/java/com/platformcomponents/PCNavigationBarSupport.kt +332 -0
- package/android/src/main/java/com/platformcomponents/PCNavigationRailView.kt +448 -0
- package/android/src/main/java/com/platformcomponents/PCNavigationRailViewManager.kt +176 -0
- package/android/src/main/java/com/platformcomponents/PCSegmentedControlView.kt +24 -14
- package/android/src/main/java/com/platformcomponents/PCSegmentedControlViewManager.kt +14 -2
- package/android/src/main/java/com/platformcomponents/PCSelectionMenuView.kt +371 -39
- package/android/src/main/java/com/platformcomponents/PCSelectionMenuViewManager.kt +18 -4
- package/android/src/main/java/com/platformcomponents/PCTabBarView.kt +397 -0
- package/android/src/main/java/com/platformcomponents/PCTabBarViewManager.kt +182 -0
- package/android/src/main/java/com/platformcomponents/PCTextFieldView.kt +415 -40
- package/android/src/main/java/com/platformcomponents/PCTextFieldViewManager.kt +109 -3
- package/android/src/main/java/com/platformcomponents/PCThemeSupport.kt +37 -0
- package/android/src/main/java/com/platformcomponents/PlatformComponentsPackage.kt +4 -0
- package/android/src/main/res/drawable/pc_ic_search.xml +12 -0
- package/android/src/main/res/values/ids.xml +5 -0
- package/android/src/main/res/values/styles.xml +24 -0
- package/ios/PCButton.mm +122 -7
- package/ios/PCButtonGroup.mm +68 -1
- package/ios/PCButtonGroupView.swift +225 -6
- package/ios/PCButtonSupport.swift +181 -10
- package/ios/PCButtonView.swift +297 -14
- package/ios/PCConstants.swift +23 -2
- package/ios/PCContextMenu.mm +28 -110
- package/ios/PCContextMenu.swift +106 -167
- package/ios/PCDatePicker.mm +21 -9
- package/ios/PCDatePickerView.swift +94 -20
- package/ios/PCFloatingActionButton.h +10 -0
- package/ios/PCFloatingActionButton.mm +177 -0
- package/ios/PCFloatingActionButtonView.swift +426 -0
- package/ios/PCFloatingToolbar.mm +27 -0
- package/ios/PCFloatingToolbarView.swift +241 -0
- package/ios/PCHaptics.swift +91 -0
- package/ios/PCImageLoader.swift +76 -12
- package/ios/PCLiquidGlass.mm +36 -0
- package/ios/PCLiquidGlass.swift +221 -114
- package/ios/PCLiquidGlassContainer.h +10 -0
- package/ios/PCLiquidGlassContainer.mm +84 -0
- package/ios/PCLiquidGlassContainer.swift +69 -0
- package/ios/PCMenuItems.h +76 -0
- package/ios/PCMenuSupport.swift +350 -0
- package/ios/PCNavigationRail.h +10 -0
- package/ios/PCNavigationRail.mm +270 -0
- package/ios/PCNavigationRailView.swift +415 -0
- package/ios/PCSegmentedControl.mm +17 -2
- package/ios/PCSegmentedControl.swift +57 -7
- package/ios/PCSelectionMenu.mm +36 -8
- package/ios/PCSelectionMenu.swift +224 -48
- package/ios/PCTabBar.h +10 -0
- package/ios/PCTabBar.mm +285 -0
- package/ios/PCTabBarAccessory.h +10 -0
- package/ios/PCTabBarAccessory.mm +93 -0
- package/ios/PCTabBarAccessoryView.swift +96 -0
- package/ios/PCTabBarView.swift +671 -0
- package/ios/PCTextField.mm +159 -4
- package/ios/PCTextFieldView.swift +603 -57
- package/lib/commonjs/Button.js +73 -1
- package/lib/commonjs/Button.js.map +1 -1
- package/lib/commonjs/ButtonGroup.js +13 -3
- package/lib/commonjs/ButtonGroup.js.map +1 -1
- package/lib/commonjs/ButtonGroupNativeComponent.ts +74 -4
- package/lib/commonjs/ButtonNativeComponent.ts +119 -3
- package/lib/commonjs/ContextMenu.js +9 -48
- package/lib/commonjs/ContextMenu.js.map +1 -1
- package/lib/commonjs/ContextMenuNativeComponent.ts +47 -49
- package/lib/commonjs/DatePicker.js +98 -2
- package/lib/commonjs/DatePicker.js.map +1 -1
- package/lib/commonjs/DatePickerNativeComponent.ts +19 -2
- package/lib/commonjs/FloatingActionButton.js +60 -0
- package/lib/commonjs/FloatingActionButton.js.map +1 -0
- package/lib/commonjs/FloatingActionButtonNativeComponent.ts +58 -0
- package/lib/commonjs/FloatingToolbar.js +9 -1
- package/lib/commonjs/FloatingToolbar.js.map +1 -1
- package/lib/commonjs/FloatingToolbarNativeComponent.ts +16 -0
- package/lib/commonjs/LiquidGlass.js +7 -1
- package/lib/commonjs/LiquidGlass.js.map +1 -1
- package/lib/commonjs/LiquidGlassContainer.js +32 -0
- package/lib/commonjs/LiquidGlassContainer.js.map +1 -0
- package/lib/commonjs/LiquidGlassContainerNativeComponent.ts +17 -0
- package/lib/commonjs/LiquidGlassNativeComponent.ts +8 -0
- package/lib/commonjs/NavigationRail.js +104 -0
- package/lib/commonjs/NavigationRail.js.map +1 -0
- package/lib/commonjs/NavigationRailNativeComponent.ts +107 -0
- package/lib/commonjs/PlatformComponentsProvider.js +18 -0
- package/lib/commonjs/PlatformComponentsProvider.js.map +1 -0
- package/lib/commonjs/SegmentedControl.js +7 -0
- package/lib/commonjs/SegmentedControl.js.map +1 -1
- package/lib/commonjs/SegmentedControlNativeComponent.ts +11 -0
- package/lib/commonjs/SelectionMenu.js +27 -3
- package/lib/commonjs/SelectionMenu.js.map +1 -1
- package/lib/commonjs/SelectionMenuNativeComponent.ts +26 -4
- package/lib/commonjs/SplitButton.js +98 -0
- package/lib/commonjs/SplitButton.js.map +1 -0
- package/lib/commonjs/TabBar.js +203 -0
- package/lib/commonjs/TabBar.js.map +1 -0
- package/lib/commonjs/TabBarAccessoryNativeComponent.ts +19 -0
- package/lib/commonjs/TabBarNativeComponent.ts +145 -0
- package/lib/commonjs/TextField.js +171 -8
- package/lib/commonjs/TextField.js.map +1 -1
- package/lib/commonjs/TextFieldNativeComponent.ts +110 -4
- package/lib/commonjs/focusRegistry.js +2 -1
- package/lib/commonjs/focusRegistry.js.map +1 -1
- package/lib/commonjs/haptics.js +2 -0
- package/lib/commonjs/haptics.js.map +1 -0
- package/lib/commonjs/icons.js +15 -1
- package/lib/commonjs/icons.js.map +1 -1
- package/lib/commonjs/index.js +77 -0
- package/lib/commonjs/index.js.map +1 -1
- package/lib/commonjs/index.web.js +156 -92
- package/lib/commonjs/index.web.js.map +1 -1
- package/lib/commonjs/jest.js +910 -0
- package/lib/commonjs/jest.js.map +1 -0
- package/lib/commonjs/menuItems.js +68 -0
- package/lib/commonjs/menuItems.js.map +1 -0
- package/lib/commonjs/selectionIdentifiers.js +18 -0
- package/lib/commonjs/selectionIdentifiers.js.map +1 -0
- package/lib/commonjs/submitBehavior.js +19 -0
- package/lib/commonjs/submitBehavior.js.map +1 -0
- package/lib/commonjs/tabItems.js +49 -0
- package/lib/commonjs/tabItems.js.map +1 -0
- package/lib/commonjs/web/Button.js +170 -0
- package/lib/commonjs/web/Button.js.map +1 -0
- package/lib/commonjs/web/ButtonGroup.js +119 -0
- package/lib/commonjs/web/ButtonGroup.js.map +1 -0
- package/lib/commonjs/web/DatePicker.js +168 -0
- package/lib/commonjs/web/DatePicker.js.map +1 -0
- package/lib/commonjs/web/DateRangePicker.js +137 -0
- package/lib/commonjs/web/DateRangePicker.js.map +1 -0
- package/lib/commonjs/web/Dialog.js +54 -0
- package/lib/commonjs/web/Dialog.js.map +1 -0
- package/lib/commonjs/web/FloatingActionButton.js +98 -0
- package/lib/commonjs/web/FloatingActionButton.js.map +1 -0
- package/lib/commonjs/web/Icon.js +34 -0
- package/lib/commonjs/web/Icon.js.map +1 -0
- package/lib/commonjs/web/NativeTheme.js +28 -0
- package/lib/commonjs/web/NativeTheme.js.map +1 -0
- package/lib/commonjs/web/NavigationRail.js +139 -0
- package/lib/commonjs/web/NavigationRail.js.map +1 -0
- package/lib/commonjs/web/PlatformComponentsProvider.js +51 -0
- package/lib/commonjs/web/PlatformComponentsProvider.js.map +1 -0
- package/lib/commonjs/web/SegmentedControl.js +117 -0
- package/lib/commonjs/web/SegmentedControl.js.map +1 -0
- package/lib/commonjs/web/SelectionMenu.js +142 -0
- package/lib/commonjs/web/SelectionMenu.js.map +1 -0
- package/lib/commonjs/web/SplitButton.js +35 -0
- package/lib/commonjs/web/SplitButton.js.map +1 -0
- package/lib/commonjs/web/TabBar.js +131 -0
- package/lib/commonjs/web/TabBar.js.map +1 -0
- package/lib/commonjs/web/TextField.js +322 -0
- package/lib/commonjs/web/TextField.js.map +1 -0
- package/lib/commonjs/web/components.js +36 -0
- package/lib/commonjs/web/components.js.map +1 -0
- package/lib/commonjs/web/containers.js +121 -0
- package/lib/commonjs/web/containers.js.map +1 -0
- package/lib/commonjs/web/dateInput.js +116 -0
- package/lib/commonjs/web/dateInput.js.map +1 -0
- package/lib/commonjs/web/shared.js +192 -0
- package/lib/commonjs/web/shared.js.map +1 -0
- package/lib/commonjs/webComponents.js +6 -0
- package/lib/commonjs/webComponents.js.map +1 -0
- package/lib/module/Button.js +74 -2
- package/lib/module/Button.js.map +1 -1
- package/lib/module/ButtonGroup.js +13 -3
- package/lib/module/ButtonGroup.js.map +1 -1
- package/lib/module/ButtonGroupNativeComponent.ts +74 -4
- package/lib/module/ButtonNativeComponent.ts +119 -3
- package/lib/module/ContextMenu.js +9 -48
- package/lib/module/ContextMenu.js.map +1 -1
- package/lib/module/ContextMenuNativeComponent.ts +47 -49
- package/lib/module/DatePicker.js +98 -4
- package/lib/module/DatePicker.js.map +1 -1
- package/lib/module/DatePickerNativeComponent.ts +19 -2
- package/lib/module/FloatingActionButton.js +53 -0
- package/lib/module/FloatingActionButton.js.map +1 -0
- package/lib/module/FloatingActionButtonNativeComponent.ts +58 -0
- package/lib/module/FloatingToolbar.js +9 -1
- package/lib/module/FloatingToolbar.js.map +1 -1
- package/lib/module/FloatingToolbarNativeComponent.ts +16 -0
- package/lib/module/LiquidGlass.js +7 -1
- package/lib/module/LiquidGlass.js.map +1 -1
- package/lib/module/LiquidGlassContainer.js +26 -0
- package/lib/module/LiquidGlassContainer.js.map +1 -0
- package/lib/module/LiquidGlassContainerNativeComponent.ts +17 -0
- package/lib/module/LiquidGlassNativeComponent.ts +8 -0
- package/lib/module/NavigationRail.js +99 -0
- package/lib/module/NavigationRail.js.map +1 -0
- package/lib/module/NavigationRailNativeComponent.ts +107 -0
- package/lib/module/PlatformComponentsProvider.js +13 -0
- package/lib/module/PlatformComponentsProvider.js.map +1 -0
- package/lib/module/SegmentedControl.js +9 -1
- package/lib/module/SegmentedControl.js.map +1 -1
- package/lib/module/SegmentedControlNativeComponent.ts +11 -0
- package/lib/module/SelectionMenu.js +27 -3
- package/lib/module/SelectionMenu.js.map +1 -1
- package/lib/module/SelectionMenuNativeComponent.ts +26 -4
- package/lib/module/SplitButton.js +91 -0
- package/lib/module/SplitButton.js.map +1 -0
- package/lib/module/TabBar.js +196 -0
- package/lib/module/TabBar.js.map +1 -0
- package/lib/module/TabBarAccessoryNativeComponent.ts +19 -0
- package/lib/module/TabBarNativeComponent.ts +145 -0
- package/lib/module/TextField.js +172 -9
- package/lib/module/TextField.js.map +1 -1
- package/lib/module/TextFieldNativeComponent.ts +110 -4
- package/lib/module/focusRegistry.js +1 -0
- package/lib/module/focusRegistry.js.map +1 -1
- package/lib/module/haptics.js +2 -0
- package/lib/module/haptics.js.map +1 -0
- package/lib/module/icons.js +15 -1
- package/lib/module/icons.js.map +1 -1
- package/lib/module/index.js +7 -0
- package/lib/module/index.js.map +1 -1
- package/lib/module/index.web.js +12 -87
- package/lib/module/index.web.js.map +1 -1
- package/lib/module/jest.js +840 -0
- package/lib/module/jest.js.map +1 -0
- package/lib/module/menuItems.js +65 -0
- package/lib/module/menuItems.js.map +1 -0
- package/lib/module/selectionIdentifiers.js +14 -0
- package/lib/module/selectionIdentifiers.js.map +1 -0
- package/lib/module/submitBehavior.js +15 -0
- package/lib/module/submitBehavior.js.map +1 -0
- package/lib/module/tabItems.js +45 -0
- package/lib/module/tabItems.js.map +1 -0
- package/lib/module/web/Button.js +164 -0
- package/lib/module/web/Button.js.map +1 -0
- package/lib/module/web/ButtonGroup.js +113 -0
- package/lib/module/web/ButtonGroup.js.map +1 -0
- package/lib/module/web/DatePicker.js +162 -0
- package/lib/module/web/DatePicker.js.map +1 -0
- package/lib/module/web/DateRangePicker.js +131 -0
- package/lib/module/web/DateRangePicker.js.map +1 -0
- package/lib/module/web/Dialog.js +48 -0
- package/lib/module/web/Dialog.js.map +1 -0
- package/lib/module/web/FloatingActionButton.js +94 -0
- package/lib/module/web/FloatingActionButton.js.map +1 -0
- package/lib/module/web/Icon.js +29 -0
- package/lib/module/web/Icon.js.map +1 -0
- package/lib/module/web/NativeTheme.js +23 -0
- package/lib/module/web/NativeTheme.js.map +1 -0
- package/lib/module/web/NavigationRail.js +133 -0
- package/lib/module/web/NavigationRail.js.map +1 -0
- package/lib/module/web/PlatformComponentsProvider.js +44 -0
- package/lib/module/web/PlatformComponentsProvider.js.map +1 -0
- package/lib/module/web/SegmentedControl.js +112 -0
- package/lib/module/web/SegmentedControl.js.map +1 -0
- package/lib/module/web/SelectionMenu.js +137 -0
- package/lib/module/web/SelectionMenu.js.map +1 -0
- package/lib/module/web/SplitButton.js +30 -0
- package/lib/module/web/SplitButton.js.map +1 -0
- package/lib/module/web/TabBar.js +126 -0
- package/lib/module/web/TabBar.js.map +1 -0
- package/lib/module/web/TextField.js +316 -0
- package/lib/module/web/TextField.js.map +1 -0
- package/lib/module/web/components.js +33 -0
- package/lib/module/web/components.js.map +1 -0
- package/lib/module/web/containers.js +112 -0
- package/lib/module/web/containers.js.map +1 -0
- package/lib/module/web/dateInput.js +109 -0
- package/lib/module/web/dateInput.js.map +1 -0
- package/lib/module/web/shared.js +179 -0
- package/lib/module/web/shared.js.map +1 -0
- package/lib/module/webComponents.js +4 -0
- package/lib/module/webComponents.js.map +1 -0
- package/lib/typescript/commonjs/docs/sidebars.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/Button.d.ts +111 -3
- package/lib/typescript/commonjs/src/Button.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/ButtonGroup.d.ts +21 -6
- package/lib/typescript/commonjs/src/ButtonGroup.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/ButtonGroupNativeComponent.d.ts +64 -3
- package/lib/typescript/commonjs/src/ButtonGroupNativeComponent.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/ButtonNativeComponent.d.ts +94 -3
- package/lib/typescript/commonjs/src/ButtonNativeComponent.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/ContextMenu.d.ts +20 -33
- package/lib/typescript/commonjs/src/ContextMenu.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/ContextMenuNativeComponent.d.ts +45 -47
- package/lib/typescript/commonjs/src/ContextMenuNativeComponent.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/DatePicker.d.ts +74 -1
- package/lib/typescript/commonjs/src/DatePicker.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/DatePickerNativeComponent.d.ts +16 -1
- package/lib/typescript/commonjs/src/DatePickerNativeComponent.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/FloatingActionButton.d.ts +67 -0
- package/lib/typescript/commonjs/src/FloatingActionButton.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/FloatingActionButtonNativeComponent.d.ts +43 -0
- package/lib/typescript/commonjs/src/FloatingActionButtonNativeComponent.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/FloatingToolbar.d.ts +30 -0
- package/lib/typescript/commonjs/src/FloatingToolbar.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/FloatingToolbarNativeComponent.d.ts +12 -0
- package/lib/typescript/commonjs/src/FloatingToolbarNativeComponent.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/LiquidGlass.d.ts +17 -0
- package/lib/typescript/commonjs/src/LiquidGlass.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/LiquidGlassContainer.d.ts +27 -0
- package/lib/typescript/commonjs/src/LiquidGlassContainer.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/LiquidGlassContainerNativeComponent.d.ts +13 -0
- package/lib/typescript/commonjs/src/LiquidGlassContainerNativeComponent.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/LiquidGlassNativeComponent.d.ts +7 -0
- package/lib/typescript/commonjs/src/LiquidGlassNativeComponent.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/NavigationRail.d.ts +86 -0
- package/lib/typescript/commonjs/src/NavigationRail.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/NavigationRailNativeComponent.d.ts +81 -0
- package/lib/typescript/commonjs/src/NavigationRailNativeComponent.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/PlatformComponentsProvider.d.ts +6 -0
- package/lib/typescript/commonjs/src/PlatformComponentsProvider.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/SegmentedControl.d.ts +18 -1
- package/lib/typescript/commonjs/src/SegmentedControl.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/SegmentedControlNativeComponent.d.ts +9 -0
- package/lib/typescript/commonjs/src/SegmentedControlNativeComponent.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/SelectionMenu.d.ts +44 -2
- package/lib/typescript/commonjs/src/SelectionMenu.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/SelectionMenuNativeComponent.d.ts +20 -4
- package/lib/typescript/commonjs/src/SelectionMenuNativeComponent.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/SplitButton.d.ts +83 -0
- package/lib/typescript/commonjs/src/SplitButton.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/TabBar.d.ts +144 -0
- package/lib/typescript/commonjs/src/TabBar.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/TabBarAccessoryNativeComponent.d.ts +13 -0
- package/lib/typescript/commonjs/src/TabBarAccessoryNativeComponent.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/TabBarNativeComponent.d.ts +110 -0
- package/lib/typescript/commonjs/src/TabBarNativeComponent.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/TextField.d.ts +166 -8
- package/lib/typescript/commonjs/src/TextField.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/TextFieldNativeComponent.d.ts +81 -3
- package/lib/typescript/commonjs/src/TextFieldNativeComponent.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/focusRegistry.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/haptics.d.ts +20 -0
- package/lib/typescript/commonjs/src/haptics.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/icons.d.ts +7 -1
- package/lib/typescript/commonjs/src/icons.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/index.d.ts +7 -0
- package/lib/typescript/commonjs/src/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/index.web.d.ts +25 -254
- package/lib/typescript/commonjs/src/index.web.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/jest.d.ts +139 -0
- package/lib/typescript/commonjs/src/jest.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/menuItems.d.ts +100 -0
- package/lib/typescript/commonjs/src/menuItems.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/selectionIdentifiers.d.ts +3 -0
- package/lib/typescript/commonjs/src/selectionIdentifiers.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/submitBehavior.d.ts +9 -0
- package/lib/typescript/commonjs/src/submitBehavior.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/tabItems.d.ts +55 -0
- package/lib/typescript/commonjs/src/tabItems.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/web/Button.d.ts +9 -0
- package/lib/typescript/commonjs/src/web/Button.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/web/ButtonGroup.d.ts +11 -0
- package/lib/typescript/commonjs/src/web/ButtonGroup.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/web/DatePicker.d.ts +14 -0
- package/lib/typescript/commonjs/src/web/DatePicker.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/web/DateRangePicker.d.ts +11 -0
- package/lib/typescript/commonjs/src/web/DateRangePicker.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/web/Dialog.d.ts +12 -0
- package/lib/typescript/commonjs/src/web/Dialog.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/web/FloatingActionButton.d.ts +8 -0
- package/lib/typescript/commonjs/src/web/FloatingActionButton.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/web/Icon.d.ts +12 -0
- package/lib/typescript/commonjs/src/web/Icon.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/web/NativeTheme.d.ts +10 -0
- package/lib/typescript/commonjs/src/web/NativeTheme.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/web/NavigationRail.d.ts +8 -0
- package/lib/typescript/commonjs/src/web/NavigationRail.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/web/PlatformComponentsProvider.d.ts +10 -0
- package/lib/typescript/commonjs/src/web/PlatformComponentsProvider.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/web/SegmentedControl.d.ts +8 -0
- package/lib/typescript/commonjs/src/web/SegmentedControl.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/web/SelectionMenu.d.ts +10 -0
- package/lib/typescript/commonjs/src/web/SelectionMenu.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/web/SplitButton.d.ts +9 -0
- package/lib/typescript/commonjs/src/web/SplitButton.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/web/TabBar.d.ts +9 -0
- package/lib/typescript/commonjs/src/web/TabBar.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/web/TextField.d.ts +9 -0
- package/lib/typescript/commonjs/src/web/TextField.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/web/components.d.ts +17 -0
- package/lib/typescript/commonjs/src/web/components.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/web/containers.d.ts +24 -0
- package/lib/typescript/commonjs/src/web/containers.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/web/dateInput.d.ts +20 -0
- package/lib/typescript/commonjs/src/web/dateInput.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/web/shared.d.ts +43 -0
- package/lib/typescript/commonjs/src/web/shared.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/webComponents.d.ts +43 -0
- package/lib/typescript/commonjs/src/webComponents.d.ts.map +1 -0
- package/lib/typescript/module/docs/sidebars.d.ts.map +1 -1
- package/lib/typescript/module/src/Button.d.ts +111 -3
- package/lib/typescript/module/src/Button.d.ts.map +1 -1
- package/lib/typescript/module/src/ButtonGroup.d.ts +21 -6
- package/lib/typescript/module/src/ButtonGroup.d.ts.map +1 -1
- package/lib/typescript/module/src/ButtonGroupNativeComponent.d.ts +64 -3
- package/lib/typescript/module/src/ButtonGroupNativeComponent.d.ts.map +1 -1
- package/lib/typescript/module/src/ButtonNativeComponent.d.ts +94 -3
- package/lib/typescript/module/src/ButtonNativeComponent.d.ts.map +1 -1
- package/lib/typescript/module/src/ContextMenu.d.ts +20 -33
- package/lib/typescript/module/src/ContextMenu.d.ts.map +1 -1
- package/lib/typescript/module/src/ContextMenuNativeComponent.d.ts +45 -47
- package/lib/typescript/module/src/ContextMenuNativeComponent.d.ts.map +1 -1
- package/lib/typescript/module/src/DatePicker.d.ts +74 -1
- package/lib/typescript/module/src/DatePicker.d.ts.map +1 -1
- package/lib/typescript/module/src/DatePickerNativeComponent.d.ts +16 -1
- package/lib/typescript/module/src/DatePickerNativeComponent.d.ts.map +1 -1
- package/lib/typescript/module/src/FloatingActionButton.d.ts +67 -0
- package/lib/typescript/module/src/FloatingActionButton.d.ts.map +1 -0
- package/lib/typescript/module/src/FloatingActionButtonNativeComponent.d.ts +43 -0
- package/lib/typescript/module/src/FloatingActionButtonNativeComponent.d.ts.map +1 -0
- package/lib/typescript/module/src/FloatingToolbar.d.ts +30 -0
- package/lib/typescript/module/src/FloatingToolbar.d.ts.map +1 -1
- package/lib/typescript/module/src/FloatingToolbarNativeComponent.d.ts +12 -0
- package/lib/typescript/module/src/FloatingToolbarNativeComponent.d.ts.map +1 -1
- package/lib/typescript/module/src/LiquidGlass.d.ts +17 -0
- package/lib/typescript/module/src/LiquidGlass.d.ts.map +1 -1
- package/lib/typescript/module/src/LiquidGlassContainer.d.ts +27 -0
- package/lib/typescript/module/src/LiquidGlassContainer.d.ts.map +1 -0
- package/lib/typescript/module/src/LiquidGlassContainerNativeComponent.d.ts +13 -0
- package/lib/typescript/module/src/LiquidGlassContainerNativeComponent.d.ts.map +1 -0
- package/lib/typescript/module/src/LiquidGlassNativeComponent.d.ts +7 -0
- package/lib/typescript/module/src/LiquidGlassNativeComponent.d.ts.map +1 -1
- package/lib/typescript/module/src/NavigationRail.d.ts +86 -0
- package/lib/typescript/module/src/NavigationRail.d.ts.map +1 -0
- package/lib/typescript/module/src/NavigationRailNativeComponent.d.ts +81 -0
- package/lib/typescript/module/src/NavigationRailNativeComponent.d.ts.map +1 -0
- package/lib/typescript/module/src/PlatformComponentsProvider.d.ts +6 -0
- package/lib/typescript/module/src/PlatformComponentsProvider.d.ts.map +1 -0
- package/lib/typescript/module/src/SegmentedControl.d.ts +18 -1
- package/lib/typescript/module/src/SegmentedControl.d.ts.map +1 -1
- package/lib/typescript/module/src/SegmentedControlNativeComponent.d.ts +9 -0
- package/lib/typescript/module/src/SegmentedControlNativeComponent.d.ts.map +1 -1
- package/lib/typescript/module/src/SelectionMenu.d.ts +44 -2
- package/lib/typescript/module/src/SelectionMenu.d.ts.map +1 -1
- package/lib/typescript/module/src/SelectionMenuNativeComponent.d.ts +20 -4
- package/lib/typescript/module/src/SelectionMenuNativeComponent.d.ts.map +1 -1
- package/lib/typescript/module/src/SplitButton.d.ts +83 -0
- package/lib/typescript/module/src/SplitButton.d.ts.map +1 -0
- package/lib/typescript/module/src/TabBar.d.ts +144 -0
- package/lib/typescript/module/src/TabBar.d.ts.map +1 -0
- package/lib/typescript/module/src/TabBarAccessoryNativeComponent.d.ts +13 -0
- package/lib/typescript/module/src/TabBarAccessoryNativeComponent.d.ts.map +1 -0
- package/lib/typescript/module/src/TabBarNativeComponent.d.ts +110 -0
- package/lib/typescript/module/src/TabBarNativeComponent.d.ts.map +1 -0
- package/lib/typescript/module/src/TextField.d.ts +166 -8
- package/lib/typescript/module/src/TextField.d.ts.map +1 -1
- package/lib/typescript/module/src/TextFieldNativeComponent.d.ts +81 -3
- package/lib/typescript/module/src/TextFieldNativeComponent.d.ts.map +1 -1
- package/lib/typescript/module/src/focusRegistry.d.ts.map +1 -1
- package/lib/typescript/module/src/haptics.d.ts +20 -0
- package/lib/typescript/module/src/haptics.d.ts.map +1 -0
- package/lib/typescript/module/src/icons.d.ts +7 -1
- package/lib/typescript/module/src/icons.d.ts.map +1 -1
- package/lib/typescript/module/src/index.d.ts +7 -0
- package/lib/typescript/module/src/index.d.ts.map +1 -1
- package/lib/typescript/module/src/index.web.d.ts +25 -254
- package/lib/typescript/module/src/index.web.d.ts.map +1 -1
- package/lib/typescript/module/src/jest.d.ts +139 -0
- package/lib/typescript/module/src/jest.d.ts.map +1 -0
- package/lib/typescript/module/src/menuItems.d.ts +100 -0
- package/lib/typescript/module/src/menuItems.d.ts.map +1 -0
- package/lib/typescript/module/src/selectionIdentifiers.d.ts +3 -0
- package/lib/typescript/module/src/selectionIdentifiers.d.ts.map +1 -0
- package/lib/typescript/module/src/submitBehavior.d.ts +9 -0
- package/lib/typescript/module/src/submitBehavior.d.ts.map +1 -0
- package/lib/typescript/module/src/tabItems.d.ts +55 -0
- package/lib/typescript/module/src/tabItems.d.ts.map +1 -0
- package/lib/typescript/module/src/web/Button.d.ts +9 -0
- package/lib/typescript/module/src/web/Button.d.ts.map +1 -0
- package/lib/typescript/module/src/web/ButtonGroup.d.ts +11 -0
- package/lib/typescript/module/src/web/ButtonGroup.d.ts.map +1 -0
- package/lib/typescript/module/src/web/DatePicker.d.ts +14 -0
- package/lib/typescript/module/src/web/DatePicker.d.ts.map +1 -0
- package/lib/typescript/module/src/web/DateRangePicker.d.ts +11 -0
- package/lib/typescript/module/src/web/DateRangePicker.d.ts.map +1 -0
- package/lib/typescript/module/src/web/Dialog.d.ts +12 -0
- package/lib/typescript/module/src/web/Dialog.d.ts.map +1 -0
- package/lib/typescript/module/src/web/FloatingActionButton.d.ts +8 -0
- package/lib/typescript/module/src/web/FloatingActionButton.d.ts.map +1 -0
- package/lib/typescript/module/src/web/Icon.d.ts +12 -0
- package/lib/typescript/module/src/web/Icon.d.ts.map +1 -0
- package/lib/typescript/module/src/web/NativeTheme.d.ts +10 -0
- package/lib/typescript/module/src/web/NativeTheme.d.ts.map +1 -0
- package/lib/typescript/module/src/web/NavigationRail.d.ts +8 -0
- package/lib/typescript/module/src/web/NavigationRail.d.ts.map +1 -0
- package/lib/typescript/module/src/web/PlatformComponentsProvider.d.ts +10 -0
- package/lib/typescript/module/src/web/PlatformComponentsProvider.d.ts.map +1 -0
- package/lib/typescript/module/src/web/SegmentedControl.d.ts +8 -0
- package/lib/typescript/module/src/web/SegmentedControl.d.ts.map +1 -0
- package/lib/typescript/module/src/web/SelectionMenu.d.ts +10 -0
- package/lib/typescript/module/src/web/SelectionMenu.d.ts.map +1 -0
- package/lib/typescript/module/src/web/SplitButton.d.ts +9 -0
- package/lib/typescript/module/src/web/SplitButton.d.ts.map +1 -0
- package/lib/typescript/module/src/web/TabBar.d.ts +9 -0
- package/lib/typescript/module/src/web/TabBar.d.ts.map +1 -0
- package/lib/typescript/module/src/web/TextField.d.ts +9 -0
- package/lib/typescript/module/src/web/TextField.d.ts.map +1 -0
- package/lib/typescript/module/src/web/components.d.ts +17 -0
- package/lib/typescript/module/src/web/components.d.ts.map +1 -0
- package/lib/typescript/module/src/web/containers.d.ts +24 -0
- package/lib/typescript/module/src/web/containers.d.ts.map +1 -0
- package/lib/typescript/module/src/web/dateInput.d.ts +20 -0
- package/lib/typescript/module/src/web/dateInput.d.ts.map +1 -0
- package/lib/typescript/module/src/web/shared.d.ts +43 -0
- package/lib/typescript/module/src/web/shared.d.ts.map +1 -0
- package/lib/typescript/module/src/webComponents.d.ts +43 -0
- package/lib/typescript/module/src/webComponents.d.ts.map +1 -0
- package/package.json +32 -2
- package/plugin/build/index.cjs +79 -6
- package/plugin/build/index.d.ts +27 -2
- package/plugin/build/index.d.ts.map +1 -1
- package/plugin/tsconfig.json +2 -1
- package/react-native.config.js +3 -0
- package/shared/PCFloatingActionButtonComponentDescriptors-custom.h +22 -0
- package/shared/PCFloatingActionButtonShadowNode-custom.cpp +48 -0
- package/shared/PCFloatingActionButtonShadowNode-custom.h +54 -0
- package/shared/PCFloatingActionButtonState-custom.h +61 -0
- package/shared/PCNavigationRailComponentDescriptors-custom.h +47 -0
- package/shared/PCNavigationRailShadowNode-custom.h +42 -0
- package/shared/PCNavigationRailState-custom.h +62 -0
- package/shared/PCTabBarComponentDescriptors-custom.h +22 -0
- package/shared/PCTabBarShadowNode-custom.cpp +54 -0
- package/shared/PCTabBarShadowNode-custom.h +54 -0
- package/shared/PCTabBarState-custom.h +62 -0
- package/shared/react/renderer/components/PlatformComponentsViewSpec/ComponentDescriptors.h +3 -0
- package/src/Button.tsx +222 -7
- package/src/ButtonGroup.tsx +29 -11
- package/src/ButtonGroupNativeComponent.ts +74 -4
- package/src/ButtonNativeComponent.ts +119 -3
- package/src/ContextMenu.tsx +34 -81
- package/src/ContextMenuNativeComponent.ts +47 -49
- package/src/DatePicker.tsx +182 -4
- package/src/DatePickerNativeComponent.ts +19 -2
- package/src/FloatingActionButton.tsx +121 -0
- package/src/FloatingActionButtonNativeComponent.ts +58 -0
- package/src/FloatingToolbar.tsx +54 -3
- package/src/FloatingToolbarNativeComponent.ts +16 -0
- package/src/LiquidGlass.tsx +24 -1
- package/src/LiquidGlassContainer.tsx +42 -0
- package/src/LiquidGlassContainerNativeComponent.ts +17 -0
- package/src/LiquidGlassNativeComponent.ts +8 -0
- package/src/NavigationRail.tsx +203 -0
- package/src/NavigationRailNativeComponent.ts +107 -0
- package/src/PlatformComponentsProvider.tsx +15 -0
- package/src/SegmentedControl.tsx +31 -1
- package/src/SegmentedControlNativeComponent.ts +11 -0
- package/src/SelectionMenu.tsx +81 -6
- package/src/SelectionMenuNativeComponent.ts +26 -4
- package/src/SplitButton.tsx +198 -0
- package/src/TabBar.tsx +373 -0
- package/src/TabBarAccessoryNativeComponent.ts +19 -0
- package/src/TabBarNativeComponent.ts +145 -0
- package/src/TextField.tsx +428 -14
- package/src/TextFieldNativeComponent.ts +110 -4
- package/src/focusRegistry.ts +1 -0
- package/src/haptics.ts +31 -0
- package/src/icons.ts +28 -1
- package/src/index.tsx +7 -0
- package/src/index.web.tsx +51 -391
- package/src/jest.tsx +958 -0
- package/src/menuItems.ts +152 -0
- package/src/selectionIdentifiers.ts +17 -0
- package/src/submitBehavior.ts +16 -0
- package/src/tabItems.ts +113 -0
- package/src/web/Button.tsx +201 -0
- package/src/web/ButtonGroup.tsx +154 -0
- package/src/web/DatePicker.tsx +204 -0
- package/src/web/DateRangePicker.tsx +135 -0
- package/src/web/Dialog.tsx +54 -0
- package/src/web/FloatingActionButton.tsx +76 -0
- package/src/web/Icon.tsx +33 -0
- package/src/web/NativeTheme.ts +23 -0
- package/src/web/NavigationRail.tsx +148 -0
- package/src/web/PlatformComponentsProvider.tsx +48 -0
- package/src/web/SegmentedControl.tsx +127 -0
- package/src/web/SelectionMenu.tsx +149 -0
- package/src/web/SplitButton.tsx +32 -0
- package/src/web/TabBar.tsx +150 -0
- package/src/web/TextField.tsx +361 -0
- package/src/web/components.tsx +71 -0
- package/src/web/containers.tsx +130 -0
- package/src/web/dateInput.ts +137 -0
- package/src/web/shared.ts +176 -0
- package/src/webComponents.ts +45 -0
- package/android/src/main/java/com/platformcomponents/DateConstraints.kt +0 -83
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
// FloatingActionButton.tsx
|
|
4
|
+
import React, { useCallback, useMemo } from 'react';
|
|
5
|
+
import NativeFloatingActionButton from './FloatingActionButtonNativeComponent';
|
|
6
|
+
import { resolveIcon } from "./icons.js";
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* Button size.
|
|
10
|
+
*
|
|
11
|
+
* | Size | Android FAB | Android extended FAB | iOS |
|
|
12
|
+
* | --------- | ------------------------------- | -------------------- | ------------ |
|
|
13
|
+
* | `small` | 40dp small FAB (Material 3) | 56dp small extended | 44pt circle |
|
|
14
|
+
* | `regular` | 56dp FAB | 56dp small extended | 56pt circle |
|
|
15
|
+
* | `medium` | 80dp medium FAB (M3 Expressive) | 80dp medium extended | 80pt circle |
|
|
16
|
+
* | `large` | 96dp large FAB | 96dp large extended | 96pt circle |
|
|
17
|
+
*
|
|
18
|
+
* An extended iOS button is a capsule of the same height.
|
|
19
|
+
*/
|
|
20
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
21
|
+
export function FloatingActionButton(props) {
|
|
22
|
+
const {
|
|
23
|
+
icon,
|
|
24
|
+
label,
|
|
25
|
+
extended,
|
|
26
|
+
size,
|
|
27
|
+
color,
|
|
28
|
+
tintColor,
|
|
29
|
+
disabled,
|
|
30
|
+
accessibilityLabel,
|
|
31
|
+
haptics,
|
|
32
|
+
onPress,
|
|
33
|
+
scrollViewNativeID,
|
|
34
|
+
...viewProps
|
|
35
|
+
} = props;
|
|
36
|
+
const nativeIcon = useMemo(() => resolveIcon(icon), [icon]);
|
|
37
|
+
const handlePress = useCallback(() => onPress?.(), [onPress]);
|
|
38
|
+
return /*#__PURE__*/_jsx(NativeFloatingActionButton, {
|
|
39
|
+
icon: nativeIcon,
|
|
40
|
+
label: label ?? '',
|
|
41
|
+
size: size ?? 'regular',
|
|
42
|
+
extended: extended === false ? 'false' : 'true',
|
|
43
|
+
color: color,
|
|
44
|
+
foregroundColor: tintColor,
|
|
45
|
+
interactivity: disabled ? 'disabled' : 'enabled',
|
|
46
|
+
spokenLabel: accessibilityLabel ?? '',
|
|
47
|
+
scrollViewNativeID: scrollViewNativeID ?? '',
|
|
48
|
+
haptics: haptics ?? '',
|
|
49
|
+
onFabPress: onPress ? handlePress : undefined,
|
|
50
|
+
...viewProps
|
|
51
|
+
});
|
|
52
|
+
}
|
|
53
|
+
//# sourceMappingURL=FloatingActionButton.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["React","useCallback","useMemo","NativeFloatingActionButton","resolveIcon","jsx","_jsx","FloatingActionButton","props","icon","label","extended","size","color","tintColor","disabled","accessibilityLabel","haptics","onPress","scrollViewNativeID","viewProps","nativeIcon","handlePress","foregroundColor","interactivity","spokenLabel","onFabPress","undefined"],"sourceRoot":"../../src","sources":["FloatingActionButton.tsx"],"mappings":";;AAAA;AACA,OAAOA,KAAK,IAAIC,WAAW,EAAEC,OAAO,QAAQ,OAAO;AAGnD,OAAOC,0BAA0B,MAAM,uCAAuC;AAE9E,SAASC,WAAW,QAA2B,YAAS;;AAExD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAXA,SAAAC,GAAA,IAAAC,IAAA;AA0EA,OAAO,SAASC,oBAAoBA,CAClCC,KAAgC,EACZ;EACpB,MAAM;IACJC,IAAI;IACJC,KAAK;IACLC,QAAQ;IACRC,IAAI;IACJC,KAAK;IACLC,SAAS;IACTC,QAAQ;IACRC,kBAAkB;IAClBC,OAAO;IACPC,OAAO;IACPC,kBAAkB;IAClB,GAAGC;EACL,CAAC,GAAGZ,KAAK;EAET,MAAMa,UAAU,GAAGnB,OAAO,CAAC,MAAME,WAAW,CAACK,IAAI,CAAC,EAAE,CAACA,IAAI,CAAC,CAAC;EAE3D,MAAMa,WAAW,GAAGrB,WAAW,CAAC,MAAMiB,OAAO,GAAG,CAAC,EAAE,CAACA,OAAO,CAAC,CAAC;EAE7D,oBACEZ,IAAA,CAACH,0BAA0B;IACzBM,IAAI,EAAEY,UAAW;IACjBX,KAAK,EAAEA,KAAK,IAAI,EAAG;IACnBE,IAAI,EAAEA,IAAI,IAAI,SAAU;IACxBD,QAAQ,EAAEA,QAAQ,KAAK,KAAK,GAAG,OAAO,GAAG,MAAO;IAChDE,KAAK,EAAEA,KAAM;IACbU,eAAe,EAAET,SAAU;IAC3BU,aAAa,EAAET,QAAQ,GAAG,UAAU,GAAG,SAAU;IACjDU,WAAW,EAAET,kBAAkB,IAAI,EAAG;IACtCG,kBAAkB,EAAEA,kBAAkB,IAAI,EAAG;IAC7CF,OAAO,EAAEA,OAAO,IAAI,EAAG;IACvBS,UAAU,EAAER,OAAO,GAAGI,WAAW,GAAGK,SAAU;IAAA,GAC1CP;EAAS,CACd,CAAC;AAEN","ignoreList":[]}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
// FloatingActionButtonNativeComponent.ts
|
|
2
|
+
import type { ColorValue, HostComponent, ViewProps } from 'react-native';
|
|
3
|
+
import { codegenNativeComponent } from 'react-native';
|
|
4
|
+
import type { BubblingEventHandler, Double } from './codegenTypes';
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* Icon fields, pre-resolved on the JS side (see icons.ts).
|
|
8
|
+
*/
|
|
9
|
+
export type FloatingActionButtonIconProps = Readonly<{
|
|
10
|
+
iconType: string; // '' | 'sfSymbol' | 'drawable' | 'image'
|
|
11
|
+
iconName: string; // SF Symbol (iOS) or drawable resource name (Android)
|
|
12
|
+
iconRequest: string;
|
|
13
|
+
iconUri: string; // Resolved image URI when iconType === 'image'
|
|
14
|
+
iconScale: Double; // Resolved image scale when iconType === 'image'
|
|
15
|
+
iconTinted: string; // 'true' | 'false' — draw the image as a tinted template
|
|
16
|
+
}>;
|
|
17
|
+
|
|
18
|
+
export interface FloatingActionButtonNativeProps extends ViewProps {
|
|
19
|
+
/** The icon. */
|
|
20
|
+
icon?: FloatingActionButtonIconProps;
|
|
21
|
+
|
|
22
|
+
/** Label of the extended button; empty for an icon-only button. */
|
|
23
|
+
label?: string;
|
|
24
|
+
|
|
25
|
+
/** 'small' | 'regular' | 'medium' | 'large' */
|
|
26
|
+
size?: string;
|
|
27
|
+
|
|
28
|
+
/** 'true' | 'false': a button with a label shows it. */
|
|
29
|
+
extended?: string;
|
|
30
|
+
|
|
31
|
+
/** Container color. */
|
|
32
|
+
color?: ColorValue;
|
|
33
|
+
|
|
34
|
+
/** Icon and label color. */
|
|
35
|
+
foregroundColor?: ColorValue;
|
|
36
|
+
|
|
37
|
+
/** 'enabled' | 'disabled' */
|
|
38
|
+
interactivity?: string;
|
|
39
|
+
|
|
40
|
+
/** Screen-reader label, on the native button; empty = the label. */
|
|
41
|
+
spokenLabel?: string;
|
|
42
|
+
|
|
43
|
+
/** nativeID of the ScrollView whose scrolling shrinks and extends the button. */
|
|
44
|
+
scrollViewNativeID?: string;
|
|
45
|
+
|
|
46
|
+
/**
|
|
47
|
+
* Haptic played when the button is pressed: '' (none added) | 'none' | 'selection' |
|
|
48
|
+
* 'light' | 'medium' | 'heavy' | 'success' | 'warning' | 'error'
|
|
49
|
+
*/
|
|
50
|
+
haptics?: string;
|
|
51
|
+
|
|
52
|
+
/** Fired when the button is pressed. */
|
|
53
|
+
onFabPress?: BubblingEventHandler<Readonly<{}>>;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
export default codegenNativeComponent<FloatingActionButtonNativeProps>(
|
|
57
|
+
'PCFloatingActionButton'
|
|
58
|
+
) as HostComponent<FloatingActionButtonNativeProps>;
|
|
@@ -8,12 +8,16 @@ import NativeFloatingToolbar from './FloatingToolbarNativeComponent';
|
|
|
8
8
|
/** Glass effect style of the toolbar on iOS 26. */
|
|
9
9
|
|
|
10
10
|
/** Material 3 color variant of the toolbar on Android. */
|
|
11
|
+
|
|
12
|
+
/** Scroll edge effect under the toolbar on iOS 26. */
|
|
11
13
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
12
14
|
export function FloatingToolbar(props) {
|
|
13
15
|
const {
|
|
14
16
|
style,
|
|
15
17
|
orientation,
|
|
16
18
|
color,
|
|
19
|
+
scrollViewNativeID,
|
|
20
|
+
hideOnScroll,
|
|
17
21
|
ios,
|
|
18
22
|
android,
|
|
19
23
|
children,
|
|
@@ -22,7 +26,9 @@ export function FloatingToolbar(props) {
|
|
|
22
26
|
const nativeIos = useMemo(() => {
|
|
23
27
|
if (Platform.OS !== 'ios' || !ios) return undefined;
|
|
24
28
|
return {
|
|
25
|
-
effect: ios.effect ?? 'regular'
|
|
29
|
+
effect: ios.effect ?? 'regular',
|
|
30
|
+
interactive: ios.interactive ?? false,
|
|
31
|
+
scrollEdgeEffect: ios.scrollEdgeEffect ?? ''
|
|
26
32
|
};
|
|
27
33
|
}, [ios]);
|
|
28
34
|
const nativeAndroid = useMemo(() => {
|
|
@@ -35,6 +41,8 @@ export function FloatingToolbar(props) {
|
|
|
35
41
|
return /*#__PURE__*/_jsx(NativeFloatingToolbar, {
|
|
36
42
|
style: mergedStyle,
|
|
37
43
|
color: color,
|
|
44
|
+
scrollViewNativeID: scrollViewNativeID ?? '',
|
|
45
|
+
hideOnScroll: hideOnScroll ?? false,
|
|
38
46
|
ios: nativeIos,
|
|
39
47
|
android: nativeAndroid,
|
|
40
48
|
...viewProps,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","useMemo","Platform","StyleSheet","NativeFloatingToolbar","jsx","_jsx","FloatingToolbar","props","style","orientation","color","ios","android","children","viewProps","nativeIos","OS","undefined","effect","nativeAndroid","variant","mergedStyle","styles","toolbar","vertical","horizontal","create","alignSelf","alignItems","justifyContent","padding","gap","flexDirection"],"sourceRoot":"../../src","sources":["FloatingToolbar.tsx"],"mappings":";;AAAA;AACA,OAAOA,KAAK,IAAIC,OAAO,QAAQ,OAAO;AACtC,SACEC,QAAQ,EACRC,UAAU,QAKL,cAAc;AAErB,OAAOC,qBAAqB,MAAM,kCAAkC;;AAEpE;;AAGA;AAAA,SAAAC,GAAA,IAAAC,IAAA;
|
|
1
|
+
{"version":3,"names":["React","useMemo","Platform","StyleSheet","NativeFloatingToolbar","jsx","_jsx","FloatingToolbar","props","style","orientation","color","scrollViewNativeID","hideOnScroll","ios","android","children","viewProps","nativeIos","OS","undefined","effect","interactive","scrollEdgeEffect","nativeAndroid","variant","mergedStyle","styles","toolbar","vertical","horizontal","create","alignSelf","alignItems","justifyContent","padding","gap","flexDirection"],"sourceRoot":"../../src","sources":["FloatingToolbar.tsx"],"mappings":";;AAAA;AACA,OAAOA,KAAK,IAAIC,OAAO,QAAQ,OAAO;AACtC,SACEC,QAAQ,EACRC,UAAU,QAKL,cAAc;AAErB,OAAOC,qBAAqB,MAAM,kCAAkC;;AAEpE;;AAGA;;AAGA;AAAA,SAAAC,GAAA,IAAAC,IAAA;AA+EA,OAAO,SAASC,eAAeA,CAC7BC,KAA2B,EACP;EACpB,MAAM;IACJC,KAAK;IACLC,WAAW;IACXC,KAAK;IACLC,kBAAkB;IAClBC,YAAY;IACZC,GAAG;IACHC,OAAO;IACPC,QAAQ;IACR,GA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,EAAE,QAAQ;IACpBC,cAAc,EAAE,QAAQ;IACxBC,OAAO,EAAE,CAAC;IACVC,GAAG,EAAE;EACP,CAAC;EACDN,UAAU,EAAE;IAAEO,aAAa,EAAE;EAAM,CAAC;EACpCR,QAAQ,EAAE;IAAEQ,aAAa,EAAE;EAAS;AACtC,CAAC,CAAC","ignoreList":[]}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
// FloatingToolbarNativeComponent.ts
|
|
2
2
|
import type { ColorValue, HostComponent, ViewProps } from 'react-native';
|
|
3
3
|
import { codegenNativeComponent } from 'react-native';
|
|
4
|
+
import type { WithDefault } from './codegenTypes';
|
|
4
5
|
|
|
5
6
|
/**
|
|
6
7
|
* iOS-specific configuration.
|
|
@@ -8,6 +9,15 @@ import { codegenNativeComponent } from 'react-native';
|
|
|
8
9
|
export type FloatingToolbarIOSProps = Readonly<{
|
|
9
10
|
/** Glass effect style on iOS 26: 'regular' | 'clear' */
|
|
10
11
|
effect?: string;
|
|
12
|
+
|
|
13
|
+
/** iOS 26: glass that reacts to touches (UIGlassEffect.isInteractive) */
|
|
14
|
+
interactive?: WithDefault<boolean, false>;
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* iOS 26: the linked scroll view's edge effect under the toolbar:
|
|
18
|
+
* '' (the scroll view's own) | 'automatic' | 'soft' | 'hard' | 'hidden'
|
|
19
|
+
*/
|
|
20
|
+
scrollEdgeEffect?: string;
|
|
11
21
|
}>;
|
|
12
22
|
|
|
13
23
|
/**
|
|
@@ -22,6 +32,12 @@ export interface FloatingToolbarNativeProps extends ViewProps {
|
|
|
22
32
|
/** Container color. Default: the platform's toolbar material. */
|
|
23
33
|
color?: ColorValue;
|
|
24
34
|
|
|
35
|
+
/** nativeID of the ScrollView the toolbar floats over. */
|
|
36
|
+
scrollViewNativeID?: string;
|
|
37
|
+
|
|
38
|
+
/** Slide off the linked ScrollView's edge while its content scrolls down. */
|
|
39
|
+
hideOnScroll?: WithDefault<boolean, false>;
|
|
40
|
+
|
|
25
41
|
ios?: FloatingToolbarIOSProps;
|
|
26
42
|
android?: FloatingToolbarAndroidProps;
|
|
27
43
|
}
|
|
@@ -5,6 +5,10 @@ import React, { useCallback, useMemo } from 'react';
|
|
|
5
5
|
import { Platform } from 'react-native';
|
|
6
6
|
import NativeLiquidGlass from './LiquidGlassNativeComponent';
|
|
7
7
|
import NativePlatformComponentsTheme from "./NativePlatformComponentsTheme.js";
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* Corner shape of the glass: `'capsule'`, `'concentric'`, or a fixed radius.
|
|
11
|
+
*/
|
|
8
12
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
9
13
|
function resolveLiquidGlassSupport() {
|
|
10
14
|
if (Platform.OS !== 'ios') {
|
|
@@ -36,6 +40,7 @@ export function LiquidGlass(props) {
|
|
|
36
40
|
const {
|
|
37
41
|
style,
|
|
38
42
|
cornerRadius = 0,
|
|
43
|
+
cornerStyle,
|
|
39
44
|
ios,
|
|
40
45
|
android,
|
|
41
46
|
children,
|
|
@@ -71,7 +76,8 @@ export function LiquidGlass(props) {
|
|
|
71
76
|
}, [onPress]);
|
|
72
77
|
return /*#__PURE__*/_jsx(NativeLiquidGlass, {
|
|
73
78
|
style: style,
|
|
74
|
-
cornerRadius: cornerRadius,
|
|
79
|
+
cornerRadius: typeof cornerStyle === 'number' ? cornerStyle : cornerRadius,
|
|
80
|
+
cornerStyle: typeof cornerStyle === 'string' ? cornerStyle : '',
|
|
75
81
|
ios: nativeIos,
|
|
76
82
|
android: nativeAndroid,
|
|
77
83
|
onGlassPress: onPress ? handlePress : undefined,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","useCallback","useMemo","Platform","NativeLiquidGlass","NativePlatformComponentsTheme","jsx","_jsx","resolveLiquidGlassSupport","OS","supported","isLiquidGlassSupported","parseInt","String","Version","LiquidGlass","props","style","cornerRadius","ios","android","children","onPress","viewProps","nativeIos","undefined","effect","interactive","tintColor","colorScheme","nativeAndroid","fallbackBackgroundColor","handlePress","event","x","nativeEvent","y","onGlassPress"],"sourceRoot":"../../src","sources":["LiquidGlass.tsx"],"mappings":";;AAAA;AACA,OAAOA,KAAK,IAAIC,WAAW,EAAEC,OAAO,QAAQ,OAAO;AACnD,SAASC,QAAQ,QAAwB,cAAc;AAEvD,OAAOC,iBAAiB,MAIjB,8BAA8B;AACrC,OAAOC,6BAA6B,MAAM,oCAAiC;
|
|
1
|
+
{"version":3,"names":["React","useCallback","useMemo","Platform","NativeLiquidGlass","NativePlatformComponentsTheme","jsx","_jsx","resolveLiquidGlassSupport","OS","supported","isLiquidGlassSupported","parseInt","String","Version","LiquidGlass","props","style","cornerRadius","cornerStyle","ios","android","children","onPress","viewProps","nativeIos","undefined","effect","interactive","tintColor","colorScheme","nativeAndroid","fallbackBackgroundColor","handlePress","event","x","nativeEvent","y","onGlassPress"],"sourceRoot":"../../src","sources":["LiquidGlass.tsx"],"mappings":";;AAAA;AACA,OAAOA,KAAK,IAAIC,WAAW,EAAEC,OAAO,QAAQ,OAAO;AACnD,SAASC,QAAQ,QAAwB,cAAc;AAEvD,OAAOC,iBAAiB,MAIjB,8BAA8B;AACrC,OAAOC,6BAA6B,MAAM,oCAAiC;;AAQ3E;AACA;AACA;AAFA,SAAAC,GAAA,IAAAC,IAAA;AAKA,SAASC,yBAAyBA,CAAA,EAAY;EAC5C,IAAIL,QAAQ,CAACM,EAAE,KAAK,KAAK,EAAE;IACzB,OAAO,KAAK;EACd;EACA,IAAI;IACF;IACA;IACA;IACA,MAAMC,SAAS,GAAGL,6BAA6B,EAAEM,sBAAsB,CAAC,CAAC;IACzE,IAAI,OAAOD,SAAS,KAAK,SAAS,EAAE;MAClC,OAAOA,SAAS;IAClB;EACF,CAAC,CAAC,MAAM;IACN;EAAA;EAEF,OAAOE,QAAQ,CAACC,MAAM,CAACV,QAAQ,CAACW,OAAO,CAAC,EAAE,EAAE,CAAC,IAAI,EAAE;AACrD;;AAEA;AACA;AACA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jD;IACDC,WAAW,EAAE,OAAOA,WAAW,KAAK,QAAQ,GAAGA,WAAW,GAAG,EAAG;IAChEC,GAAG,EAAEK,SAAU;IACfJ,OAAO,EAAEU,aAAc;IACvBO,YAAY,EAAEf,OAAO,GAAGU,WAAW,GAAGP,SAAU;IAAA,GAC5CF,SAAS;IAAAF,QAAA,EAEZA;EAAQ,CACQ,CAAC;AAExB","ignoreList":[]}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
// LiquidGlassContainer.tsx
|
|
4
|
+
import React from 'react';
|
|
5
|
+
import NativeLiquidGlassContainer from './LiquidGlassContainerNativeComponent';
|
|
6
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
7
|
+
/**
|
|
8
|
+
* Groups `LiquidGlass` views so they render as one glass on iOS 26
|
|
9
|
+
* (`UIVisualEffectView` with a `UIGlassContainerEffect`): neighbours within
|
|
10
|
+
* `spacing` blend together, and glass that appears, disappears or changes
|
|
11
|
+
* frame morphs in and out of its neighbours. A plain container on Android,
|
|
12
|
+
* on older iOS and on web.
|
|
13
|
+
*/
|
|
14
|
+
export function LiquidGlassContainer(props) {
|
|
15
|
+
const {
|
|
16
|
+
spacing,
|
|
17
|
+
children,
|
|
18
|
+
...viewProps
|
|
19
|
+
} = props;
|
|
20
|
+
return /*#__PURE__*/_jsx(NativeLiquidGlassContainer, {
|
|
21
|
+
spacing: spacing ?? -1,
|
|
22
|
+
...viewProps,
|
|
23
|
+
children: children
|
|
24
|
+
});
|
|
25
|
+
}
|
|
26
|
+
//# sourceMappingURL=LiquidGlassContainer.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["React","NativeLiquidGlassContainer","jsx","_jsx","LiquidGlassContainer","props","spacing","children","viewProps"],"sourceRoot":"../../src","sources":["LiquidGlassContainer.tsx"],"mappings":";;AAAA;AACA,OAAOA,KAAK,MAAM,OAAO;AAGzB,OAAOC,0BAA0B,MAAM,uCAAuC;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAoB/E;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASC,oBAAoBA,CAClCC,KAAgC,EACZ;EACpB,MAAM;IAAEC,OAAO;IAAEC,QAAQ;IAAE,GAAGC;EAAU,CAAC,GAAGH,KAAK;EAEjD,oBACEF,IAAA,CAACF,0BAA0B;IAACK,OAAO,EAAEA,OAAO,IAAI,CAAC,CAAE;IAAA,GAAKE,SAAS;IAAAD,QAAA,EAC9DA;EAAQ,CACiB,CAAC;AAEjC","ignoreList":[]}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
// LiquidGlassContainerNativeComponent.ts
|
|
2
|
+
import type { HostComponent, ViewProps } from 'react-native';
|
|
3
|
+
import { codegenNativeComponent } from 'react-native';
|
|
4
|
+
import type { Float, WithDefault } from './codegenTypes';
|
|
5
|
+
|
|
6
|
+
export interface LiquidGlassContainerNativeProps extends ViewProps {
|
|
7
|
+
/**
|
|
8
|
+
* Distance between glass elements at which they begin to merge
|
|
9
|
+
* (UIGlassContainerEffect.spacing). Negative keeps the system default.
|
|
10
|
+
* @default -1
|
|
11
|
+
*/
|
|
12
|
+
spacing?: WithDefault<Float, -1>;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
export default codegenNativeComponent<LiquidGlassContainerNativeProps>(
|
|
16
|
+
'PCLiquidGlassContainer'
|
|
17
|
+
) as HostComponent<LiquidGlassContainerNativeProps>;
|
|
@@ -78,6 +78,14 @@ export interface LiquidGlassNativeProps extends ViewProps {
|
|
|
78
78
|
*/
|
|
79
79
|
cornerRadius?: WithDefault<Float, 0>;
|
|
80
80
|
|
|
81
|
+
/**
|
|
82
|
+
* Corner shape: 'capsule' | 'concentric' | '' (the cornerRadius).
|
|
83
|
+
* On iOS 26 it maps to UIView.cornerConfiguration; elsewhere 'capsule'
|
|
84
|
+
* rounds to half the shorter side and 'concentric' uses cornerRadius.
|
|
85
|
+
* @default ''
|
|
86
|
+
*/
|
|
87
|
+
cornerStyle?: WithDefault<string, ''>;
|
|
88
|
+
|
|
81
89
|
/**
|
|
82
90
|
* iOS-specific props.
|
|
83
91
|
*/
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
// NavigationRail.tsx
|
|
4
|
+
import React, { useCallback, useMemo } from 'react';
|
|
5
|
+
import { StyleSheet, View } from 'react-native';
|
|
6
|
+
import NativeNavigationRail from './NavigationRailNativeComponent';
|
|
7
|
+
import { normalizeLabelStyle } from "./labelStyle.js";
|
|
8
|
+
import { toNativeTabItems } from "./tabItems.js";
|
|
9
|
+
|
|
10
|
+
/** The collapsed Material rail shows at most seven destinations. */
|
|
11
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
12
|
+
const MAX_COLLAPSED_ITEMS = 7;
|
|
13
|
+
|
|
14
|
+
/**
|
|
15
|
+
* A destination: the same item as a TabBar tab. `role: 'search'` gives a
|
|
16
|
+
* destination without an icon the search icon; `systemItem` is TabBar only.
|
|
17
|
+
*/
|
|
18
|
+
|
|
19
|
+
/**
|
|
20
|
+
* Where the destinations sit in the rail's height, below the header.
|
|
21
|
+
* Android: `NavigationRailView.setMenuGravity`.
|
|
22
|
+
*/
|
|
23
|
+
|
|
24
|
+
export function NavigationRail(props) {
|
|
25
|
+
const {
|
|
26
|
+
items,
|
|
27
|
+
selectedValue,
|
|
28
|
+
onSelect,
|
|
29
|
+
onReselect,
|
|
30
|
+
haptics,
|
|
31
|
+
labelVisibility,
|
|
32
|
+
menuGravity,
|
|
33
|
+
expanded,
|
|
34
|
+
header,
|
|
35
|
+
activeTintColor,
|
|
36
|
+
inactiveTintColor,
|
|
37
|
+
railColor,
|
|
38
|
+
badgeStyle,
|
|
39
|
+
labelStyle,
|
|
40
|
+
maxFontSizeMultiplier,
|
|
41
|
+
android,
|
|
42
|
+
...viewProps
|
|
43
|
+
} = props;
|
|
44
|
+
if (__DEV__ && items.length > MAX_COLLAPSED_ITEMS) {
|
|
45
|
+
console.warn(`NavigationRail: ${items.length} destinations given; the collapsed Material rail shows at most ${MAX_COLLAPSED_ITEMS}.`);
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
// The expanded rail shows every destination
|
|
49
|
+
const nativeItems = useMemo(() => toNativeTabItems(items, items.length), [items]);
|
|
50
|
+
const handleItemPress = useCallback(event => {
|
|
51
|
+
const {
|
|
52
|
+
index,
|
|
53
|
+
value,
|
|
54
|
+
reselected
|
|
55
|
+
} = event.nativeEvent;
|
|
56
|
+
if (reselected === 'true') {
|
|
57
|
+
onReselect?.(value, index);
|
|
58
|
+
} else {
|
|
59
|
+
onSelect?.(value, index);
|
|
60
|
+
}
|
|
61
|
+
}, [onSelect, onReselect]);
|
|
62
|
+
const nativeLabelStyle = useMemo(() => normalizeLabelStyle(labelStyle), [labelStyle]);
|
|
63
|
+
return /*#__PURE__*/_jsx(NativeNavigationRail, {
|
|
64
|
+
items: nativeItems,
|
|
65
|
+
selectedValue: selectedValue ?? '',
|
|
66
|
+
labelVisibility: labelVisibility ?? 'auto',
|
|
67
|
+
menuGravity: menuGravity ?? 'top',
|
|
68
|
+
expanded: expanded ? 'true' : 'false',
|
|
69
|
+
activeTintColor: activeTintColor,
|
|
70
|
+
inactiveTintColor: inactiveTintColor,
|
|
71
|
+
railColor: railColor,
|
|
72
|
+
badgeBackgroundColor: badgeStyle?.backgroundColor,
|
|
73
|
+
badgeTextColor: badgeStyle?.color,
|
|
74
|
+
labelStyle: nativeLabelStyle,
|
|
75
|
+
maxFontSizeMultiplier: maxFontSizeMultiplier ?? 0,
|
|
76
|
+
androidIndicatorColor: android?.indicatorColor,
|
|
77
|
+
androidRippleColor: android?.rippleColor,
|
|
78
|
+
haptics: haptics ?? '',
|
|
79
|
+
onItemPress: onSelect || onReselect ? handleItemPress : undefined,
|
|
80
|
+
...viewProps,
|
|
81
|
+
children: header ?
|
|
82
|
+
/*#__PURE__*/
|
|
83
|
+
// Native places the header; out of the flow, it leaves the rail's
|
|
84
|
+
// width to native
|
|
85
|
+
_jsx(View, {
|
|
86
|
+
collapsable: false,
|
|
87
|
+
style: styles.header,
|
|
88
|
+
children: header
|
|
89
|
+
}) : null
|
|
90
|
+
});
|
|
91
|
+
}
|
|
92
|
+
const styles = StyleSheet.create({
|
|
93
|
+
header: {
|
|
94
|
+
position: 'absolute',
|
|
95
|
+
left: 0,
|
|
96
|
+
top: 0
|
|
97
|
+
}
|
|
98
|
+
});
|
|
99
|
+
//# sourceMappingURL=NavigationRail.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["React","useCallback","useMemo","StyleSheet","View","NativeNavigationRail","normalizeLabelStyle","toNativeTabItems","jsx","_jsx","MAX_COLLAPSED_ITEMS","NavigationRail","props","items","selectedValue","onSelect","onReselect","haptics","labelVisibility","menuGravity","expanded","header","activeTintColor","inactiveTintColor","railColor","badgeStyle","labelStyle","maxFontSizeMultiplier","android","viewProps","__DEV__","length","console","warn","nativeItems","handleItemPress","event","index","value","reselected","nativeEvent","nativeLabelStyle","badgeBackgroundColor","backgroundColor","badgeTextColor","color","androidIndicatorColor","indicatorColor","androidRippleColor","rippleColor","onItemPress","undefined","children","collapsable","style","styles","create","position","left","top"],"sourceRoot":"../../src","sources":["NavigationRail.tsx"],"mappings":";;AAAA;AACA,OAAOA,KAAK,IAAIC,WAAW,EAAEC,OAAO,QAAQ,OAAO;AACnD,SACEC,UAAU,EACVC,IAAI,QAIC,cAAc;AAErB,OAAOC,oBAAoB,MAEpB,iCAAiC;AAExC,SAASC,mBAAmB,QAAyB,iBAAc;AAEnE,SAASC,gBAAgB,QAA8B,eAAY;;AAEnE;AAAA,SAAAC,GAAA,IAAAC,IAAA;AACA,MAAMC,mBAAmB,GAAG,CAAC;;AAE7B;AACA;AACA;AACA;;AAGA;AACA;AACA;AACA;;AAyFA,OAAO,SAASC,cAAcA,CAACC,KAA0B,EAAsB;EAC7E,MAAM;IACJC,KAAK;IACLC,aAAa;IACbC,QAAQ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jCC,iBAAiB,EAAEA,iBAAkB;IACrCC,SAAS,EAAEA,SAAU;IACrBkB,oBAAoB,EAAEjB,UAAU,EAAEkB,eAAgB;IAClDC,cAAc,EAAEnB,UAAU,EAAEoB,KAAM;IAClCnB,UAAU,EAAEe,gBAAiB;IAC7Bd,qBAAqB,EAAEA,qBAAqB,IAAI,CAAE;IAClDmB,qBAAqB,EAAElB,OAAO,EAAEmB,cAAe;IAC/CC,kBAAkB,EAAEpB,OAAO,EAAEqB,WAAY;IACzChC,OAAO,EAAEA,OAAO,IAAI,EAAG;IACvBiC,WAAW,EAAEnC,QAAQ,IAAIC,UAAU,GAAGmB,eAAe,GAAGgB,SAAU;IAAA,GAC9DtB,SAAS;IAAAuB,QAAA,EAEZ/B,MAAM;IAAA;IACL;IACA;IACAZ,IAAA,CAACL,IAAI;MAACiD,WAAW,EAAE,KAAM;MAACC,KAAK,EAAEC,MAAM,CAAClC,MAAO;MAAA+B,QAAA,EAC5C/B;IAAM,CACH,CAAC,GACL;EAAI,CACY,CAAC;AAE3B;AAEA,MAAMkC,MAAM,GAAGpD,UAAU,CAACqD,MAAM,CAAC;EAC/BnC,MAAM,EAAE;IAAEoC,QAAQ,EAAE,UAAU;IAAEC,IAAI,EAAE,CAAC;IAAEC,GAAG,EAAE;EAAE;AAClD,CAAC,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
// NavigationRailNativeComponent.ts
|
|
2
|
+
import type { ColorValue, HostComponent, ViewProps } from 'react-native';
|
|
3
|
+
import { codegenNativeComponent } from 'react-native';
|
|
4
|
+
import type {
|
|
5
|
+
BubblingEventHandler,
|
|
6
|
+
Double,
|
|
7
|
+
Int32,
|
|
8
|
+
WithDefault,
|
|
9
|
+
} from './codegenTypes';
|
|
10
|
+
|
|
11
|
+
/**
|
|
12
|
+
* A destination: the fields of a TabBar tab (see tabItems.ts). Icons are
|
|
13
|
+
* pre-resolved on the JS side (see icons.ts), the selected icon under the
|
|
14
|
+
* `selected…` fields; empty strings mean "none".
|
|
15
|
+
*/
|
|
16
|
+
export type NavigationRailItem = Readonly<{
|
|
17
|
+
label: string;
|
|
18
|
+
value: string;
|
|
19
|
+
disabled: string; // 'enabled' | 'disabled'
|
|
20
|
+
iconType: string; // '' | 'sfSymbol' | 'drawable' | 'image'
|
|
21
|
+
iconName: string;
|
|
22
|
+
iconRequest: string;
|
|
23
|
+
iconUri: string;
|
|
24
|
+
iconScale: Double;
|
|
25
|
+
iconTinted: string; // 'true' | 'false'
|
|
26
|
+
selectedIconType: string;
|
|
27
|
+
selectedIconName: string;
|
|
28
|
+
selectedIconRequest: string;
|
|
29
|
+
selectedIconUri: string;
|
|
30
|
+
selectedIconScale: Double;
|
|
31
|
+
selectedIconTinted: string;
|
|
32
|
+
badge: string; // badge text, '' = no badge, ' ' = a dot
|
|
33
|
+
accessibilityLabel: string; // '' = the label
|
|
34
|
+
testID: string; // '' = none
|
|
35
|
+
role: string; // '' | 'search'
|
|
36
|
+
systemItem: string; // TabBar only; ignored
|
|
37
|
+
}>;
|
|
38
|
+
|
|
39
|
+
/** A press on a destination. `reselected` is 'true' when it was already selected. */
|
|
40
|
+
export type NavigationRailSelectEvent = Readonly<{
|
|
41
|
+
index: Int32;
|
|
42
|
+
value: string;
|
|
43
|
+
reselected: string; // 'true' | 'false'
|
|
44
|
+
}>;
|
|
45
|
+
|
|
46
|
+
/** Label font. Empty strings / 0 mean "platform default". */
|
|
47
|
+
export type NavigationRailLabelStyleProps = Readonly<{
|
|
48
|
+
fontFamily?: string;
|
|
49
|
+
fontSize?: Double;
|
|
50
|
+
fontWeight?: string;
|
|
51
|
+
fontStyle?: string;
|
|
52
|
+
}>;
|
|
53
|
+
|
|
54
|
+
export interface NavigationRailNativeProps extends ViewProps {
|
|
55
|
+
/** The destinations. */
|
|
56
|
+
items: ReadonlyArray<NavigationRailItem>;
|
|
57
|
+
|
|
58
|
+
/** Selected destination by value; '' = none. */
|
|
59
|
+
selectedValue?: WithDefault<string, ''>;
|
|
60
|
+
|
|
61
|
+
/** 'auto' | 'labeled' | 'selected' | 'unlabeled' */
|
|
62
|
+
labelVisibility?: string;
|
|
63
|
+
|
|
64
|
+
/** 'top' | 'center' | 'bottom' */
|
|
65
|
+
menuGravity?: string;
|
|
66
|
+
|
|
67
|
+
/** 'true' | 'false': the expanded rail (Android). */
|
|
68
|
+
expanded?: string;
|
|
69
|
+
|
|
70
|
+
/** Icon and label color of the selected destination. */
|
|
71
|
+
activeTintColor?: ColorValue;
|
|
72
|
+
|
|
73
|
+
/** Icon and label color of the other destinations. */
|
|
74
|
+
inactiveTintColor?: ColorValue;
|
|
75
|
+
|
|
76
|
+
/** Rail background. */
|
|
77
|
+
railColor?: ColorValue;
|
|
78
|
+
|
|
79
|
+
/** Badge colors. */
|
|
80
|
+
badgeBackgroundColor?: ColorValue;
|
|
81
|
+
badgeTextColor?: ColorValue;
|
|
82
|
+
|
|
83
|
+
/** Label font. */
|
|
84
|
+
labelStyle?: NavigationRailLabelStyleProps;
|
|
85
|
+
|
|
86
|
+
/** Largest font scale the labels may reach; 0 = no cap. */
|
|
87
|
+
maxFontSizeMultiplier?: Double;
|
|
88
|
+
|
|
89
|
+
/** Android: the active indicator behind the selected icon. */
|
|
90
|
+
androidIndicatorColor?: ColorValue;
|
|
91
|
+
|
|
92
|
+
/** Android: ripple shown while pressing a destination. */
|
|
93
|
+
androidRippleColor?: ColorValue;
|
|
94
|
+
|
|
95
|
+
/**
|
|
96
|
+
* Haptic played when a destination is pressed: '' (none added) | 'none' | 'selection' |
|
|
97
|
+
* 'light' | 'medium' | 'heavy' | 'success' | 'warning' | 'error'
|
|
98
|
+
*/
|
|
99
|
+
haptics?: string;
|
|
100
|
+
|
|
101
|
+
/** Fired when a destination is pressed. */
|
|
102
|
+
onItemPress?: BubblingEventHandler<NavigationRailSelectEvent>;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
export default codegenNativeComponent<NavigationRailNativeProps>(
|
|
106
|
+
'PCNavigationRail'
|
|
107
|
+
) as HostComponent<NavigationRailNativeProps>;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import React from 'react';
|
|
4
|
+
import { Fragment as _Fragment, jsx as _jsx } from "react/jsx-runtime";
|
|
5
|
+
/** Web registrations do not replace native controls on iOS or Android. */
|
|
6
|
+
export function PlatformComponentsProvider({
|
|
7
|
+
children
|
|
8
|
+
}) {
|
|
9
|
+
return /*#__PURE__*/_jsx(_Fragment, {
|
|
10
|
+
children: children
|
|
11
|
+
});
|
|
12
|
+
}
|
|
13
|
+
//# sourceMappingURL=PlatformComponentsProvider.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["React","Fragment","_Fragment","jsx","_jsx","PlatformComponentsProvider","children"],"sourceRoot":"../../src","sources":["PlatformComponentsProvider.tsx"],"mappings":";;AAAA,OAAOA,KAAK,MAAM,OAAO;AAAC,SAAAC,QAAA,IAAAC,SAAA,EAAAC,GAAA,IAAAC,IAAA;AAS1B;AACA,OAAO,SAASC,0BAA0BA,CAAC;EACzCC;AAC+B,CAAC,EAAsB;EACtD,oBAAOF,IAAA,CAAAF,SAAA;IAAAI,QAAA,EAAGA;EAAQ,CAAG,CAAC;AACxB","ignoreList":[]}
|
|
@@ -6,10 +6,12 @@ import { Platform, StyleSheet } from 'react-native';
|
|
|
6
6
|
import NativeSegmentedControl from './SegmentedControlNativeComponent';
|
|
7
7
|
import { resolveIcon } from "./icons.js";
|
|
8
8
|
import { normalizeLabelStyle } from "./labelStyle.js";
|
|
9
|
-
import {
|
|
9
|
+
import { warnSelectionIdentifiers } from "./selectionIdentifiers.js";
|
|
10
|
+
|
|
10
11
|
// Android: Minimum height to ensure visibility.
|
|
11
12
|
// Fabric's shadow node measurement isn't being called on initial render,
|
|
12
13
|
// so we apply a minHeight that matches Material design touch target guidelines.
|
|
14
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
13
15
|
const ANDROID_MIN_HEIGHT = 48;
|
|
14
16
|
|
|
15
17
|
/** A single icon source. Alias of {@link PlatformIconSource}. */
|
|
@@ -51,7 +53,9 @@ export function SegmentedControl(props) {
|
|
|
51
53
|
activeTintColor,
|
|
52
54
|
inactiveTintColor,
|
|
53
55
|
labelStyle,
|
|
56
|
+
maxFontSizeMultiplier,
|
|
54
57
|
badgeStyle,
|
|
58
|
+
haptics,
|
|
55
59
|
onSelect,
|
|
56
60
|
onDeselect,
|
|
57
61
|
ios,
|
|
@@ -61,12 +65,14 @@ export function SegmentedControl(props) {
|
|
|
61
65
|
|
|
62
66
|
// Normalize segments for native
|
|
63
67
|
const nativeSegments = useMemo(() => {
|
|
68
|
+
warnSelectionIdentifiers('SegmentedControl', segments.map(segment => segment.value));
|
|
64
69
|
return segments.map(seg => ({
|
|
65
70
|
label: seg.label,
|
|
66
71
|
value: seg.value,
|
|
67
72
|
disabled: seg.disabled ? 'disabled' : 'enabled',
|
|
68
73
|
badge: seg.badge === undefined || seg.badge === null ? '' : String(seg.badge),
|
|
69
74
|
accessibilityLabel: seg.accessibilityLabel ?? '',
|
|
75
|
+
testID: seg.testID ?? '',
|
|
70
76
|
...resolveSegmentIcon(seg.icon)
|
|
71
77
|
}));
|
|
72
78
|
}, [segments]);
|
|
@@ -127,8 +133,10 @@ export function SegmentedControl(props) {
|
|
|
127
133
|
androidRippleColor: android?.rippleColor,
|
|
128
134
|
androidStrokeColor: android?.strokeColor,
|
|
129
135
|
labelStyle: nativeLabelStyle,
|
|
136
|
+
maxFontSizeMultiplier: maxFontSizeMultiplier ?? 0,
|
|
130
137
|
badgeBackgroundColor: badgeStyle?.backgroundColor,
|
|
131
138
|
badgeTextColor: badgeStyle?.color,
|
|
139
|
+
haptics: haptics ?? '',
|
|
132
140
|
onSelect: onSelect || onDeselect ? handleSelect : undefined,
|
|
133
141
|
ios: nativeIos,
|
|
134
142
|
android: nativeAndroid,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","useCallback","useMemo","Platform","StyleSheet","NativeSegmentedControl","resolveIcon","normalizeLabelStyle","jsx","_jsx","ANDROID_MIN_HEIGHT","resolveSegmentIcon","normalizeSelectedValue","selected","SegmentedControl","props","style","segments","selectedValue","disabled","labelVisibility","selectedSegmentColor","activeTintColor","inactiveTintColor","labelStyle","badgeStyle","onSelect","onDeselect","ios","android","viewProps","nativeSegments","map","
|
|
1
|
+
{"version":3,"names":["React","useCallback","useMemo","Platform","StyleSheet","NativeSegmentedControl","resolveIcon","normalizeLabelStyle","warnSelectionIdentifiers","jsx","_jsx","ANDROID_MIN_HEIGHT","resolveSegmentIcon","normalizeSelectedValue","selected","SegmentedControl","props","style","segments","selectedValue","disabled","labelVisibility","selectedSegmentColor","activeTintColor","inactiveTintColor","labelStyle","maxFontSizeMultiplier","badgeStyle","haptics","onSelect","onDeselect","ios","android","viewProps","nativeSegments","map","segment","value","seg","label","badge","undefined","String","accessibilityLabel","testID","icon","selectedData","handleSelect","e","index","nativeEvent","nativeIos","momentary","apportionsSegmentWidthsByContent","nativeSelectedSegmentColor","OS","selectedSegmentTintColor","nativeLabelStyle","nativeAndroid","selectionRequired","material","mergedStyle","styles","androidDefault","interactivity","androidRippleColor","rippleColor","androidStrokeColor","strokeColor","badgeBackgroundColor","backgroundColor","badgeTextColor","color","create","minHeight"],"sourceRoot":"../../src","sources":["SegmentedControl.tsx"],"mappings":";;AAAA;AACA,OAAOA,KAAK,IAAIC,WAAW,EAAEC,OAAO,QAAQ,OAAO;AACnD,SACEC,QAAQ,EACRC,UAAU,QAKL,cAAc;AAErB,OAAOC,sBAAsB,MAGtB,mCAAmC;AAC1C,SACEC,WAAW,QAGN,YAAS;AAChB,SAASC,mBAAmB,QAAyB,iBAAc;AAGnE,SAASC,wBAAwB,QAAQ,2BAAwB;;AAEjE;AACA;AACA;AAAA,SAAAC,GAAA,IAAAC,IAAA;AACA,MAAMC,kBAAkB,GAAG,EAAE;;AAE7B;;AAGA;AACA;AACA;AACA;;AAGA;AACA;A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