revdev-components 0.15.0 → 0.17.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.
|
@@ -2,6 +2,7 @@ import React from "react";
|
|
|
2
2
|
import { InputProps } from "antd";
|
|
3
3
|
import { FormLineProps } from "../line";
|
|
4
4
|
interface Props extends FormLineProps, Omit<InputProps, "name"> {
|
|
5
|
+
inputRegex?: string | RegExp;
|
|
5
6
|
}
|
|
6
7
|
export declare const InputField: React.FC<Props>;
|
|
7
8
|
export {};
|
package/build/index.js
CHANGED
|
@@ -4868,8 +4868,14 @@ var FlatButton = function (_a) {
|
|
|
4868
4868
|
var s$6 = {"root":"index-module_root__r-dVh"};
|
|
4869
4869
|
|
|
4870
4870
|
var AppLink = function (_a) {
|
|
4871
|
-
var
|
|
4872
|
-
|
|
4871
|
+
var propHref = _a.href, as = _a.as, className = _a.className, children = _a.children, shallow = _a.shallow, title = _a.title, route = _a.route, params = _a.params, rest = __rest(_a, ["href", "as", "className", "children", "shallow", "title", "route", "params"]);
|
|
4872
|
+
var href = propHref;
|
|
4873
|
+
if (!href) {
|
|
4874
|
+
if (route) {
|
|
4875
|
+
href = route.build(params || {});
|
|
4876
|
+
}
|
|
4877
|
+
}
|
|
4878
|
+
return (React.createElement(Link, __assign({ href: href, as: as, shallow: shallow, title: title, className: classNames(s$6.root, className) }, rest), children));
|
|
4873
4879
|
};
|
|
4874
4880
|
|
|
4875
4881
|
var s$5 = {"root":"index-module_root__gpEkZ"};
|
|
@@ -1,5 +1,16 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
|
|
2
|
+
import { PagePath } from "page-path";
|
|
3
|
+
interface Props<TQuery = any> extends React.AnchorHTMLAttributes<HTMLAnchorElement> {
|
|
4
|
+
as?: string;
|
|
5
|
+
shallow?: boolean;
|
|
6
|
+
className?: string;
|
|
7
|
+
style?: React.CSSProperties;
|
|
8
|
+
noneDecoration?: boolean;
|
|
9
|
+
showUnderline?: boolean;
|
|
10
|
+
title?: string;
|
|
11
|
+
route?: PagePath<TQuery>;
|
|
12
|
+
params?: TQuery;
|
|
13
|
+
aRef?: React.RefObject<any>;
|
|
3
14
|
}
|
|
4
15
|
export declare const AppLink: React.FC<Props>;
|
|
5
16
|
export {};
|