react-animated-select 0.5.6 → 0.6.6

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/index.d.ts CHANGED
@@ -24,7 +24,7 @@ export interface SelectProps {
24
24
  loading?: boolean
25
25
  error?: boolean
26
26
 
27
- placeholder?: string
27
+ placeholder?: ElementType | string | ReactNode
28
28
  emptyText?: string
29
29
  disabledText?: string
30
30
  loadingText?: string
@@ -39,10 +39,11 @@ export interface SelectProps {
39
39
  optionsClassName?: string
40
40
  style?: CSSProperties
41
41
 
42
- ArrowIcon?: ElementType | string | ReactNode
43
- ClearIcon?: ElementType | string | ReactNode
44
- DelIcon?: ElementType | string | ReactNode
45
- CheckIcon?: ElementType | string | ReactNode
42
+ OpenIcon?: ElementType | string | ReactNode | boolean
43
+ ClearIcon?: ElementType | string | ReactNode | boolean
44
+ DelIcon?: ElementType | string | ReactNode | boolean
45
+ Checkmark?: ElementType | string | ReactNode | boolean
46
+ Checkbox?: ElementType | string | ReactNode | boolean
46
47
 
47
48
  hasMore?: boolean
48
49
  loadMore?: () => void
@@ -54,6 +55,10 @@ export interface SelectProps {
54
55
 
55
56
  childrenFirst?: boolean
56
57
  groupsClosed?: boolean
58
+ deleteInline?: boolean
59
+ showDelete?: boolean
60
+ onClose?: () => void
61
+ onOpen?: () => void
57
62
  }
58
63
 
59
64
  export const Select: FC<SelectProps>
@@ -61,6 +66,8 @@ export const Select: FC<SelectProps>
61
66
  export interface OptionProps {
62
67
  value?: any
63
68
  id?: any
69
+ label?: any
70
+ name?: any
64
71
  children?: ReactNode
65
72
  disabled?: boolean
66
73
  className?: string
@@ -71,8 +78,11 @@ export const Option: FC<OptionProps>
71
78
  export interface OptGroupProps {
72
79
  value?: any
73
80
  id?: any
81
+ children?: ReactNode
82
+ disabled?: boolean
74
83
  name?: any
75
84
  label?: any
85
+ className?: string
76
86
  }
77
87
 
78
88
  export const OptGroup: FC<OptGroupProps>
package/package.json CHANGED
@@ -1,9 +1,18 @@
1
1
  {
2
2
  "name": "react-animated-select",
3
- "version": "0.5.6",
3
+ "version": "0.6.6",
4
4
  "type": "module",
5
- "author": "l1nway (https://github.com/l1nway/)",
5
+ "author": {
6
+ "name": "l1nway",
7
+ "email": "l1nway@icloud.com",
8
+ "url": "https://github.com/l1nway/"
9
+ },
6
10
  "description": "Animated, accessible, and flexible select component for React",
11
+ "files": [
12
+ "dist",
13
+ "index.d.ts",
14
+ "README.md"
15
+ ],
7
16
  "keywords": [
8
17
  "react",
9
18
  "select",
@@ -34,9 +43,7 @@
34
43
  },
35
44
  "peerDependencies": {
36
45
  "react": ">=16.8.0",
37
- "react-dom": ">=16.8.0"
38
- },
39
- "dependencies": {
46
+ "react-dom": ">=16.8.0",
40
47
  "react-transition-group": "^4.4.5"
41
48
  },
42
49
  "devDependencies": {
@@ -1,32 +0,0 @@
1
- name: Publish to NPM
2
-
3
- on:
4
- release:
5
- types: [created]
6
-
7
- jobs:
8
- build:
9
- runs-on: ubuntu-latest
10
- permissions:
11
- contents: read
12
- id-token: write
13
-
14
- steps:
15
- - uses: actions/checkout@v4
16
-
17
- - name: Setup Node.js
18
- uses: actions/setup-node@v4
19
- with:
20
- node-version: '20'
21
- registry-url: 'https://registry.npmjs.org'
22
-
23
- - name: Install dependencies
24
- run: npm install
25
-
26
- - name: Build project
27
- run: npm run build
28
-
29
- - name: Publish to NPM
30
- run: npm publish --provenance --access public
31
- env:
32
- NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
package/demo/README.md DELETED
@@ -1,16 +0,0 @@
1
- # React + Vite
2
-
3
- This template provides a minimal setup to get React working in Vite with HMR and some ESLint rules.
4
-
5
- Currently, two official plugins are available:
6
-
7
- - [@vitejs/plugin-react](https://github.com/vitejs/vite-plugin-react/blob/main/packages/plugin-react) uses [Babel](https://babeljs.io/) (or [oxc](https://oxc.rs) when used in [rolldown-vite](https://vite.dev/guide/rolldown)) for Fast Refresh
8
- - [@vitejs/plugin-react-swc](https://github.com/vitejs/vite-plugin-react/blob/main/packages/plugin-react-swc) uses [SWC](https://swc.rs/) for Fast Refresh
9
-
10
- ## React Compiler
11
-
12
- The React Compiler is not enabled on this template because of its impact on dev & build performances. To add it, see [this documentation](https://react.dev/learn/react-compiler/installation).
13
-
14
- ## Expanding the ESLint configuration
15
-
16
- If you are developing a production application, we recommend using TypeScript with type-aware lint rules enabled. Check out the [TS template](https://github.com/vitejs/vite/tree/main/packages/create-vite/template-react-ts) for information on how to integrate TypeScript and [`typescript-eslint`](https://typescript-eslint.io) in your project.
@@ -1,29 +0,0 @@
1
- import js from '@eslint/js'
2
- import globals from 'globals'
3
- import reactHooks from 'eslint-plugin-react-hooks'
4
- import reactRefresh from 'eslint-plugin-react-refresh'
5
- import {defineConfig, globalIgnores} from 'eslint/config'
6
-
7
- export default defineConfig([
8
- globalIgnores(['dist']),
9
- {
10
- files: ['**/*.{js,jsx}'],
11
- extends: [
12
- js.configs.recommended,
13
- reactHooks.configs.flat.recommended,
14
- reactRefresh.configs.vite,
15
- ],
16
- languageOptions: {
17
- ecmaVersion: 2020,
18
- globals: globals.browser,
19
- parserOptions: {
20
- ecmaVersion: 'latest',
21
- ecmaFeatures: {jsx: true},
22
- sourceType: 'module',
23
- },
24
- },
25
- rules: {
26
- 'no-unused-vars': ['error', { varsIgnorePattern: '^[A-Z_]' }],
27
- },
28
- },
29
- ])
package/demo/index.html DELETED
@@ -1,13 +0,0 @@
1
- <!doctype html>
2
- <html lang="en">
3
- <head>
4
- <meta charset="UTF-8" />
5
- <link rel="icon" type="image/svg+xml" href="/vite.svg" />
6
- <meta name="viewport" content="width=device-width, initial-scale=1.0" />
7
- <title>demo</title>
8
- </head>
9
- <body>
10
- <div id="root"></div>
11
- <script type="module" src="/src/main.jsx"></script>
12
- </body>
13
- </html>