@povio/ui 2.2.9-rc.11 → 2.2.9-rc.12
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/components/inputs/FormField/FormField.d.ts +3 -3
- package/dist/components/inputs/Input/TextInput/TextInput.js +2 -0
- package/dist/components/inputs/Selection/Autocomplete/QueryAutocomplete.js +1 -1
- package/dist/components/inputs/Selection/Select/QuerySelect.js +1 -1
- package/dist/components/inputs/Selection/shared/SelectDesktop.js +2 -2
- package/dist/components/inputs/Selection/shared/SelectMobile.js +2 -2
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { PropsWithChildren, Ref } from 'react';
|
|
1
|
+
import { FocusEventHandler, MouseEventHandler, PropsWithChildren, Ref } from 'react';
|
|
2
2
|
import { FormFieldErrorProps } from './FormFieldError';
|
|
3
3
|
import { FormFieldHeaderProps } from './FormFieldHeader';
|
|
4
4
|
import { TextInputProps } from '../Input/TextInput/TextInput';
|
|
@@ -13,8 +13,8 @@ interface FormFieldComponentProps extends PropsWithChildren<FormFieldProps> {
|
|
|
13
13
|
labelProps?: FormFieldHeaderProps["labelProps"];
|
|
14
14
|
as?: TextInputProps["as"];
|
|
15
15
|
tabIndex?: number;
|
|
16
|
-
onMouseEnter?:
|
|
17
|
-
onFocusCapture?:
|
|
16
|
+
onMouseEnter?: MouseEventHandler<HTMLDivElement>;
|
|
17
|
+
onFocusCapture?: FocusEventHandler<HTMLDivElement>;
|
|
18
18
|
}
|
|
19
19
|
export declare const FormField: ({ ref, as, label, tooltipText, helperText, isRequired, rightContent, isDisabled, error, hideLabel, headerClassName, errorClassName, children, className, labelProps, isHeaderHidden, tabIndex, onMouseEnter, onFocusCapture, }: FormFieldComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
20
20
|
export {};
|
|
@@ -84,6 +84,8 @@ var TextInputBase = (props) => {
|
|
|
84
84
|
...rest
|
|
85
85
|
}), inputClassName),
|
|
86
86
|
onClick: () => inputRef.current?.focus(),
|
|
87
|
+
"data-is-empty": value === "" || value === null || value === void 0 || void 0,
|
|
88
|
+
"data-is-required": isRequired || void 0,
|
|
87
89
|
children: /* @__PURE__ */ jsx(InputContent, {
|
|
88
90
|
...inputContentProps,
|
|
89
91
|
headerProps,
|
|
@@ -30,7 +30,7 @@ var QueryAutocomplete = ({ query, queryParams, queryOptions, queryMap, ...props
|
|
|
30
30
|
onMouseEnter: handleEnableQuery,
|
|
31
31
|
onFocusCapture: handleEnableQuery,
|
|
32
32
|
hasLoadMore: hasNextPage,
|
|
33
|
-
onLoadMore: fetchNextPage
|
|
33
|
+
onLoadMore: fetchNextPage
|
|
34
34
|
});
|
|
35
35
|
};
|
|
36
36
|
//#endregion
|
|
@@ -27,7 +27,7 @@ var QuerySelect = ({ query, queryParams, queryOptions, queryMap, ...props }) =>
|
|
|
27
27
|
isLoading,
|
|
28
28
|
totalItems,
|
|
29
29
|
hasLoadMore: hasNextPage,
|
|
30
|
-
onLoadMore: fetchNextPage
|
|
30
|
+
onLoadMore: fetchNextPage,
|
|
31
31
|
value: field.value,
|
|
32
32
|
onChange: (value) => {
|
|
33
33
|
field.onChange(value);
|
|
@@ -115,14 +115,14 @@ var SelectDesktop = ({ ref, error, ignoreTriggerWidth, showSelectionContent, inp
|
|
|
115
115
|
className: clsx("w-full", containerClassName)
|
|
116
116
|
},
|
|
117
117
|
as,
|
|
118
|
+
onMouseEnter,
|
|
119
|
+
onFocusCapture,
|
|
118
120
|
ref: wrapperRef,
|
|
119
121
|
children: [customTrigger ? /* @__PURE__ */ jsx(DialogTrigger, {
|
|
120
122
|
...dialogTriggerProps,
|
|
121
123
|
children: /* @__PURE__ */ jsx("div", {
|
|
122
124
|
...fieldProps,
|
|
123
125
|
ref: mergeRefs(ref, triggerRef),
|
|
124
|
-
onMouseEnter,
|
|
125
|
-
onFocusCapture,
|
|
126
126
|
children: customTrigger
|
|
127
127
|
})
|
|
128
128
|
}) : /* @__PURE__ */ jsx(SelectInput, {
|
|
@@ -57,13 +57,13 @@ var SelectMobile = ({ ref, error, showSelectionContent, inputClassName, containe
|
|
|
57
57
|
as,
|
|
58
58
|
labelProps,
|
|
59
59
|
className: clsx("w-full", containerClassName),
|
|
60
|
+
onMouseEnter,
|
|
61
|
+
onFocusCapture,
|
|
60
62
|
children: /* @__PURE__ */ jsxs(DialogTrigger, {
|
|
61
63
|
...dialogTriggerProps,
|
|
62
64
|
children: [customTrigger ? /* @__PURE__ */ jsx("div", {
|
|
63
65
|
...fieldProps,
|
|
64
66
|
ref,
|
|
65
|
-
onMouseEnter,
|
|
66
|
-
onFocusCapture,
|
|
67
67
|
children: customTrigger
|
|
68
68
|
}) : /* @__PURE__ */ jsx(SelectInput, {
|
|
69
69
|
ref,
|