@yakavkaz/uikit 0.0.6 → 0.0.7

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.js CHANGED
@@ -240,13 +240,13 @@ const AA = (e, g) => /* @__PURE__ */ A("svg", { xmlns: "http://www.w3.org/2000/s
240
240
  /* @__PURE__ */ A("path", { d: "M12.22 17c-4.3.1-7.12-3.59-8-5 .626-1 1.38-1.914 2.24-2.72L5 7.87a15.9 15.9 0 0 0-2.87 3.63 1 1 0 0 0 0 1c.63 1.09 4 6.5 9.89 6.5h.25a9.5 9.5 0 0 0 3.23-.67l-1.58-1.58a7.7 7.7 0 0 1-1.7.25M21.87 11.5c-.64-1.11-4.17-6.68-10.14-6.5a9.5 9.5 0 0 0-3.23.67l1.58 1.58a7.7 7.7 0 0 1 1.7-.25c4.29-.11 7.11 3.59 8 5a13.7 13.7 0 0 1-2.29 2.72L19 16.13a15.9 15.9 0 0 0 2.91-3.63 1 1 0 0 0-.04-1" })
241
241
  ] }),
242
242
  /* @__PURE__ */ A("defs", { children: /* @__PURE__ */ A("clipPath", { id: "eye-off-outline_svg__a", children: /* @__PURE__ */ A("path", { fill: "#fff", d: "M0 0h24v24H0z" }) }) })
