@spark-web/select 6.0.0-rc.0 → 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 CHANGED
@@ -1,19 +1,46 @@
1
1
  # @spark-web/select
2
2
 
3
- ## 6.0.0-rc.0
3
+ ## 6.0.0
4
4
 
5
5
  ### Minor Changes
6
6
 
7
- - update react version and other packages
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
8
10
 
9
11
  ### Patch Changes
10
12
 
11
- - Updated dependencies []:
12
- - @spark-web/text-input@6.0.0-rc.0
13
- - @spark-web/field@5.2.0-rc.0
14
- - @spark-web/theme@5.12.0-rc.0
15
- - @spark-web/icon@5.1.0-rc.0
16
- - @spark-web/box@6.0.0-rc.0
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
+
21
+ ## 5.0.2
22
+
23
+ ### Patch Changes
24
+
25
+ - [#698](https://github.com/brighte-labs/spark-web/pull/698)
26
+ [`814b373`](https://github.com/brighte-labs/spark-web/commit/814b373cbe9fcf0757738c78eef6b516624df62c)
27
+ Thanks [@michtntbrighte](https://github.com/michtntbrighte)! - Bump version
28
+
29
+ - Updated dependencies
30
+ [[`814b373`](https://github.com/brighte-labs/spark-web/commit/814b373cbe9fcf0757738c78eef6b516624df62c)]:
31
+ - @spark-web/box@5.2.2
32
+ - @spark-web/field@5.1.3
33
+ - @spark-web/text-input@5.3.2
34
+ - @spark-web/theme@5.12.1
35
+
36
+ ## 5.0.1
37
+
38
+ ### Patch Changes
39
+
40
+ - Updated dependencies
41
+ [[`1995db7`](https://github.com/brighte-labs/spark-web/commit/1995db7f4342803732c7648ab3ca6d32442cc347)]:
42
+ - @spark-web/theme@5.12.0
43
+ - @spark-web/field@5.1.2
17
44
 
18
45
  ## 5.0.0
19
46
 
@@ -1,6 +1,6 @@
1
1
  import type { DataAttributeMap } from '@spark-web/utils/internal';
2
2
  import type { SelectHTMLAttributes } from 'react';
3
- export declare type Option = {
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 declare type Group = {
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 declare type OptionsOrGroups = Array<Option | Group>;
18
- export declare type NativeSelectProps = Pick<SelectHTMLAttributes<HTMLSelectElement>, 'defaultValue' | 'name' | 'onBlur' | 'onChange' | 'required' | 'value'>;
19
- export declare type SelectProps = NativeSelectProps & {
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 | undefined;
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 | undefined;
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": "6.0.0-rc.0",
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": "^6.0.0-rc.0",
21
- "@spark-web/icon": "^5.1.0-rc.0",
22
- "@spark-web/text-input": "^6.0.0-rc.0",
23
- "@spark-web/theme": "^5.12.0-rc.0"
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.2.0-rc.0",
27
- "@spark-web/utils": "^5.1.0-rc.0",
26
+ "@spark-web/field": "^5.3.0",
27
+ "@spark-web/utils": "^5.1.0",
28
28
  "@types/react": "^19.1.0",
29
29
  "react": "^19.1.0"
30
30
  },
31
31
  "peerDependencies": {
32
- "@spark-web/field": "^5.2.0-rc.0",
33
- "react": ">=19.1.0"
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"