@react-native-ohos/slider 5.1.2-rc.1 → 5.1.2-rc.2

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.
Files changed (73) hide show
  1. package/CHANGELOG.md +187 -183
  2. package/COMMITTERS.md +5 -5
  3. package/LICENSE +8 -8
  4. package/OAT.xml +72 -72
  5. package/README.OpenSource +10 -10
  6. package/README.md +12 -12
  7. package/babel.config.json +3 -3
  8. package/dist/Slider.js +1 -1
  9. package/dist/components/StepNumber.js +1 -1
  10. package/dist/components/StepsIndicator.js +1 -1
  11. package/dist/components/TrackMark.js +1 -1
  12. package/dist/utils/styles.js +1 -1
  13. package/example/.eslintrc +18 -18
  14. package/example/.node-version +6 -6
  15. package/example/.prettierrc.js +7 -7
  16. package/example/.watchmanconfig +5 -5
  17. package/example/app.json +3 -3
  18. package/example/babel.config.js +9 -9
  19. package/example/contexts.ts +9 -9
  20. package/example/harmony/AppScope/app.json5 +10 -10
  21. package/example/harmony/AppScope/resources/base/element/string.json +8 -8
  22. package/example/harmony/build-profile.template.json5 +35 -35
  23. package/example/harmony/codelinter.json +32 -32
  24. package/example/harmony/entry/build-profile.json5 +21 -21
  25. package/example/harmony/entry/hvigorfile.ts +8 -8
  26. package/example/harmony/entry/oh-package.json5 +10 -10
  27. package/example/harmony/entry/src/main/cpp/CMakeLists.txt +41 -41
  28. package/example/harmony/entry/src/main/cpp/PackageProvider.cpp +16 -16
  29. package/example/harmony/entry/src/main/ets/RNPackagesFactory.ets +13 -13
  30. package/example/harmony/entry/src/main/ets/entryability/EntryAbility.ets +27 -27
  31. package/example/harmony/entry/src/main/ets/pages/Index.ets +125 -125
  32. package/example/harmony/entry/src/main/ets/pages/SurfaceDeadlockTest.ets +135 -135
  33. package/example/harmony/entry/src/main/ets/pages/TouchDisplayer.ets +43 -43
  34. package/example/harmony/entry/src/main/module.json5 +51 -51
  35. package/example/harmony/entry/src/main/resources/base/element/color.json +7 -7
  36. package/example/harmony/entry/src/main/resources/base/element/string.json +15 -15
  37. package/example/harmony/entry/src/main/resources/base/profile/main_pages.json +5 -5
  38. package/example/harmony/format.ps1 +17 -17
  39. package/example/harmony/hvigor/hvigor-config.json5 +20 -20
  40. package/example/harmony/hvigorfile.ts +8 -8
  41. package/example/harmony/oh-package.json5 +11 -11
  42. package/example/index.js +10 -10
  43. package/example/jest.config.js +11 -11
  44. package/example/metro.config.js +30 -30
  45. package/example/package.json +58 -58
  46. package/example/react-native.config.js +11 -11
  47. package/example/scripts/create-build-profile.js +45 -45
  48. package/example/src/index.tsx +22 -22
  49. package/example/tsconfig.json +19 -19
  50. package/harmony/slider/oh-package.json5 +10 -10
  51. package/harmony/slider.har +0 -0
  52. package/package.json +92 -92
  53. package/react-native.config.js +11 -11
  54. package/src/RNCSliderNativeComponent.ts +51 -51
  55. package/src/Slider.tsx +356 -356
  56. package/src/components/StepNumber.tsx +23 -23
  57. package/src/components/StepsIndicator.tsx +89 -89
  58. package/src/components/TrackMark.tsx +59 -59
  59. package/src/index.ts +9 -9
  60. package/src/utils/constants.ts +17 -17
  61. package/src/utils/styles.ts +61 -61
  62. package/tsconfig.json +23 -23
  63. package/typings/index.d.ts +214 -214
  64. package/.github/Examples/Slider-Android-Example.gif +0 -0
  65. package/.github/Examples/Slider-Web-Example.gif +0 -0
  66. package/.github/Examples/Slider-Windows-Example.gif +0 -0
  67. package/.github/Examples/Slider-iOS-Example.gif +0 -0
  68. package/.github/ISSUE_TEMPLATE/BUG_REPORT.md +0 -38
  69. package/.github/ISSUE_TEMPLATE/FEATURE_REQUEST.md +0 -14
  70. package/.github/ISSUE_TEMPLATE/QUESTION.md +0 -9
  71. package/.github/PULL_REQUEST_TEMPLATE.md +0 -11
  72. package/.github/workflows/ReactNativeSlider-CI.yml +0 -231
  73. package/harmony/slider/README.OpenSource +0 -11
