@klu_dev/ui-klu-green 1.2.28 → 1.2.29

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
@@ -136,8 +136,8 @@
136
136
  --uiklu-orange-300: 36 95% 66%;
137
137
  --uiklu-accent: 45 100% 50%;
138
138
  --uiklu-accent-foreground: 0 0% 0%;
139
- --uiklu-muted: 210 40% 96%;
140
- --uiklu-muted-foreground: 215 20% 40%;
139
+ --uiklu-muted: 240 5% 96%;
140
+ --uiklu-muted-foreground: 240 4% 46%;
141
141
  --uiklu-destructive: 0 72% 51%;
142
142
  --uiklu-destructive-foreground: 0 0% 100%;
143
143
  --uiklu-border: 214.3 31.8% 91.4%;
@@ -518,6 +518,10 @@ button,
518
518
  .uiklu-hidden{
519
519
  display: none;
520
520
 
521
+ }
522
+ .uiklu-aspect-square{
523
+ aspect-ratio: 1 / 1;
524
+
521
525
  }
522
526
  .uiklu-h-10{
523
527
  height: 2.5rem;
@@ -558,6 +562,10 @@ button,
558
562
  .uiklu-h-8{
559
563
  height: 2rem;
560
564
 
565
+ }
566
+ .uiklu-h-\[100\%\]{
567
+ height: 100%;
568
+
561
569
  }
562
570
  .uiklu-h-\[100px\]{
563
571
  height: 100px;
@@ -594,6 +602,10 @@ button,
594
602
  .uiklu-h-\[30px\]{
595
603
  height: 30px;
596
604
 
605
+ }
606
+ .uiklu-h-\[32px\]{
607
+ height: 32px;
608
+
597
609
  }
598
610
  .uiklu-h-\[34px\]{
599
611
  height: 34px;
@@ -634,6 +646,10 @@ button,
634
646
  .uiklu-h-\[60px\]{
635
647
  height: 60px;
636
648
 
649
+ }
650
+ .uiklu-h-\[62\%\]{
651
+ height: 62%;
652
+
637
653
  }
638
654
  .uiklu-h-\[6px\]{
639
655
  height: 6px;
@@ -746,6 +762,10 @@ button,
746
762
  .uiklu-w-9{
747
763
  width: 2.25rem;
748
764
 
765
+ }
766
+ .uiklu-w-\[100\%\]{
767
+ width: 100%;
768
+
749
769
  }
750
770
  .uiklu-w-\[100px\]{
751
771
  width: 100px;
@@ -814,6 +834,10 @@ button,
814
834
  .uiklu-w-\[317px\]{
815
835
  width: 317px;
816
836
 
837
+ }
838
+ .uiklu-w-\[32px\]{
839
+ width: 32px;
840
+
817
841
  }
818
842
  .uiklu-w-\[350px\]{
819
843
  width: 350px;
@@ -862,6 +886,10 @@ button,
862
886
  .uiklu-w-\[600px\]{
863
887
  width: 600px;
864
888
 
889
+ }
890
+ .uiklu-w-\[62\%\]{
891
+ width: 62%;
892
+
865
893
  }
866
894
  .uiklu-w-\[70px\]{
867
895
  width: 70px;
@@ -1688,6 +1716,11 @@ button,
1688
1716
  --tw-bg-opacity: 1;
1689
1717
  background-color: rgb(240 253 244 / var(--tw-bg-opacity, 1));
1690
1718
 
1719
+ }
1720
+ .uiklu-bg-muted{
1721
+ --tw-bg-opacity: 1;
1722
+ background-color: hsl(var(--uiklu-muted) / var(--tw-bg-opacity, 1));
1723
+
1691
1724
  }
1692
1725
  .uiklu-bg-orange500{
1693
1726
  --tw-bg-opacity: 1;
@@ -1825,6 +1858,10 @@ button,
1825
1858
  .uiklu-bg-origin-border{
1826
1859
  background-origin: border-box;
1827
1860
 
1861
+ }
1862
+ .uiklu-fill-mutedForeground{
1863
+ fill: hsl(var(--uiklu-muted-foreground) / 1);
1864
+
1828
1865
  }
1829
1866
  .uiklu-object-contain{
1830
1867
  -o-object-fit: contain;
@@ -2826,6 +2863,12 @@ input.uiklu-flex:not(:placeholder-shown) {
2826
2863
 
2827
2864
  }
2828
2865
 
2866
+ .hover\:uiklu-bg-muted:hover{
2867
+ --tw-bg-opacity: 1;
2868
+ background-color: hsl(var(--uiklu-muted) / var(--tw-bg-opacity, 1));
2869
+
2870
+ }
2871
+
2829
2872
  .hover\:uiklu-bg-orange500\/90:hover{
2830
2873
  background-color: hsl(var(--uiklu-orange-500) / 0.9);
2831
2874
 
package/dist/index.d.ts CHANGED
@@ -163,6 +163,7 @@ declare const Icons: {
163
163
  ARROW_DOWN: react_jsx_runtime.JSX.Element;
164
164
  KLU: react_jsx_runtime.JSX.Element;
165
165
  KLUWHITE: react_jsx_runtime.JSX.Element;
166
+ KLUDARK: react_jsx_runtime.JSX.Element;
166
167
  DESIGNEDFREEDOM: react_jsx_runtime.JSX.Element;
167
168
  GRAPHIC_TOP: react_jsx_runtime.JSX.Element;
168
169
  HOME: react_jsx_runtime.JSX.Element;
@@ -406,4 +407,14 @@ interface SecureModalProps {
406
407
  }
407
408
  declare const SecureModal: ({ open, onOpenChange, title, icon, message, mainActionButtonText, onMainAction, }: SecureModalProps) => react_jsx_runtime.JSX.Element;
408
409
 
409
- export { BackButton, BalanceInfo, Button, Checkbox, type CheckboxProps, CorporateCard, DetailCard, type DetailCardItem, type DetailCardProps, GridCard, IconBadge, type IconBadgeProps, Icons, Input, InputCode, type LadaOption, LoadingScreen, MobileMenuDrawer, Modal, PhoneField, type PhoneFieldProps, PlasticCard, PromoBanner, SearchSelect, SearchSelectField, type SearchSelectFieldProps, SecureModal, Select, SelectContent, SelectField, type SelectFieldProps, SelectGroup, SelectItem, SelectValue, SidebarTabs, StatusCard, type StatusCardProps, type StatusCardSummaryItem, Switch, TextField, type TextFieldProps, ToastAction, Toaster, Typography, useToast };
410
+ type BankAvatarSize = 'sm' | 'md' | 'lg' | 'responsive';
411
+ interface BankAvatarProps {
412
+ bankName: string;
413
+ /**
414
+ * @default 'responsive'
415
+ */
416
+ size?: BankAvatarSize;
417
+ }
418
+ declare const BankAvatar: React.FC<BankAvatarProps>;
419
+
420
+ export { BackButton, BalanceInfo, BankAvatar, type BankAvatarProps, Button, Checkbox, type CheckboxProps, CorporateCard, DetailCard, type DetailCardItem, type DetailCardProps, GridCard, IconBadge, type IconBadgeProps, Icons, Input, InputCode, type LadaOption, LoadingScreen, MobileMenuDrawer, Modal, PhoneField, type PhoneFieldProps, PlasticCard, PromoBanner, SearchSelect, SearchSelectField, type SearchSelectFieldProps, SecureModal, Select, SelectContent, SelectField, type SelectFieldProps, SelectGroup, SelectItem, SelectValue, SidebarTabs, StatusCard, type StatusCardProps, type StatusCardSummaryItem, Switch, TextField, type TextFieldProps, ToastAction, Toaster, Typography, useToast };
package/dist/index.js CHANGED
@@ -166,6 +166,18 @@ var KluWhite = ({ className }) => /* @__PURE__ */ jsxs("svg", { xmlns: "http://w
166
166
  /* @__PURE__ */ jsx("path", { d: "M10.1804 11.6049L6.01451 5.60153C7.70118 4.00699 9.19091 2.1234 10.1804 0H7.86794C6.52274 2.35369 4.51843 4.46915 2.2346 5.95093V0H0V13.2375H2.23619V8.35544C2.96358 7.94886 3.66398 7.49623 4.32943 7.00231L8.53816 13.2391H11.3127L10.1788 11.6065L10.1804 11.6049Z", fill: "white" }),
167
167
  /* @__PURE__ */ jsx("path", { d: "M27.5089 13.2204C28.3325 13.2204 29.0002 12.5527 29.0002 11.7291C29.0002 10.9055 28.3325 10.2378 27.5089 10.2378C26.6853 10.2378 26.0176 10.9055 26.0176 11.7291C26.0176 12.5527 26.6853 13.2204 27.5089 13.2204Z", fill: "#FDA400" })
168
168
  ] });
169
+ var KluDark = ({ className }) => /* @__PURE__ */ jsxs("svg", { xmlns: "http://www.w3.org/2000/svg", width: "20", height: "10", viewBox: "0 0 20 10", fill: "none", className, children: [
170
+ /* @__PURE__ */ jsx("path", { d: "M15.4494 6.22902C15.4494 7.1874 14.7352 7.88838 13.8261 7.88838C12.9937 7.88838 12.2029 7.31335 12.2029 6.31335V2.43164H10.8064V6.46012C10.8064 7.47327 11.3716 8.35498 12.2029 8.80733C12.5797 9.01215 13.0003 9.12935 13.4713 9.12935C14.1405 9.12935 14.962 8.79309 15.4494 8.25969V9.12935H16.8459V2.43164H15.4494V6.22792V6.22902Z", fill: "#0B3C36" }),
171
+ /* @__PURE__ */ jsx("path", { d: "M8.21997 9.12925H9.61648V0H8.21997V9.12925Z", fill: "#0B3C36" }),
172
+ /* @__PURE__ */ jsx("path", { d: "M7.02089 8.00329L4.14791 3.86309C5.31112 2.76342 6.33851 1.4644 7.02089 0H5.42613C4.4984 1.62322 3.11613 3.08215 1.54109 4.10406V0H0V9.12925H1.54219V5.76233C2.04383 5.48193 2.52686 5.16978 2.98579 4.82914L5.88834 9.13035H7.80184L7.01979 8.00439L7.02089 8.00329Z", fill: "#0B3C36" }),
173
+ /* @__PURE__ */ jsx(
174
+ "path",
175
+ {
176
+ d: "M18.9716 9.1175C19.5396 9.1175 20.0001 8.65704 20.0001 8.08903C20.0001 7.52101 19.5396 7.06055 18.9716 7.06055C18.4036 7.06055 17.9431 7.52101 17.9431 8.08903C17.9431 8.65704 18.4036 9.1175 18.9716 9.1175Z",
177
+ fill: "#FDA400"
178
+ }
179
+ )
180
+ ] });
169
181
  var MasterCard = ({ className }) => /* @__PURE__ */ jsxs(
170
182
  "svg",
171
183
  {
@@ -1106,6 +1118,7 @@ var Icons = {
1106
1118
  ARROW_DOWN: /* @__PURE__ */ jsx(ArrowDownIcon, {}),
1107
1119
  KLU: /* @__PURE__ */ jsx(KluIcon, {}),
1108
1120
  KLUWHITE: /* @__PURE__ */ jsx(KluWhite, {}),
1121
+ KLUDARK: /* @__PURE__ */ jsx(KluDark, {}),
1109
1122
  DESIGNEDFREEDOM: /* @__PURE__ */ jsx(DesignedFreedom, {}),
1110
1123
  GRAPHIC_TOP: /* @__PURE__ */ jsx(GraphicTop, {}),
1111
1124
  HOME: /* @__PURE__ */ jsx(HomeIcon, {}),
@@ -1512,7 +1525,7 @@ var SelectItem = React4.forwardRef(({ className, children, ...props }, ref) => /
1512
1525
  ));
1513
1526
  SelectItem.displayName = SelectPrimitive.Item.displayName;
1514
1527
 
1515
- // src/components/ui/typography/typography.tsx
1528
+ // src/components/ui/stories/Foundations/typography/typography.tsx
1516
1529
  import * as React5 from "react";
1517
1530
  import { cva as cva3 } from "class-variance-authority";
1518
1531
  import { Fragment, jsx as jsx6, jsxs as jsxs6 } from "react/jsx-runtime";
@@ -4036,9 +4049,71 @@ var SecureModal = ({
4036
4049
  ] })
4037
4050
  ] });
4038
4051
  };
4052
+
4053
+ // src/components/ui/bankAvatar/bankAvatar.tsx
4054
+ import * as React20 from "react";
4055
+ import { jsx as jsx34 } from "react/jsx-runtime";
4056
+ var sizeMap2 = {
4057
+ sm: {
4058
+ container: "uiklu-w-[24px] uiklu-h-[24px]",
4059
+ logoClass: "uiklu-w-[14px] uiklu-h-[14px]"
4060
+ },
4061
+ md: {
4062
+ container: "uiklu-w-[32px] uiklu-h-[32px]",
4063
+ logoClass: "uiklu-w-[20px] uiklu-h-[20px]"
4064
+ },
4065
+ lg: {
4066
+ container: "uiklu-w-[40px] uiklu-h-[40px]",
4067
+ logoClass: "uiklu-w-[26px] uiklu-h-[26px]"
4068
+ },
4069
+ responsive: {
4070
+ container: "uiklu-w-full uiklu-h-full uiklu-aspect-square",
4071
+ logoClass: "uiklu-w-[62%] uiklu-h-[62%]"
4072
+ }
4073
+ };
4074
+ var BankAvatar = ({
4075
+ bankName,
4076
+ size = "responsive"
4077
+ }) => {
4078
+ const currentSize = sizeMap2[size];
4079
+ const cleanName = bankName.trim().toUpperCase();
4080
+ const isKlu = cleanName === "KLU";
4081
+ const getInitials = (name) => {
4082
+ if (!name) return "";
4083
+ return name.replace(/\s+/g, "").substring(0, 2).toUpperCase();
4084
+ };
4085
+ return /* @__PURE__ */ jsx34("div", { className: `uiklu-flex uiklu-items-center uiklu-justify-center uiklu-rounded-full
4086
+ uiklu-bg-appearance-muted uiklu-bg-muted uiklu-leading-none
4087
+ uiklu-select-none uiklu-overflow-hidden ${currentSize.container}`, children: isKlu ? React20.cloneElement(Icons.KLUDARK, {
4088
+ className: `uiklu-block uiklu-object-contain ${Icons.KLU.props.className || ""} ${currentSize.logoClass}`.trim()
4089
+ }) : /* @__PURE__ */ jsx34(
4090
+ "svg",
4091
+ {
4092
+ viewBox: "0 0 100 100",
4093
+ className: "uiklu-w-[100%] uiklu-h-[100%] uiklu-block",
4094
+ children: /* @__PURE__ */ jsx34(
4095
+ "text",
4096
+ {
4097
+ x: "50%",
4098
+ y: "52%",
4099
+ dominantBaseline: "middle",
4100
+ textAnchor: "middle",
4101
+ fontSize: "45",
4102
+ fontWeight: "400",
4103
+ fontFamily: "ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif",
4104
+ className: "uiklu-fill-mutedForeground",
4105
+ fill: "currentColor",
4106
+ style: { color: "var(--muted-foreground, #71717A)" },
4107
+ children: getInitials(bankName)
4108
+ }
4109
+ )
4110
+ }
4111
+ ) });
4112
+ };
4039
4113
  export {
4040
4114
  BackButton,
4041
4115
  BalanceInfo,
4116
+ BankAvatar,
4042
4117
  Button,
4043
4118
  Checkbox,
4044
4119
  CorporateCard,