@acrool/react-picker 0.1.2 → 0.1.3-alpha.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.
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
2
  import { IPickerOption, IValueChange } from '../types';
3
3
  /**
4
- * 產生帶 framer-motion 功能的Picker
4
+ * 產生帶 motion/react 功能的Picker
5
5
  *
6
6
  * 需要呼叫 show 才會傳送到 portal
7
7
  * @param MainComponent
package/dist/style.css CHANGED
@@ -1 +1 @@
1
- .acrool-react-picker__main-el,.acrool-react-picker__picker-el{display:contents}.acrool-react-picker__motion-animation-wrapper{z-index:1;align-items:flex-start}.acrool-react-picker__motion-animation-wrapper[data-debug]{background:rgba(255,0,0,.3)}.acrool-react-picker__motion-mask-wrapper{background:rgba(0,0,0,.2);position:fixed;top:0;right:0;bottom:0;left:0;z-index:998;pointer-events:auto}
1
+ .acrool-react-picker__main-el,.acrool-react-picker__picker-el{display:contents}.acrool-react-picker__motion-animation-wrapper{z-index:999;align-items:flex-start;will-change:opacity}.acrool-react-picker__motion-animation-wrapper[data-debug]{background:rgba(255,0,0,.3)}.acrool-react-picker__motion-mask-wrapper{background:rgba(0,0,0,.2);position:fixed;top:0;right:0;bottom:0;left:0;z-index:998;pointer-events:auto;will-change:transform,opacity}
package/dist/types.d.ts CHANGED
@@ -1,4 +1,5 @@
1
1
  import { Transition, Variant } from 'framer-motion';
2
+ import CSS from 'csstype';
2
3
  type TVariantKey = 'initial' | 'animate' | 'exit';
3
4
  export type TAnimationVariants = Record<TVariantKey, Variant>;
4
5
  export declare enum EVertical {
@@ -16,6 +17,8 @@ export interface IPosition {
16
17
  export interface IMotionOptions {
17
18
  variants?: TAnimationVariants;
18
19
  transition?: Transition;
20
+ className?: string;
21
+ style?: CSS.Properties;
19
22
  }
20
23
  export interface IValueChange<T = string> {
21
24
  value?: T;
@@ -24,8 +27,10 @@ export interface IValueChange<T = string> {
24
27
  export interface IPickerOption {
25
28
  isEnableHideSave?: boolean;
26
29
  isEnableClickOutSiteHidden?: boolean;
30
+ isDisabledAutoPosition?: boolean;
27
31
  isVisibleMask?: boolean;
28
32
  isDebug?: boolean;
29
33
  importantPosition?: IPosition;
34
+ motionProps?: IMotionOptions;
30
35
  }
31
36
  export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@acrool/react-picker",
3
- "version": "0.1.2",
3
+ "version": "0.1.3-alpha.0",
4
4
  "description": "This is a react method to quickly combine buttons with Picker",
5
5
  "keywords": [
6
6
  "acrool",