@acrool/react-picker 1.1.2 → 1.1.4

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,4 +1,4 @@
1
- import React from 'react';
1
+ import { default as React } from 'react';
2
2
  import { IPickerOption, IValueChange } from '../types';
3
3
  /**
4
4
  * 產生帶 motion/react 功能的Picker
package/dist/types.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import CSS from 'csstype';
1
+ import { default as CSS } from 'csstype';
2
2
  import { Transition, Variant } from 'framer-motion';
3
3
  type TVariantKey = 'initial' | 'animate' | 'exit';
4
4
  export type TAnimationVariants = Record<TVariantKey, Variant>;
@@ -8,6 +8,7 @@ export declare enum EVertical {
8
8
  }
9
9
  export declare enum EHorizontal {
10
10
  left = "left",
11
+ center = "center",
11
12
  right = "right"
12
13
  }
13
14
  export interface IPosition {
package/dist/utils.d.ts CHANGED
@@ -8,4 +8,4 @@ import { Ref } from 'react';
8
8
  * @param forwardedRef
9
9
  * @param localRef
10
10
  */
11
- export declare const setForwardedRef: <T>(forwardedRef: Ref<T> | undefined, localRef: import("react").MutableRefObject<T | null>) => (node: T | null) => void;
11
+ export declare const setForwardedRef: <T>(forwardedRef: Ref<T> | undefined, localRef: React.MutableRefObject<T | null>) => (node: T | null) => void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@acrool/react-picker",
3
- "version": "1.1.2",
3
+ "version": "1.1.4",
4
4
  "description": "This is a react method to quickly combine buttons with Picker",
5
5
  "keywords": [
6
6
  "acrool",
@@ -10,7 +10,6 @@
10
10
  "portal"
11
11
  ],
12
12
  "author": "info@acrool.com",
13
- "private": false,
14
13
  "type": "module",
15
14
  "license": "MIT",
16
15
  "repository": {
@@ -25,7 +24,7 @@
25
24
  "browser": "./dist/acrool-react-picker.es.js",
26
25
  "import": "./dist/acrool-react-picker.es.js"
27
26
  },
28
- "./dist/index.css": "./dist/style.css"
27
+ "./dist/index.css": "./dist/react-picker.css"
29
28
  },
30
29
  "files": [
31
30
  "dist"
@@ -54,36 +53,46 @@
54
53
  "react-dom": ">=18.0.0 <20.0.0"
55
54
  },
56
55
  "dependencies": {
57
- "@acrool/react-portal": "^1.1.1",
58
- "@acrool/js-logger": "^1.0.23",
56
+ "@acrool/js-logger": "^1.0.26",
57
+ "@acrool/react-portal": "^1.1.2",
59
58
  "clsx": "^2.1.1",
60
- "ulid": "^2.3.0",
61
- "framer-motion": "^12.7.4"
59
+ "framer-motion": "^11.18.2",
60
+ "ulid": "^2.3.0"
62
61
  },
63
62
  "devDependencies": {
63
+ "@stylistic/eslint-plugin-ts": "^3.0.1",
64
+ "@swc/jest": "^0.2.27",
65
+ "@testing-library/dom": "10.3.1",
66
+ "@testing-library/jest-dom": "^6.6.3",
67
+ "@testing-library/react": "16.0.0",
64
68
  "@types/jest": "^29.5.0",
65
- "@types/node": "^18.15.11",
69
+ "@types/node": "20.17.32",
66
70
  "@types/react": "^19.1.2",
67
71
  "@types/react-dom": "^19.1.2",
72
+ "@typescript-eslint/eslint-plugin": "^8.23.0",
73
+ "@typescript-eslint/parser": "^8.23.0",
68
74
  "@vitejs/plugin-react-swc": "^3.0.0",
69
- "cz-git": "^1.6.1",
70
- "eslint": "^8.37.0",
71
- "eslint-config-react-app": "^7.0.1",
75
+ "cz-conventional-changelog": "3.3.0",
76
+ "cz-customizable": "6.6.0",
77
+ "eslint": "^9.19.0",
78
+ "eslint-plugin-react": "^7.37.5",
72
79
  "eslint-plugin-simple-import-sort": "^10.0.0",
80
+ "identity-obj-proxy": "^3.0.0",
73
81
  "jest": "^29.5.0",
74
82
  "jest-environment-jsdom": "^29.5.0",
75
83
  "npm-run-all": "^4.1.5",
76
84
  "react": "^19.1.0",
77
85
  "react-dom": "^19.1.0",
78
86
  "rollup-plugin-visualizer": "^5.9.0",
79
- "sass": "^1.77.1",
87
+ "sass": "^1.87.0",
80
88
  "standard-version": "^9.5.0",
81
- "ts-jest": "^29.1.0",
82
- "typescript": "^4.9.3",
83
- "vite": "^4.2.0",
84
- "vite-plugin-dts": "^2.1.0",
89
+ "ts-jest": "^29.3.2",
90
+ "ts-node": "10.8.1",
91
+ "tsconfig-paths": "^4.2.0",
92
+ "vite": "^6.0.11",
93
+ "vite-plugin-dts": "^4.5.3",
85
94
  "vite-plugin-eslint": "^1.8.1",
86
- "vite-plugin-svgr": "^4.2.0"
95
+ "vite-plugin-svgr": "^4.3.0"
87
96
  },
88
97
  "config": {
89
98
  "commitizen": {
File without changes