ui-mathilde-web 0.3.6 → 0.3.8

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.
@@ -447,6 +447,15 @@ declare interface TermsCheckboxProps {
447
447
  label?: string;
448
448
  }
449
449
 
450
+ export declare function Toggle({ label, checked, disabled, onChange, }: ToggleProps): JSX_2.Element;
451
+
452
+ declare interface ToggleProps {
453
+ label?: string;
454
+ checked?: boolean;
455
+ disabled?: boolean;
456
+ onChange?: (checked: boolean) => void;
457
+ }
458
+
450
459
  declare interface ValidationListProps {
451
460
  validations: {
452
461
  hasMinLength: boolean;
@@ -29553,8 +29553,8 @@ const jN = {
29553
29553
  back: h,
29554
29554
  goToStep: g
29555
29555
  };
29556
- return /* @__PURE__ */ G("div", { className: "mx-auto flex w-full max-w-5xl flex-col md:flex-row", children: [
29557
- /* @__PURE__ */ b("ol", { className: "relative border-s-2 border-[#191960] text-gray-500 dark:border-gray-700 dark:text-gray-400 w-full", children: t.map((x, w) => {
29556
+ return /* @__PURE__ */ G("div", { className: "mx-auto flex w-full flex-col md:flex-row", children: [
29557
+ /* @__PURE__ */ b("ol", { className: "relative border-s-2 border-[#191960] text-gray-500 dark:border-gray-700 dark:text-gray-400 w-full self-start", children: t.map((x, w) => {
29558
29558
  const k = w === t.length - 1, v = w + 1 === u, y = w + 1 < u;
29559
29559
  return /* @__PURE__ */ G("li", { className: `ms-4 ${k ? "" : "mb-8"}`, children: [
29560
29560
  /* @__PURE__ */ b(
@@ -29574,34 +29574,11 @@ const jN = {
29574
29574
  )
29575
29575
  ] }, x.title);
29576
29576
  }) }),
29577
- /* @__PURE__ */ G("div", { className: "w-full md:w-2/3 p-6 mt-6 mx-10 border-l-[1px] border-[#8B8B8B] md:mt-0 transition-all duration-300", children: [
29578
- /* @__PURE__ */ b("div", { children: ((p = t[u - 1]) == null ? void 0 : p.content) || /* @__PURE__ */ b("p", { children: "No hay contenido." }) }),
29579
- /* @__PURE__ */ b("div", { className: "mt-6 flex justify-between ", children: a ? (
29580
- // Si el parent provee renderControls, lo usamos
29581
- a(m)
29582
- ) : (
29583
- // Controles por defecto
29584
- /* @__PURE__ */ G($t, { children: [
29585
- /* @__PURE__ */ b(
29586
- Ya,
29587
- {
29588
- color: "gray",
29589
- disabled: u === 1,
29590
- onClick: h,
29591
- children: "Atrás"
29592
- }
29593
- ),
29594
- u < t.length ? /* @__PURE__ */ b(
29595
- Ya,
29596
- {
29597
- style: { backgroundColor: "#191960" },
29598
- onClick: f,
29599
- children: "Siguiente"
29600
- }
29601
- ) : /* @__PURE__ */ b(Ya, { color: "success", onClick: o, children: "Finalizar" })
29602
- ] })
29603
- ) })
29604
- ] })
29577
+ /* @__PURE__ */ b("div", { className: "w-full p-6 mt-6 mx-10 border-l-[1px] border-[#8B8B8B] md:mt-0 transition-all duration-300", children: /* @__PURE__ */ b("div", { children: ((p = t[u - 1]) == null ? void 0 : p.content) || /* @__PURE__ */ b("p", { children: "No hay contenido." }) }) }),
29578
+ /* @__PURE__ */ b("div", { className: "fixed bottom-0 left-0 w-full p-6", children: /* @__PURE__ */ b("div", { className: "flex justify-end gap-2", children: a ? /* @__PURE__ */ b("div", { className: "w-full flex justify-end", children: a(m) }) : /* @__PURE__ */ G($t, { children: [
29579
+ /* @__PURE__ */ b(Ya, { color: "gray", disabled: u === 1, onClick: h, children: "Atrás" }),
29580
+ u < t.length ? /* @__PURE__ */ b(Ya, { style: { backgroundColor: "#191960" }, onClick: f, children: "Siguiente" }) : /* @__PURE__ */ b(Ya, { color: "success", onClick: o, children: "Finalizar" })
29581
+ ] }) }) })
29605
29582
  ] });
29606
29583
  }, XI = ({ options: t, classNameRadio: e, classNameLabel: r, onChange: n }) => /* @__PURE__ */ b("div", { className: "flex max-w-md flex-col gap-2", children: /* @__PURE__ */ b("div", { className: "flex items-center gap-3", children: t == null ? void 0 : t.map((a) => /* @__PURE__ */ G("div", { className: "flex items-center gap-2", children: [
29607
29584
  /* @__PURE__ */ b(
@@ -29653,5 +29630,6 @@ export {
29653
29630
  LI as TableOfContents,
29654
29631
  jI as TabsComponent,
29655
29632
  AI as TermsCheckbox,
29633
+ X2 as Toggle,
29656
29634
  FI as ValidationPassword
29657
29635
  };