@klu_dev/ui-klu-green 1.2.9 → 1.2.10
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.css +66 -0
- package/dist/index.d.ts +2 -1
- package/dist/index.js +58 -12
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.css
CHANGED
|
@@ -521,6 +521,10 @@ button,
|
|
|
521
521
|
.uiklu-max-h-96{
|
|
522
522
|
max-height: 24rem;
|
|
523
523
|
|
|
524
|
+
}
|
|
525
|
+
.uiklu-max-h-\[200px\]{
|
|
526
|
+
max-height: 200px;
|
|
527
|
+
|
|
524
528
|
}
|
|
525
529
|
.uiklu-max-h-\[40px\]{
|
|
526
530
|
max-height: 40px;
|
|
@@ -577,6 +581,10 @@ button,
|
|
|
577
581
|
.uiklu-w-8{
|
|
578
582
|
width: 2rem;
|
|
579
583
|
|
|
584
|
+
}
|
|
585
|
+
.uiklu-w-\[120px\]{
|
|
586
|
+
width: 120px;
|
|
587
|
+
|
|
580
588
|
}
|
|
581
589
|
.uiklu-w-\[141px\]{
|
|
582
590
|
width: 141px;
|
|
@@ -621,6 +629,10 @@ button,
|
|
|
621
629
|
.uiklu-w-\[39px\]{
|
|
622
630
|
width: 39px;
|
|
623
631
|
|
|
632
|
+
}
|
|
633
|
+
.uiklu-w-\[400px\]{
|
|
634
|
+
width: 400px;
|
|
635
|
+
|
|
624
636
|
}
|
|
625
637
|
.uiklu-w-\[40px\]{
|
|
626
638
|
width: 40px;
|
|
@@ -1598,6 +1610,10 @@ button,
|
|
|
1598
1610
|
.uiklu-pb-\[20px\]{
|
|
1599
1611
|
padding-bottom: 20px;
|
|
1600
1612
|
|
|
1613
|
+
}
|
|
1614
|
+
.uiklu-pl-1{
|
|
1615
|
+
padding-left: 0.25rem;
|
|
1616
|
+
|
|
1601
1617
|
}
|
|
1602
1618
|
.uiklu-pl-10{
|
|
1603
1619
|
padding-left: 2.5rem;
|
|
@@ -1606,6 +1622,10 @@ button,
|
|
|
1606
1622
|
.uiklu-pl-3{
|
|
1607
1623
|
padding-left: 0.75rem;
|
|
1608
1624
|
|
|
1625
|
+
}
|
|
1626
|
+
.uiklu-pl-6{
|
|
1627
|
+
padding-left: 1.5rem;
|
|
1628
|
+
|
|
1609
1629
|
}
|
|
1610
1630
|
.uiklu-pr-14{
|
|
1611
1631
|
padding-right: 3.5rem;
|
|
@@ -1618,6 +1638,10 @@ button,
|
|
|
1618
1638
|
.uiklu-pr-4{
|
|
1619
1639
|
padding-right: 1rem;
|
|
1620
1640
|
|
|
1641
|
+
}
|
|
1642
|
+
.uiklu-pr-6{
|
|
1643
|
+
padding-right: 1.5rem;
|
|
1644
|
+
|
|
1621
1645
|
}
|
|
1622
1646
|
.uiklu-pt-4{
|
|
1623
1647
|
padding-top: 1rem;
|
|
@@ -2187,6 +2211,26 @@ input.uiklu-flex:not(:placeholder-shown) {
|
|
|
2187
2211
|
|
|
2188
2212
|
}
|
|
2189
2213
|
|
|
2214
|
+
.focus-within\:uiklu-border-primary900:focus-within{
|
|
2215
|
+
--tw-border-opacity: 1;
|
|
2216
|
+
border-color: hsl(var(--uiklu-primary-900) / var(--tw-border-opacity, 1));
|
|
2217
|
+
|
|
2218
|
+
}
|
|
2219
|
+
|
|
2220
|
+
.focus-within\:uiklu-shadow-\[0_0_0_3px_\#AFD8D8\]:focus-within{
|
|
2221
|
+
--tw-shadow: 0 0 0 3px #AFD8D8;
|
|
2222
|
+
--tw-shadow-colored: 0 0 0 3px var(--tw-shadow-color);
|
|
2223
|
+
box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
|
|
2224
|
+
|
|
2225
|
+
}
|
|
2226
|
+
|
|
2227
|
+
.focus-within\:uiklu-shadow-\[0_0_0_3px_rgba\(220\2c 38\2c 38\2c 0\.20\)\]:focus-within{
|
|
2228
|
+
--tw-shadow: 0 0 0 3px rgba(220,38,38,0.20);
|
|
2229
|
+
--tw-shadow-colored: 0 0 0 3px var(--tw-shadow-color);
|
|
2230
|
+
box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
|
|
2231
|
+
|
|
2232
|
+
}
|
|
2233
|
+
|
|
2190
2234
|
.hover\:uiklu-bg-gray-100:hover{
|
|
2191
2235
|
--tw-bg-opacity: 1;
|
|
2192
2236
|
background-color: rgb(243 244 246 / var(--tw-bg-opacity, 1));
|
|
@@ -2219,6 +2263,16 @@ input.uiklu-flex:not(:placeholder-shown) {
|
|
|
2219
2263
|
|
|
2220
2264
|
}
|
|
2221
2265
|
|
|
2266
|
+
.hover\:uiklu-bg-primary500\/90:hover{
|
|
2267
|
+
background-color: hsl(var(--uiklu-primary-500) / 0.9);
|
|
2268
|
+
|
|
2269
|
+
}
|
|
2270
|
+
|
|
2271
|
+
.hover\:uiklu-bg-primary900\/10:hover{
|
|
2272
|
+
background-color: hsl(var(--uiklu-primary-900) / 0.1);
|
|
2273
|
+
|
|
2274
|
+
}
|
|
2275
|
+
|
|
2222
2276
|
.hover\:uiklu-bg-primary900\/5:hover{
|
|
2223
2277
|
background-color: hsl(var(--uiklu-primary-900) / 0.05);
|
|
2224
2278
|
|
|
@@ -2387,6 +2441,18 @@ input.uiklu-flex:not(:placeholder-shown) {
|
|
|
2387
2441
|
|
|
2388
2442
|
}
|
|
2389
2443
|
|
|
2444
|
+
.data-\[highlighted\]\:uiklu-bg-primary900[data-highlighted]{
|
|
2445
|
+
--tw-bg-opacity: 1;
|
|
2446
|
+
background-color: hsl(var(--uiklu-primary-900) / var(--tw-bg-opacity, 1));
|
|
2447
|
+
|
|
2448
|
+
}
|
|
2449
|
+
|
|
2450
|
+
.data-\[highlighted\]\:uiklu-text-white[data-highlighted]{
|
|
2451
|
+
--tw-text-opacity: 1;
|
|
2452
|
+
color: rgb(255 255 255 / var(--tw-text-opacity, 1));
|
|
2453
|
+
|
|
2454
|
+
}
|
|
2455
|
+
|
|
2390
2456
|
.data-\[placeholder\]\:uiklu-text-gray500[data-placeholder]{
|
|
2391
2457
|
--tw-text-opacity: 1;
|
|
2392
2458
|
color: hsl(var(--uiklu-gray-500) / var(--tw-text-opacity, 1));
|
package/dist/index.d.ts
CHANGED
|
@@ -16,7 +16,7 @@ interface InputProps extends Omit<React.InputHTMLAttributes<HTMLInputElement>, "
|
|
|
16
16
|
declare const Input: React.ForwardRefExoticComponent<InputProps & React.RefAttributes<HTMLInputElement>>;
|
|
17
17
|
|
|
18
18
|
declare const buttonVariants: (props?: ({
|
|
19
|
-
variant?: "primary" | "primaryOrange" | "secondary" | "outline" | "outlinePrimary" | "outlineSecondary" | "outlineWhite" | "iconCircle" | null | undefined;
|
|
19
|
+
variant?: "primary" | "primaryOrange" | "secondary" | "outline" | "outlinePrimary" | "outlineSecondary" | "outlineWhite" | "iconCircle" | "filterCircle" | null | undefined;
|
|
20
20
|
size?: "sm" | "md" | "lg" | "full" | "xl" | "fullh" | "iconOnly" | null | undefined;
|
|
21
21
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
22
22
|
interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof buttonVariants> {
|
|
@@ -172,6 +172,7 @@ declare const Icons: {
|
|
|
172
172
|
SIGN: react_jsx_runtime.JSX.Element;
|
|
173
173
|
GAMES: react_jsx_runtime.JSX.Element;
|
|
174
174
|
CHECKED: react_jsx_runtime.JSX.Element;
|
|
175
|
+
FILTER: react_jsx_runtime.JSX.Element;
|
|
175
176
|
};
|
|
176
177
|
|
|
177
178
|
declare const searchSelectTriggerVariants: (props?: ({
|
package/dist/index.js
CHANGED
|
@@ -210,6 +210,14 @@ var buttonVariants = cva(
|
|
|
210
210
|
uiklu-rounded-full
|
|
211
211
|
uiklu-border-transparent
|
|
212
212
|
uiklu-p-0
|
|
213
|
+
`,
|
|
214
|
+
filterCircle: `
|
|
215
|
+
uiklu-bg-primary500
|
|
216
|
+
uiklu-text-white
|
|
217
|
+
hover:uiklu-bg-primary500/90
|
|
218
|
+
uiklu-rounded-full
|
|
219
|
+
uiklu-border-transparent
|
|
220
|
+
uiklu-p-0
|
|
213
221
|
`
|
|
214
222
|
},
|
|
215
223
|
size: {
|
|
@@ -231,7 +239,7 @@ var buttonVariants = cva(
|
|
|
231
239
|
var Button = React2.forwardRef(
|
|
232
240
|
({ className, variant, size, asChild = false, icon, iconAlign = "left", children, style, ...props }, ref) => {
|
|
233
241
|
const Comp = asChild ? Slot : "button";
|
|
234
|
-
const isIconCircle = variant === "iconCircle";
|
|
242
|
+
const isIconCircle = variant === "iconCircle" || variant === "filterCircle";
|
|
235
243
|
return /* @__PURE__ */ jsxs2(
|
|
236
244
|
Comp,
|
|
237
245
|
{
|
|
@@ -857,6 +865,26 @@ var CHECKED = ({ className }) => /* @__PURE__ */ jsx7(
|
|
|
857
865
|
)
|
|
858
866
|
}
|
|
859
867
|
);
|
|
868
|
+
var FILTER = ({ className }) => /* @__PURE__ */ jsx7(
|
|
869
|
+
"svg",
|
|
870
|
+
{
|
|
871
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
872
|
+
width: "18",
|
|
873
|
+
height: "16",
|
|
874
|
+
viewBox: "0 0 18 16",
|
|
875
|
+
fill: "none",
|
|
876
|
+
className,
|
|
877
|
+
style: {
|
|
878
|
+
display: "flex",
|
|
879
|
+
width: "18px",
|
|
880
|
+
height: "16px",
|
|
881
|
+
justifyContent: "center",
|
|
882
|
+
alignItems: "center",
|
|
883
|
+
aspectRatio: "1/1"
|
|
884
|
+
},
|
|
885
|
+
children: /* @__PURE__ */ jsx7("path", { d: "M0.75 3.75588H3.84375C4.00898 4.40119 4.38428 4.97316 \n 4.91048 5.38161C5.43669 5.79006 6.08387 6.01176 6.75 6.01176C7.41613 \n 6.01176 8.06331 5.79006 8.58952 5.38161C9.11572 4.97316 9.49102 \n 4.40119 9.65625 3.75588H17.25C17.4489 3.75588 17.6397 3.67686 17.7803 \n 3.53621C17.921 3.39556 18 3.20479 18 3.00588C18 2.80697 17.921 2.6162 \n 17.7803 2.47555C17.6397 2.3349 17.4489 2.25588 17.25 \n 2.25588H9.65625C9.49102 1.61057 9.11572 1.0386 8.58952 \n 0.630153C8.06331 0.221702 7.41613 0 6.75 0C6.08387 0 5.43669 0.221702 \n 4.91048 0.630153C4.38428 1.0386 4.00898 1.61057 3.84375 \n 2.25588H0.75C0.551088 2.25588 0.360322 2.3349 0.21967 \n 2.47555C0.0790178 2.6162 0 2.80697 0 3.00588C0 3.20479 0.0790178 \n 3.39556 0.21967 3.53621C0.360322 3.67686 0.551088 3.75588 0.75 \n 3.75588ZM6.75 1.50588C7.04667 1.50588 7.33668 1.59386 7.58335 \n 1.75868C7.83003 1.9235 8.02229 2.15777 8.13582 2.43186C8.24935 \n 2.70595 8.27906 3.00755 8.22118 3.29852C8.1633 3.58949 8.02044 \n 3.85676 7.81066 4.06654C7.60088 4.27632 7.33361 4.41918 7.04264 \n 4.47706C6.75166 4.53494 6.45006 4.50523 6.17597 4.3917C5.90189 \n 4.27817 5.66762 4.08591 5.5028 3.83924C5.33797 3.59256 5.25 \n 3.30255 5.25 3.00588C5.25 2.60806 5.40804 2.22653 5.68934 \n 1.94522C5.97064 1.66392 6.35218 1.50588 6.75 1.50588ZM17.25 \n 11.2559H15.6562C15.491 10.6106 15.1157 10.0386 14.5895 \n 9.63015C14.0633 9.2217 13.4161 9 12.75 9C12.0839 9 11.4367 9.2217 \n 10.9105 9.63015C10.3843 10.0386 10.009 10.6106 9.84375 \n 11.2559H0.75C0.551088 11.2559 0.360322 11.3349 0.21967 11.4756C0.0790178 \n 11.6162 0 11.807 0 12.0059C0 12.2048 0.0790178 12.3956 0.21967 \n 12.5362C0.360322 12.6769 0.551088 12.7559 0.75 12.7559H9.84375C10.009 \n 13.4012 10.3843 13.9732 10.9105 14.3816C11.4367 14.7901 12.0839 15.0118 \n 12.75 15.0118C13.4161 15.0118 14.0633 14.7901 14.5895 14.3816C15.1157 \n 13.9732 15.491 13.4012 15.6562 12.7559H17.25C17.4489 12.7559 17.6397 \n 12.6769 17.7803 12.5362C17.921 12.3956 18 12.2048 18 12.0059C18 11.807 \n 17.921 11.6162 17.7803 11.4756C17.6397 11.3349 17.4489 11.2559 17.25 \n 11.2559ZM12.75 13.5059C12.4533 13.5059 12.1633 13.4179 11.9166 \n 13.2531C11.67 13.0883 11.4777 12.854 11.3642 12.5799C11.2506 12.3058 \n 11.2209 12.0042 11.2788 11.7132C11.3367 11.4223 11.4796 11.155 11.6893 \n 10.9452C11.8991 10.7354 12.1664 10.5926 12.4574 10.5347C12.7483 10.4768 \n 13.0499 10.5065 13.324 10.6201C13.5981 10.7336 13.8324 10.9259 13.9972 \n 11.1725C14.162 11.4192 14.25 11.7092 14.25 12.0059C14.25 12.4037 \n 14.092 12.7852 13.8107 13.0665C13.5294 13.3478 13.1478 13.5059 12.75 \n 13.5059Z", fill: "white" })
|
|
886
|
+
}
|
|
887
|
+
);
|
|
860
888
|
var Icons = {
|
|
861
889
|
CARD: /* @__PURE__ */ jsx7(CardIcon, {}),
|
|
862
890
|
TICKET: /* @__PURE__ */ jsx7(TicketIcon, {}),
|
|
@@ -888,7 +916,8 @@ var Icons = {
|
|
|
888
916
|
HOMESERVICE: /* @__PURE__ */ jsx7(Home, {}),
|
|
889
917
|
SIGN: /* @__PURE__ */ jsx7(SIGN, {}),
|
|
890
918
|
GAMES: /* @__PURE__ */ jsx7(GAMES, {}),
|
|
891
|
-
CHECKED: /* @__PURE__ */ jsx7(CHECKED, {})
|
|
919
|
+
CHECKED: /* @__PURE__ */ jsx7(CHECKED, {}),
|
|
920
|
+
FILTER: /* @__PURE__ */ jsx7(FILTER, {})
|
|
892
921
|
};
|
|
893
922
|
|
|
894
923
|
// src/components/ui/modal/modal.tsx
|
|
@@ -1451,12 +1480,30 @@ function PromoBanner({
|
|
|
1451
1480
|
}
|
|
1452
1481
|
|
|
1453
1482
|
// src/components/ui/sidebarTabs/sidebarTabs.tsx
|
|
1454
|
-
import { useState as
|
|
1483
|
+
import { useState as useState5 } from "react";
|
|
1455
1484
|
|
|
1456
1485
|
// src/components/ui/sidebarTabs/siderTab.tsx
|
|
1457
1486
|
import * as React9 from "react";
|
|
1458
1487
|
import { jsx as jsx16, jsxs as jsxs13 } from "react/jsx-runtime";
|
|
1459
|
-
function SidebarNav({
|
|
1488
|
+
function SidebarNav({
|
|
1489
|
+
items,
|
|
1490
|
+
activeTab: controlledActiveTab,
|
|
1491
|
+
onTabChange,
|
|
1492
|
+
defaultActiveTab
|
|
1493
|
+
}) {
|
|
1494
|
+
const [internalActiveTab, setInternalActiveTab] = React9.useState(
|
|
1495
|
+
defaultActiveTab || items[0]?.id || ""
|
|
1496
|
+
);
|
|
1497
|
+
const isControlled = controlledActiveTab !== void 0;
|
|
1498
|
+
const activeTab = isControlled ? controlledActiveTab : internalActiveTab;
|
|
1499
|
+
const handleTabClick = (id) => {
|
|
1500
|
+
if (!isControlled) {
|
|
1501
|
+
setInternalActiveTab(id);
|
|
1502
|
+
}
|
|
1503
|
+
if (onTabChange) {
|
|
1504
|
+
onTabChange(id);
|
|
1505
|
+
}
|
|
1506
|
+
};
|
|
1460
1507
|
return /* @__PURE__ */ jsx16("nav", { className: "uiklu-flex uiklu-flex-col uiklu-gap-1 uiklu-w-full", children: items.map((item) => {
|
|
1461
1508
|
const isActive = activeTab === item.id;
|
|
1462
1509
|
const Icon2 = item.icon;
|
|
@@ -1465,7 +1512,7 @@ function SidebarNav({ items, activeTab, onTabChange }) {
|
|
|
1465
1512
|
/* @__PURE__ */ jsxs13(
|
|
1466
1513
|
"button",
|
|
1467
1514
|
{
|
|
1468
|
-
onClick: () =>
|
|
1515
|
+
onClick: () => handleTabClick(item.id),
|
|
1469
1516
|
className: cn(
|
|
1470
1517
|
"uiklu-group uiklu-flex uiklu-items-center",
|
|
1471
1518
|
"uiklu-py-3 uiklu-rounded-full",
|
|
@@ -1486,8 +1533,7 @@ function SidebarNav({ items, activeTab, onTabChange }) {
|
|
|
1486
1533
|
className: cn(
|
|
1487
1534
|
"uiklu-text-[10px] uiklu-font-semibold uiklu-uppercase uiklu-ml-[6px]",
|
|
1488
1535
|
"uiklu-text-left uiklu-flex-1 uiklu-block",
|
|
1489
|
-
isActive ? "uiklu-opacity-100 uiklu-truncate" : "uiklu-opacity-80"
|
|
1490
|
-
isActive ? "" : "uiklu-whitespace-normal"
|
|
1536
|
+
isActive ? "uiklu-opacity-100 uiklu-truncate" : "uiklu-opacity-80"
|
|
1491
1537
|
),
|
|
1492
1538
|
style: {
|
|
1493
1539
|
fontSize: "10px",
|
|
@@ -1520,7 +1566,7 @@ function SidebarNav({ items, activeTab, onTabChange }) {
|
|
|
1520
1566
|
// src/components/ui/sidebarTabs/sidebarTabs.tsx
|
|
1521
1567
|
import { jsx as jsx17, jsxs as jsxs14 } from "react/jsx-runtime";
|
|
1522
1568
|
function SidebarTabs({ items }) {
|
|
1523
|
-
const [activeTab, setActiveTab] =
|
|
1569
|
+
const [activeTab, setActiveTab] = useState5(items[0]?.id || "");
|
|
1524
1570
|
const currentActiveItem = items.find((item) => item.id === activeTab);
|
|
1525
1571
|
return /* @__PURE__ */ jsxs14("div", { className: "uiklu-flex uiklu-w-full uiklu-h-screen uiklu-bg-white", children: [
|
|
1526
1572
|
/* @__PURE__ */ jsx17("div", { className: "uiklu-w-[162px] uiklu-h-[40px] uiklu-p-4 ", children: /* @__PURE__ */ jsx17(
|
|
@@ -1793,14 +1839,14 @@ var SearchSelect = ({
|
|
|
1793
1839
|
};
|
|
1794
1840
|
|
|
1795
1841
|
// src/components/ui/inputCode/inputCode.tsx
|
|
1796
|
-
import { useRef as useRef2, useState as
|
|
1842
|
+
import { useRef as useRef2, useState as useState7 } from "react";
|
|
1797
1843
|
import { jsx as jsx20, jsxs as jsxs17 } from "react/jsx-runtime";
|
|
1798
1844
|
var InputCode = ({
|
|
1799
1845
|
onComplete,
|
|
1800
1846
|
title = "C\xF3digo de autenticaci\xF3n",
|
|
1801
1847
|
hasError = false
|
|
1802
1848
|
}) => {
|
|
1803
|
-
const [code, setCode] =
|
|
1849
|
+
const [code, setCode] = useState7(Array(6).fill(""));
|
|
1804
1850
|
const inputsRef = useRef2([]);
|
|
1805
1851
|
const handleChange = (e, index) => {
|
|
1806
1852
|
const value = e.target.value;
|
|
@@ -1901,7 +1947,7 @@ var GridCard = ({
|
|
|
1901
1947
|
};
|
|
1902
1948
|
|
|
1903
1949
|
// src/components/ui/checkBox/checkBox.tsx
|
|
1904
|
-
import { useId, useState as
|
|
1950
|
+
import { useId, useState as useState8 } from "react";
|
|
1905
1951
|
import { jsx as jsx22, jsxs as jsxs19 } from "react/jsx-runtime";
|
|
1906
1952
|
var Checkbox = ({
|
|
1907
1953
|
id,
|
|
@@ -1913,7 +1959,7 @@ var Checkbox = ({
|
|
|
1913
1959
|
}) => {
|
|
1914
1960
|
const uniqueId = id || useId();
|
|
1915
1961
|
const isControlled = controlledChecked !== void 0;
|
|
1916
|
-
const [internalChecked, setInternalChecked] =
|
|
1962
|
+
const [internalChecked, setInternalChecked] = useState8(defaultChecked || false);
|
|
1917
1963
|
const isChecked = isControlled ? controlledChecked : internalChecked;
|
|
1918
1964
|
const handleCheckboxChange = (e) => {
|
|
1919
1965
|
const nextChecked = e.target.checked;
|