@geomak/ui 6.17.1 → 6.18.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/README.md +59 -32
- package/dist/index.cjs +5 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +5 -3
- package/dist/index.js.map +1 -1
- package/dist/styles.css +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -2961,7 +2961,7 @@ interface TextInputProps {
|
|
|
2961
2961
|
* />
|
|
2962
2962
|
* ```
|
|
2963
2963
|
*/
|
|
2964
|
-
declare function TextInput({ value, onChange, disabled, label, htmlFor, placeholder, name, type, inputStyle, style, layout, size, onBlur, errorMessage, helperText, className, required, prefix, suffix, }: TextInputProps): react_jsx_runtime.JSX.Element;
|
|
2964
|
+
declare function TextInput({ value, onChange, disabled, label, htmlFor, placeholder, name, type, inputStyle, style, layout, size, onBlur, errorMessage, helperText, className, required, prefix, suffix, id, }: TextInputProps): react_jsx_runtime.JSX.Element;
|
|
2965
2965
|
|
|
2966
2966
|
interface NumberInputProps {
|
|
2967
2967
|
/** Step size for the up/down buttons and native arrow-key handling. Default `1`. */
|
package/dist/index.d.ts
CHANGED
|
@@ -2961,7 +2961,7 @@ interface TextInputProps {
|
|
|
2961
2961
|
* />
|
|
2962
2962
|
* ```
|
|
2963
2963
|
*/
|
|
2964
|
-
declare function TextInput({ value, onChange, disabled, label, htmlFor, placeholder, name, type, inputStyle, style, layout, size, onBlur, errorMessage, helperText, className, required, prefix, suffix, }: TextInputProps): react_jsx_runtime.JSX.Element;
|
|
2964
|
+
declare function TextInput({ value, onChange, disabled, label, htmlFor, placeholder, name, type, inputStyle, style, layout, size, onBlur, errorMessage, helperText, className, required, prefix, suffix, id, }: TextInputProps): react_jsx_runtime.JSX.Element;
|
|
2965
2965
|
|
|
2966
2966
|
interface NumberInputProps {
|
|
2967
2967
|
/** Step size for the up/down buttons and native arrow-key handling. Default `1`. */
|
package/dist/index.js
CHANGED
|
@@ -2968,11 +2968,13 @@ function TextInput({
|
|
|
2968
2968
|
className,
|
|
2969
2969
|
required,
|
|
2970
2970
|
prefix,
|
|
2971
|
-
suffix
|
|
2971
|
+
suffix,
|
|
2972
|
+
id
|
|
2972
2973
|
}) {
|
|
2973
2974
|
const errorId = useId();
|
|
2974
2975
|
const hasError = errorMessage != null;
|
|
2975
2976
|
const hasAdornment = prefix != null || suffix != null;
|
|
2977
|
+
const inputId = htmlFor ?? id;
|
|
2976
2978
|
const input = /* @__PURE__ */ jsx(
|
|
2977
2979
|
"input",
|
|
2978
2980
|
{
|
|
@@ -2983,7 +2985,7 @@ function TextInput({
|
|
|
2983
2985
|
onBlur,
|
|
2984
2986
|
type,
|
|
2985
2987
|
name,
|
|
2986
|
-
id:
|
|
2988
|
+
id: inputId,
|
|
2987
2989
|
"aria-invalid": hasError || void 0,
|
|
2988
2990
|
"aria-describedby": hasError ? errorId : void 0,
|
|
2989
2991
|
placeholder: placeholder ?? "",
|
|
@@ -2996,7 +2998,7 @@ function TextInput({
|
|
|
2996
2998
|
{
|
|
2997
2999
|
className,
|
|
2998
3000
|
label,
|
|
2999
|
-
htmlFor,
|
|
3001
|
+
htmlFor: inputId,
|
|
3000
3002
|
errorId,
|
|
3001
3003
|
errorMessage,
|
|
3002
3004
|
helperText,
|