urfu-ui-kit-react 1.7.1 → 1.7.2

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.
@@ -817,11 +817,13 @@ const Ki = (n) => !!n.to, Kf = ({
817
817
  }
818
818
  };
819
819
  return /* @__PURE__ */ m("div", { className: `u-breadcrumbs ${a}`.trim(), children: e.map((o, i) => {
820
- const s = Ki(o) && !!o.to, l = `u-breadcrumbs__item ${s ? "u-breadcrumbs__link" : ""}`.trim();
821
- return /* @__PURE__ */ V("div", { className: l, onClick: () => s && r(o.to), children: [
822
- i > 0 ? /* @__PURE__ */ m("span", { className: "u-breadcrumbs__separator", children: "/" }) : null,
823
- i === 0 ? /* @__PURE__ */ m(zr, { name: "left-arrow", color: "#1E4391", size: "17px" }) : null,
824
- o.label
820
+ const s = Ki(o) && !!o.to, l = s ? "th clr-blue-main" : "tt clr-gray-60", d = `u-breadcrumbs__item ${s ? `ucp ${l}` : l}`.trim(), u = i < e.length - 1;
821
+ return /* @__PURE__ */ V("div", { className: "u-breadcrumbs__entry", children: [
822
+ /* @__PURE__ */ V("div", { className: d, onClick: () => s && r(o.to), children: [
823
+ i === 0 ? /* @__PURE__ */ m(zr, { name: "left-arrow", className: "clr-blue-main", size: "16px" }) : null,
824
+ o.label
825
+ ] }),
826
+ u ? /* @__PURE__ */ m("span", { className: l, children: "/" }) : null
825
827
  ] }, `${i}-${String(o.label)}`);
826
828
  }) });
827
829
  }, Xi = ({
@@ -9835,12 +9837,12 @@ const Ir = [
9835
9837
  const p = i || (o ? (g) => {
9836
9838
  o(g);
9837
9839
  } : void 0);
9838
- return /* @__PURE__ */ V("label", { style: Object.assign({ columnGap: n ? "" : 0 }, u || {}), className: `u-checkbox ${s}`, children: [
9840
+ return /* @__PURE__ */ m("div", { className: "u-checkbox-wrapper", children: /* @__PURE__ */ V("label", { style: Object.assign({ columnGap: n ? "" : 0 }, u || {}), className: `u-checkbox ${s}`, children: [
9839
9841
  r && /* @__PURE__ */ m($e, { children: n }),
9840
9842
  /* @__PURE__ */ m("input", { defaultChecked: e, checked: t, disabled: a, id: l, type: "checkbox", onChange: p, onClick: o, readOnly: t !== void 0 && !i && !o, ...d }),
9841
9843
  /* @__PURE__ */ m("div", { className: "u-checkbox-input" }),
9842
9844
  !r && /* @__PURE__ */ m($e, { children: n })
9843
- ] });
9845
+ ] }) });
9844
9846
  };
9845
9847
  of.propTypes = {
9846
9848
  children: b.node,
@@ -11283,12 +11285,12 @@ const vf = ({
11283
11285
  onClick: r,
11284
11286
  className: o = "",
11285
11287
  style: i
11286
- }) => /* @__PURE__ */ V("label", { style: Object.assign({ columnGap: n ? "" : 0 }, i || {}), className: `u-radio ${o}`, children: [
11288
+ }) => /* @__PURE__ */ m("div", { className: "u-radio-wrapper", children: /* @__PURE__ */ V("label", { style: Object.assign({ columnGap: n ? "" : 0 }, i || {}), className: `u-radio ${o}`, children: [
11287
11289
  e && n && /* @__PURE__ */ m($e, { children: n }),
11288
11290
  /* @__PURE__ */ m("input", { checked: t, disabled: a, type: "radio", onClick: r }),
11289
11291
  /* @__PURE__ */ m("div", { className: "u-radio-input" }),
11290
11292
  !e && n && /* @__PURE__ */ m($e, { children: n })
11291
- ] });
11293
+ ] }) });
11292
11294
  vf.propTypes = {
11293
11295
  children: b.node,
11294
11296
  disabled: b.bool,
@@ -11835,7 +11837,7 @@ function Jf({
11835
11837
  className: o
11836
11838
  }) {
11837
11839
  const i = Fi(), s = r ?? i, l = ["u-switch", o].filter(Boolean).join(" ");
11838
- return /* @__PURE__ */ V("label", { className: l, htmlFor: s, children: [
11840
+ return /* @__PURE__ */ m("div", { className: "u-switch-wrapper", children: /* @__PURE__ */ V("label", { className: l, htmlFor: s, children: [
11839
11841
  /* @__PURE__ */ m(
11840
11842
  "input",
11841
11843
  {
@@ -11848,7 +11850,7 @@ function Jf({
11848
11850
  ),
11849
11851
  /* @__PURE__ */ m("div", { className: "u-switch__point" }),
11850
11852
  e
11851
- ] });
11853
+ ] }) });
11852
11854
  }
11853
11855
  function xf(n, a) {
11854
11856
  me(() => {
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "description": "UrFU UI-Kit for React Web",
4
4
  "license": "UNLICENSED",
5
5
  "private": false,
6
- "version": "1.7.1",
6
+ "version": "1.7.2",
7
7
  "type": "module",
8
8
  "main": "dist/urfu-ui-kit-react",
9
9
  "types": "dist/index.d.ts",