@webority/ui-react 0.16.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 {'pill'|'circle'|'round'} [props.shape] Track shape — `pill` (default) is the sliding
16
- * pill (squircle ends); `round` is the same sliding pill with truly circular ends
17
- * (`corner-shape: round`); `circle` is a compact round on/off button.
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
@@ -4528,7 +4528,7 @@ var ar = {
4528
4528
  sm: "segmented-sm",
4529
4529
  md: "",
4530
4530
  lg: "segmented-lg",
4531
- xl: "segmented-xl"
4531
+ xl: "wui-segmented-xl"
4532
4532
  };
4533
4533
  function or({ options: e = [], value: t, onChange: n, label: r, name: i, size: a = "md", fullWidth: c = !1, bordered: u = !0, disabled: f = !1, className: p = "", ...m }) {
4534
4534
  W("AppSegmented", m), G("AppSegmented", "size", a, Object.keys(ar));
@@ -4536,7 +4536,7 @@ function or({ options: e = [], value: t, onChange: n, label: r, name: i, size: a
4536
4536
  "segmented",
4537
4537
  ar[a] ?? "",
4538
4538
  c ? "segmented-full" : "",
4539
- u ? "" : "segmented-borderless",
4539
+ u ? "" : "wui-segmented-borderless",
4540
4540
  f ? "is-disabled" : "",
4541
4541
  p
4542
4542
  ].filter(Boolean).join(" ");
@@ -4928,14 +4928,22 @@ function fr({ show: e, onHide: t, side: n = "right", title: r, titleIcon: i, hea
4928
4928
  size: 18
4929
4929
  })
4930
4930
  }), r]
4931
- }), p && /* @__PURE__ */ E(Be, {
4932
- variant: "ghost",
4933
- className: "btn-icon",
4931
+ }), p && /* @__PURE__ */ E("button", {
4932
+ type: "button",
4933
+ className: "wui-drawer-close",
4934
4934
  onClick: t,
4935
4935
  "aria-label": "Close",
4936
- children: /* @__PURE__ */ E(Y, {
4937
- name: "x",
4938
- size: 16
4936
+ children: /* @__PURE__ */ E("svg", {
4937
+ width: "18",
4938
+ height: "18",
4939
+ viewBox: "0 0 24 24",
4940
+ fill: "none",
4941
+ stroke: "currentColor",
4942
+ strokeWidth: "2",
4943
+ strokeLinecap: "round",
4944
+ strokeLinejoin: "round",
4945
+ "aria-hidden": "true",
4946
+ children: /* @__PURE__ */ E("path", { d: "M18 6 6 18M6 6l12 12" })
4939
4947
  })
4940
4948
  })]
4941
4949
  }) : a,
@@ -5158,7 +5166,7 @@ function vr(e, t) {
5158
5166
  }
5159
5167
  //#endregion
5160
5168
  //#region src/components/AppSwitch.jsx
5161
- var yr = i(function({ label: e, id: t, name: n, error: r, hint: i, shape: a = "pill", className: o = "", ...s }, c) {
5169
+ var yr = i(function({ label: e, id: t, name: n, error: r, hint: i, shape: a = "round", className: o = "", ...s }, c) {
5162
5170
  return W("AppSwitch", s), /* @__PURE__ */ E(vt, {
5163
5171
  ref: c,
5164
5172
  label: e,
@@ -5169,7 +5177,7 @@ var yr = i(function({ label: e, id: t, name: n, error: r, hint: i, shape: a = "p
5169
5177
  className: o,
5170
5178
  rest: s,
5171
5179
  inputType: "checkbox",
5172
- wrapperClass: `form-check form-switch${a === "circle" ? " form-switch-circle" : a === "round" ? " form-switch-round" : ""}`
5180
+ wrapperClass: `form-check form-switch${a === "circle" ? " form-switch-circle" : a === "pill" ? " form-switch-pill" : ""}`
5173
5181
  });
5174
5182
  });
5175
5183
  //#endregion
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@webority/ui-react",
3
- "version": "0.16.0",
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/theme": "0.16.0",
32
- "@webority/ui-elements": "0.16.0"
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",