@cobre-npm/ds-v3 0.51.0 → 0.52.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.
@@ -3534,10 +3534,7 @@ const Ph = /* @__PURE__ */ $u(Oy, [["render", Yy]]), Wy = { class: "co-input-gro
3534
3534
  ])
3535
3535
  ]));
3536
3536
  }
3537
- }), WL = /* @__PURE__ */ st(fb, [["__scopeId", "data-v-972a5a06"]]), hb = ["id", "disabled", "name", "value", "checked"], pb = ["for"], mb = {
3538
- key: 0,
3539
- class: "co-radio__description mb-0"
3540
- }, vb = /* @__PURE__ */ De({
3537
+ }), WL = /* @__PURE__ */ st(fb, [["__scopeId", "data-v-972a5a06"]]), hb = ["id", "disabled", "name", "value", "checked"], pb = ["for"], mb = ["for"], vb = /* @__PURE__ */ De({
3541
3538
  __name: "CobreRadio",
3542
3539
  props: {
3543
3540
  modelValue: { type: [String, Boolean], default: !1 },
@@ -3554,41 +3551,42 @@ const Ph = /* @__PURE__ */ $u(Oy, [["render", Yy]]), Wy = { class: "co-input-gro
3554
3551
  setup(t, { emit: e }) {
3555
3552
  const n = t, a = e, r = j(
3556
3553
  () => n.checked ? !0 : n.modelValue === n.value
3557
- ), o = (l) => {
3558
- var u;
3559
- a("update:modelValue", (u = l == null ? void 0 : l.target) == null ? void 0 : u.value);
3560
- }, i = () => {
3561
- n.disabled || a("update:modelValue", n.value);
3554
+ ), o = (i) => {
3555
+ var l;
3556
+ a("update:modelValue", (l = i == null ? void 0 : i.target) == null ? void 0 : l.value);
3562
3557
  };
3563
- return (l, u) => (_(), $("div", {
3564
- class: ne(["co-radio", { "co-radio__box co-cursor-pointer": l.type === "box", "co-radio__box--active": l.type === "box" && r.value }]),
3565
- onClick: i
3558
+ return (i, l) => (_(), $("div", {
3559
+ class: ne(["co-radio", { "co-radio__box": i.type === "box", "co-radio__box--active": i.type === "box" && r.value }])
3566
3560
  }, [
3567
3561
  M("div", {
3568
- class: ne(["co-radio d-flex align-items-center", { "co-radio--disabled": l.disabled }])
3562
+ class: ne(["co-radio d-flex align-items-center", { "co-radio--disabled": i.disabled }])
3569
3563
  }, [
3570
3564
  M("input", {
3571
- id: l.id,
3572
- disabled: l.disabled,
3573
- name: l.name,
3574
- value: l.value,
3565
+ id: i.id,
3566
+ disabled: i.disabled,
3567
+ name: i.name,
3568
+ value: i.value,
3575
3569
  checked: r.value,
3576
3570
  type: "radio",
3577
3571
  class: "co-radio__input form-check-input",
3578
3572
  onChange: o
3579
3573
  }, null, 40, hb),
3580
- l.label ? (_(), $("label", {
3574
+ i.label ? (_(), $("label", {
3581
3575
  key: 0,
3582
- class: "co-radio__label ms-2",
3583
- for: l.id
3584
- }, fe(l.label), 9, pb)) : N("", !0)
3576
+ class: "co-radio__label ps-2",
3577
+ for: i.id
3578
+ }, fe(i.label), 9, pb)) : N("", !0)
3585
3579
  ], 2),
3586
3580
  M("div", null, [
3587
- l.description ? (_(), $("p", mb, fe(l.description), 1)) : N("", !0)
3581
+ i.description ? (_(), $("label", {
3582
+ key: 0,
3583
+ class: "co-radio__description mb-0",
3584
+ for: i.id
3585
+ }, fe(i.description), 9, mb)) : N("", !0)
3588
3586
  ])
3589
3587
  ], 2));
3590
3588
  }
3591
- }), HL = /* @__PURE__ */ st(vb, [["__scopeId", "data-v-b71b91ff"]]), Ih = (t = window.location.href) => {
3589
+ }), HL = /* @__PURE__ */ st(vb, [["__scopeId", "data-v-3dd65d14"]]), Ih = (t = window.location.href) => {
3592
3590
  const e = {};
3593
3591
  return new URL(t).searchParams.forEach((n, a) => {
3594
3592
  e[a] = n;