ab-ui-library 1.42.2 → 1.42.4
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/components/AdvancedTable/Table.d.ts +1 -1
- package/components/FormContainer/FormContainer.js +2 -1
- package/components/FormContainer/types.d.ts +5 -0
- package/components/Menu/Menu.js +3 -0
- package/components/Menu/types.d.ts +1 -0
- package/components/OneTimePassword/types.d.ts +1 -1
- package/helperComponents/OptionItem/OptionItem.js +4 -1
- package/helperComponents/OptionItem/types.d.ts +1 -0
- package/package.json +1 -1
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import type { TTableProps } from './types';
|
|
2
2
|
import 'react-loading-skeleton/dist/skeleton.css';
|
|
3
|
-
export declare function Table<TData>({ data, columns, isLoading, hasError, isActionsVisible, totalCount, emptyTitle, emptySubTitle, emptyIllustration, withSelect, withBorder, defaultPageIndex, defaultPageSize, defaultHiddenColumns, collapsibleRows, renderExpandedContent, renderHeader, renderFooter, onSortChange, onRowClick, tableSettings, onRowSelection, onColumnSizing, onPaginationChange, rowEventsProps
|
|
3
|
+
export declare function Table<TData>({ data, columns, isLoading, hasError, isActionsVisible, totalCount, emptyTitle, emptySubTitle, emptyIllustration, withSelect, withBorder, defaultPageIndex, defaultPageSize, defaultHiddenColumns, collapsibleRows, renderExpandedContent, renderHeader, renderFooter, onSortChange, onRowClick, tableSettings, onRowSelection, onColumnSizing, onPaginationChange, rowEventsProps }: TTableProps<TData>): import("react/jsx-runtime").JSX.Element;
|
|
@@ -46,12 +46,13 @@ var FormContainer = function FormContainer(props) {
|
|
|
46
46
|
mode = _props$mode === void 0 ? 'onBlur' : _props$mode,
|
|
47
47
|
initialValues = props.initialValues,
|
|
48
48
|
validationScheme = props.validationScheme,
|
|
49
|
+
validationSchemeOptions = props.validationSchemeOptions,
|
|
49
50
|
buttonConfigs = props.buttonConfigs,
|
|
50
51
|
formId = props.formId,
|
|
51
52
|
onSubmit = props.onSubmit;
|
|
52
53
|
var _useForm = useForm({
|
|
53
54
|
mode: mode,
|
|
54
|
-
resolver: o(validationScheme),
|
|
55
|
+
resolver: o(validationScheme, validationSchemeOptions),
|
|
55
56
|
defaultValues: initialValues,
|
|
56
57
|
shouldFocusError: shouldFocusError,
|
|
57
58
|
shouldUnregister: shouldUnregister
|
|
@@ -11,6 +11,11 @@ export interface FormPropTypes {
|
|
|
11
11
|
onSubmit?: (data: TFormData, formState: FormState<TFormData>, dirtyFields?: TDirtyFields) => void;
|
|
12
12
|
children?: ReactNode;
|
|
13
13
|
validationScheme: AnyObjectSchema;
|
|
14
|
+
validationSchemeOptions?: {
|
|
15
|
+
context?: unknown;
|
|
16
|
+
stripUnknown?: boolean;
|
|
17
|
+
recursive?: boolean;
|
|
18
|
+
};
|
|
14
19
|
initialValues: TFormData;
|
|
15
20
|
buttonConfigs?: TButtonPropTypes[];
|
|
16
21
|
shouldUnregister?: boolean;
|
package/components/Menu/Menu.js
CHANGED
|
@@ -57,6 +57,8 @@ var Menu = function Menu(props) {
|
|
|
57
57
|
position = _props$position === void 0 ? 'bottom-right' : _props$position,
|
|
58
58
|
_props$className = props.className,
|
|
59
59
|
className = _props$className === void 0 ? '' : _props$className,
|
|
60
|
+
_props$withTitleOptio = props.withTitleOption,
|
|
61
|
+
withTitleOption = _props$withTitleOptio === void 0 ? false : _props$withTitleOptio,
|
|
60
62
|
children = props.children;
|
|
61
63
|
var _useState = useState(null),
|
|
62
64
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -126,6 +128,7 @@ var Menu = function Menu(props) {
|
|
|
126
128
|
dataId = _ref.dataId;
|
|
127
129
|
return /*#__PURE__*/React.createElement(OptionItem, {
|
|
128
130
|
dataId: dataId,
|
|
131
|
+
withTitleOption: withTitleOption,
|
|
129
132
|
disabled: disabled,
|
|
130
133
|
key: value,
|
|
131
134
|
data: {
|
|
@@ -6,7 +6,7 @@ export interface OtpCustomProps extends IFormCompProps, Omit<InputHTMLAttributes
|
|
|
6
6
|
error?: string | ReactElement;
|
|
7
7
|
label?: string | ReactElement;
|
|
8
8
|
count: number;
|
|
9
|
-
pattern
|
|
9
|
+
pattern?: string;
|
|
10
10
|
disabled?: boolean;
|
|
11
11
|
required?: boolean;
|
|
12
12
|
ref?: RefObject<HTMLInputElement>;
|
|
@@ -61,7 +61,9 @@ var OptionItem = function OptionItem(props) {
|
|
|
61
61
|
className = _props$className === void 0 ? '' : _props$className,
|
|
62
62
|
tooltipAddons = props.tooltipAddons,
|
|
63
63
|
_props$dataId = props.dataId,
|
|
64
|
-
dataId = _props$dataId === void 0 ? '' : _props$dataId
|
|
64
|
+
dataId = _props$dataId === void 0 ? '' : _props$dataId,
|
|
65
|
+
_props$withTitleOptio = props.withTitleOption,
|
|
66
|
+
withTitleOption = _props$withTitleOptio === void 0 ? false : _props$withTitleOptio;
|
|
65
67
|
var label = data.label,
|
|
66
68
|
meta = data.meta,
|
|
67
69
|
value = data.value;
|
|
@@ -77,6 +79,7 @@ var OptionItem = function OptionItem(props) {
|
|
|
77
79
|
});
|
|
78
80
|
}, [disabled, value, label, onClick]);
|
|
79
81
|
var optionContent = /*#__PURE__*/React.createElement("div", {
|
|
82
|
+
title: withTitleOption ? "".concat(label) : '',
|
|
80
83
|
"data-id": dataId,
|
|
81
84
|
id: "".concat(value),
|
|
82
85
|
className: classNames('select__option', {
|