@spark-web/text-input 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 +50 -9
- package/dist/declarations/src/children-to-adornments.d.ts +2 -2
- package/dist/declarations/src/input-adornment.d.ts +3 -3
- package/dist/declarations/src/input-container.d.ts +1 -1
- package/dist/declarations/src/text-input.d.ts +2530 -2502
- package/dist/spark-web-text-input.cjs.d.ts +1 -1
- package/dist/spark-web-text-input.cjs.dev.js +24 -12
- package/dist/spark-web-text-input.cjs.prod.js +24 -12
- package/dist/spark-web-text-input.esm.js +24 -12
- package/package.json +10 -10
package/CHANGELOG.md
CHANGED
|
@@ -1,20 +1,61 @@
|
|
|
1
1
|
# @spark-web/text-input
|
|
2
2
|
|
|
3
|
-
## 6.0.0
|
|
3
|
+
## 6.0.0
|
|
4
4
|
|
|
5
5
|
### Minor Changes
|
|
6
6
|
|
|
7
|
-
-
|
|
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
|
-
-
|
|
13
|
-
- @spark-web/
|
|
14
|
-
- @spark-web/
|
|
15
|
-
- @spark-web/
|
|
16
|
-
- @spark-web/
|
|
17
|
-
- @spark-web/
|
|
13
|
+
- Updated dependencies
|
|
14
|
+
[[`80d9c15`](https://github.com/brighte-labs/spark-web/commit/80d9c156a40bbcd2b1a91a2d0403b3c8e9b47b4e)]:
|
|
15
|
+
- @spark-web/field@5.3.0
|
|
16
|
+
- @spark-web/theme@5.13.0
|
|
17
|
+
- @spark-web/utils@5.1.0
|
|
18
|
+
- @spark-web/a11y@5.3.0
|
|
19
|
+
- @spark-web/text@5.3.0
|
|
20
|
+
- @spark-web/box@6.0.0
|
|
21
|
+
|
|
22
|
+
## 5.4.0
|
|
23
|
+
|
|
24
|
+
### Minor Changes
|
|
25
|
+
|
|
26
|
+
- [#723](https://github.com/brighte-labs/spark-web/pull/723)
|
|
27
|
+
[`7290110`](https://github.com/brighte-labs/spark-web/commit/72901104c893f960cdf0974b71561490c93e43e4)
|
|
28
|
+
Thanks [@ralcoriza-brighte](https://github.com/ralcoriza-brighte)! - expose
|
|
29
|
+
onInput event handler in text-input component
|
|
30
|
+
|
|
31
|
+
## 5.3.2
|
|
32
|
+
|
|
33
|
+
### Patch Changes
|
|
34
|
+
|
|
35
|
+
- [#698](https://github.com/brighte-labs/spark-web/pull/698)
|
|
36
|
+
[`814b373`](https://github.com/brighte-labs/spark-web/commit/814b373cbe9fcf0757738c78eef6b516624df62c)
|
|
37
|
+
Thanks [@michtntbrighte](https://github.com/michtntbrighte)! - Bump version
|
|
38
|
+
|
|
39
|
+
- Updated dependencies
|
|
40
|
+
[[`814b373`](https://github.com/brighte-labs/spark-web/commit/814b373cbe9fcf0757738c78eef6b516624df62c)]:
|
|
41
|
+
- @spark-web/box@5.2.2
|
|
42
|
+
- @spark-web/field@5.1.3
|
|
43
|
+
- @spark-web/text@5.2.3
|
|
44
|
+
- @spark-web/theme@5.12.1
|
|
45
|
+
|
|
46
|
+
## 5.3.1
|
|
47
|
+
|
|
48
|
+
### Patch Changes
|
|
49
|
+
|
|
50
|
+
- [#693](https://github.com/brighte-labs/spark-web/pull/693)
|
|
51
|
+
[`1995db7`](https://github.com/brighte-labs/spark-web/commit/1995db7f4342803732c7648ab3ca6d32442cc347)
|
|
52
|
+
Thanks [@michtntbrighte](https://github.com/michtntbrighte)! - Add Bravo theme
|
|
53
|
+
|
|
54
|
+
- Updated dependencies
|
|
55
|
+
[[`1995db7`](https://github.com/brighte-labs/spark-web/commit/1995db7f4342803732c7648ab3ca6d32442cc347)]:
|
|
56
|
+
- @spark-web/theme@5.12.0
|
|
57
|
+
- @spark-web/field@5.1.2
|
|
58
|
+
- @spark-web/text@5.2.2
|
|
18
59
|
|
|
19
60
|
## 5.3.0
|
|
20
61
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { ReactElement } from 'react';
|
|
2
2
|
import type { InputAdornmentProps } from "./input-adornment.js";
|
|
3
|
-
export
|
|
4
|
-
export
|
|
3
|
+
export type AdornmentChild = ReactElement<InputAdornmentProps> | null | undefined;
|
|
4
|
+
export type AdornmentsAsChildren = AdornmentChild | [AdornmentChild, AdornmentChild];
|
|
5
5
|
/**
|
|
6
6
|
* Map children for placement within the `TextInput` flex container. Ensures that
|
|
7
7
|
* placeholders are provided for unused placements.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { ReactElement } from 'react';
|
|
2
|
-
|
|
2
|
+
type InputAdornmentContextType = {
|
|
3
3
|
placement: PlacementType;
|
|
4
4
|
};
|
|
5
5
|
export declare const useInputAdornmentContext: () => InputAdornmentContextType | null;
|
|
@@ -13,8 +13,8 @@ declare const placementToPadding: {
|
|
|
13
13
|
readonly paddingRight: "medium";
|
|
14
14
|
};
|
|
15
15
|
};
|
|
16
|
-
|
|
17
|
-
export
|
|
16
|
+
type PlacementType = keyof typeof placementToPadding;
|
|
17
|
+
export type InputAdornmentProps = {
|
|
18
18
|
children: ReactElement;
|
|
19
19
|
/**
|
|
20
20
|
* When using another input component as an adornment, you may optionally
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { BoxProps } from '@spark-web/box';
|
|
2
2
|
import type { ReactElement } from 'react';
|
|
3
3
|
import type { InputAdornmentProps } from "./input-adornment.js";
|
|
4
|
-
export
|
|
4
|
+
export type InputContainerProps = {
|
|
5
5
|
/** Slot to start render adornment. */
|
|
6
6
|
startAdornment?: ReactElement<InputAdornmentProps> | null;
|
|
7
7
|
/** Slot to end render adornment. */
|