@webority/ui-react 0.20.0 → 0.22.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.
|
@@ -20,7 +20,7 @@ import "@webority/ui-elements";
|
|
|
20
20
|
* @param {string} [props.endName] Form field name the end date posts under.
|
|
21
21
|
* @param {string} [props.min]
|
|
22
22
|
* @param {string} [props.max]
|
|
23
|
-
* @param {string} [props.placeholder="Start
|
|
23
|
+
* @param {string} [props.placeholder="Start to End"]
|
|
24
24
|
* @param {boolean} [props.disabled]
|
|
25
25
|
* @param {'sm'|'md'|'lg'} [props.size] Control height tier, matching AppInput.
|
|
26
26
|
* @param {0|1|2|3|4|5|6} [props.firstDay=0] First weekday of the calendar — 0 Sun (default), 1 Mon…
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
* @param {boolean|object} [props.passwordRequirements=false] Only honoured when `type="password"`.
|
|
46
46
|
* Pass `true` for the default policy (≥8 chars, upper, lower, digit, special), or an object to
|
|
47
47
|
* configure it — `{ minLength, uppercase, lowercase, digit, special, uniqueChars, title }`. Shows
|
|
48
|
-
* a live "Password
|
|
48
|
+
* a live "Password requirements" checklist on focus that ticks each rule green as the user types
|
|
49
49
|
* (client-side, before any server validation). The rule set is the one shared with Razor via
|
|
50
50
|
* `@webority/ui-elements`, so both surfaces validate identically.
|
|
51
51
|
* @param {"auto"|"top"|"bottom"|"start"|"end"} [props.requirementsPlacement="auto"] Which side the
|
package/dist/ui-react.js
CHANGED
|
@@ -1668,7 +1668,7 @@ function zt({ value: e = "#000000", onChange: t, label: n, required: r = !1, err
|
|
|
1668
1668
|
value: _(e) ? e : "#000000",
|
|
1669
1669
|
onChange: (e) => t?.(e.target.value),
|
|
1670
1670
|
disabled: l,
|
|
1671
|
-
"aria-label": `${n || "Colour"}
|
|
1671
|
+
"aria-label": `${n || "Colour"}, colour picker`,
|
|
1672
1672
|
tabIndex: -1
|
|
1673
1673
|
}), /* @__PURE__ */ E("input", {
|
|
1674
1674
|
type: "text",
|
|
@@ -2166,7 +2166,7 @@ var rn = i(function({ label: e, required: t = !1, error: n, hint: r, help: i, he
|
|
|
2166
2166
|
placeholder: j ? " " : F.placeholder,
|
|
2167
2167
|
ref: U,
|
|
2168
2168
|
onInput: ce || W ? fe : F.onInput
|
|
2169
|
-
}), q = N === !0 || N, ve = q && typeof q == "object" && q.title || "Password
|
|
2169
|
+
}), q = N === !0 || N, ve = q && typeof q == "object" && q.title || "Password requirements", ye = W ? ee(le, q) : null, be = W ? /* @__PURE__ */ E("ul", {
|
|
2170
2170
|
className: "pw-criteria",
|
|
2171
2171
|
"aria-live": "polite",
|
|
2172
2172
|
children: ye.map((e) => /* @__PURE__ */ D("li", {
|
|
@@ -2182,7 +2182,7 @@ var rn = i(function({ label: e, required: t = !1, error: n, hint: r, help: i, he
|
|
|
2182
2182
|
}),
|
|
2183
2183
|
/* @__PURE__ */ E("span", {
|
|
2184
2184
|
className: "visually-hidden",
|
|
2185
|
-
children: e.met ? "
|
|
2185
|
+
children: e.met ? ": met" : ": not met"
|
|
2186
2186
|
})
|
|
2187
2187
|
]
|
|
2188
2188
|
}, e.key))
|
|
@@ -2956,7 +2956,7 @@ var Tn = i(function({ value: e, onChange: t, label: n, required: r = !1, hint: i
|
|
|
2956
2956
|
})
|
|
2957
2957
|
]
|
|
2958
2958
|
});
|
|
2959
|
-
}), En = i(function({ start: e, end: t, onChange: n, label: r, required: i = !1, hint: a, error: c, startName: l, endName: u, min: d, max: f, placeholder: p = "Start
|
|
2959
|
+
}), En = i(function({ start: e, end: t, onChange: n, label: r, required: i = !1, hint: a, error: c, startName: l, endName: u, min: d, max: f, placeholder: p = "Start to End", disabled: m, size: h, firstDay: g, id: _, ariaLabel: v, className: y = "", fieldClassName: b = "", ...x }, S) {
|
|
2960
2960
|
G("AppDateRangePicker", x);
|
|
2961
2961
|
let C = s(), w = _ || C, { setRef: T, innerRef: O } = Q({
|
|
2962
2962
|
ref: S,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@webority/ui-react",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.22.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,11 +29,11 @@
|
|
|
29
29
|
},
|
|
30
30
|
"sideEffects": false,
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"@webority/theme": "0.
|
|
33
|
-
"@webority/ui-elements": "0.
|
|
32
|
+
"@webority/theme": "0.22.0",
|
|
33
|
+
"@webority/ui-elements": "0.22.0"
|
|
34
34
|
},
|
|
35
35
|
"peerDependencies": {
|
|
36
|
-
"@webority/analytics": "^0.6.0",
|
|
36
|
+
"@webority/analytics": "^0.6.0 || ^0.7.0",
|
|
37
37
|
"bootstrap": "5.3.3",
|
|
38
38
|
"react": "^19.0.0",
|
|
39
39
|
"react-bootstrap": "^2.10.0",
|