@xylabs/react-select 7.1.17 → 7.1.20

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/README.md CHANGED
@@ -1,67 +1,27 @@
1
- [![logo][]](https://xylabs.com)
2
-
3
1
  # @xylabs/react-select
4
2
 
5
- [![npm-badge][]][npm-link]
6
- [![npm-downloads-badge][]][npm-link]
7
- [![jsdelivr-badge][]][jsdelivr-link]
8
- [![npm-license-badge][]](LICENSE)
9
-
10
- > XY Labs generalized React library
11
-
12
- ## Table of Contents
3
+ [![npm][npm-badge]][npm-link]
13
4
 
14
- - [Description](#description)
15
- - [Install](#install)
16
- - [Maintainers](#maintainers)
17
- - [License](#license)
18
- - [Credits](#credits)
19
-
20
- ## Description
21
-
22
- Common React code that is used throughout XYO projects that use React.
5
+ > Common React library for all XY Labs projects that use React
23
6
 
24
7
  ## Install
25
8
 
26
- Using npm:
27
-
28
9
  ```sh
29
- npm i --save @xylabs/react-select
10
+ npm install {{name}}
30
11
  ```
31
12
 
32
- Using yarn:
13
+ or
33
14
 
34
15
  ```sh
35
- yarn add @xylabs/react-select
16
+ yarn add {{name}}
36
17
  ```
37
18
 
38
- ## Documentation
39
- [Developer Reference](https://xylabs.github.io/sdk-react)
40
-
41
- [Storybook](https://xylabs.github.io/sdk-react/storybook)
42
-
43
- ## Maintainers
44
-
45
- - [Arie Trouw](https://github.com/arietrouw) ([arietrouw.com](https://arietrouw.com))
46
- - [Matt Jones](https://github.com/jonesmac)
47
- - [Joel Carter](https://github.com/JoelBCarter)
48
- - [Jordan Trouw](https://github.com/jordantrouw)
49
19
 
50
20
  ## License
51
21
 
52
- See the [LICENSE](LICENSE) file for license details
22
+ See the [LICENSE](LICENSE) file for license rights and limitations (LGPL-3.0-only).
53
23
 
54
- ## Credits
55
24
 
56
- [Made with 🔥and ❄️ by XY Labs](https://xylabs.com)
57
-
58
- [logo]: https://cdn.xy.company/img/brand/XYPersistentCompany_Logo_Icon_Colored.svg
59
25
 
60
26
  [npm-badge]: https://img.shields.io/npm/v/@xylabs/react-select.svg
61
27
  [npm-link]: https://www.npmjs.com/package/@xylabs/react-select
62
-
63
- [npm-downloads-badge]: https://img.shields.io/npm/dw/@xylabs/react-select
64
- [npm-license-badge]: https://img.shields.io/npm/l/@xylabs/react-select
65
-
66
- [jsdelivr-badge]: https://data.jsdelivr.com/v1/package/npm/@xylabs/react-select/badge
67
- [jsdelivr-link]: https://www.jsdelivr.com/package/npm/@xylabs/react-select
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xylabs/react-select",
3
- "version": "7.1.17",
3
+ "version": "7.1.20",
4
4
  "description": "Common React library for all XY Labs projects that use React",
5
5
  "keywords": [
6
6
  "utility",
@@ -27,38 +27,40 @@
27
27
  "exports": {
28
28
  ".": {
29
29
  "types": "./dist/browser/index.d.ts",
30
+ "import": "./dist/browser/index.mjs",
30
31
  "default": "./dist/browser/index.mjs"
31
32
  },
32
33
  "./package.json": "./package.json"
33
34
  },
34
- "module": "./dist/browser/index.mjs",
35
35
  "types": "dist/browser/index.d.ts",
36
36
  "files": [
37
37
  "dist",
38
- "src"
38
+ "README.md"
39
39
  ],
40
40
  "dependencies": {
41
- "@xylabs/sdk-js": "~5.0.80"
41
+ "@mui/material": "~7.3.9",
42
+ "@xylabs/sdk-js": "~5.0.95"
42
43
  },
43
44
  "devDependencies": {
44
- "@mui/material": "~7.3.9",
45
+ "@opentelemetry/api": "^1.9.1",
45
46
  "@types/react": "^19.2.14",
46
- "@xylabs/ts-scripts-yarn3": "~7.4.9",
47
- "@xylabs/tsconfig": "~7.4.9",
48
- "@xylabs/tsconfig-dom": "~7.4.9",
49
- "@xylabs/tsconfig-react": "~7.4.9",
47
+ "@xylabs/ts-scripts-common": "~7.8.5",
48
+ "@xylabs/ts-scripts-pnpm": "~7.8.5",
49
+ "@xylabs/tsconfig": "~7.8",
50
+ "@xylabs/tsconfig-dom": "~7.8.5",
51
+ "@xylabs/tsconfig-react": "~7.8.5",
52
+ "axios": "^1.14.0",
53
+ "pako": "~2.1.0",
50
54
  "react": "^19.2.4",
51
55
  "react-dom": "^19.2.4",
52
56
  "typescript": "^5.9.3",
53
57
  "zod": "~4.3.6"
54
58
  },
55
59
  "peerDependencies": {
56
- "@mui/material": ">=6 <8",
57
- "react": "^19",
58
- "react-dom": "^19",
59
- "zod": "^4"
60
+ "pako": "~2.1.0",
61
+ "react": "^19"
60
62
  },
61
63
  "publishConfig": {
62
64
  "access": "public"
63
65
  }
64
- }
66
+ }
@@ -1,23 +0,0 @@
1
- import type { PaletteMode, SelectProps } from '@mui/material'
2
- import { Select, useTheme } from '@mui/material'
3
- import { isDefined } from '@xylabs/sdk-js'
4
- import React from 'react'
5
-
6
- export type SelectExProps<T> = SelectProps<T> & {
7
- colorize?: 'primary' | 'secondary'
8
- mode?: PaletteMode
9
- }
10
-
11
- export const SelectEx: <T>(props: SelectExProps<T>) => React.JSX.Element = ({
12
- MenuProps, mode = 'light', colorize, ...props
13
- }) => {
14
- const theme = useTheme()
15
- const colorizeMenuProps = isDefined(colorize) ? { MenuListProps: { sx: { backgroundColor: theme.palette[colorize][mode] } } } : {}
16
-
17
- return (
18
- <Select
19
- MenuProps={{ ...MenuProps, ...colorizeMenuProps }}
20
- {...props}
21
- />
22
- )
23
- }
@@ -1 +0,0 @@
1
- export * from './SelectEx.tsx'
package/src/index.ts DELETED
@@ -1 +0,0 @@
1
- export * from './components/index.ts'
@@ -1,5 +0,0 @@
1
- declare module '*.png'
2
- declare module '*.jpg'
3
- declare module '*.svg'
4
- declare module '*.gif'
5
- declare module '*.webp'