@lumx/react 4.29.0 → 4.30.0-next.1
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 +10 -0
- package/index.js +8 -0
- package/index.js.map +1 -1
- package/package.json +4 -4
package/index.d.ts
CHANGED
|
@@ -1830,6 +1830,11 @@ interface TextFieldProps$1 extends HasClassName, HasTheme, HasAriaDisabled, HasD
|
|
|
1830
1830
|
hasError?: boolean;
|
|
1831
1831
|
/** Additional element to put at the end of the text field. */
|
|
1832
1832
|
afterElement?: JSXElement;
|
|
1833
|
+
/**
|
|
1834
|
+
* Element to display at the start of the field, after the icon.
|
|
1835
|
+
* Mark it as decorative (`aria-hidden`) when the input text gives the same information.
|
|
1836
|
+
*/
|
|
1837
|
+
beforeElement?: JSXElement;
|
|
1833
1838
|
/** Helper text. */
|
|
1834
1839
|
helper?: string | JSXElement;
|
|
1835
1840
|
/** Icon (SVG path). */
|
|
@@ -4861,6 +4866,11 @@ interface BaseSelectTextFieldProps<O = any> extends BaseSelectTextFieldWrapperPr
|
|
|
4861
4866
|
onLoadMore?: () => void;
|
|
4862
4867
|
/** Content to render before the options list. */
|
|
4863
4868
|
beforeOptions?: React__default.ReactNode;
|
|
4869
|
+
/**
|
|
4870
|
+
* Element to display at the start of the field, after the icon.
|
|
4871
|
+
* Mark it as decorative (`aria-hidden`) when the input text gives the same information.
|
|
4872
|
+
*/
|
|
4873
|
+
beforeElement?: React__default.ReactNode;
|
|
4864
4874
|
/**
|
|
4865
4875
|
* Props forwarded to the Combobox.Popover.
|
|
4866
4876
|
* Set to `false` to render the list inline below the text field, with no popover (the list is always visible).
|
package/index.js
CHANGED
|
@@ -11039,6 +11039,7 @@ const TextField$1 = props => {
|
|
|
11039
11039
|
theme,
|
|
11040
11040
|
value,
|
|
11041
11041
|
afterElement,
|
|
11042
|
+
beforeElement,
|
|
11042
11043
|
input,
|
|
11043
11044
|
isFocus,
|
|
11044
11045
|
IconButton,
|
|
@@ -11091,6 +11092,9 @@ const TextField$1 = props => {
|
|
|
11091
11092
|
color: theme === Theme.dark ? 'light' : undefined,
|
|
11092
11093
|
icon,
|
|
11093
11094
|
size: Size.xs
|
|
11095
|
+
}), beforeElement && /*#__PURE__*/jsx("div", {
|
|
11096
|
+
className: element$I('before-element'),
|
|
11097
|
+
children: beforeElement
|
|
11094
11098
|
}), chips ? /*#__PURE__*/jsxs("div", {
|
|
11095
11099
|
className: element$I('chips'),
|
|
11096
11100
|
children: [chips, input]
|
|
@@ -11397,6 +11401,7 @@ const TextField = forwardRef((props, ref) => {
|
|
|
11397
11401
|
type = DEFAULT_PROPS$X.type,
|
|
11398
11402
|
value,
|
|
11399
11403
|
afterElement,
|
|
11404
|
+
beforeElement,
|
|
11400
11405
|
...forwardedProps
|
|
11401
11406
|
} = otherProps;
|
|
11402
11407
|
const generatedTextFieldId = useId();
|
|
@@ -11479,6 +11484,7 @@ const TextField = forwardRef((props, ref) => {
|
|
|
11479
11484
|
input,
|
|
11480
11485
|
id: textFieldId,
|
|
11481
11486
|
afterElement,
|
|
11487
|
+
beforeElement,
|
|
11482
11488
|
hasError,
|
|
11483
11489
|
helperId,
|
|
11484
11490
|
labelId,
|
|
@@ -19936,6 +19942,7 @@ const SelectTextField$1 = props => {
|
|
|
19936
19942
|
// Load more
|
|
19937
19943
|
onLoadMore,
|
|
19938
19944
|
beforeOptions,
|
|
19945
|
+
beforeElement,
|
|
19939
19946
|
// Popover
|
|
19940
19947
|
popoverProps,
|
|
19941
19948
|
// Theme
|
|
@@ -20071,6 +20078,7 @@ const SelectTextField$1 = props => {
|
|
|
20071
20078
|
inputProps: {
|
|
20072
20079
|
...consumerInputProps,
|
|
20073
20080
|
labelProps: labelProps ?? consumerInputProps?.labelProps,
|
|
20081
|
+
beforeElement: beforeElement ?? consumerInputProps?.beforeElement,
|
|
20074
20082
|
placeholder,
|
|
20075
20083
|
icon,
|
|
20076
20084
|
value: displayValue,
|