@@ -1,231 +0,0 @@
1
- name: ReactNativeSlider-CI
2
-
3
- on:
4
- push:
5
- branches:
6
- - 'main'
7
- - 'release/**'
8
- pull_request:
9
- types: [opened, reopened, synchronize]
10
-
11
- jobs:
12
- install:
13
- name: Install dependencies
14
- runs-on: ubuntu-latest
15
-
16
- steps:
17
- - name: Checkout repository
18
- uses: actions/checkout@v3
19
-
20
- - name: Cache node modules
21
- id: cache-package-npm
22
- uses: actions/cache@v3.0.7
23
- env:
24
- cache-name: cached-ci-npm-deps
25
- with:
26
- path: ./package/node_modules
27
- key: ${{ hashFiles('./package/package.json') }}
28
-
29
- - name: Install required dependencies on cache miss (npm)
30
- if: steps.cache-package-npm.outputs.cache-hit != 'true'
31
- run: |
32
- npm install
33
-
34
- verify-package-sources:
35
- name: Lint the sources
36
- runs-on: ubuntu-latest
37
- needs: install
38
-
39
- steps:
40
- - name: Checkout repository
41
- uses: actions/checkout@v3
42
-
43
- - name: Pull npm dependencies
44
- uses: actions/cache@v3.0.7
45
- with:
46
- path: ./package/node_modules
47
- key: ${{ hashFiles('./package/package.json') }}
48
-
49
- - name: Run ESLint on the sources
50
- run: cd package && npx eslint src
51
-
52
- - name: Run TypeScript on the sources
53
- run: cd package && npx tsc --noEmit
54
-
55
-
56
- test:
57
- name: Run the unit tests
58
- runs-on: ubuntu-latest
59
- needs: install
60
-
61
- steps:
62
- - name: Checkout repository
63
- uses: actions/checkout@v3
64
-
65
- - name: Pull npm dependencies
66
- uses: actions/cache@v3.0.7
67
- with:
68
- path: ./package/node_modules
69
- key: ${{ hashFiles('./package/package.json') }}
70
-
71
- - name: Run unit tests
72
- run: cd package && npx jest src
73
-
74
-
75
- verify-example-sources:
76
- name: Verify example app sources
77
- runs-on: ubuntu-latest
78
-
79
- steps:
80
- - name: Checkout repository
81
- uses: actions/checkout@v3
82
-
83
- - name: Install dependencies
84
- run: npm install
85
-
86
- - name: Run ESLint on the sources
87
- run: cd example && npx eslint .
88
-
89
- - name: Run TypeScript on the sources
90
- run: cd example && npx tsc --noEmit
91
-
92
- build-android-app:
93
- name: Build example app Android
94
- runs-on: ubuntu-latest
95
- needs: [verify-example-sources]
96
-
97
- steps:
98
- - uses: actions/checkout@v3
99
-
100
- - name: Pull the npm dependencies
101
- run: npm install
102
-
103
- - uses: actions/setup-java@v3
104
- with:
105
- distribution: 'zulu'
106
- java-version: '11'
107
-
108
- - name: Build the Android OS app
109
- run: cd example/android && ./gradlew assembleDebug
110
-
111
-
112
- build-iOS-app:
113
- name: Build example app iOS
114
- runs-on: macos-latest
115
- needs: [verify-example-sources]
116
- steps:
117
- - uses: actions/checkout@v3
118
-
119
- - name: Cache node modules
120
- id: cache-npm
121
- uses: actions/cache@v3
122
- env:
123
- cache-name: cached-ios-npm-deps
124
- with:
125
- path: example/node_modules
126
- key: ${{ hashFiles('./example/package-lock.json') }}-${{ hashFiles('./package/package-lock.json') }}
127
-
128
- - name: Install required dependencies on cache miss (npm)
129
- if: steps.cache-npm.outputs.cache-hit != 'true'
130
- run: |
131
- npm install
132
-
133
- - name: Cache Pods
134
- id: cache-pods
135
- uses: actions/cache@v3
136
- env:
137
- cache-name: cached-ios-pods-deps
138
- with:
139
- path: example/ios/Pods
140
- key: ${{ hashFiles('./example/ios/Podfile.lock') }}
141
-
142
- - name: Install required dependencies on cache miss (Pods)
143
- if: steps.cache-pods.outputs.cache-hit != 'true'
144
- run: |
145
- cd example/ios && pod install
146
-
147
- - name: Reinstall Pods only if using cached ones
148
- if: steps.cache-pods.outputs.cache-hit == 'true'
149
- run: cd example/ios && pod install
150
-
151
- - name: Use the current package sources in build
152
- run: cd example && npm run refresh-package
153
-
154
- - name: Build iOS
155
- run: |
156
- device_name='iPhone 13'
157
- device=$(xcrun simctl list devices "${device_name}" available | grep "${device_name} (")
158
- re='\(([-0-9A-Fa-f]+)\)'
159
- [[ $device =~ $re ]] || exit 1
160
- xcodebuild -workspace example.xcworkspace -scheme example -destination "platform=iOS Simulator,id=${BASH_REMATCH[1]}" CODE_SIGNING_ALLOWED=NO COMPILER_INDEX_STORE_ENABLE=NO build
161
- working-directory: example/ios
162
-
163
-
164
- build-iOS-new-arch-app:
165
- name: Build example app iOS (Fabric)
166
- runs-on: macos-latest
167
- needs: [build-iOS-app]
168
- steps:
169
- - uses: actions/checkout@v3
170
-
171
- - name: Cache node modules
172
- id: cache-npm
173
- uses: actions/cache@v3
174
- env:
175
- cache-name: cached-ios-npm-deps
176
- with:
177
- path: example/node_modules
178
- key: new-arch-${{ hashFiles('./example/package-lock.json') }}-${{ hashFiles('./package/package-lock.json') }}
179
-
180
- - name: Install required dependencies on cache miss (npm)
181
- if: steps.cache-npm.outputs.cache-hit != 'true'
182
- run: |
183
- npm install
184
-
185
- - name: Cache Pods
186
- id: cache-pods
187
- uses: actions/cache@v3
188
- env:
189
- cache-name: cached-ios-pods-deps
190
- with:
191
- path: example/ios/Pods
192
- key: new-arch-${{ hashFiles('./example/ios/Podfile.lock') }}
193
-
194
- - name: Install required dependencies on cache miss (Pods)
195
- if: steps.cache-pods.outputs.cache-hit != 'true'
196
- run: |
197
- cd example/ios && RCT_NEW_ARCH_ENABLED=1 pod install
198
-
199
- - name: Reinstall Pods only if using cached ones
200
- if: steps.cache-pods.outputs.cache-hit == 'true'
201
- run: cd example/ios && RCT_NEW_ARCH_ENABLED=1 pod install
202
-
203
- - name: Use the current package sources in build
204
- run: cd example && npm run refresh-package
205
-
206
- - name: Build iOS - Fabric
207
- run: |
208
- device_name='iPhone 13'
209
- device=$(xcrun simctl list devices "${device_name}" available | grep "${device_name} (")
210
- re='\(([-0-9A-Fa-f]+)\)'
211
- [[ $device =~ $re ]] || exit 1
212
- xcodebuild -workspace example.xcworkspace -scheme example -destination "platform=iOS Simulator,id=${BASH_REMATCH[1]}" CODE_SIGNING_ALLOWED=NO COMPILER_INDEX_STORE_ENABLE=NO build
213
- working-directory: example/ios
214
-
215
-
216
- build-Windows-app:
217
- name: Build example app Windows
218
- runs-on: windows-latest
219
- needs: [verify-example-sources]
220
- steps:
221
- - name: Ensure the cross-platform Git on Windows
222
- run: git config --global core.autocrlf false
223
-
224
- - name: Checkout repository
225
- uses: actions/checkout@v3
226
-
227
- - name: Install dependencies
228
- run: npm install
229
-
230
- - name: Build the Windows OS app
231
- run: cd example; npx react-native run-windows --arch x64 --no-launch --no-deploy --logging
@@ -1,11 +0,0 @@
1
- [
2
- {
3
- "Name": "react-native-slider",
4
- "License": "MIT License",
5
- "License File":"https://github.com/callstack/react-native-slider/blob/main/LICENSE.md",
6
- "Version Number": "5.1.2-rc.1",
7
- "Owner" : ""
8
- "Upstream URL": "https://github.com/callstack/react-native-slider",
9
- "Description": "React Native component used to select a single value from a range of values."
10
- }
11
- ]