@geomak/ui 6.17.0 → 6.17.2
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/dist/index.cjs +6 -4
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +6 -4
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -318,7 +318,7 @@ interface PortalProps {
|
|
|
318
318
|
* @example Full-screen loading overlay
|
|
319
319
|
* ```tsx
|
|
320
320
|
* <Portal>
|
|
321
|
-
* <div className="fixed inset-0 bg-
|
|
321
|
+
* <div className="fixed inset-0 bg-backdrop z-overlay flex items-center justify-center">
|
|
322
322
|
* <Spinner />
|
|
323
323
|
* </div>
|
|
324
324
|
* </Portal>
|
|
@@ -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
|
@@ -318,7 +318,7 @@ interface PortalProps {
|
|
|
318
318
|
* @example Full-screen loading overlay
|
|
319
319
|
* ```tsx
|
|
320
320
|
* <Portal>
|
|
321
|
-
* <div className="fixed inset-0 bg-
|
|
321
|
+
* <div className="fixed inset-0 bg-backdrop z-overlay flex items-center justify-center">
|
|
322
322
|
* <Spinner />
|
|
323
323
|
* </div>
|
|
324
324
|
* </Portal>
|
|
@@ -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,
|
|
@@ -6524,7 +6526,7 @@ function TreeNodeRow({
|
|
|
6524
6526
|
},
|
|
6525
6527
|
"aria-label": isExpanded ? "Collapse" : "Expand",
|
|
6526
6528
|
tabIndex: -1,
|
|
6527
|
-
className: "w-5 h-5 inline-flex items-center justify-center rounded hover:bg-
|
|
6529
|
+
className: "w-5 h-5 inline-flex items-center justify-center rounded hover:bg-surface-raised focus:outline-none",
|
|
6528
6530
|
children: /* @__PURE__ */ jsx(
|
|
6529
6531
|
"svg",
|
|
6530
6532
|
{
|