@amabeth/repeating-wheel-picker 1.0.0 → 1.2.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/LICENSE +20 -20
- package/README.md +57 -44
- package/example/index.ts +8 -0
- package/example/node_modules/@expo/cli/static/template/+html.tsx +28 -0
- package/example/node_modules/@expo/cli/static/template/+native-intent.ts +9 -0
- package/example/node_modules/@expo/cli/static/template/[...rsc]+api.ts +16 -0
- package/example/node_modules/ansi-styles/index.d.ts +345 -0
- package/example/node_modules/chalk/index.d.ts +415 -0
- package/example/node_modules/commander/typings/index.d.ts +627 -0
- package/example/node_modules/expo/Expo.podspec +108 -0
- package/example/node_modules/expo/build/Expo.d.ts +8 -0
- package/example/node_modules/expo/build/Expo.fx.d.ts +4 -0
- package/example/node_modules/expo/build/Expo.fx.web.d.ts +3 -0
- package/example/node_modules/expo/build/devtools/DevToolsPluginClient.d.ts +72 -0
- package/example/node_modules/expo/build/devtools/DevToolsPluginClientFactory.d.ts +16 -0
- package/example/node_modules/expo/build/devtools/DevToolsPluginClientImplApp.d.ts +15 -0
- package/example/node_modules/expo/build/devtools/DevToolsPluginClientImplBrowser.d.ts +14 -0
- package/example/node_modules/expo/build/devtools/MessageFramePacker.d.ts +50 -0
- package/example/node_modules/expo/build/devtools/ProtocolVersion.d.ts +7 -0
- package/example/node_modules/expo/build/devtools/WebSocketBackingStore.d.ts +10 -0
- package/example/node_modules/expo/build/devtools/WebSocketWithReconnect.d.ts +81 -0
- package/example/node_modules/expo/build/devtools/devtools.types.d.ts +42 -0
- package/example/node_modules/expo/build/devtools/getConnectionInfo.d.ts +6 -0
- package/example/node_modules/expo/build/devtools/getConnectionInfo.native.d.ts +6 -0
- package/example/node_modules/expo/build/devtools/index.d.ts +12 -0
- package/example/node_modules/expo/build/devtools/logger.d.ts +6 -0
- package/example/node_modules/expo/build/dom/base.d.ts +5 -0
- package/example/node_modules/expo/build/dom/dom-entry.d.ts +3 -0
- package/example/node_modules/expo/build/dom/dom-hooks.d.ts +8 -0
- package/example/node_modules/expo/build/dom/dom.d.ts +5 -0
- package/example/node_modules/expo/build/dom/dom.types.d.ts +34 -0
- package/example/node_modules/expo/build/dom/dom.web.d.ts +3 -0
- package/example/node_modules/expo/build/dom/global-events.d.ts +4 -0
- package/example/node_modules/expo/build/dom/injection.d.ts +9 -0
- package/example/node_modules/expo/build/dom/internal.d.ts +3 -0
- package/example/node_modules/expo/build/dom/internal.web.d.ts +2 -0
- package/example/node_modules/expo/build/dom/marshal.d.ts +4 -0
- package/example/node_modules/expo/build/dom/webview/ExpoDOMWebView.d.ts +6 -0
- package/example/node_modules/expo/build/dom/webview/RNWebView.d.ts +7 -0
- package/example/node_modules/expo/build/dom/webview/useDebugZeroHeight.d.ts +12 -0
- package/example/node_modules/expo/build/dom/webview-wrapper.d.ts +16 -0
- package/example/node_modules/expo/build/environment/DevLoadingView.d.ts +3 -0
- package/example/node_modules/expo/build/environment/DevLoadingView.web.d.ts +3 -0
- package/example/node_modules/expo/build/environment/DevLoadingViewNativeModule.d.ts +9 -0
- package/example/node_modules/expo/build/environment/DevLoadingViewNativeModule.native.d.ts +3 -0
- package/example/node_modules/expo/build/environment/ExpoGo.d.ts +31 -0
- package/example/node_modules/expo/build/environment/ExpoGo.web.d.ts +3 -0
- package/example/node_modules/expo/build/environment/getInitialSafeArea.d.ts +7 -0
- package/example/node_modules/expo/build/environment/getInitialSafeArea.native.d.ts +11 -0
- package/example/node_modules/expo/build/errors/AppEntryNotFound.d.ts +2 -0
- package/example/node_modules/expo/build/errors/ExpoErrorManager.d.ts +8 -0
- package/example/node_modules/expo/build/errors/ExpoErrorManager.native.d.ts +4 -0
- package/example/node_modules/expo/build/hooks/useEvent.d.ts +59 -0
- package/example/node_modules/expo/build/launch/registerRootComponent.d.ts +30 -0
- package/example/node_modules/expo/build/launch/withDevTools.d.ts +3 -0
- package/example/node_modules/expo/build/launch/withDevTools.ios.d.ts +7 -0
- package/example/node_modules/expo/build/launch/withDevTools.web.d.ts +3 -0
- package/example/node_modules/expo/build/timer/polyfillNextTick.d.ts +6 -0
- package/example/node_modules/expo/build/utils/blobUtils.d.ts +9 -0
- package/example/node_modules/expo/build/utils/getBundleUrl.d.ts +2 -0
- package/example/node_modules/expo/build/utils/getBundleUrl.native.d.ts +2 -0
- package/example/node_modules/expo/build/utils/getBundleUrl.web.d.ts +2 -0
- package/example/node_modules/expo/build/winter/FormData.d.ts +49 -0
- package/example/node_modules/expo/build/winter/ImportMetaRegistry.d.ts +9 -0
- package/example/node_modules/expo/build/winter/TextDecoder.d.ts +20 -0
- package/example/node_modules/expo/build/winter/fetch/ExpoFetchModule.d.ts +2 -0
- package/example/node_modules/expo/build/winter/fetch/ExpoFetchModule.web.d.ts +10 -0
- package/example/node_modules/expo/build/winter/fetch/FetchErrors.d.ts +8 -0
- package/example/node_modules/expo/build/winter/fetch/FetchResponse.d.ts +31 -0
- package/example/node_modules/expo/build/winter/fetch/NativeRequest.d.ts +30 -0
- package/example/node_modules/expo/build/winter/fetch/RequestUtils.d.ts +21 -0
- package/example/node_modules/expo/build/winter/fetch/convertFormData.d.ts +19 -0
- package/example/node_modules/expo/build/winter/fetch/fetch.d.ts +4 -0
- package/example/node_modules/expo/build/winter/fetch/fetch.types.d.ts +16 -0
- package/example/node_modules/expo/build/winter/fetch/fetch.web.d.ts +2 -0
- package/example/node_modules/expo/build/winter/fetch/index.d.ts +3 -0
- package/example/node_modules/expo/build/winter/index.d.ts +2 -0
- package/example/node_modules/expo/build/winter/runtime.d.ts +2 -0
- package/example/node_modules/expo/build/winter/runtime.native.d.ts +2 -0
- package/example/node_modules/expo/build/winter/url.d.ts +23 -0
- package/example/node_modules/expo/config-plugins.d.ts +1 -0
- package/example/node_modules/expo/config.d.ts +1 -0
- package/example/node_modules/expo/devtools.d.ts +1 -0
- package/example/node_modules/expo/dom/global.d.ts +1 -0
- package/example/node_modules/expo/dom/index.d.ts +1 -0
- package/example/node_modules/expo/dom/internal.d.ts +1 -0
- package/example/node_modules/expo/fetch.d.ts +1 -0
- package/example/node_modules/expo/fingerprint.d.ts +1 -0
- package/example/node_modules/expo/metro-config.d.ts +1 -0
- package/example/node_modules/expo/react-native.config.js +50 -0
- package/example/node_modules/expo/src/Expo.fx.tsx +53 -0
- package/example/node_modules/expo/src/Expo.fx.web.tsx +21 -0
- package/example/node_modules/expo/src/Expo.ts +30 -0
- package/example/node_modules/expo/src/devtools/DevToolsPluginClient.ts +240 -0
- package/example/node_modules/expo/src/devtools/DevToolsPluginClientFactory.ts +73 -0
- package/example/node_modules/expo/src/devtools/DevToolsPluginClientImplApp.ts +56 -0
- package/example/node_modules/expo/src/devtools/DevToolsPluginClientImplBrowser.ts +38 -0
- package/example/node_modules/expo/src/devtools/MessageFramePacker.ts +235 -0
- package/example/node_modules/expo/src/devtools/ProtocolVersion.ts +6 -0
- package/example/node_modules/expo/src/devtools/WebSocketBackingStore.ts +10 -0
- package/example/node_modules/expo/src/devtools/WebSocketWithReconnect.ts +318 -0
- package/example/node_modules/expo/src/devtools/devtools.types.ts +50 -0
- package/example/node_modules/expo/src/devtools/getConnectionInfo.native.ts +18 -0
- package/example/node_modules/expo/src/devtools/getConnectionInfo.ts +16 -0
- package/example/node_modules/expo/src/devtools/index.ts +53 -0
- package/example/node_modules/expo/src/devtools/logger.ts +29 -0
- package/example/node_modules/expo/src/dom/base.ts +62 -0
- package/example/node_modules/expo/src/dom/dom-entry.tsx +128 -0
- package/example/node_modules/expo/src/dom/dom-hooks.ts +46 -0
- package/example/node_modules/expo/src/dom/dom.ts +8 -0
- package/example/node_modules/expo/src/dom/dom.types.ts +39 -0
- package/example/node_modules/expo/src/dom/dom.web.ts +6 -0
- package/example/node_modules/expo/src/dom/global-events.ts +16 -0
- package/example/node_modules/expo/src/dom/injection.ts +42 -0
- package/example/node_modules/expo/src/dom/internal.ts +5 -0
- package/example/node_modules/expo/src/dom/internal.web.ts +1 -0
- package/example/node_modules/expo/src/dom/marshal.tsx +116 -0
- package/example/node_modules/expo/src/dom/webview/ExpoDOMWebView.ts +10 -0
- package/example/node_modules/expo/src/dom/webview/RNWebView.ts +12 -0
- package/example/node_modules/expo/src/dom/webview/useDebugZeroHeight.ts +62 -0
- package/example/node_modules/expo/src/dom/webview-wrapper.tsx +253 -0
- package/example/node_modules/expo/src/environment/DevLoadingView.tsx +123 -0
- package/example/node_modules/expo/src/environment/DevLoadingView.web.tsx +135 -0
- package/example/node_modules/expo/src/environment/DevLoadingViewNativeModule.native.ts +3 -0
- package/example/node_modules/expo/src/environment/DevLoadingViewNativeModule.ts +7 -0
- package/example/node_modules/expo/src/environment/ExpoGo.ts +53 -0
- package/example/node_modules/expo/src/environment/ExpoGo.web.ts +7 -0
- package/example/node_modules/expo/src/environment/getInitialSafeArea.native.ts +16 -0
- package/example/node_modules/expo/src/environment/getInitialSafeArea.ts +8 -0
- package/example/node_modules/expo/src/errors/AppEntryNotFound.tsx +35 -0
- package/example/node_modules/expo/src/errors/ExpoErrorManager.native.ts +51 -0
- package/example/node_modules/expo/src/errors/ExpoErrorManager.ts +11 -0
- package/example/node_modules/expo/src/hooks/useEvent.ts +112 -0
- package/example/node_modules/expo/src/launch/registerRootComponent.tsx +64 -0
- package/example/node_modules/expo/src/launch/withDevTools.ios.tsx +47 -0
- package/example/node_modules/expo/src/launch/withDevTools.tsx +30 -0
- package/example/node_modules/expo/src/launch/withDevTools.web.tsx +23 -0
- package/example/node_modules/expo/src/timer/polyfillNextTick.ts +10 -0
- package/example/node_modules/expo/src/ts-declarations/console.d.ts +47 -0
- package/example/node_modules/expo/src/ts-declarations/global.d.ts +12 -0
- package/example/node_modules/expo/src/ts-declarations/react-native.d.ts +34 -0
- package/example/node_modules/expo/src/ts-declarations/whatwg-url-without-unicode.d.ts +186 -0
- package/example/node_modules/expo/src/utils/blobUtils.ts +23 -0
- package/example/node_modules/expo/src/utils/getBundleUrl.native.ts +17 -0
- package/example/node_modules/expo/src/utils/getBundleUrl.ts +5 -0
- package/example/node_modules/expo/src/utils/getBundleUrl.web.ts +21 -0
- package/example/node_modules/expo/src/winter/FormData.ts +222 -0
- package/example/node_modules/expo/src/winter/ImportMetaRegistry.ts +14 -0
- package/example/node_modules/expo/src/winter/TextDecoder.ts +429 -0
- package/example/node_modules/expo/src/winter/fetch/ExpoFetchModule.ts +3 -0
- package/example/node_modules/expo/src/winter/fetch/ExpoFetchModule.web.ts +7 -0
- package/example/node_modules/expo/src/winter/fetch/FetchErrors.ts +11 -0
- package/example/node_modules/expo/src/winter/fetch/FetchResponse.ts +146 -0
- package/example/node_modules/expo/src/winter/fetch/NativeRequest.ts +38 -0
- package/example/node_modules/expo/src/winter/fetch/RequestUtils.ts +124 -0
- package/example/node_modules/expo/src/winter/fetch/convertFormData.ts +92 -0
- package/example/node_modules/expo/src/winter/fetch/fetch.ts +59 -0
- package/example/node_modules/expo/src/winter/fetch/fetch.types.ts +17 -0
- package/example/node_modules/expo/src/winter/fetch/fetch.web.ts +1 -0
- package/example/node_modules/expo/src/winter/fetch/index.ts +2 -0
- package/example/node_modules/expo/src/winter/index.ts +1 -0
- package/example/node_modules/expo/src/winter/runtime.native.ts +41 -0
- package/example/node_modules/expo/src/winter/runtime.ts +5 -0
- package/example/node_modules/expo/src/winter/url.ts +116 -0
- package/example/node_modules/expo/types/global.d.ts +38 -0
- package/example/node_modules/expo/types/index.d.ts +3 -0
- package/example/node_modules/expo/types/metro-require.d.ts +52 -0
- package/example/node_modules/expo/types/react-native-web.d.ts +291 -0
- package/example/node_modules/expo-modules-autolinking/build/ExpoModuleConfig.d.ts +85 -0
- package/example/node_modules/expo-modules-autolinking/build/autolinking/findModules.d.ts +5 -0
- package/example/node_modules/expo-modules-autolinking/build/autolinking/generatePackageList.d.ts +11 -0
- package/example/node_modules/expo-modules-autolinking/build/autolinking/getConfiguration.d.ts +2 -0
- package/example/node_modules/expo-modules-autolinking/build/autolinking/index.d.ts +17 -0
- package/example/node_modules/expo-modules-autolinking/build/autolinking/mergeLinkingOptions.d.ts +21 -0
- package/example/node_modules/expo-modules-autolinking/build/autolinking/resolveModules.d.ts +9 -0
- package/example/node_modules/expo-modules-autolinking/build/autolinking/utils.d.ts +6 -0
- package/example/node_modules/expo-modules-autolinking/build/autolinking/verifySearchResults.d.ts +5 -0
- package/example/node_modules/expo-modules-autolinking/build/fileUtils.d.ts +18 -0
- package/example/node_modules/expo-modules-autolinking/build/index.d.ts +1 -0
- package/example/node_modules/expo-modules-autolinking/build/platforms/android.d.ts +38 -0
- package/example/node_modules/expo-modules-autolinking/build/platforms/apple.d.ts +15 -0
- package/example/node_modules/expo-modules-autolinking/build/platforms/devtools.d.ts +3 -0
- package/example/node_modules/expo-modules-autolinking/build/reactNativeConfig/androidResolver.d.ts +20 -0
- package/example/node_modules/expo-modules-autolinking/build/reactNativeConfig/config.d.ts +5 -0
- package/example/node_modules/expo-modules-autolinking/build/reactNativeConfig/index.d.ts +2 -0
- package/example/node_modules/expo-modules-autolinking/build/reactNativeConfig/iosResolver.d.ts +2 -0
- package/example/node_modules/expo-modules-autolinking/build/reactNativeConfig/reactNativeConfig.d.ts +13 -0
- package/example/node_modules/expo-modules-autolinking/build/reactNativeConfig/reactNativeConfig.types.d.ts +95 -0
- package/example/node_modules/expo-modules-autolinking/build/types.d.ts +319 -0
- package/example/node_modules/expo-modules-autolinking/e2e/TestUtils.ts +53 -0
- package/example/node_modules/expo-modules-autolinking/exports.d.ts +1 -0
- package/example/node_modules/expo-modules-autolinking/src/ExpoModuleConfig.ts +181 -0
- package/example/node_modules/expo-modules-autolinking/src/autolinking/findModules.ts +259 -0
- package/example/node_modules/expo-modules-autolinking/src/autolinking/generatePackageList.ts +46 -0
- package/example/node_modules/expo-modules-autolinking/src/autolinking/getConfiguration.ts +7 -0
- package/example/node_modules/expo-modules-autolinking/src/autolinking/index.ts +45 -0
- package/example/node_modules/expo-modules-autolinking/src/autolinking/mergeLinkingOptions.ts +127 -0
- package/example/node_modules/expo-modules-autolinking/src/autolinking/resolveModules.ts +46 -0
- package/example/node_modules/expo-modules-autolinking/src/autolinking/utils.ts +37 -0
- package/example/node_modules/expo-modules-autolinking/src/autolinking/verifySearchResults.ts +33 -0
- package/example/node_modules/expo-modules-autolinking/src/fileUtils.ts +64 -0
- package/example/node_modules/expo-modules-autolinking/src/index.ts +262 -0
- package/example/node_modules/expo-modules-autolinking/src/platforms/android.ts +303 -0
- package/example/node_modules/expo-modules-autolinking/src/platforms/apple.ts +292 -0
- package/example/node_modules/expo-modules-autolinking/src/platforms/devtools.ts +25 -0
- package/example/node_modules/expo-modules-autolinking/src/reactNativeConfig/androidResolver.ts +264 -0
- package/example/node_modules/expo-modules-autolinking/src/reactNativeConfig/config.ts +67 -0
- package/example/node_modules/expo-modules-autolinking/src/reactNativeConfig/index.ts +2 -0
- package/example/node_modules/expo-modules-autolinking/src/reactNativeConfig/iosResolver.ts +37 -0
- package/example/node_modules/expo-modules-autolinking/src/reactNativeConfig/reactNativeConfig.ts +245 -0
- package/example/node_modules/expo-modules-autolinking/src/reactNativeConfig/reactNativeConfig.types.ts +107 -0
- package/example/node_modules/expo-modules-autolinking/src/types.ts +384 -0
- package/example/node_modules/find-up/index.d.ts +138 -0
- package/example/node_modules/glob/dist/commonjs/glob.d.ts +388 -0
- package/example/node_modules/glob/dist/commonjs/has-magic.d.ts +14 -0
- package/example/node_modules/glob/dist/commonjs/ignore.d.ts +24 -0
- package/example/node_modules/glob/dist/commonjs/index.d.ts +97 -0
- package/example/node_modules/glob/dist/commonjs/pattern.d.ts +76 -0
- package/example/node_modules/glob/dist/commonjs/processor.d.ts +59 -0
- package/example/node_modules/glob/dist/commonjs/walker.d.ts +97 -0
- package/example/node_modules/glob/dist/esm/glob.d.ts +388 -0
- package/example/node_modules/glob/dist/esm/has-magic.d.ts +14 -0
- package/example/node_modules/glob/dist/esm/ignore.d.ts +24 -0
- package/example/node_modules/glob/dist/esm/index.d.ts +97 -0
- package/example/node_modules/glob/dist/esm/pattern.d.ts +76 -0
- package/example/node_modules/glob/dist/esm/processor.d.ts +59 -0
- package/example/node_modules/glob/dist/esm/walker.d.ts +97 -0
- package/example/node_modules/locate-path/index.d.ts +83 -0
- package/example/node_modules/log-symbols/node_modules/chalk/types/index.d.ts +97 -0
- package/example/node_modules/minimatch/dist/commonjs/assert-valid-pattern.d.ts +2 -0
- package/example/node_modules/minimatch/dist/commonjs/ast.d.ts +20 -0
- package/example/node_modules/minimatch/dist/commonjs/brace-expressions.d.ts +8 -0
- package/example/node_modules/minimatch/dist/commonjs/escape.d.ts +12 -0
- package/example/node_modules/minimatch/dist/commonjs/index.d.ts +94 -0
- package/example/node_modules/minimatch/dist/commonjs/unescape.d.ts +17 -0
- package/example/node_modules/minimatch/dist/esm/assert-valid-pattern.d.ts +2 -0
- package/example/node_modules/minimatch/dist/esm/ast.d.ts +20 -0
- package/example/node_modules/minimatch/dist/esm/brace-expressions.d.ts +8 -0
- package/example/node_modules/minimatch/dist/esm/escape.d.ts +12 -0
- package/example/node_modules/minimatch/dist/esm/index.d.ts +94 -0
- package/example/node_modules/minimatch/dist/esm/unescape.d.ts +17 -0
- package/example/node_modules/ora/index.d.ts +257 -0
- package/example/node_modules/ora/node_modules/chalk/types/index.d.ts +97 -0
- package/example/node_modules/ora/node_modules/strip-ansi/index.d.ts +15 -0
- package/example/node_modules/p-locate/index.d.ts +53 -0
- package/example/node_modules/path-exists/index.d.ts +28 -0
- package/example/package.json +29 -0
- package/example/src/constants/styles.ts +43 -0
- package/example/src/hooks/useComponentHeight.ts +13 -0
- package/example/src/scenes/app.tsx +33 -0
- package/example/src/scenes/booleanPicker.tsx +60 -0
- package/example/src/scenes/customTypePicker.tsx +83 -0
- package/example/src/scenes/numberPicker.tsx +75 -0
- package/example/src/scenes/stringPicker.tsx +64 -0
- package/lib/module/index.js +6 -6
- package/lib/module/index.js.map +1 -1
- package/package.json +168 -177
- package/src/index.tsx +0 -507
package/LICENSE
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
MIT License
|
|
2
|
-
|
|
3
|
-
Copyright (c) 2025 amabeth
|
|
4
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
5
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
6
|
-
in the Software without restriction, including without limitation the rights
|
|
7
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
8
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
9
|
-
furnished to do so, subject to the following conditions:
|
|
10
|
-
|
|
11
|
-
The above copyright notice and this permission notice shall be included in all
|
|
12
|
-
copies or substantial portions of the Software.
|
|
13
|
-
|
|
14
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
15
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
16
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
17
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
18
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
19
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
20
|
-
SOFTWARE.
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2025 amabeth
|
|
4
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
5
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
6
|
+
in the Software without restriction, including without limitation the rights
|
|
7
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
8
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
9
|
+
furnished to do so, subject to the following conditions:
|
|
10
|
+
|
|
11
|
+
The above copyright notice and this permission notice shall be included in all
|
|
12
|
+
copies or substantial portions of the Software.
|
|
13
|
+
|
|
14
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
15
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
16
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
17
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
18
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
19
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
20
|
+
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -1,44 +1,57 @@
|
|
|
1
|
-
# Readme
|
|
2
|
-
|
|
3
|
-
A React Native wheel picker that allows endless scrolling through repeating content
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
```
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
[
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
1
|
+
# Readme
|
|
2
|
+
|
|
3
|
+
A React Native wheel picker that allows endless scrolling through repeating content.
|
|
4
|
+
Supports custom types for picker data.
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
## Installation
|
|
8
|
+
|
|
9
|
+
```sh
|
|
10
|
+
npm install @amabeth/repeating-wheel-picker
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
## Usage
|
|
15
|
+
|
|
16
|
+
```tsx
|
|
17
|
+
import RepeatingWheelPicker, {
|
|
18
|
+
type RepeatingWheelPickerProps,
|
|
19
|
+
} from "@amabeth/repeating-wheel-picker";
|
|
20
|
+
|
|
21
|
+
// ...
|
|
22
|
+
const [, setSelected] = useState<string>();
|
|
23
|
+
|
|
24
|
+
return (
|
|
25
|
+
<RepeatingWheelPicker<string>
|
|
26
|
+
setSelected={setSelected}
|
|
27
|
+
initialIndex={0}
|
|
28
|
+
data={["first", "second", "third"]}
|
|
29
|
+
/>
|
|
30
|
+
);
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
## Example
|
|
35
|
+
|
|
36
|
+
 
|
|
37
|
+
|
|
38
|
+
 
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
## Contributing
|
|
42
|
+
|
|
43
|
+
Contributions are currently not intended.
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
## License
|
|
47
|
+
|
|
48
|
+
[MIT](LICENSE)
|
|
49
|
+
|
|
50
|
+
|
|
51
|
+
## [Changelog](CHANGELOG.md)
|
|
52
|
+
|
|
53
|
+
|
|
54
|
+
## [Impressum / Imprint](https://amabeth.github.io/#imprint)
|
|
55
|
+
|
|
56
|
+
|
|
57
|
+
---
|
package/example/index.ts
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { registerRootComponent } from "expo";
|
|
2
|
+
|
|
3
|
+
import App from "./src/scenes/app";
|
|
4
|
+
|
|
5
|
+
// registerRootComponent calls AppRegistry.registerComponent("main", () => App);
|
|
6
|
+
// It also ensures that whether you load the app in Expo Go or in a native build,
|
|
7
|
+
// the environment is set up appropriately
|
|
8
|
+
registerRootComponent(App);
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
// Learn more https://docs.expo.dev/router/reference/static-rendering/#root-html
|
|
2
|
+
|
|
3
|
+
import { ScrollViewStyleReset } from 'expo-router/html';
|
|
4
|
+
|
|
5
|
+
// This file is web-only and used to configure the root HTML for every
|
|
6
|
+
// web page during static rendering.
|
|
7
|
+
// The contents of this function only run in Node.js environments and
|
|
8
|
+
// do not have access to the DOM or browser APIs.
|
|
9
|
+
export default function Root({ children }: { children: React.ReactNode }) {
|
|
10
|
+
return (
|
|
11
|
+
<html lang="en">
|
|
12
|
+
<head>
|
|
13
|
+
<meta charSet="utf-8" />
|
|
14
|
+
<meta httpEquiv="X-UA-Compatible" content="IE=edge" />
|
|
15
|
+
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no" />
|
|
16
|
+
|
|
17
|
+
{/*
|
|
18
|
+
Disable body scrolling on web. This makes ScrollView components work closer to how they do on native.
|
|
19
|
+
However, body scrolling is often nice to have for mobile web. If you want to enable it, remove this line.
|
|
20
|
+
*/}
|
|
21
|
+
<ScrollViewStyleReset />
|
|
22
|
+
|
|
23
|
+
{/* Add any additional <head> elements that you want globally available on web... */}
|
|
24
|
+
</head>
|
|
25
|
+
<body>{children}</body>
|
|
26
|
+
</html>
|
|
27
|
+
);
|
|
28
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
// Learn more https://docs.expo.dev/router/advanced/native-intent/
|
|
2
|
+
|
|
3
|
+
export async function redirectSystemPath(intent: {
|
|
4
|
+
path: string;
|
|
5
|
+
initial: boolean;
|
|
6
|
+
}): Promise<string> {
|
|
7
|
+
// Manipulate the path before returning to redirect on native.
|
|
8
|
+
return intent.path;
|
|
9
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { getRscMiddleware } from '@expo/server/build/middleware/rsc';
|
|
2
|
+
import { renderRscAsync } from 'expo-router/build/rsc/middleware';
|
|
3
|
+
|
|
4
|
+
import { resolve } from 'node:path';
|
|
5
|
+
|
|
6
|
+
// Target the `dist/server` directory.
|
|
7
|
+
const distFolder = resolve('./');
|
|
8
|
+
|
|
9
|
+
const rscMiddleware = getRscMiddleware({
|
|
10
|
+
config: {},
|
|
11
|
+
baseUrl: '',
|
|
12
|
+
rscPath: '/_flight/',
|
|
13
|
+
renderRsc: renderRscAsync.bind(null, distFolder),
|
|
14
|
+
});
|
|
15
|
+
|
|
16
|
+
module.exports = rscMiddleware;
|
|
@@ -0,0 +1,345 @@
|
|
|
1
|
+
declare type CSSColor =
|
|
2
|
+
| 'aliceblue'
|
|
3
|
+
| 'antiquewhite'
|
|
4
|
+
| 'aqua'
|
|
5
|
+
| 'aquamarine'
|
|
6
|
+
| 'azure'
|
|
7
|
+
| 'beige'
|
|
8
|
+
| 'bisque'
|
|
9
|
+
| 'black'
|
|
10
|
+
| 'blanchedalmond'
|
|
11
|
+
| 'blue'
|
|
12
|
+
| 'blueviolet'
|
|
13
|
+
| 'brown'
|
|
14
|
+
| 'burlywood'
|
|
15
|
+
| 'cadetblue'
|
|
16
|
+
| 'chartreuse'
|
|
17
|
+
| 'chocolate'
|
|
18
|
+
| 'coral'
|
|
19
|
+
| 'cornflowerblue'
|
|
20
|
+
| 'cornsilk'
|
|
21
|
+
| 'crimson'
|
|
22
|
+
| 'cyan'
|
|
23
|
+
| 'darkblue'
|
|
24
|
+
| 'darkcyan'
|
|
25
|
+
| 'darkgoldenrod'
|
|
26
|
+
| 'darkgray'
|
|
27
|
+
| 'darkgreen'
|
|
28
|
+
| 'darkgrey'
|
|
29
|
+
| 'darkkhaki'
|
|
30
|
+
| 'darkmagenta'
|
|
31
|
+
| 'darkolivegreen'
|
|
32
|
+
| 'darkorange'
|
|
33
|
+
| 'darkorchid'
|
|
34
|
+
| 'darkred'
|
|
35
|
+
| 'darksalmon'
|
|
36
|
+
| 'darkseagreen'
|
|
37
|
+
| 'darkslateblue'
|
|
38
|
+
| 'darkslategray'
|
|
39
|
+
| 'darkslategrey'
|
|
40
|
+
| 'darkturquoise'
|
|
41
|
+
| 'darkviolet'
|
|
42
|
+
| 'deeppink'
|
|
43
|
+
| 'deepskyblue'
|
|
44
|
+
| 'dimgray'
|
|
45
|
+
| 'dimgrey'
|
|
46
|
+
| 'dodgerblue'
|
|
47
|
+
| 'firebrick'
|
|
48
|
+
| 'floralwhite'
|
|
49
|
+
| 'forestgreen'
|
|
50
|
+
| 'fuchsia'
|
|
51
|
+
| 'gainsboro'
|
|
52
|
+
| 'ghostwhite'
|
|
53
|
+
| 'gold'
|
|
54
|
+
| 'goldenrod'
|
|
55
|
+
| 'gray'
|
|
56
|
+
| 'green'
|
|
57
|
+
| 'greenyellow'
|
|
58
|
+
| 'grey'
|
|
59
|
+
| 'honeydew'
|
|
60
|
+
| 'hotpink'
|
|
61
|
+
| 'indianred'
|
|
62
|
+
| 'indigo'
|
|
63
|
+
| 'ivory'
|
|
64
|
+
| 'khaki'
|
|
65
|
+
| 'lavender'
|
|
66
|
+
| 'lavenderblush'
|
|
67
|
+
| 'lawngreen'
|
|
68
|
+
| 'lemonchiffon'
|
|
69
|
+
| 'lightblue'
|
|
70
|
+
| 'lightcoral'
|
|
71
|
+
| 'lightcyan'
|
|
72
|
+
| 'lightgoldenrodyellow'
|
|
73
|
+
| 'lightgray'
|
|
74
|
+
| 'lightgreen'
|
|
75
|
+
| 'lightgrey'
|
|
76
|
+
| 'lightpink'
|
|
77
|
+
| 'lightsalmon'
|
|
78
|
+
| 'lightseagreen'
|
|
79
|
+
| 'lightskyblue'
|
|
80
|
+
| 'lightslategray'
|
|
81
|
+
| 'lightslategrey'
|
|
82
|
+
| 'lightsteelblue'
|
|
83
|
+
| 'lightyellow'
|
|
84
|
+
| 'lime'
|
|
85
|
+
| 'limegreen'
|
|
86
|
+
| 'linen'
|
|
87
|
+
| 'magenta'
|
|
88
|
+
| 'maroon'
|
|
89
|
+
| 'mediumaquamarine'
|
|
90
|
+
| 'mediumblue'
|
|
91
|
+
| 'mediumorchid'
|
|
92
|
+
| 'mediumpurple'
|
|
93
|
+
| 'mediumseagreen'
|
|
94
|
+
| 'mediumslateblue'
|
|
95
|
+
| 'mediumspringgreen'
|
|
96
|
+
| 'mediumturquoise'
|
|
97
|
+
| 'mediumvioletred'
|
|
98
|
+
| 'midnightblue'
|
|
99
|
+
| 'mintcream'
|
|
100
|
+
| 'mistyrose'
|
|
101
|
+
| 'moccasin'
|
|
102
|
+
| 'navajowhite'
|
|
103
|
+
| 'navy'
|
|
104
|
+
| 'oldlace'
|
|
105
|
+
| 'olive'
|
|
106
|
+
| 'olivedrab'
|
|
107
|
+
| 'orange'
|
|
108
|
+
| 'orangered'
|
|
109
|
+
| 'orchid'
|
|
110
|
+
| 'palegoldenrod'
|
|
111
|
+
| 'palegreen'
|
|
112
|
+
| 'paleturquoise'
|
|
113
|
+
| 'palevioletred'
|
|
114
|
+
| 'papayawhip'
|
|
115
|
+
| 'peachpuff'
|
|
116
|
+
| 'peru'
|
|
117
|
+
| 'pink'
|
|
118
|
+
| 'plum'
|
|
119
|
+
| 'powderblue'
|
|
120
|
+
| 'purple'
|
|
121
|
+
| 'rebeccapurple'
|
|
122
|
+
| 'red'
|
|
123
|
+
| 'rosybrown'
|
|
124
|
+
| 'royalblue'
|
|
125
|
+
| 'saddlebrown'
|
|
126
|
+
| 'salmon'
|
|
127
|
+
| 'sandybrown'
|
|
128
|
+
| 'seagreen'
|
|
129
|
+
| 'seashell'
|
|
130
|
+
| 'sienna'
|
|
131
|
+
| 'silver'
|
|
132
|
+
| 'skyblue'
|
|
133
|
+
| 'slateblue'
|
|
134
|
+
| 'slategray'
|
|
135
|
+
| 'slategrey'
|
|
136
|
+
| 'snow'
|
|
137
|
+
| 'springgreen'
|
|
138
|
+
| 'steelblue'
|
|
139
|
+
| 'tan'
|
|
140
|
+
| 'teal'
|
|
141
|
+
| 'thistle'
|
|
142
|
+
| 'tomato'
|
|
143
|
+
| 'turquoise'
|
|
144
|
+
| 'violet'
|
|
145
|
+
| 'wheat'
|
|
146
|
+
| 'white'
|
|
147
|
+
| 'whitesmoke'
|
|
148
|
+
| 'yellow'
|
|
149
|
+
| 'yellowgreen';
|
|
150
|
+
|
|
151
|
+
declare namespace ansiStyles {
|
|
152
|
+
interface ColorConvert {
|
|
153
|
+
/**
|
|
154
|
+
The RGB color space.
|
|
155
|
+
|
|
156
|
+
@param red - (`0`-`255`)
|
|
157
|
+
@param green - (`0`-`255`)
|
|
158
|
+
@param blue - (`0`-`255`)
|
|
159
|
+
*/
|
|
160
|
+
rgb(red: number, green: number, blue: number): string;
|
|
161
|
+
|
|
162
|
+
/**
|
|
163
|
+
The RGB HEX color space.
|
|
164
|
+
|
|
165
|
+
@param hex - A hexadecimal string containing RGB data.
|
|
166
|
+
*/
|
|
167
|
+
hex(hex: string): string;
|
|
168
|
+
|
|
169
|
+
/**
|
|
170
|
+
@param keyword - A CSS color name.
|
|
171
|
+
*/
|
|
172
|
+
keyword(keyword: CSSColor): string;
|
|
173
|
+
|
|
174
|
+
/**
|
|
175
|
+
The HSL color space.
|
|
176
|
+
|
|
177
|
+
@param hue - (`0`-`360`)
|
|
178
|
+
@param saturation - (`0`-`100`)
|
|
179
|
+
@param lightness - (`0`-`100`)
|
|
180
|
+
*/
|
|
181
|
+
hsl(hue: number, saturation: number, lightness: number): string;
|
|
182
|
+
|
|
183
|
+
/**
|
|
184
|
+
The HSV color space.
|
|
185
|
+
|
|
186
|
+
@param hue - (`0`-`360`)
|
|
187
|
+
@param saturation - (`0`-`100`)
|
|
188
|
+
@param value - (`0`-`100`)
|
|
189
|
+
*/
|
|
190
|
+
hsv(hue: number, saturation: number, value: number): string;
|
|
191
|
+
|
|
192
|
+
/**
|
|
193
|
+
The HSV color space.
|
|
194
|
+
|
|
195
|
+
@param hue - (`0`-`360`)
|
|
196
|
+
@param whiteness - (`0`-`100`)
|
|
197
|
+
@param blackness - (`0`-`100`)
|
|
198
|
+
*/
|
|
199
|
+
hwb(hue: number, whiteness: number, blackness: number): string;
|
|
200
|
+
|
|
201
|
+
/**
|
|
202
|
+
Use a [4-bit unsigned number](https://en.wikipedia.org/wiki/ANSI_escape_code#3/4-bit) to set text color.
|
|
203
|
+
*/
|
|
204
|
+
ansi(ansi: number): string;
|
|
205
|
+
|
|
206
|
+
/**
|
|
207
|
+
Use an [8-bit unsigned number](https://en.wikipedia.org/wiki/ANSI_escape_code#8-bit) to set text color.
|
|
208
|
+
*/
|
|
209
|
+
ansi256(ansi: number): string;
|
|
210
|
+
}
|
|
211
|
+
|
|
212
|
+
interface CSPair {
|
|
213
|
+
/**
|
|
214
|
+
The ANSI terminal control sequence for starting this style.
|
|
215
|
+
*/
|
|
216
|
+
readonly open: string;
|
|
217
|
+
|
|
218
|
+
/**
|
|
219
|
+
The ANSI terminal control sequence for ending this style.
|
|
220
|
+
*/
|
|
221
|
+
readonly close: string;
|
|
222
|
+
}
|
|
223
|
+
|
|
224
|
+
interface ColorBase {
|
|
225
|
+
readonly ansi: ColorConvert;
|
|
226
|
+
readonly ansi256: ColorConvert;
|
|
227
|
+
readonly ansi16m: ColorConvert;
|
|
228
|
+
|
|
229
|
+
/**
|
|
230
|
+
The ANSI terminal control sequence for ending this color.
|
|
231
|
+
*/
|
|
232
|
+
readonly close: string;
|
|
233
|
+
}
|
|
234
|
+
|
|
235
|
+
interface Modifier {
|
|
236
|
+
/**
|
|
237
|
+
Resets the current color chain.
|
|
238
|
+
*/
|
|
239
|
+
readonly reset: CSPair;
|
|
240
|
+
|
|
241
|
+
/**
|
|
242
|
+
Make text bold.
|
|
243
|
+
*/
|
|
244
|
+
readonly bold: CSPair;
|
|
245
|
+
|
|
246
|
+
/**
|
|
247
|
+
Emitting only a small amount of light.
|
|
248
|
+
*/
|
|
249
|
+
readonly dim: CSPair;
|
|
250
|
+
|
|
251
|
+
/**
|
|
252
|
+
Make text italic. (Not widely supported)
|
|
253
|
+
*/
|
|
254
|
+
readonly italic: CSPair;
|
|
255
|
+
|
|
256
|
+
/**
|
|
257
|
+
Make text underline. (Not widely supported)
|
|
258
|
+
*/
|
|
259
|
+
readonly underline: CSPair;
|
|
260
|
+
|
|
261
|
+
/**
|
|
262
|
+
Inverse background and foreground colors.
|
|
263
|
+
*/
|
|
264
|
+
readonly inverse: CSPair;
|
|
265
|
+
|
|
266
|
+
/**
|
|
267
|
+
Prints the text, but makes it invisible.
|
|
268
|
+
*/
|
|
269
|
+
readonly hidden: CSPair;
|
|
270
|
+
|
|
271
|
+
/**
|
|
272
|
+
Puts a horizontal line through the center of the text. (Not widely supported)
|
|
273
|
+
*/
|
|
274
|
+
readonly strikethrough: CSPair;
|
|
275
|
+
}
|
|
276
|
+
|
|
277
|
+
interface ForegroundColor {
|
|
278
|
+
readonly black: CSPair;
|
|
279
|
+
readonly red: CSPair;
|
|
280
|
+
readonly green: CSPair;
|
|
281
|
+
readonly yellow: CSPair;
|
|
282
|
+
readonly blue: CSPair;
|
|
283
|
+
readonly cyan: CSPair;
|
|
284
|
+
readonly magenta: CSPair;
|
|
285
|
+
readonly white: CSPair;
|
|
286
|
+
|
|
287
|
+
/**
|
|
288
|
+
Alias for `blackBright`.
|
|
289
|
+
*/
|
|
290
|
+
readonly gray: CSPair;
|
|
291
|
+
|
|
292
|
+
/**
|
|
293
|
+
Alias for `blackBright`.
|
|
294
|
+
*/
|
|
295
|
+
readonly grey: CSPair;
|
|
296
|
+
|
|
297
|
+
readonly blackBright: CSPair;
|
|
298
|
+
readonly redBright: CSPair;
|
|
299
|
+
readonly greenBright: CSPair;
|
|
300
|
+
readonly yellowBright: CSPair;
|
|
301
|
+
readonly blueBright: CSPair;
|
|
302
|
+
readonly cyanBright: CSPair;
|
|
303
|
+
readonly magentaBright: CSPair;
|
|
304
|
+
readonly whiteBright: CSPair;
|
|
305
|
+
}
|
|
306
|
+
|
|
307
|
+
interface BackgroundColor {
|
|
308
|
+
readonly bgBlack: CSPair;
|
|
309
|
+
readonly bgRed: CSPair;
|
|
310
|
+
readonly bgGreen: CSPair;
|
|
311
|
+
readonly bgYellow: CSPair;
|
|
312
|
+
readonly bgBlue: CSPair;
|
|
313
|
+
readonly bgCyan: CSPair;
|
|
314
|
+
readonly bgMagenta: CSPair;
|
|
315
|
+
readonly bgWhite: CSPair;
|
|
316
|
+
|
|
317
|
+
/**
|
|
318
|
+
Alias for `bgBlackBright`.
|
|
319
|
+
*/
|
|
320
|
+
readonly bgGray: CSPair;
|
|
321
|
+
|
|
322
|
+
/**
|
|
323
|
+
Alias for `bgBlackBright`.
|
|
324
|
+
*/
|
|
325
|
+
readonly bgGrey: CSPair;
|
|
326
|
+
|
|
327
|
+
readonly bgBlackBright: CSPair;
|
|
328
|
+
readonly bgRedBright: CSPair;
|
|
329
|
+
readonly bgGreenBright: CSPair;
|
|
330
|
+
readonly bgYellowBright: CSPair;
|
|
331
|
+
readonly bgBlueBright: CSPair;
|
|
332
|
+
readonly bgCyanBright: CSPair;
|
|
333
|
+
readonly bgMagentaBright: CSPair;
|
|
334
|
+
readonly bgWhiteBright: CSPair;
|
|
335
|
+
}
|
|
336
|
+
}
|
|
337
|
+
|
|
338
|
+
declare const ansiStyles: {
|
|
339
|
+
readonly modifier: ansiStyles.Modifier;
|
|
340
|
+
readonly color: ansiStyles.ForegroundColor & ansiStyles.ColorBase;
|
|
341
|
+
readonly bgColor: ansiStyles.BackgroundColor & ansiStyles.ColorBase;
|
|
342
|
+
readonly codes: ReadonlyMap<number, number>;
|
|
343
|
+
} & ansiStyles.BackgroundColor & ansiStyles.ForegroundColor & ansiStyles.Modifier;
|
|
344
|
+
|
|
345
|
+
export = ansiStyles;
|