@webority/ui-react 0.28.0 → 0.29.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.
@@ -43,8 +43,10 @@
43
43
  * @param {"bare"} [props.variant] Borderless variant — no border/background, inherits the
44
44
  * container's chrome (inline-rename, ⌘K).
45
45
  * @param {boolean|object} [props.passwordRequirements=false] Only honoured when `type="password"`.
46
- * Pass `true` for the default policy (≥8 chars, upper, lower, digit, special), or an object to
47
- * configure it — `{ minLength, uppercase, lowercase, digit, special, uniqueChars, title }`. Shows
46
+ * Pass `true` for the default policy (≥10 chars, upper, lower, digit, special), or an object to
47
+ * configure it — `{ minLength, uppercase, lowercase, digit, special, uniqueChars, customRules, title }`.
48
+ * `customRules` is a list of `{ label, pattern }` for a product's own rules (such as no spaces): a rule
49
+ * ticks when the regular expression `pattern` (a JavaScript RegExp source string) matches. Shows
48
50
  * a live "Password requirements" checklist on focus that ticks each rule green as the user types
49
51
  * (client-side, before any server validation). The rule set is the one shared with Razor via
50
52
  * `@webority/ui-elements`, so both surfaces validate identically.
package/dist/ui-react.js CHANGED
@@ -675,7 +675,10 @@ var at = [
675
675
  "twotone"
676
676
  ];
677
677
  function ot({ icon: e, iconVariant: t, label: n, tooltipPlacement: r = "auto", danger: i = !1, disabled: a = !1, size: o = 20, onClick: s, className: c = "", as: l, href: u, ...d }) {
678
- Y("AppActionIcon", d), J("AppActionIcon", "iconVariant", t, at);
678
+ Y("AppActionIcon", l === void 0 ? d : {
679
+ ...d,
680
+ as: l
681
+ }), J("AppActionIcon", "iconVariant", t, at);
679
682
  let f = [
680
683
  "u-action",
681
684
  i ? "danger" : "",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@webority/ui-react",
3
- "version": "0.28.0",
3
+ "version": "0.29.0",
4
4
  "description": "Webority shared React component library — App* primitives on react-bootstrap + the @webority/theme design system.",
5
5
  "license": "SEE LICENSE IN LICENSE",
6
6
  "type": "module",
@@ -29,8 +29,8 @@
29
29
  },
30
30
  "sideEffects": false,
31
31
  "dependencies": {
32
- "@webority/theme": "0.28.0",
33
- "@webority/ui-elements": "0.28.0"
32
+ "@webority/ui-elements": "0.29.0",
33
+ "@webority/theme": "0.29.0"
34
34
  },
35
35
  "peerDependencies": {
36
36
  "@webority/analytics": "^0.6.0 || ^0.7.0 || ^0.8.0 || ^0.9.0",