@webority/ui-react 0.17.0 → 0.17.1
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.
|
@@ -12,9 +12,9 @@
|
|
|
12
12
|
* @param {string} [props.name]
|
|
13
13
|
* @param {string} [props.error] Error message, rendered below the control. Replaces the hint.
|
|
14
14
|
* @param {string} [props.hint] Helper text below the control. Hidden while an error is shown.
|
|
15
|
-
* @param {'
|
|
16
|
-
* pill
|
|
17
|
-
*
|
|
15
|
+
* @param {'round'|'pill'|'circle'} [props.shape] Track shape: `round` (default) is the sliding
|
|
16
|
+
* pill with truly circular ends; `pill` is the same sliding pill with squircle ends;
|
|
17
|
+
* `circle` is a compact round on/off button.
|
|
18
18
|
* @param {string} [props.className]
|
|
19
19
|
* @param {import('react').Ref<HTMLInputElement>} [ref]
|
|
20
20
|
*/
|
package/dist/ui-react.js
CHANGED
|
@@ -5166,7 +5166,7 @@ function vr(e, t) {
|
|
|
5166
5166
|
}
|
|
5167
5167
|
//#endregion
|
|
5168
5168
|
//#region src/components/AppSwitch.jsx
|
|
5169
|
-
var yr = i(function({ label: e, id: t, name: n, error: r, hint: i, shape: a = "
|
|
5169
|
+
var yr = i(function({ label: e, id: t, name: n, error: r, hint: i, shape: a = "round", className: o = "", ...s }, c) {
|
|
5170
5170
|
return W("AppSwitch", s), /* @__PURE__ */ E(vt, {
|
|
5171
5171
|
ref: c,
|
|
5172
5172
|
label: e,
|
|
@@ -5177,7 +5177,7 @@ var yr = i(function({ label: e, id: t, name: n, error: r, hint: i, shape: a = "p
|
|
|
5177
5177
|
className: o,
|
|
5178
5178
|
rest: s,
|
|
5179
5179
|
inputType: "checkbox",
|
|
5180
|
-
wrapperClass: `form-check form-switch${a === "circle" ? " form-switch-circle" : a === "
|
|
5180
|
+
wrapperClass: `form-check form-switch${a === "circle" ? " form-switch-circle" : a === "pill" ? " form-switch-pill" : ""}`
|
|
5181
5181
|
});
|
|
5182
5182
|
});
|
|
5183
5183
|
//#endregion
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@webority/ui-react",
|
|
3
|
-
"version": "0.17.
|
|
3
|
+
"version": "0.17.1",
|
|
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",
|
|
@@ -28,8 +28,8 @@
|
|
|
28
28
|
},
|
|
29
29
|
"sideEffects": false,
|
|
30
30
|
"dependencies": {
|
|
31
|
-
"@webority/
|
|
32
|
-
"@webority/
|
|
31
|
+
"@webority/theme": "0.17.1",
|
|
32
|
+
"@webority/ui-elements": "0.17.1"
|
|
33
33
|
},
|
|
34
34
|
"peerDependencies": {
|
|
35
35
|
"@webority/analytics": "^0.6.0",
|