@klu_dev/ui-klu-green 1.2.12 → 1.2.13

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.
package/dist/index.d.ts CHANGED
@@ -128,8 +128,10 @@ interface NavItem {
128
128
 
129
129
  interface SidebarTabsProps {
130
130
  items: NavItem[];
131
+ activeTab: string;
132
+ onTabChange: (id: string) => void;
131
133
  }
132
- declare function SidebarTabs({ items }: SidebarTabsProps): react_jsx_runtime.JSX.Element;
134
+ declare function SidebarTabs({ items, activeTab, onTabChange }: SidebarTabsProps): react_jsx_runtime.JSX.Element;
133
135
 
134
136
  interface MobileMenuDrawerProps {
135
137
  isOpen: boolean;
package/dist/index.js CHANGED
@@ -1531,9 +1531,6 @@ function PromoBanner({
1531
1531
  ] });
1532
1532
  }
1533
1533
 
1534
- // src/components/ui/sidebarTabs/sidebarTabs.tsx
1535
- import { useState as useState5 } from "react";
1536
-
1537
1534
  // src/components/ui/sidebarTabs/siderTab.tsx
1538
1535
  import * as React9 from "react";
1539
1536
  import { jsx as jsx16, jsxs as jsxs13 } from "react/jsx-runtime";
@@ -1617,8 +1614,7 @@ function SidebarNav({
1617
1614
 
1618
1615
  // src/components/ui/sidebarTabs/sidebarTabs.tsx
1619
1616
  import { jsx as jsx17, jsxs as jsxs14 } from "react/jsx-runtime";
1620
- function SidebarTabs({ items }) {
1621
- const [activeTab, setActiveTab] = useState5(items[0]?.id || "");
1617
+ function SidebarTabs({ items, activeTab, onTabChange }) {
1622
1618
  const currentActiveItem = items.find((item) => item.id === activeTab);
1623
1619
  return /* @__PURE__ */ jsxs14("div", { className: "uiklu-flex uiklu-w-full uiklu-h-screen uiklu-bg-white", children: [
1624
1620
  /* @__PURE__ */ jsx17("div", { className: "uiklu-w-[162px] uiklu-h-[40px] uiklu-p-4 ", children: /* @__PURE__ */ jsx17(
@@ -1626,7 +1622,7 @@ function SidebarTabs({ items }) {
1626
1622
  {
1627
1623
  items,
1628
1624
  activeTab,
1629
- onTabChange: setActiveTab
1625
+ onTabChange
1630
1626
  }
1631
1627
  ) }),
1632
1628
  /* @__PURE__ */ jsx17("div", { className: "uiklu-flex-1", children: currentActiveItem?.content ? currentActiveItem.content : /* @__PURE__ */ jsx17("div", { className: "uiklu-p-8", children: /* @__PURE__ */ jsx17("h2", { children: "Pr\xF3ximamente..." }) }) })
@@ -1891,14 +1887,14 @@ var SearchSelect = ({
1891
1887
  };
1892
1888
 
1893
1889
  // src/components/ui/inputCode/inputCode.tsx
1894
- import { useRef as useRef2, useState as useState7 } from "react";
1890
+ import { useRef as useRef2, useState as useState6 } from "react";
1895
1891
  import { jsx as jsx20, jsxs as jsxs17 } from "react/jsx-runtime";
1896
1892
  var InputCode = ({
1897
1893
  onComplete,
1898
1894
  title = "C\xF3digo de autenticaci\xF3n",
1899
1895
  hasError = false
1900
1896
  }) => {
1901
- const [code, setCode] = useState7(Array(6).fill(""));
1897
+ const [code, setCode] = useState6(Array(6).fill(""));
1902
1898
  const inputsRef = useRef2([]);
1903
1899
  const handleChange = (e, index) => {
1904
1900
  const value = e.target.value;
@@ -1999,7 +1995,7 @@ var GridCard = ({
1999
1995
  };
2000
1996
 
2001
1997
  // src/components/ui/checkBox/checkBox.tsx
2002
- import { useId, useState as useState8 } from "react";
1998
+ import { useId, useState as useState7 } from "react";
2003
1999
  import { jsx as jsx22, jsxs as jsxs19 } from "react/jsx-runtime";
2004
2000
  var Checkbox = ({
2005
2001
  id,
@@ -2011,7 +2007,7 @@ var Checkbox = ({
2011
2007
  }) => {
2012
2008
  const uniqueId = id || useId();
2013
2009
  const isControlled = controlledChecked !== void 0;
2014
- const [internalChecked, setInternalChecked] = useState8(defaultChecked || false);
2010
+ const [internalChecked, setInternalChecked] = useState7(defaultChecked || false);
2015
2011
  const isChecked = isControlled ? controlledChecked : internalChecked;
2016
2012
  const handleCheckboxChange = (e) => {
2017
2013
  const nextChecked = e.target.checked;