243
- ] }), xA = i(IA), mA = (e, g) => /* @__PURE__ */ B("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 24 24", ref: g, ...e, children: [
243
+ ] }), xA = i(IA), wA = (e, g) => /* @__PURE__ */ B("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 24 24", ref: g, ...e, children: [
244
244
  /* @__PURE__ */ B("g", { fill: "#000", clipPath: "url(#eye-off_svg__a)", children: [
245
245
  /* @__PURE__ */ A("path", { d: "M12 13.5a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3M15.29 18.12 14 16.78l-.07-.07-1.27-1.27A3.5 3.5 0 0 1 8.5 12a4 4 0 0 1 .06-.61l-2-2L5 7.87a15.9 15.9 0 0 0-2.87 3.63 1 1 0 0 0 0 1c.63 1.09 4 6.5 9.89 6.5h.25a9.5 9.5 0 0 0 3.23-.67zM8.59 5.76l2.8 2.8A4 4 0 0 1 12 8.5a3.5 3.5 0 0 1 3.5 3.5 4 4 0 0 1-.06.61l2.68 2.68.84.84a15.9 15.9 0 0 0 2.91-3.63 1 1 0 0 0 0-1c-.64-1.11-4.16-6.68-10.14-6.5a9.5 9.5 0 0 0-3.23.67z" }),
246
246
  /* @__PURE__ */ A("path", { d: "M20.71 19.29 19.41 18l-2-2-9.52-9.53L6.42 5 4.71 3.29a1.004 1.004 0 1 0-1.42 1.42L5.53 7l1.75 1.7 7.31 7.3.07.07L16 17.41l.59.59 2.7 2.71a1.002 1.002 0 0 0 1.639-.325 1 1 0 0 0-.219-1.095" })
247
247
  ] }),
248
248
  /* @__PURE__ */ A("defs", { children: /* @__PURE__ */ A("clipPath", { id: "eye-off_svg__a", children: /* @__PURE__ */ A("path", { fill: "#fff", d: "M0 0h24v24H0z" }) }) })
249
- ] }), wA = i(mA), nA = (e, g) => /* @__PURE__ */ B("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 24 24", ref: g, ...e, children: [
249
+ ] }), mA = i(wA), nA = (e, g) => /* @__PURE__ */ B("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 24 24", ref: g, ...e, children: [
250
250
  /* @__PURE__ */ B("g", { fill: "#000", clipPath: "url(#eye-outline_svg__a)", children: [
251
251
  /* @__PURE__ */ A("path", { d: "M21.87 11.5c-.64-1.11-4.16-6.68-10.14-6.5-5.53.14-8.73 5-9.6 6.5a1 1 0 0 0 0 1c.63 1.09 4 6.5 9.89 6.5h.25c5.53-.14 8.74-5 9.6-6.5a1 1 0 0 0 0-1M12.22 17c-4.31.1-7.12-3.59-8-5 1-1.61 3.61-4.9 7.61-5 4.29-.11 7.11 3.59 8 5-1.03 1.61-3.61 4.9-7.61 5" }),
252
252
  /* @__PURE__ */ A("path", { d: "M12 8.5a3.5 3.5 0 1 0 0 7 3.5 3.5 0 0 0 0-7m0 5a1.5 1.5 0 1 1 0-3 1.5 1.5 0 0 1 0 3" })
@@ -300,7 +300,7 @@ const AA = (e, g) => /* @__PURE__ */ A("svg", { xmlns: "http://www.w3.org/2000/s
300
300
  CheckmarkOutline: YA,
301
301
  Close: EA,
302
302
  Eye: zA,
303
- EyeOff: wA,
303
+ EyeOff: mA,
304
304
  EyeOffOutline: xA,
305
305
  EyeOutline: JA,
306
306
  Filter: GA,
@@ -363,11 +363,11 @@ const AA = (e, g) => /* @__PURE__ */ A("svg", { xmlns: "http://www.w3.org/2000/s
363
363
  // 14px regular (бывш. small_link)
364
364
  }, qA = {
365
365
  // Заголовки
366
- [J.display_48_semibold]: "text-xl font-semibold",
366
+ [J.display_48_semibold]: "text-xxl font-semibold",
367
367
  // 48px
368
368
  [J.heading_1_bold]: "text-l font-bold",
369
369
  // 44px
370
- [J.heading_1_semibold]: "text-l font-semibold",
370
+ [J.heading_1_semibold]: "text-xl font-semibold",
371
371
  // 44px
372
372
  [J.heading_2_bold]: "text-m font-bold",
373
373
  // 24px
@@ -428,14 +428,14 @@ const T = i(
428
428
  placeholder: I,
429
429
  label: E,
430
430
  labelColor: n,
431
- ...w
432
- }, m) => /* @__PURE__ */ B("div", { className: x("flex flex-col gap-1", g), children: [
431
+ ...m
432
+ }, w) => /* @__PURE__ */ B("div", { className: x("flex flex-col gap-1", g), children: [
433
433
  E && /* @__PURE__ */ A(C, { style: { color: n }, variant: "text_16_regular", children: E[0]?.toUpperCase() + E.slice(1) }),
434
- /* @__PURE__ */ B(l.Root, { defaultValue: c, ...w, children: [
434
+ /* @__PURE__ */ B(l.Root, { defaultValue: c, ...m, children: [
435
435
  /* @__PURE__ */ B(
436
436
  l.Trigger,
437
437
  {
438
- ref: m,
438
+ ref: w,
439
439
  style: M,
440
440
  className: x(
441
441
  "inline-flex items-center justify-between gap-2",
@@ -499,7 +499,7 @@ const VA = i(function({ asChild: g = !1, children: c, className: Y, ...M }, I) {
499
499
  return e || g;
500
500
  }, $A = i(
501
501
  ({ checked: e, className: g, disabled: c = !1, id: Y, children: M, onValueChange: I, ...E }, n) => {
502
- const w = _A(Y);
502
+ const m = _A(Y);
503
503
  return /* @__PURE__ */ B("div", { className: "flex items-center", children: [
504
504
  /* @__PURE__ */ A(
505
505
  S.Root,
@@ -517,7 +517,7 @@ const VA = i(function({ asChild: g = !1, children: c, className: Y, ...M }, I) {
517
517
  "active:before:bg-gray-100",
518
518
  g
519
519
  ),
520
- id: w,
520
+ id: m,
521
521
  disabled: c,
522
522
  onCheckedChange: I,
523
523
  ...E,
@@ -541,7 +541,7 @@ const VA = i(function({ asChild: g = !1, children: c, className: Y, ...M }, I) {
541
541
  "cursor-pointer select-none pl-2.5 text-dark-900",
542
542
  c && "cursor-default text-gray-300"
543
543
  ),
544
- htmlFor: w,
544
+ htmlFor: m,
545
545
  children: M
546
546
  }
547
547
  ) })
@@ -551,7 +551,7 @@ const VA = i(function({ asChild: g = !1, children: c, className: Y, ...M }, I) {
551
551
  $A.displayName = "Checkbox";
552
552
  const W = i(
553
553
  ({ asChild: e, onClick: g, variant: c = "primary", fullWidth: Y, className: M, disabled: I, ...E }, n) => {
554
- const w = e ? o : "button", m = (G) => {
554
+ const m = e ? o : "button", w = (G) => {
555
555
  I && G.preventDefault();
556
556
  }, h = x(
557
557
  "border border-success-700 font-medium hover:border-success-600 active:border-success-800 focus:ring-2 focus:ring-success-800 disabled:border-success-300 disabled:cursor-not-allowed disabled:pointer-events-none",
@@ -561,10 +561,10 @@ const W = i(
561
561
  }
562
562
  );
563
563
  return /* @__PURE__ */ A(
564
- w,
564
+ m,
565
565
  {
566
566
  disabled: I,
567
- onClick: e && I ? m : g,
567
+ onClick: e && I ? w : g,
568
568
  ref: n,
569
569
  ...E,
570
570
  className: x(
@@ -644,9 +644,9 @@ function gg(e, g = "short") {
644
644
  }
645
645
  }).formatToParts(c);
646
646
  if (g === "short")
647
- return E.filter((m) => ["weekday", "day", "month", "year"].includes(m.type)).map((m) => m.type === "weekday" ? m.value.charAt(0).toUpperCase() + m.value.slice(1) : m.value).join(" ").replace(/\./g, "");
648
- const n = E.filter((m) => ["weekday", "day", "month", "year"].includes(m.type)).map((m) => m.type === "weekday" ? m.value.charAt(0).toUpperCase() + m.value.slice(1) : m.value).join(" ").replace(/\./g, ""), w = E.filter((m) => ["hour", "minute"].includes(m.type)).map((m) => m.value).join(":");
649
- return `${n} в ${w}`;
647
+ return E.filter((w) => ["weekday", "day", "month", "year"].includes(w.type)).map((w) => w.type === "weekday" ? w.value.charAt(0).toUpperCase() + w.value.slice(1) : w.value).join(" ").replace(/\./g, "");
648
+ const n = E.filter((w) => ["weekday", "day", "month", "year"].includes(w.type)).map((w) => w.type === "weekday" ? w.value.charAt(0).toUpperCase() + w.value.slice(1) : w.value).join(" ").replace(/\./g, ""), m = E.filter((w) => ["hour", "minute"].includes(w.type)).map((w) => w.value).join(":");
649
+ return `${n} в ${m}`;
650
650
  }
651
651
  const eg = i(
652
652
  ({ className: e, date: g, variant: c = "short", ...Y }) => {
@@ -697,12 +697,12 @@ const H = i(
697
697
  className: g,
698
698
  sectionName: c = "",
699
699
  iconId: Y = "Yak",
700
- variant: M = "small",
700
+ variant: M = "large",
701
701
  withTM: I = !1,
702
702
  iconColor: E = "text-success-700",
703
703
  ...n
704
- }, w) => {
705
- const m = e ? o : "div", h = () => {
704
+ }, m) => {
705
+ const w = e ? o : "div", h = () => {
706
706
  switch (M) {
707
707
  case "large":
708
708
  return { width: 61, height: 44 };
@@ -723,7 +723,7 @@ const H = i(
723
723
  return "heading_2_semibold";
724
724
  }
725
725
  };
726
- return /* @__PURE__ */ A(m, { ref: w, className: x("inline-flex items-center gap-1", g), ...n, children: /* @__PURE__ */ B("div", { className: "flex items-center gap-1", children: [
726
+ return /* @__PURE__ */ A(w, { ref: m, className: x("inline-flex items-center gap-1", g), ...n, children: /* @__PURE__ */ B("div", { className: "flex items-center gap-1", children: [
727
727
  /* @__PURE__ */ A(
728
728
  z,
729
729
  {
@@ -740,7 +740,7 @@ const H = i(
740
740
  "Якавказ",
741
741
  I && /* @__PURE__ */ A("sup", { className: "align-super text-[9px] tracking-tight", children: "™" })
742
742
  ] }),
743
- /* @__PURE__ */ A(C, { variant: "heading_2_regular", children: c })
743
+ /* @__PURE__ */ A(C, { variant: G(), children: c })
744
744
  ] }) });
745
745
  }
746
746
  );
@@ -773,8 +773,8 @@ const cg = ({ children: e, className: g, label: c, required: Y, labelColor: M =
773
773
  iconStart: I,
774
774
  label: E,
775
775
  onEnter: n,
776
- onKeyDown: w,
777
- required: m,
776
+ onKeyDown: m,
777
+ required: w,
778
778
  search: h,
779
779
  type: G,
780
780
  labelColor: F,
@@ -799,10 +799,10 @@ const cg = ({ children: e, className: g, label: c, required: Y, labelColor: M =
799
799
  height: 24
800
800
  }
801
801
  ) : M, N = G === "password" ? R ? "text" : "password" : h ? "search" : G, P = (d) => {
802
- n && d.key === "Enter" && n(d), w?.(d);
802
+ n && d.key === "Enter" && n(d), m?.(d);
803
803
  }, L = !!c && !!Q.value && String(Q.value).length > 0, p = (f ? "start" : "") + (a ? "end" : "");
804
804
  return /* @__PURE__ */ B("div", { className: x("flex w-full flex-col", g), children: [
805
- E && /* @__PURE__ */ A(cg, { htmlFor: t, label: E, required: m, labelColor: F }),
805
+ E && /* @__PURE__ */ A(cg, { htmlFor: t, label: E, required: w, labelColor: F }),
806
806
  /* @__PURE__ */ B("div", { className: "relative flex items-center", children: [
807
807
  !!f && /* @__PURE__ */ A("span", { className: "absolute left-5 top-1/2 grid h-6 w-6 -translate-y-1/2 place-items-center", children: f }),
808
808
  /* @__PURE__ */ A(
@@ -828,7 +828,7 @@ const cg = ({ children: e, className: g, label: c, required: Y, labelColor: M =
828
828
  name: "text",
829
829
  onKeyDown: P,
830
830
  ref: v,
831
- required: m,
831
+ required: w,
832
832
  type: N,
833
833
  ...Q
834
834
  }
@@ -892,20 +892,20 @@ const y = i(
892
892
  ),
893
893
  sideOffset: 4,
894
894
  align: "end",
895
- children: e.map((w) => /* @__PURE__ */ A(
895
+ children: e.map((m) => /* @__PURE__ */ A(
896
896
  Z.Item,
897
897
  {
898
898
  asChild: !0,
899
- disabled: w.disabled,
899
+ disabled: m.disabled,
900
900
  className: x(
901
901
  "flex cursor-pointer items-center px-3 py-1.5 text-sm",
902
902
  "hover:bg-light-100 hover:text-success-300",
903
903
  "data-[disabled]:pointer-events-none data-[disabled]:text-primary-900",
904
904
  "outline-none"
905
905
  ),
906
- children: /* @__PURE__ */ A("a", { href: w.href, children: /* @__PURE__ */ A(C, { variant: Y, children: w.label }) })
906
+ children: /* @__PURE__ */ A("a", { href: m.href, children: /* @__PURE__ */ A(C, { variant: Y, children: m.label }) })
907
907
  },
908
- w.label
908
+ m.label
909
909
  ))
910
910
  }
911
911
  ) })
@@ -924,7 +924,7 @@ const X = i(
924
924
  className: x("mx-auto flex max-w-[630px] items-center justify-center gap-6", g),
925
925
  style: c,
926
926
  children: [
927
- E.map((w) => /* @__PURE__ */ A("li", { children: /* @__PURE__ */ A("a", { href: w.href, children: /* @__PURE__ */ A(C, { variant: "text_16_semibold", children: w.label }) }) }, w.label)),
927
+ E.map((m) => /* @__PURE__ */ A("li", { children: /* @__PURE__ */ A("a", { href: m.href, children: /* @__PURE__ */ A(C, { variant: "text_16_semibold", children: m.label }) }) }, m.label)),
928
928
  n.length > 0 && /* @__PURE__ */ A("li", { children: /* @__PURE__ */ A(y, { items: n }) }),
929
929
  Y
930
930
  ]
@@ -947,8 +947,8 @@ const Yg = [
947
947
  defaultLocation: I = M[0],
948
948
  locationValue: E,
949
949
  onLocationChange: n,
950
- withSearchAndMenu: w = !1,
951
- onLoginClick: m,
950
+ withSearchAndMenu: m = !1,
951
+ onLoginClick: w,
952
952
  onMenuClick: h,
953
953
  onSearchClick: G,
954
954
  className: F,
@@ -972,7 +972,7 @@ const Yg = [
972
972
  children: [
973
973
  /* @__PURE__ */ B("div", { className: "flex min-w-0 items-center", children: [
974
974
  /* @__PURE__ */ B("div", { className: "flex items-center gap-3 sm:gap-4", children: [
975
- w && /* @__PURE__ */ B(k, { children: [
975
+ m && /* @__PURE__ */ B(k, { children: [
976
976
  /* @__PURE__ */ A(
977
977
  "button",
978
978
  {
@@ -990,7 +990,7 @@ const Yg = [
990
990
  /* @__PURE__ */ A(
991
991
  "nav",
992
992
  {
993
- className: x("ml-4 sm:ml-6", w && "hidden md:block"),
993
+ className: x("ml-4 sm:ml-6", m && "hidden md:block"),
994
994
  "aria-label": "Основная навигация",
995
995
  children: g ?? /* @__PURE__ */ A(X, { items: c, lengthItem: Y })
996
996
  }
@@ -1010,7 +1010,7 @@ const Yg = [
1010
1010
  children: M.map((s) => /* @__PURE__ */ A(K, { value: s, children: s }, s))
1011
1011
  }
1012
1012
  ),
1013
- /* @__PURE__ */ A(W, { type: "button", onClick: m, variant: "outlineBlackText", children: "Войти" })
1013
+ /* @__PURE__ */ A(W, { type: "button", onClick: w, variant: "outlineBlackText", children: "Войти" })
1014
1014
  ] })
1015
1015
  ]
1016
1016
  }
@@ -1262,14 +1262,14 @@ const Yg = [
1262
1262
  bgButton: "!bg-purple-800",
1263
1263
  bgCard: "bg-purple-100"
1264
1264
  }
1265
- }, { text: n, bgButton: w, bgCard: m } = E[c], h = Y === "primary";
1265
+ }, { text: n, bgButton: m, bgCard: w } = E[c], h = Y === "primary";
1266
1266
  return /* @__PURE__ */ B(
1267
1267
  VA,
1268
1268
  {
1269
1269
  className: x(
1270
1270
  "flex w-full overflow-hidden",
1271
1271
  h ? "max-h-[100px] items-center justify-between overflow-hidden px-7" : "relative min-h-[602px] max-w-[416px] flex-col justify-between p-7",
1272
- m,
1272
+ w,
1273
1273
  I
1274
1274
  ),
1275
1275
  children: [
@@ -1279,7 +1279,7 @@ const Yg = [
1279
1279
  ] }),
1280
1280
  h ? /* @__PURE__ */ B(k, { children: [
1281
1281
  /* @__PURE__ */ A(U, { className: x("fill-current", n), width: "380px" }),
1282
- /* @__PURE__ */ A(W, { variant: "primary", className: x(w), onClick: g, children: /* @__PURE__ */ A("a", { href: M, children: "Подробнее" }) })
1282
+ /* @__PURE__ */ A(W, { variant: "primary", className: x(m), onClick: g, children: /* @__PURE__ */ A("a", { href: M, children: "Подробнее" }) })
1283
1283
  ] }) : /* @__PURE__ */ B(k, { children: [
1284
1284
  /* @__PURE__ */ A(
1285
1285
  Ig,
@@ -1308,7 +1308,7 @@ export {
1308
1308
  y as DropdownMenu,
1309
1309
  z as DynamicIcon,
1310
1310
  zA as Eye,
1311
- wA as EyeOff,
1311
+ mA as EyeOff,
1312
1312
  xA as EyeOffOutline,
1313
1313
  JA as EyeOutline,
1314
1314
  GA as Filter,