@klu_dev/ui-klu-green 1.2.16 → 1.2.17

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/README.md CHANGED
@@ -12,6 +12,7 @@ npm install @klu_dev/ui-klu-green
12
12
 
13
13
  ## Componentes disponibles
14
14
  - Input
15
+ - TextField
15
16
  - Button
16
17
  - BackButton
17
18
  - Select
package/dist/index.css CHANGED
@@ -151,8 +151,11 @@
151
151
  --uiklu-gray-400: 220 2% 72%;
152
152
  --uiklu-gray-300: 210 3% 87%;
153
153
  --uiklu-gray-200: 220 8% 93%;
154
+ --uiklu-gray-100: 220 14% 96%;
154
155
  --uiklu-gray-50: 240 20% 98%;
155
156
 
157
+ --uiklu-grayicon: 210 1% 69%;
158
+
156
159
 
157
160
  --uiklu-successbg: 184 36% 91%;
158
161
  --uiklu-successborder: 180 34% 77%;
@@ -186,11 +189,14 @@ button,
186
189
  .uiklu-error-message {
187
190
  color: hsl(var(--uiklu-destructive)) !important;
188
191
  }
189
- [class*="bg-"]:not([class*="white"]) .uiklu-error-message {
192
+ [class*="bg-"]:not([class*="white"]) .uiklu-error-message,
193
+ [class*="bg-"]:not([class*="white"]) .uiklu-label {
190
194
  color: #FFFFFF !important;
191
195
  }
192
196
  [class*="bg-white/"] .uiklu-error-message,
193
- [class*="backdrop-blur"] .uiklu-error-message {
197
+ [class*="bg-white/"] .uiklu-label,
198
+ [class*="backdrop-blur"] .uiklu-error-message,
199
+ [class*="backdrop-blur"] .uiklu-label {
194
200
  color: #FFFFFF !important;
195
201
  }
196
202
  .uiklu-pointer-events-none{
@@ -240,6 +246,10 @@ button,
240
246
  .uiklu-right-0{
241
247
  right: 0px;
242
248
 
249
+ }
250
+ .uiklu-right-3{
251
+ right: 0.75rem;
252
+
243
253
  }
244
254
  .uiklu-right-6{
245
255
  right: 1.5rem;
@@ -360,10 +370,22 @@ button,
360
370
  .uiklu-mb-\[20px\]{
361
371
  margin-bottom: 20px;
362
372
 
373
+ }
374
+ .uiklu-mb-\[5px\]{
375
+ margin-bottom: 5px;
376
+
377
+ }
378
+ .uiklu-mb-\[7px\]{
379
+ margin-bottom: 7px;
380
+
363
381
  }
364
382
  .uiklu-mb-\[8px\]{
365
383
  margin-bottom: 8px;
366
384
 
385
+ }
386
+ .uiklu-ml-0\.5{
387
+ margin-left: 0.125rem;
388
+
367
389
  }
368
390
  .uiklu-ml-2{
369
391
  margin-left: 0.5rem;
@@ -632,10 +654,6 @@ button,
632
654
  .uiklu-min-h-screen{
633
655
  min-height: 100vh;
634
656
 
635
- }
636
- .uiklu-w-11{
637
- width: 2.75rem;
638
-
639
657
  }
640
658
  .uiklu-w-12{
641
659
  width: 3rem;
@@ -672,6 +690,10 @@ button,
672
690
  .uiklu-w-8{
673
691
  width: 2rem;
674
692
 
693
+ }
694
+ .uiklu-w-9{
695
+ width: 2.25rem;
696
+
675
697
  }
676
698
  .uiklu-w-\[140px\]{
677
699
  width: 140px;
@@ -934,16 +956,6 @@ button,
934
956
  --tw-translate-y: -50%;
935
957
  transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
936
958
 
937
- }
938
- .uiklu-translate-x-1{
939
- --tw-translate-x: 0.25rem;
940
- transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
941
-
942
- }
943
- .uiklu-translate-x-6{
944
- --tw-translate-x: 1.5rem;
945
- transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
946
-
947
959
  }
948
960
  .uiklu-translate-x-\[-50\%\]{
949
961
  --tw-translate-x: -50%;
@@ -959,10 +971,6 @@ button,
959
971
  --tw-translate-y: -50%;
960
972
  transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
961
973
 
962
- }
963
- .uiklu-transform{
964
- transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
965
-
966
974
  }
967
975
  .uiklu-cursor-default{
968
976
  cursor: default;
@@ -1342,6 +1350,11 @@ button,
1342
1350
  --tw-border-opacity: 1;
1343
1351
  border-color: rgb(209 213 219 / var(--tw-border-opacity, 1));
1344
1352
 
1353
+ }
1354
+ .uiklu-border-gray100{
1355
+ --tw-border-opacity: 1;
1356
+ border-color: hsl(var(--uiklu-gray-100) / var(--tw-border-opacity, 1));
1357
+
1345
1358
  }
1346
1359
  .uiklu-border-gray200{
1347
1360
  --tw-border-opacity: 1;
@@ -1487,11 +1500,6 @@ button,
1487
1500
  --tw-bg-opacity: 1;
1488
1501
  background-color: rgb(249 250 251 / var(--tw-bg-opacity, 1));
1489
1502
 
1490
- }
1491
- .uiklu-bg-gray300{
1492
- --tw-bg-opacity: 1;
1493
- background-color: hsl(var(--uiklu-gray-300) / var(--tw-bg-opacity, 1));
1494
-
1495
1503
  }
1496
1504
  .uiklu-bg-gray50{
1497
1505
  --tw-bg-opacity: 1;
@@ -1658,14 +1666,6 @@ button,
1658
1666
  .uiklu-bg-origin-border{
1659
1667
  background-origin: border-box;
1660
1668
 
1661
- }
1662
- .uiklu-fill-destructive{
1663
- fill: hsl(var(--uiklu-destructive) / 1);
1664
-
1665
- }
1666
- .uiklu-fill-gray400{
1667
- fill: hsl(var(--uiklu-gray-400) / 1);
1668
-
1669
1669
  }
1670
1670
  .uiklu-object-cover{
1671
1671
  -o-object-fit: cover;
@@ -1859,6 +1859,10 @@ button,
1859
1859
  .uiklu-pl-6{
1860
1860
  padding-left: 1.5rem;
1861
1861
 
1862
+ }
1863
+ .uiklu-pr-10{
1864
+ padding-right: 2.5rem;
1865
+
1862
1866
  }
1863
1867
  .uiklu-pr-14{
1864
1868
  padding-right: 3.5rem;
@@ -1938,6 +1942,10 @@ button,
1938
1942
  .uiklu-text-\[12px\]{
1939
1943
  font-size: 12px;
1940
1944
 
1945
+ }
1946
+ .uiklu-text-\[13px\]{
1947
+ font-size: 13px;
1948
+
1941
1949
  }
1942
1950
  .uiklu-text-\[14px\]{
1943
1951
  font-size: 14px;
@@ -2146,6 +2154,11 @@ button,
2146
2154
  --tw-text-opacity: 1;
2147
2155
  color: hsl(var(--uiklu-gray-900) / var(--tw-text-opacity, 1));
2148
2156
 
2157
+ }
2158
+ .uiklu-text-grayicon{
2159
+ --tw-text-opacity: 1;
2160
+ color: hsl(var(--uiklu-grayicon) / var(--tw-text-opacity, 1));
2161
+
2149
2162
  }
2150
2163
  .uiklu-text-green-500{
2151
2164
  --tw-text-opacity: 1;
@@ -2416,6 +2429,16 @@ input.uiklu-flex:not(:placeholder-shown) {
2416
2429
  color: hsl(var(--uiklu-gray-800)) !important;
2417
2430
  }
2418
2431
 
2432
+ .placeholder\:uiklu-font-semibold::-moz-placeholder{
2433
+ font-weight: 600;
2434
+
2435
+ }
2436
+
2437
+ .placeholder\:uiklu-font-semibold::placeholder{
2438
+ font-weight: 600;
2439
+
2440
+ }
2441
+
2419
2442
  .placeholder\:\!uiklu-text-destructive::-moz-placeholder{
2420
2443
  --tw-text-opacity: 1 !important;
2421
2444
  color: hsl(var(--uiklu-destructive) / var(--tw-text-opacity, 1)) !important;
@@ -2428,6 +2451,16 @@ input.uiklu-flex:not(:placeholder-shown) {
2428
2451
 
2429
2452
  }
2430
2453
 
2454
+ .placeholder\:\!uiklu-text-destructive\/60::-moz-placeholder{
2455
+ color: hsl(var(--uiklu-destructive) / 0.6) !important;
2456
+
2457
+ }
2458
+
2459
+ .placeholder\:\!uiklu-text-destructive\/60::placeholder{
2460
+ color: hsl(var(--uiklu-destructive) / 0.6) !important;
2461
+
2462
+ }
2463
+
2431
2464
  .placeholder\:uiklu-text-destructive::-moz-placeholder{
2432
2465
  --tw-text-opacity: 1;
2433
2466
  color: hsl(var(--uiklu-destructive) / var(--tw-text-opacity, 1));
@@ -2452,6 +2485,16 @@ input.uiklu-flex:not(:placeholder-shown) {
2452
2485
 
2453
2486
  }
2454
2487
 
2488
+ .placeholder\:uiklu-text-white\/40::-moz-placeholder{
2489
+ color: rgb(255 255 255 / 0.4);
2490
+
2491
+ }
2492
+
2493
+ .placeholder\:uiklu-text-white\/40::placeholder{
2494
+ color: rgb(255 255 255 / 0.4);
2495
+
2496
+ }
2497
+
2455
2498
  .placeholder\:uiklu-opacity-100::-moz-placeholder{
2456
2499
  opacity: 1;
2457
2500
 
@@ -2634,6 +2677,12 @@ input.uiklu-flex:not(:placeholder-shown) {
2634
2677
 
2635
2678
  }
2636
2679
 
2680
+ .focus\:uiklu-bg-white:focus{
2681
+ --tw-bg-opacity: 1;
2682
+ background-color: rgb(255 255 255 / var(--tw-bg-opacity, 1));
2683
+
2684
+ }
2685
+
2637
2686
  .focus\:uiklu-text-primary:focus{
2638
2687
  --tw-text-opacity: 1;
2639
2688
  color: hsl(var(--uiklu-primary) / var(--tw-text-opacity, 1));
@@ -2734,21 +2783,21 @@ input.uiklu-flex:not(:placeholder-shown) {
2734
2783
 
2735
2784
  }
2736
2785
 
2737
- .data-\[state\=checked\]\:uiklu-translate-x-5[data-state="checked"]{
2738
- --tw-translate-x: 1.25rem;
2786
+ .data-\[state\=checked\]\:uiklu-translate-x-3[data-state="checked"]{
2787
+ --tw-translate-x: 0.75rem;
2739
2788
  transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
2740
2789
 
2741
2790
  }
2742
2791
 
2743
- .data-\[state\=unchecked\]\:uiklu-translate-x-0[data-state="unchecked"]{
2744
- --tw-translate-x: 0px;
2792
+ .data-\[state\=unchecked\]\:uiklu-translate-x-\[-4px\][data-state="unchecked"]{
2793
+ --tw-translate-x: -4px;
2745
2794
  transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
2746
2795
 
2747
2796
  }
2748
2797
 
2749
- .data-\[state\=checked\]\:uiklu-bg-primary[data-state="checked"]{
2798
+ .data-\[state\=checked\]\:uiklu-bg-primary900[data-state="checked"]{
2750
2799
  --tw-bg-opacity: 1;
2751
- background-color: hsl(var(--uiklu-primary) / var(--tw-bg-opacity, 1));
2800
+ background-color: hsl(var(--uiklu-primary-900) / var(--tw-bg-opacity, 1));
2752
2801
 
2753
2802
  }
2754
2803
 
package/dist/index.d.ts CHANGED
@@ -36,8 +36,8 @@ declare const Select: React.FC<SelectPrimitive.SelectProps>;
36
36
 
37
37
  declare const typographyVariants: (props?: ({
38
38
  size?: "sm" | "md" | "xl" | "xxxl" | "xxl" | null | undefined;
39
- color?: "primary" | "secondary" | "black" | "orange" | "white" | null | undefined;
40
- align?: "left" | "right" | "center" | "justify" | null | undefined;
39
+ color?: "white" | "primary" | "secondary" | "black" | "orange" | null | undefined;
40
+ align?: "center" | "left" | "right" | "justify" | null | undefined;
41
41
  } & class_variance_authority_types.ClassProp) | undefined) => string;
42
42
  interface TypographyProps extends Omit<React.HTMLAttributes<HTMLParagraphElement>, "color">, VariantProps<typeof typographyVariants> {
43
43
  showDot?: boolean;
@@ -153,6 +153,7 @@ declare const Icons: {
153
153
  INFO: react_jsx_runtime.JSX.Element;
154
154
  EYE_MASKED: react_jsx_runtime.JSX.Element;
155
155
  EYE_OPEN: react_jsx_runtime.JSX.Element;
156
+ SEARCH_ICON: react_jsx_runtime.JSX.Element;
156
157
  COPY: react_jsx_runtime.JSX.Element;
157
158
  ARROW_UP: react_jsx_runtime.JSX.Element;
158
159
  ARROW_DOWN: react_jsx_runtime.JSX.Element;
@@ -290,4 +291,15 @@ interface DetailCardProps {
290
291
  }
291
292
  declare const DetailCard: React__default.FC<DetailCardProps>;
292
293
 
293
- export { BackButton, BalanceInfo, Button, Checkbox, type CheckboxProps, DetailCard, type DetailCardItem, type DetailCardProps, GridCard, IconBadge, type IconBadgeProps, Icons, Input, InputCode, InputPhone, type InputPhoneProps, type LadaOption, LoadingScreen, MobileMenuDrawer, Modal, PromoBanner, SearchSelect, Select, SidebarTabs, ToastAction, Toaster, Typography, useToast };
294
+ type TextFieldSize = "sm" | "md" | "lg" | "full";
295
+ interface TextFieldProps extends Omit<React.InputHTMLAttributes<HTMLInputElement>, "size"> {
296
+ label: string;
297
+ size?: TextFieldSize;
298
+ error?: string;
299
+ isSearchable?: boolean;
300
+ onSearchClick?: () => void;
301
+ labelClassName?: string;
302
+ }
303
+ declare const TextField: React.ForwardRefExoticComponent<TextFieldProps & React.RefAttributes<HTMLInputElement>>;
304
+
305
+ export { BackButton, BalanceInfo, Button, Checkbox, type CheckboxProps, DetailCard, type DetailCardItem, type DetailCardProps, GridCard, IconBadge, type IconBadgeProps, Icons, Input, InputCode, InputPhone, type InputPhoneProps, type LadaOption, LoadingScreen, MobileMenuDrawer, Modal, PromoBanner, SearchSelect, Select, SidebarTabs, TextField, type TextFieldProps, ToastAction, Toaster, Typography, useToast };