@klu_dev/ui-klu-green 1.2.20 → 1.2.22

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 CHANGED
@@ -386,6 +386,10 @@ button,
386
386
  .uiklu-mb-\[20px\]{
387
387
  margin-bottom: 20px;
388
388
 
389
+ }
390
+ .uiklu-mb-\[24px\]{
391
+ margin-bottom: 24px;
392
+
389
393
  }
390
394
  .uiklu-mb-\[5px\]{
391
395
  margin-bottom: 5px;
@@ -466,10 +470,18 @@ button,
466
470
  .uiklu-mt-8{
467
471
  margin-top: 2rem;
468
472
 
473
+ }
474
+ .uiklu-mt-\[10px\]{
475
+ margin-top: 10px;
476
+
469
477
  }
470
478
  .uiklu-mt-\[20px\]{
471
479
  margin-top: 20px;
472
480
 
481
+ }
482
+ .uiklu-mt-\[8px\]{
483
+ margin-top: 8px;
484
+
473
485
  }
474
486
  .uiklu-mt-auto{
475
487
  margin-top: auto;
@@ -947,6 +959,10 @@ button,
947
959
  .uiklu-max-w-\[500px\]{
948
960
  max-width: 500px;
949
961
 
962
+ }
963
+ .uiklu-max-w-\[516px\]{
964
+ max-width: 516px;
965
+
950
966
  }
951
967
  .uiklu-max-w-\[569px\]{
952
968
  max-width: 569px;
@@ -1144,6 +1160,10 @@ button,
1144
1160
  .uiklu-gap-\[14px\]{
1145
1161
  gap: 14px;
1146
1162
 
1163
+ }
1164
+ .uiklu-gap-\[16px\]{
1165
+ gap: 16px;
1166
+
1147
1167
  }
1148
1168
  .uiklu-gap-\[20px\]{
1149
1169
  gap: 20px;
@@ -1183,6 +1203,12 @@ button,
1183
1203
  margin-top: calc(0.75rem * calc(1 - var(--tw-space-y-reverse)));
1184
1204
  margin-bottom: calc(0.75rem * var(--tw-space-y-reverse));
1185
1205
 
1206
+ }
1207
+ .uiklu-space-y-3\.5 > :not([hidden]) ~ :not([hidden]){
1208
+ --tw-space-y-reverse: 0;
1209
+ margin-top: calc(0.875rem * calc(1 - var(--tw-space-y-reverse)));
1210
+ margin-bottom: calc(0.875rem * var(--tw-space-y-reverse));
1211
+
1186
1212
  }
1187
1213
  .uiklu-space-y-4 > :not([hidden]) ~ :not([hidden]){
1188
1214
  --tw-space-y-reverse: 0;
@@ -1880,6 +1906,11 @@ button,
1880
1906
  padding-top: 0.75rem;
1881
1907
  padding-bottom: 0.75rem;
1882
1908
 
1909
+ }
1910
+ .uiklu-py-\[10px\]{
1911
+ padding-top: 10px;
1912
+ padding-bottom: 10px;
1913
+
1883
1914
  }
1884
1915
  .uiklu-py-\[4px\]{
1885
1916
  padding-top: 4px;
package/dist/index.d.ts CHANGED
@@ -348,4 +348,25 @@ interface PhoneFieldProps extends Omit<React.InputHTMLAttributes<HTMLInputElemen
348
348
  }
349
349
  declare const PhoneField: React.ForwardRefExoticComponent<PhoneFieldProps & React.RefAttributes<HTMLInputElement>>;
350
350
 
351
- export { BackButton, BalanceInfo, Button, Checkbox, type CheckboxProps, DetailCard, type DetailCardItem, type DetailCardProps, GridCard, IconBadge, type IconBadgeProps, Icons, Input, InputCode, type LadaOption, LoadingScreen, MobileMenuDrawer, Modal, PhoneField, type PhoneFieldProps, PromoBanner, SearchSelect, SearchSelectField, type SearchSelectFieldProps, Select, SelectContent, SelectField, type SelectFieldProps, SelectGroup, SelectItem, SelectValue, SidebarTabs, TextField, type TextFieldProps, ToastAction, Toaster, Typography, useToast };
351
+ interface StatusCardSummaryItem {
352
+ label: string;
353
+ value: string;
354
+ }
355
+ interface StatusCardProps {
356
+ type: 'success' | 'error';
357
+ title: string;
358
+ subTitle?: string;
359
+ summaryTitle?: string;
360
+ summaryItems?: StatusCardSummaryItem[];
361
+ extraSectionTitle?: string;
362
+ extraSectionContent?: string;
363
+ extraSectionSubtext?: string;
364
+ primaryButtonText?: string;
365
+ secondaryButtonText?: string;
366
+ onPrimaryAction: () => void;
367
+ onSecondaryAction: () => void;
368
+ className?: string;
369
+ }
370
+ declare const StatusCard: React__default.FC<StatusCardProps>;
371
+
372
+ export { BackButton, BalanceInfo, Button, Checkbox, type CheckboxProps, DetailCard, type DetailCardItem, type DetailCardProps, GridCard, IconBadge, type IconBadgeProps, Icons, Input, InputCode, type LadaOption, LoadingScreen, MobileMenuDrawer, Modal, PhoneField, type PhoneFieldProps, PromoBanner, SearchSelect, SearchSelectField, type SearchSelectFieldProps, Select, SelectContent, SelectField, type SelectFieldProps, SelectGroup, SelectItem, SelectValue, SidebarTabs, StatusCard, type StatusCardProps, type StatusCardSummaryItem, TextField, type TextFieldProps, ToastAction, Toaster, Typography, useToast };
package/dist/index.js CHANGED
@@ -3556,6 +3556,92 @@ import { jsx as jsx30, jsxs as jsxs25 } from "react/jsx-runtime";
3556
3556
 
3557
3557
  // src/components/ui/corporateCard/corporateCard.tsx
3558
3558
  import { jsx as jsx31, jsxs as jsxs26 } from "react/jsx-runtime";
3559
+
3560
+ // src/components/ui/statusCard/statusCard.tsx
3561
+ import { jsx as jsx32, jsxs as jsxs27 } from "react/jsx-runtime";
3562
+ var StatusCard = ({
3563
+ type,
3564
+ title,
3565
+ subTitle,
3566
+ summaryTitle = "Resumen",
3567
+ summaryItems = [],
3568
+ extraSectionTitle,
3569
+ extraSectionContent,
3570
+ extraSectionSubtext,
3571
+ primaryButtonText = type === "success" ? "Descargar comprobante" : "Intentarlo nuevamente",
3572
+ secondaryButtonText = "Ir al inicio",
3573
+ onPrimaryAction,
3574
+ onSecondaryAction,
3575
+ className = ""
3576
+ }) => {
3577
+ const isSuccess = type === "success";
3578
+ return /* @__PURE__ */ jsxs27("div", { className: `uiklu-w-full uiklu-max-w-[516px] uiklu-mx-auto uiklu-bg-basewhite
3579
+ uiklu-border uiklu-border-gray300 uiklu-rounded-[24px] uiklu-p-[16px] uiklu-font-sans
3580
+ uiklu-shadow-sm uiklu-box-border ${className}`, children: [
3581
+ /* @__PURE__ */ jsx32("div", { className: "uiklu-flex uiklu-justify-center uiklu-mb-[24px]", children: isSuccess ? /* @__PURE__ */ jsx32("div", { className: "uiklu-w-[80px] uiklu-h-[80px] uiklu-rounded-full uiklu-bg-primary300 \n uiklu-text-basewhite uiklu-flex uiklu-items-center uiklu-justify-center", children: /* @__PURE__ */ jsx32("div", { className: "uiklu-brightness-0 uiklu-invert", children: Icons.CHECK }) }) : /* @__PURE__ */ jsx32("div", { className: "uiklu-w-[80px] uiklu-h-[80px] uiklu-rounded-full uiklu-bg-errorbg \n uiklu-text-basewhite uiklu-flex uiklu-items-center uiklu-justify-center uiklu-overflow-hidden", children: /* @__PURE__ */ jsx32("div", { className: "uiklu-brightness-0 uiklu-invert uiklu-w-[45.5px] uiklu-h-[45.5px] \n uiklu-flex uiklu-items-center uiklu-justify-center uiklu-relative", children: /* @__PURE__ */ jsx32("div", { className: "uiklu-absolute uiklu-top-0 uiklu-left-0 uiklu-w-[56px] uiklu-h-[56px]", children: Icons.WARNING }) }) }) }),
3582
+ /* @__PURE__ */ jsxs27("div", { className: "uiklu-text-center uiklu-mb-[24px]", children: [
3583
+ /* @__PURE__ */ jsx32("h2", { className: "uiklu-text-[18px] uiklu-font-bold uiklu-text-primary900 uiklu-leading-snug", children: title }),
3584
+ subTitle && /* @__PURE__ */ jsx32("p", { className: "uiklu-text-[14px] uiklu-text-gray600 uiklu-mt-[10px] uiklu-leading-relaxed", children: subTitle })
3585
+ ] }),
3586
+ /* @__PURE__ */ jsx32("hr", { className: "uiklu-border-t uiklu-border-gray200 uiklu-w-full uiklu-my-[20px]" }),
3587
+ summaryItems.length > 0 && /* @__PURE__ */ jsxs27("div", { className: "uiklu-mb-[20px]", children: [
3588
+ /* @__PURE__ */ jsx32("h3", { className: "uiklu-text-[14px] uiklu-font-semibold uiklu-text-primary800 \n uiklu-mb-[10px] uiklu-text-left", children: summaryTitle }),
3589
+ /* @__PURE__ */ jsx32("div", { className: "uiklu-bg-primarylight uiklu-border uiklu-border-primary50 \n uiklu-rounded-xl uiklu-px-[10px] uiklu-py-[10px] uiklu-space-y-3.5", children: summaryItems.map((item, index) => /* @__PURE__ */ jsxs27("div", { className: "uiklu-flex uiklu-justify-between uiklu-items-center uiklu-gap-4", children: [
3590
+ /* @__PURE__ */ jsx32("span", { className: "uiklu-text-gray600 uiklu-text-[14px] uiklu-font-regular", children: item.label }),
3591
+ /* @__PURE__ */ jsx32("span", { className: "uiklu-text-gray800 uiklu-text-[14px] uiklu-font-semibold uiklu-text-right", children: item.value })
3592
+ ] }, index)) })
3593
+ ] }),
3594
+ extraSectionTitle && /* @__PURE__ */ jsxs27("div", { className: "uiklu-mb-[20px] uiklu-text-left", children: [
3595
+ /* @__PURE__ */ jsx32("h3", { className: "uiklu-text-[14px] uiklu-font-semibold uiklu-text-primary800 uiklu-mb-[10px]", children: extraSectionTitle }),
3596
+ extraSectionContent && /* @__PURE__ */ jsx32("p", { className: "uiklu-text-[14px] uiklu-text-gray600 uiklu-leading-relaxed uiklu-mb-[10px]", children: extraSectionContent }),
3597
+ extraSectionSubtext && /* @__PURE__ */ jsx32("p", { className: "uiklu-text-[10px] uiklu-text-gray600 uiklu-font-medium uiklu-leading-normal", children: extraSectionSubtext })
3598
+ ] }),
3599
+ /* @__PURE__ */ jsxs27("div", { className: "uiklu-flex uiklu-w-full uiklu-gap-[16px] contenedor-botones-flow uiklu-mt-[8px]", children: [
3600
+ /* @__PURE__ */ jsx32("style", { children: `
3601
+ /* Forzado sim\xE9trico en escritorio */
3602
+ .contenedor-botones-flow > button,
3603
+ .contenedor-botones-flow > div {
3604
+ width: calc(50% - 8px) !important; /* Cada uno toma la mitad exacta menos el espacio del gap */
3605
+ flex: none !important;
3606
+ }
3607
+
3608
+ @media (max-width: 550px) {
3609
+ .contenedor-botones-flow {
3610
+ flex-direction: column-reverse !important;
3611
+ gap: 12px !important;
3612
+ }
3613
+ .contenedor-botones-flow > button,
3614
+ .contenedor-botones-flow > div {
3615
+ width: 100% !important; /* Fuerza a que midan todo el ancho en celular */
3616
+ flex: none !important;
3617
+ }
3618
+ }
3619
+ ` }),
3620
+ /* @__PURE__ */ jsx32(
3621
+ Button,
3622
+ {
3623
+ variant: "outlinePrimary",
3624
+ size: "fullh",
3625
+ onClick: onSecondaryAction,
3626
+ className: "uiklu-whitespace-nowrap",
3627
+ children: secondaryButtonText
3628
+ }
3629
+ ),
3630
+ /* @__PURE__ */ jsx32(
3631
+ Button,
3632
+ {
3633
+ variant: "primary",
3634
+ size: "fullh",
3635
+ onClick: onPrimaryAction,
3636
+ className: "uiklu-whitespace-nowrap uiklu-px-[12px]",
3637
+ icon: isSuccess ? Icons.DOWNLOAD : "",
3638
+ iconAlign: "right",
3639
+ children: primaryButtonText
3640
+ }
3641
+ )
3642
+ ] })
3643
+ ] });
3644
+ };
3559
3645
  export {
3560
3646
  BackButton,
3561
3647
  BalanceInfo,
@@ -3581,6 +3667,7 @@ export {
3581
3667
  SelectItem2 as SelectItem,
3582
3668
  SelectValue,
3583
3669
  SidebarTabs,
3670
+ StatusCard,
3584
3671
  TextField,
3585
3672
  ToastAction,
3586
3673
  Toaster,