@mpxjs/webpack-plugin 2.9.70 → 2.9.72-beta.1

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 (68) hide show
  1. package/lib/config.js +3 -1
  2. package/lib/platform/template/wx/component-config/movable-view.js +8 -1
  3. package/lib/platform/template/wx/component-config/picker-view.js +1 -5
  4. package/lib/platform/template/wx/component-config/scroll-view.js +1 -1
  5. package/lib/platform/template/wx/index.js +3 -5
  6. package/lib/react/processScript.js +2 -1
  7. package/lib/react/script-helper.js +5 -1
  8. package/lib/runtime/components/react/context.ts +8 -0
  9. package/lib/runtime/components/react/dist/context.js +2 -0
  10. package/lib/runtime/components/react/dist/getInnerListeners.js +34 -31
  11. package/lib/runtime/components/react/dist/mpx-button.jsx +16 -44
  12. package/lib/runtime/components/react/dist/mpx-movable-view.jsx +93 -58
  13. package/lib/runtime/components/react/dist/mpx-navigator.jsx +1 -1
  14. package/lib/runtime/components/react/dist/mpx-picker-view-column-item.jsx +35 -0
  15. package/lib/runtime/components/react/dist/mpx-picker-view-column.jsx +151 -127
  16. package/lib/runtime/components/react/dist/mpx-picker-view.jsx +38 -34
  17. package/lib/runtime/components/react/dist/mpx-rich-text/index.jsx +10 -11
  18. package/lib/runtime/components/react/dist/mpx-scroll-view.jsx +11 -4
  19. package/lib/runtime/components/react/dist/mpx-swiper-item.jsx +31 -8
  20. package/lib/runtime/components/react/dist/mpx-swiper.jsx +670 -0
  21. package/lib/runtime/components/react/dist/mpx-view.jsx +15 -53
  22. package/lib/runtime/components/react/dist/pickerFaces.js +7 -6
  23. package/lib/runtime/components/react/dist/pickerVIewContext.js +14 -0
  24. package/lib/runtime/components/react/dist/pickerViewIndicator.jsx +23 -0
  25. package/lib/runtime/components/react/dist/pickerViewMask.jsx +18 -0
  26. package/lib/runtime/components/react/dist/useAnimationHooks.js +20 -2
  27. package/lib/runtime/components/react/dist/utils.jsx +74 -11
  28. package/lib/runtime/components/react/getInnerListeners.ts +43 -32
  29. package/lib/runtime/components/react/mpx-button.tsx +20 -57
  30. package/lib/runtime/components/react/mpx-movable-view.tsx +119 -74
  31. package/lib/runtime/components/react/mpx-navigator.tsx +1 -1
  32. package/lib/runtime/components/react/mpx-picker-view-column-item.tsx +76 -0
  33. package/lib/runtime/components/react/mpx-picker-view-column.tsx +206 -183
  34. package/lib/runtime/components/react/mpx-picker-view.tsx +49 -48
  35. package/lib/runtime/components/react/mpx-rich-text/index.tsx +12 -18
  36. package/lib/runtime/components/react/mpx-scroll-view.tsx +21 -10
  37. package/lib/runtime/components/react/mpx-swiper-item.tsx +45 -11
  38. package/lib/runtime/components/react/mpx-swiper.tsx +742 -0
  39. package/lib/runtime/components/react/mpx-view.tsx +18 -65
  40. package/lib/runtime/components/react/pickerFaces.ts +10 -7
  41. package/lib/runtime/components/react/pickerVIewContext.ts +27 -0
  42. package/lib/runtime/components/react/pickerViewIndicator.tsx +34 -0
  43. package/lib/runtime/components/react/pickerViewMask.tsx +30 -0
  44. package/lib/runtime/components/react/types/{getInnerListeners.ts → getInnerListeners.d.ts} +4 -5
  45. package/lib/runtime/components/react/types/global.d.ts +10 -0
  46. package/lib/runtime/components/react/useAnimationHooks.ts +24 -3
  47. package/lib/runtime/components/react/utils.tsx +85 -12
  48. package/lib/runtime/components/web/mpx-checkbox.vue +1 -1
  49. package/lib/runtime/components/web/mpx-picker-view-column.vue +9 -4
  50. package/lib/runtime/components/web/mpx-scroll-view.vue +7 -1
  51. package/lib/runtime/optionProcessor.js +3 -2
  52. package/lib/template-compiler/compiler.js +62 -14
  53. package/lib/web/processScript.js +4 -1
  54. package/lib/web/processTemplate.js +4 -2
  55. package/lib/wxss/loader.js +15 -2
  56. package/package.json +4 -3
  57. package/LICENSE +0 -433
  58. package/lib/runtime/components/react/dist/mpx-swiper/carouse.jsx +0 -480
  59. package/lib/runtime/components/react/dist/mpx-swiper/index.jsx +0 -68
  60. package/lib/runtime/components/react/dist/mpx-swiper/type.js +0 -1
  61. package/lib/runtime/components/react/dist/pickerOverlay.jsx +0 -21
  62. package/lib/runtime/components/react/dist/types/common.js +0 -1
  63. package/lib/runtime/components/react/dist/types/getInnerListeners.js +0 -1
  64. package/lib/runtime/components/react/mpx-swiper/carouse.tsx +0 -527
  65. package/lib/runtime/components/react/mpx-swiper/index.tsx +0 -80
  66. package/lib/runtime/components/react/mpx-swiper/type.ts +0 -87
  67. package/lib/runtime/components/react/pickerOverlay.tsx +0 -32
  68. /package/lib/runtime/components/react/types/{common.ts → common.d.ts} +0 -0
@@ -1,32 +0,0 @@
1
- import React from 'react'
2
- import { StyleProp, StyleSheet, View, ViewStyle } from 'react-native'
3
-
4
- type OverlayProps = {
5
- itemHeight: number
6
- overlayItemStyle?: StyleProp<ViewStyle>
7
- overlayContainerStyle?: StyleProp<ViewStyle>
8
- }
9
-
10
- const Overlay = ({ itemHeight, overlayItemStyle, overlayContainerStyle }: OverlayProps) => {
11
- return (
12
- <View style={[styles.overlayContainer, overlayContainerStyle]} pointerEvents={'none'}>
13
- <View style={[styles.selection, { height: itemHeight }, overlayItemStyle]} />
14
- </View>
15
- )
16
- }
17
-
18
- const styles = StyleSheet.create({
19
- overlayContainer: {
20
- ...StyleSheet.absoluteFillObject,
21
- justifyContent: 'center',
22
- alignItems: 'center'
23
- },
24
- selection: {
25
- borderTopWidth: 1,
26
- borderBottomWidth: 1,
27
- borderColor: 'rgba(0, 0, 0, 0.05)',
28
- alignSelf: 'stretch'
29
- }
30
- })
31
-
32
- export default React.memo(Overlay)