@spark-web/select 5.0.2 → 6.0.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.
- package/CHANGELOG.md +18 -0
- package/dist/declarations/src/select.d.ts +7 -7
- package/dist/spark-web-select.cjs.d.ts +1 -1
- package/package.json +11 -11
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,23 @@
|
|
|
1
1
|
# @spark-web/select
|
|
2
2
|
|
|
3
|
+
## 6.0.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [#667](https://github.com/brighte-labs/spark-web/pull/667)
|
|
8
|
+
[`80d9c15`](https://github.com/brighte-labs/spark-web/commit/80d9c156a40bbcd2b1a91a2d0403b3c8e9b47b4e)
|
|
9
|
+
Thanks [@Leo704099](https://github.com/Leo704099)! - Support react 17 to 19
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- Updated dependencies
|
|
14
|
+
[[`80d9c15`](https://github.com/brighte-labs/spark-web/commit/80d9c156a40bbcd2b1a91a2d0403b3c8e9b47b4e)]:
|
|
15
|
+
- @spark-web/text-input@6.0.0
|
|
16
|
+
- @spark-web/field@5.3.0
|
|
17
|
+
- @spark-web/theme@5.13.0
|
|
18
|
+
- @spark-web/icon@5.1.0
|
|
19
|
+
- @spark-web/box@6.0.0
|
|
20
|
+
|
|
3
21
|
## 5.0.2
|
|
4
22
|
|
|
5
23
|
### Patch Changes
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { DataAttributeMap } from '@spark-web/utils/internal';
|
|
2
2
|
import type { SelectHTMLAttributes } from 'react';
|
|
3
|
-
export
|
|
3
|
+
export type Option = {
|
|
4
4
|
/** Whether or not the option is disabled. */
|
|
5
5
|
disabled?: boolean;
|
|
6
6
|
/** Label for the option. */
|
|
@@ -8,15 +8,15 @@ export declare type Option = {
|
|
|
8
8
|
/** Value of the option. */
|
|
9
9
|
value: string | number;
|
|
10
10
|
};
|
|
11
|
-
export
|
|
11
|
+
export type Group = {
|
|
12
12
|
/** List of options for the group. */
|
|
13
13
|
options: Array<Option>;
|
|
14
14
|
/** Label for the group. */
|
|
15
15
|
label: string;
|
|
16
16
|
};
|
|
17
|
-
export
|
|
18
|
-
export
|
|
19
|
-
export
|
|
17
|
+
export type OptionsOrGroups = Array<Option | Group>;
|
|
18
|
+
export type NativeSelectProps = Pick<SelectHTMLAttributes<HTMLSelectElement>, 'defaultValue' | 'name' | 'onBlur' | 'onChange' | 'required' | 'value'>;
|
|
19
|
+
export type SelectProps = NativeSelectProps & {
|
|
20
20
|
/** Sets data attributes for the element. */
|
|
21
21
|
data?: DataAttributeMap;
|
|
22
22
|
/** The values that can be selected by the input. */
|
|
@@ -26,9 +26,9 @@ export declare type SelectProps = NativeSelectProps & {
|
|
|
26
26
|
};
|
|
27
27
|
export declare const Select: import("react").ForwardRefExoticComponent<NativeSelectProps & {
|
|
28
28
|
/** Sets data attributes for the element. */
|
|
29
|
-
data?: DataAttributeMap
|
|
29
|
+
data?: DataAttributeMap;
|
|
30
30
|
/** The values that can be selected by the input. */
|
|
31
31
|
options: OptionsOrGroups;
|
|
32
32
|
/** Placeholder text for when the input does not have an initial value. */
|
|
33
|
-
placeholder?: string
|
|
33
|
+
placeholder?: string;
|
|
34
34
|
} & import("react").RefAttributes<HTMLSelectElement>>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from "./declarations/src/index";
|
|
1
|
+
export * from "./declarations/src/index.js";
|
|
2
2
|
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic3Bhcmstd2ViLXNlbGVjdC5janMuZC50cyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4vZGVjbGFyYXRpb25zL3NyYy9pbmRleC5kLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBIn0=
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@spark-web/select",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "6.0.0",
|
|
4
4
|
"homepage": "https://github.com/brighte-labs/spark-web#readme",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -17,20 +17,20 @@
|
|
|
17
17
|
"dependencies": {
|
|
18
18
|
"@babel/runtime": "^7.25.0",
|
|
19
19
|
"@emotion/react": "^11.14.0",
|
|
20
|
-
"@spark-web/box": "^
|
|
21
|
-
"@spark-web/icon": "^5.
|
|
22
|
-
"@spark-web/text-input": "^
|
|
23
|
-
"@spark-web/theme": "^5.
|
|
20
|
+
"@spark-web/box": "^6.0.0",
|
|
21
|
+
"@spark-web/icon": "^5.1.0",
|
|
22
|
+
"@spark-web/text-input": "^6.0.0",
|
|
23
|
+
"@spark-web/theme": "^5.13.0"
|
|
24
24
|
},
|
|
25
25
|
"devDependencies": {
|
|
26
|
-
"@spark-web/field": "^5.
|
|
27
|
-
"@spark-web/utils": "^5.
|
|
28
|
-
"@types/react": "^
|
|
29
|
-
"react": "^
|
|
26
|
+
"@spark-web/field": "^5.3.0",
|
|
27
|
+
"@spark-web/utils": "^5.1.0",
|
|
28
|
+
"@types/react": "^19.1.0",
|
|
29
|
+
"react": "^19.1.0"
|
|
30
30
|
},
|
|
31
31
|
"peerDependencies": {
|
|
32
|
-
"@spark-web/field": "^5.
|
|
33
|
-
"react": "
|
|
32
|
+
"@spark-web/field": "^5.3.0",
|
|
33
|
+
"react": "^17.0.0 || ^18.0.0 || ^19.0.0"
|
|
34
34
|
},
|
|
35
35
|
"engines": {
|
|
36
36
|
"node": ">=14"
|