revdev-components 0.17.0 → 0.19.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.
@@ -9,5 +9,6 @@ export interface AppFormRules {
9
9
  onlyKey: AppFormRule;
10
10
  maxLength: AppFormRuleLength;
11
11
  minLength: AppFormRuleLength;
12
+ length: AppFormRuleLength;
12
13
  }
13
14
  export declare function useAppFormRules(): AppFormRules;
package/build/index.js CHANGED
@@ -4746,6 +4746,7 @@ function useAppFormRules() {
4746
4746
  onlyKey: function (message) { return ({ pattern: /^([a-z\d]*[-])*[a-z\d]+$/i, message: message }); },
4747
4747
  maxLength: function (message, length) { return ({ max: length, message: message }); },
4748
4748
  minLength: function (message, length) { return ({ min: length, message: message }); },
4749
+ length: function (message, length) { return ({ len: length, message: message }); },
4749
4750
  };
4750
4751
  }, []);
4751
4752
  }
@@ -4868,14 +4869,18 @@ var FlatButton = function (_a) {
4868
4869
  var s$6 = {"root":"index-module_root__r-dVh"};
4869
4870
 
4870
4871
  var AppLink = function (_a) {
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 _b;
4873
+ 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, noneDecoration = _a.noneDecoration, showUnderline = _a.showUnderline, aRef = _a.aRef, rest = __rest(_a, ["href", "as", "className", "children", "shallow", "title", "route", "params", "noneDecoration", "showUnderline", "aRef"]);
4872
4874
  var href = propHref;
4873
4875
  if (!href) {
4874
4876
  if (route) {
4875
4877
  href = route.build(params || {});
4876
4878
  }
4877
4879
  }
4878
- return (React.createElement(Link, __assign({ href: href, as: as, shallow: shallow, title: title, className: classNames(s$6.root, className) }, rest), children));
4880
+ return (React.createElement(Link, __assign({ href: href, as: as, shallow: shallow, title: title, className: classNames(s$6.root, className, (_b = {},
4881
+ _b[s$6.none__decoration] = noneDecoration,
4882
+ _b[s$6.show__underline] = showUnderline,
4883
+ _b)), ref: aRef }, rest), children));
4879
4884
  };
4880
4885
 
4881
4886
  var s$5 = {"root":"index-module_root__gpEkZ"};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "revdev-components",
3
- "version": "0.17.0",
3
+ "version": "0.19.0",
4
4
  "main": "build/index.js",
5
5
  "module": "build/index.esm.js",
6
6
  "scripts": {