@yakavkaz/uikit 0.0.26 → 0.0.30

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
@@ -1,5 +1,5 @@
1
1
  import { jsxs as B, jsx as A, Fragment as Z } from "react/jsx-runtime";
2
- import * as a from "@radix-ui/react-select";
2
+ import * as G from "@radix-ui/react-select";
3
3
  import { forwardRef as c, memo as _, useId as H, useMemo as $, useState as AA } from "react";
4
4
  import I, { clsx as gA } from "clsx";
5
5
  import { Slot as R } from "@radix-ui/react-slot";
@@ -1391,8 +1391,8 @@ const BA = (e, g) => /* @__PURE__ */ B("svg", { xmlns: "http://www.w3.org/2000/s
1391
1391
  Yak: xe,
1392
1392
  Yandex: we
1393
1393
  }, Symbol.toStringTag, { value: "Module" })), he = ({ iconId: e, ...g }, i) => {
1394
- const M = ne[e];
1395
- return M ? /* @__PURE__ */ A(M, { ...g, ref: i }) : null;
1394
+ const Y = ne[e];
1395
+ return Y ? /* @__PURE__ */ A(Y, { ...g, ref: i }) : null;
1396
1396
  }, Je = c(he), C = _(Je), E = {
1397
1397
  // Display 48
1398
1398
  display_48_regular: "display_48_regular",
@@ -1508,19 +1508,19 @@ const BA = (e, g) => /* @__PURE__ */ B("svg", { xmlns: "http://www.w3.org/2000/s
1508
1508
  [E.text_30_semibold]: "text-30 font-semibold",
1509
1509
  [E.text_30_bold]: "text-30 font-bold"
1510
1510
  }, l = c(
1511
- ({ asChild: e, variant: g = E.text_16_regular, className: i, ...M }, Y) => {
1511
+ ({ asChild: e, variant: g = E.text_16_regular, className: i, ...Y }, M) => {
1512
1512
  const x = e ? R : "span", m = ze[g];
1513
1513
  return /* @__PURE__ */ A(
1514
1514
  x,
1515
1515
  {
1516
- ref: Y,
1516
+ ref: M,
1517
1517
  className: I(
1518
1518
  "font-primary",
1519
1519
  // Базовый шрифт
1520
1520
  m,
1521
1521
  i
1522
1522
  ),
1523
- ...M
1523
+ ...Y
1524
1524
  }
1525
1525
  );
1526
1526
  }
@@ -1531,8 +1531,8 @@ const y = c(
1531
1531
  children: e,
1532
1532
  className: g,
1533
1533
  defaultValue: i,
1534
- triggerIcon: M,
1535
- style: Y,
1534
+ triggerIcon: Y,
1535
+ style: M,
1536
1536
  placeholder: x,
1537
1537
  label: m,
1538
1538
  labelColor: n,
@@ -1541,12 +1541,12 @@ const y = c(
1541
1541
  const J = h.value !== void 0 ? h : { ...h, defaultValue: i };
1542
1542
  return /* @__PURE__ */ B("div", { className: I("bg-light-100 flex flex-col gap-1", g), children: [
1543
1543
  m && /* @__PURE__ */ A(l, { style: { color: n }, variant: "text_16_regular", children: m[0]?.toUpperCase() + m.slice(1) }),
1544
- /* @__PURE__ */ B(a.Root, { ...J, children: [
1544
+ /* @__PURE__ */ B(G.Root, { ...J, children: [
1545
1545
  /* @__PURE__ */ B(
1546
- a.Trigger,
1546
+ G.Trigger,
1547
1547
  {
1548
1548
  ref: w,
1549
- style: Y,
1549
+ style: M,
1550
1550
  "aria-label": m,
1551
1551
  className: I(
1552
1552
  "inline-flex items-center justify-between gap-2",
@@ -1558,20 +1558,20 @@ const y = c(
1558
1558
  "data-[state=open]:text-light-900 outline-none"
1559
1559
  ),
1560
1560
  children: [
1561
- /* @__PURE__ */ A("div", { className: "flex items-center gap-2", children: M && /* @__PURE__ */ A(a.Icon, { className: "h-6 w-6", children: M }) }),
1562
- /* @__PURE__ */ A(a.Value, { placeholder: x }),
1563
- /* @__PURE__ */ A(a.Icon, { className: "text-black transition-transform duration-300 data-[state=open]:rotate-180", children: /* @__PURE__ */ A(C, { iconId: "KeyboardArrowDown", className: "h-6 w-6" }) })
1561
+ /* @__PURE__ */ A("div", { className: "flex items-center gap-2", children: Y && /* @__PURE__ */ A(G.Icon, { className: "h-6 w-6", children: Y }) }),
1562
+ /* @__PURE__ */ A(G.Value, { placeholder: x }),
1563
+ /* @__PURE__ */ A(G.Icon, { className: "text-black transition-transform duration-300 data-[state=open]:rotate-180", children: /* @__PURE__ */ A(C, { iconId: "KeyboardArrowDown", className: "h-6 w-6" }) })
1564
1564
  ]
1565
1565
  }
1566
1566
  ),
1567
- /* @__PURE__ */ A(a.Portal, { children: /* @__PURE__ */ A(
1568
- a.Content,
1567
+ /* @__PURE__ */ A(G.Portal, { children: /* @__PURE__ */ A(
1568
+ G.Content,
1569
1569
  {
1570
1570
  className: "z-50 w-[var(--radix-select-trigger-width)] overflow-hidden bg-white shadow-lg",
1571
1571
  position: "popper",
1572
1572
  sideOffset: 4,
1573
1573
  collisionPadding: 10,
1574
- children: /* @__PURE__ */ A(a.Viewport, { className: "max-h-[200px] overflow-y-auto p-1", children: e })
1574
+ children: /* @__PURE__ */ A(G.Viewport, { className: "max-h-[200px] overflow-y-auto p-1", children: e })
1575
1575
  }
1576
1576
  ) })
1577
1577
  ] })
@@ -1580,12 +1580,12 @@ const y = c(
1580
1580
  );
1581
1581
  y.displayName = "Selector";
1582
1582
  const K = c(
1583
- ({ children: e, className: g = "", value: i, disabled: M }, Y) => /* @__PURE__ */ A(
1584
- a.Item,
1583
+ ({ children: e, className: g = "", value: i, disabled: Y }, M) => /* @__PURE__ */ A(
1584
+ G.Item,
1585
1585
  {
1586
- ref: Y,
1586
+ ref: M,
1587
1587
  value: i,
1588
- disabled: M,
1588
+ disabled: Y,
1589
1589
  className: I(
1590
1590
  "relative flex cursor-pointer items-center px-3 py-1.5 text-sm select-none",
1591
1591
  "data-[highlighted]:text-success-300",
@@ -1593,20 +1593,20 @@ const K = c(
1593
1593
  "outline-none",
1594
1594
  g
1595
1595
  ),
1596
- children: /* @__PURE__ */ A(a.ItemText, { children: e })
1596
+ children: /* @__PURE__ */ A(G.ItemText, { children: e })
1597
1597
  }
1598
1598
  )
1599
1599
  );
1600
1600
  K.displayName = "SelectItem";
1601
- const Ce = c(function({ asChild: g = !1, children: i, className: M, ...Y }, x) {
1601
+ const Ce = c(function({ asChild: g = !1, children: i, className: Y, ...M }, x) {
1602
1602
  const m = g ? R : "div";
1603
- return i ? /* @__PURE__ */ A(m, { ref: x, className: I("w-full", M), ...Y, children: i }) : /* @__PURE__ */ A("div", { ref: x, className: I("bg-light-100 w-full", M), ...Y, children: "Пустая карточка" });
1603
+ return i ? /* @__PURE__ */ A(m, { ref: x, className: I("w-full", Y), ...M, children: i }) : /* @__PURE__ */ A("div", { ref: x, className: I("bg-light-100 w-full", Y), ...M, children: "Пустая карточка" });
1604
1604
  }), le = (e) => {
1605
1605
  const g = H();
1606
1606
  return e || g;
1607
1607
  }, Ge = c(
1608
- ({ checked: e, className: g, disabled: i = !1, id: M, children: Y, onValueChange: x, ...m }, n) => {
1609
- const h = le(M);
1608
+ ({ checked: e, className: g, disabled: i = !1, id: Y, children: M, onValueChange: x, ...m }, n) => {
1609
+ const h = le(Y);
1610
1610
  return /* @__PURE__ */ B("div", { className: "flex items-start gap-2 leading-tight", children: [
1611
1611
  /* @__PURE__ */ A(
1612
1612
  W.Root,
@@ -1649,61 +1649,44 @@ const Ce = c(function({ asChild: g = !1, children: i, className: M, ...Y }, x) {
1649
1649
  i && "cursor-default text-gray-300"
1650
1650
  ),
1651
1651
  htmlFor: h,
1652
- children: Y
1652
+ children: M
1653
1653
  }
1654
1654
  ) })
1655
1655
  ] });
1656
1656
  }
1657
1657
  );
1658
1658
  Ge.displayName = "Checkbox";
1659
- const D = c(
1660
- ({ asChild: e, onClick: g, variant: i = "primary", size: M = "md", className: Y, disabled: x, ...m }, n) => {
1661
- const h = e ? R : "button", w = (G) => {
1662
- x && G.preventDefault();
1663
- }, J = I(
1664
- "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",
1665
- {
1666
- "text-success-700 hover:text-success-600 active:text-green-700 focus:text-success-800 disabled:text-success-300": i === "outline",
1667
- "text-dark-900 hover:text-dark-800 active:text-dark-900 focus:text-dark-900 disabled:text-gray-400": i === "outlineBlackText"
1668
- }
1669
- );
1670
- return /* @__PURE__ */ A(
1671
- h,
1672
- {
1673
- disabled: x,
1674
- onClick: e && x ? w : g,
1675
- ref: n,
1676
- ...m,
1677
- className: I(
1678
- // Base style
1679
- "box-border inline-flex items-center justify-center gap-2.5 text-center text-xs leading-6 font-semibold whitespace-nowrap",
1680
- "cursor-pointer outline-none",
1681
- {
1682
- // Primary
1683
- "hover:bg-success-600 active:bg-success-800 focus:ring-success-800 bg-success-700 text-light-100 focus:bg-success-700 disabled:bg-success-300 font-semibold focus:ring-2 disabled:text-gray-300": i === "primary",
1684
- //Outline or outlineBlackText
1685
- [J]: i === "outline" || i === "outlineBlackText"
1686
- },
1687
- {
1688
- "px-4 py-2": M === "sm",
1689
- "px-6 py-3": M === "md",
1690
- "px-8 py-4": M === "lg"
1691
- },
1692
- Y,
1693
- e && x && "pointer-events-none cursor-not-allowed"
1694
- )
1695
- }
1696
- );
1697
- }
1659
+ const ae = "inline-flex items-center justify-center gap-2.5 text-xs font-semibold whitespace-nowrap cursor-pointer outline-none px-6 py-4", se = {
1660
+ primary: "bg-success-700 text-light-100 hover:bg-success-600 active:bg-success-800 focus:ring-2 focus:ring-success-800 disabled:bg-success-300 disabled:text-gray-300",
1661
+ outline: "border border-success-700 text-success-700 hover:border-success-600 hover:text-success-600 active:border-success-800 focus:ring-2 focus:ring-success-800 disabled:border-success-300 disabled:text-success-300",
1662
+ outlineBlackText: "border border-success-700 text-dark-900 hover:border-success-600 hover:text-dark-800 active:border-success-800 focus:ring-2 focus:ring-success-800 disabled:border-success-300 disabled:text-gray-400"
1663
+ }, D = c(
1664
+ ({ asChild: e, onClick: g, variant: i = "primary", className: Y, disabled: M, ...x }, m) => /* @__PURE__ */ A(
1665
+ e ? R : "button",
1666
+ {
1667
+ disabled: M,
1668
+ onClick: e && M ? (w) => {
1669
+ M && w.preventDefault();
1670
+ } : g,
1671
+ ref: m,
1672
+ ...x,
1673
+ className: I(
1674
+ ae,
1675
+ se[i],
1676
+ Y,
1677
+ e && M && "pointer-events-none cursor-not-allowed"
1678
+ )
1679
+ }
1680
+ )
1698
1681
  );
1699
1682
  D.displayName = "Button";
1700
- const ae = c(
1683
+ const oe = c(
1701
1684
  ({
1702
1685
  asChild: e,
1703
1686
  className: g,
1704
1687
  children: i,
1705
- color: M = "success",
1706
- typographyVariant: Y = "text_14_semibold",
1688
+ color: Y = "success",
1689
+ typographyVariant: M = "text_14_semibold",
1707
1690
  iconId: x,
1708
1691
  ...m
1709
1692
  }, n) => /* @__PURE__ */ A(e ? R : "span", { ref: n, className: I("flex items-center gap-2", g), ...m, children: /* @__PURE__ */ B(Z, { children: [
@@ -1711,26 +1694,26 @@ const ae = c(
1711
1694
  /* @__PURE__ */ A(
1712
1695
  l,
1713
1696
  {
1714
- variant: Y,
1697
+ variant: M,
1715
1698
  asChild: e,
1716
1699
  className: I({
1717
- "text-dark-900": M === "dark",
1718
- "text-success-700": M === "success",
1719
- "text-warning-300": M === "warning"
1700
+ "text-dark-900": Y === "dark",
1701
+ "text-success-700": Y === "success",
1702
+ "text-warning-300": Y === "warning"
1720
1703
  }),
1721
1704
  children: i
1722
1705
  }
1723
1706
  )
1724
1707
  ] }) })
1725
1708
  );
1726
- ae.displayName = "Tag";
1727
- function se(e, g = "short") {
1709
+ oe.displayName = "Tag";
1710
+ function Qe(e, g = "short") {
1728
1711
  const i = typeof e == "string" ? new Date(e) : e;
1729
1712
  if (isNaN(i.getTime()))
1730
1713
  return "Неверная дата";
1731
- const M = /* @__PURE__ */ new Date("2025-08-05T15:18:00+02:00"), Y = /* @__PURE__ */ new Date("2025-08-12T23:59:59+02:00");
1714
+ const Y = /* @__PURE__ */ new Date("2025-08-05T15:18:00+02:00"), M = /* @__PURE__ */ new Date("2025-08-12T23:59:59+02:00");
1732
1715
  if (g === "relative")
1733
- return i <= Y && i >= M ? `до ${new Intl.DateTimeFormat("ru-RU", {
1716
+ return i <= M && i >= Y ? `до ${new Intl.DateTimeFormat("ru-RU", {
1734
1717
  day: "numeric",
1735
1718
  month: "long"
1736
1719
  }).format(i).replace(/\./g, "")}` : "Дата вне диапазона";
@@ -1763,30 +1746,30 @@ function se(e, g = "short") {
1763
1746
  ).join(" ").replace(/\./g, ""), h = m.filter((w) => ["hour", "minute"].includes(w.type)).map((w) => w.value).join(":");
1764
1747
  return `${n} в ${h}`;
1765
1748
  }
1766
- const oe = c(
1767
- ({ className: e, date: g, variant: i = "short", ...M }) => {
1768
- const Y = se(g, i);
1749
+ const Re = c(
1750
+ ({ className: e, date: g, variant: i = "short", ...Y }) => {
1751
+ const M = Qe(g, i);
1769
1752
  return /* @__PURE__ */ A(
1770
1753
  l,
1771
1754
  {
1772
1755
  variant: "text_14_medium",
1773
1756
  className: I("text-light-900", e, {
1774
- "text-red-600": Y === "Неверная дата" || Y === "Дата вне диапазона"
1757
+ "text-red-600": M === "Неверная дата" || M === "Дата вне диапазона"
1775
1758
  }),
1776
- ...M,
1777
- children: Y
1759
+ ...Y,
1760
+ children: M
1778
1761
  }
1779
1762
  );
1780
1763
  }
1781
1764
  );
1782
- oe.displayName = "FormattedDate";
1783
- const Qe = c(
1765
+ Re.displayName = "FormattedDate";
1766
+ const fe = c(
1784
1767
  ({
1785
1768
  asChild: e,
1786
1769
  className: g,
1787
1770
  iconId: i = "Arrow",
1788
- typographyVariant: M = "heading_3_bold",
1789
- children: Y,
1771
+ typographyVariant: Y = "heading_3_bold",
1772
+ children: M,
1790
1773
  ...x
1791
1774
  }, m) => /* @__PURE__ */ A(
1792
1775
  e ? R : "div",
@@ -1799,26 +1782,26 @@ const Qe = c(
1799
1782
  ),
1800
1783
  ...x,
1801
1784
  children: /* @__PURE__ */ B("div", { className: "flex w-full items-center justify-between", children: [
1802
- Y && /* @__PURE__ */ A(l, { variant: M, children: Y }),
1785
+ M && /* @__PURE__ */ A(l, { variant: Y, children: M }),
1803
1786
  /* @__PURE__ */ A(C, { iconId: i, width: 24, height: 24, className: "text-light-700" })
1804
1787
  ] })
1805
1788
  }
1806
1789
  )
1807
1790
  );
1808
- Qe.displayName = "PreviewTitle";
1791
+ fe.displayName = "PreviewTitle";
1809
1792
  const d = c(
1810
1793
  ({
1811
1794
  asChild: e,
1812
1795
  className: g,
1813
1796
  sectionName: i = "",
1814
- iconId: M = "Yak",
1815
- variant: Y = "large",
1797
+ iconId: Y = "Yak",
1798
+ variant: M = "large",
1816
1799
  withTM: x = !1,
1817
1800
  iconColor: m = "text-success-700",
1818
1801
  ...n
1819
1802
  }, h) => {
1820
1803
  const w = e ? R : "div", J = () => {
1821
- switch (Y) {
1804
+ switch (M) {
1822
1805
  case "large":
1823
1806
  return { width: 61, height: 44 };
1824
1807
  case "medium":
@@ -1827,8 +1810,8 @@ const d = c(
1827
1810
  default:
1828
1811
  return { width: 33, height: 24 };
1829
1812
  }
1830
- }, G = () => {
1831
- switch (Y) {
1813
+ }, a = () => {
1814
+ switch (M) {
1832
1815
  case "large":
1833
1816
  return "heading_1_semibold";
1834
1817
  case "medium":
@@ -1842,7 +1825,7 @@ const d = c(
1842
1825
  /* @__PURE__ */ A(
1843
1826
  C,
1844
1827
  {
1845
- iconId: M,
1828
+ iconId: Y,
1846
1829
  width: J().width,
1847
1830
  height: J().height,
1848
1831
  className: I("fill-current", m),
@@ -1851,7 +1834,7 @@ const d = c(
1851
1834
  }
1852
1835
  }
1853
1836
  ),
1854
- /* @__PURE__ */ B(l, { variant: G(), children: [
1837
+ /* @__PURE__ */ B(l, { variant: a(), children: [
1855
1838
  "Якавказ",
1856
1839
  x && /* @__PURE__ */ A("sup", { className: "align-super text-[9px] tracking-tight", children: "™" })
1857
1840
  ] }),
@@ -1860,12 +1843,12 @@ const d = c(
1860
1843
  }
1861
1844
  );
1862
1845
  d.displayName = "Logo";
1863
- const Re = ({
1846
+ const ke = ({
1864
1847
  children: e,
1865
1848
  className: g,
1866
1849
  label: i,
1867
- required: M,
1868
- labelColor: Y = "primary",
1850
+ required: Y,
1851
+ labelColor: M = "primary",
1869
1852
  ...x
1870
1853
  }) => {
1871
1854
  const m = $(
@@ -1873,45 +1856,45 @@ const Re = ({
1873
1856
  label: gA(
1874
1857
  "inline-block mb-1 text-sm leading-6",
1875
1858
  g,
1876
- Y === "primary" && "text-light-900",
1877
- Y === "disabled" && "text-dark-100"
1859
+ M === "primary" && "text-light-900",
1860
+ M === "disabled" && "text-dark-100"
1878
1861
  ),
1879
1862
  required: "ml-0.5 text-danger-300"
1880
1863
  }),
1881
- [g, Y]
1864
+ [g, M]
1882
1865
  );
1883
1866
  return /* @__PURE__ */ B(eA.Root, { ...x, children: [
1884
1867
  i && /* @__PURE__ */ B("div", { className: m.label, children: [
1885
1868
  i,
1886
- M && /* @__PURE__ */ A("span", { className: m.required, children: "*" })
1869
+ Y && /* @__PURE__ */ A("span", { className: m.required, children: "*" })
1887
1870
  ] }),
1888
1871
  e
1889
1872
  ] });
1890
- }, fe = c(function({
1873
+ }, Oe = c(function({
1891
1874
  className: g,
1892
1875
  onClearClick: i,
1893
- errorMessage: M,
1894
- iconEnd: Y,
1876
+ errorMessage: Y,
1877
+ iconEnd: M,
1895
1878
  iconStart: x,
1896
1879
  label: m,
1897
1880
  onEnter: n,
1898
1881
  onKeyDown: h,
1899
1882
  required: w,
1900
1883
  search: J,
1901
- type: G,
1884
+ type: a,
1902
1885
  labelColor: v,
1903
1886
  id: z,
1904
1887
  inputColor: f,
1905
1888
  ...o
1906
1889
  }, k) {
1907
- const L = !!M && M.length > 0, [F, N] = AA(!1), P = H(), t = z ?? P, O = J ? /* @__PURE__ */ A(
1890
+ const L = !!Y && Y.length > 0, [F, N] = AA(!1), P = H(), t = z ?? P, O = J ? /* @__PURE__ */ A(
1908
1891
  C,
1909
1892
  {
1910
1893
  iconId: "Search",
1911
1894
  width: 20,
1912
1895
  className: "text-success-700 focus-within:text-light-100"
1913
1896
  }
1914
- ) : x, Q = G === "password" ? /* @__PURE__ */ A(
1897
+ ) : x, Q = a === "password" ? /* @__PURE__ */ A(
1915
1898
  C,
1916
1899
  {
1917
1900
  iconId: F ? "EyeOutline" : "EyeOffOutline",
@@ -1920,11 +1903,11 @@ const Re = ({
1920
1903
  width: 24,
1921
1904
  height: 24
1922
1905
  }
1923
- ) : Y, b = G === "password" ? F ? "text" : "password" : J ? "search" : G, q = (j) => {
1906
+ ) : M, b = a === "password" ? F ? "text" : "password" : J ? "search" : a, q = (j) => {
1924
1907
  n && j.key === "Enter" && n(j), h?.(j);
1925
1908
  }, u = !!i && !!o.value && String(o.value).length > 0, V = (O ? "start" : "") + (Q ? "end" : "");
1926
1909
  return /* @__PURE__ */ B("div", { className: I("flex w-full flex-col", g), children: [
1927
- m && /* @__PURE__ */ A(Re, { htmlFor: t, label: m, required: w, labelColor: v }),
1910
+ m && /* @__PURE__ */ A(ke, { htmlFor: t, label: m, required: w, labelColor: v }),
1928
1911
  /* @__PURE__ */ B("div", { className: "relative flex items-center", children: [
1929
1912
  !!O && /* @__PURE__ */ A("span", { className: "absolute top-1/2 left-5 grid h-6 w-6 -translate-y-1/2 place-items-center", children: O }),
1930
1913
  /* @__PURE__ */ A(
@@ -1964,21 +1947,21 @@ const Re = ({
1964
1947
  ),
1965
1948
  onClick: i,
1966
1949
  type: "button",
1967
- children: G !== "password" && /* @__PURE__ */ A(C, { iconId: "Close", width: 24, height: 24 })
1950
+ children: a !== "password" && /* @__PURE__ */ A(C, { iconId: "Close", width: 24, height: 24 })
1968
1951
  }
1969
1952
  ),
1970
1953
  !!Q && /* @__PURE__ */ A("span", { className: "absolute top-1/2 right-5 grid h-6 w-6 -translate-y-1/2 place-items-center", children: Q })
1971
1954
  ] }),
1972
- L && /* @__PURE__ */ A("span", { className: "text-danger-300 text-xs font-normal", children: M })
1955
+ L && /* @__PURE__ */ A("span", { className: "text-danger-300 text-xs font-normal", children: Y })
1973
1956
  ] });
1974
1957
  });
1975
- fe.displayName = "TextField";
1976
- const ke = c(
1977
- function({ className: g, children: i, ...M }, Y) {
1978
- return /* @__PURE__ */ A("div", { ref: Y, className: I("flex items-center gap-3", g), ...M, children: i });
1958
+ Oe.displayName = "TextField";
1959
+ const Ze = c(
1960
+ function({ className: g, children: i, ...Y }, M) {
1961
+ return /* @__PURE__ */ A("div", { ref: M, className: I("flex items-center gap-3", g), ...Y, children: i });
1979
1962
  }
1980
1963
  );
1981
- function pe({ onClick: e, className: g }) {
1964
+ function Pe({ onClick: e, className: g }) {
1982
1965
  return /* @__PURE__ */ A(
1983
1966
  "button",
1984
1967
  {
@@ -1991,7 +1974,7 @@ function pe({ onClick: e, className: g }) {
1991
1974
  }
1992
1975
  );
1993
1976
  }
1994
- function Ne({ onClick: e, className: g }) {
1977
+ function be({ onClick: e, className: g }) {
1995
1978
  return /* @__PURE__ */ A(
1996
1979
  "button",
1997
1980
  {
@@ -2003,29 +1986,29 @@ function Ne({ onClick: e, className: g }) {
2003
1986
  }
2004
1987
  );
2005
1988
  }
2006
- function Oe({
1989
+ function ve({
2007
1990
  href: e = "#",
2008
1991
  sectionName: g = "",
2009
1992
  iconColor: i,
2010
- LinkComponent: M,
2011
- className: Y
1993
+ LinkComponent: Y,
1994
+ className: M
2012
1995
  }) {
2013
- return /* @__PURE__ */ A(M ?? "a", { href: e, "aria-label": "На главную", className: Y ?? "inline-flex", children: /* @__PURE__ */ A(d, { variant: "small", sectionName: g, iconColor: i }) });
1996
+ return /* @__PURE__ */ A(Y ?? "a", { href: e, "aria-label": "На главную", className: M ?? "inline-flex", children: /* @__PURE__ */ A(d, { variant: "small", sectionName: g, iconColor: i }) });
2014
1997
  }
2015
- function Ze({
1998
+ function Fe({
2016
1999
  locations: e,
2017
2000
  defaultLocation: g,
2018
2001
  value: i,
2019
- onValueChange: M,
2020
- className: Y
2002
+ onValueChange: Y,
2003
+ className: M
2021
2004
  }) {
2022
2005
  return Array.isArray(e) && e.length > 0 ? /* @__PURE__ */ A(
2023
2006
  y,
2024
2007
  {
2025
2008
  defaultValue: i ? void 0 : g,
2026
2009
  value: i,
2027
- onValueChange: M,
2028
- className: Y ?? "w-[140px] sm:w-[150px]",
2010
+ onValueChange: Y,
2011
+ className: M ?? "w-[140px] sm:w-[150px]",
2029
2012
  labelColor: "black",
2030
2013
  triggerIcon: /* @__PURE__ */ A(S, { className: "h-6 w-6" }),
2031
2014
  "aria-label": "Выбор региона",
@@ -2033,24 +2016,24 @@ function Ze({
2033
2016
  }
2034
2017
  ) : null;
2035
2018
  }
2036
- const ve = c(function({ className: g, children: i, ...M }, Y) {
2037
- return /* @__PURE__ */ A("div", { ref: Y, className: I("flex items-center", g), ...M, children: i });
2019
+ const ue = c(function({ className: g, children: i, ...Y }, M) {
2020
+ return /* @__PURE__ */ A("div", { ref: M, className: I("flex items-center", g), ...Y, children: i });
2038
2021
  });
2039
- function Pe({
2022
+ function qe({
2040
2023
  onClick: e,
2041
2024
  label: g = "Войти",
2042
2025
  variant: i = "outlineBlackText",
2043
- className: M
2026
+ className: Y
2044
2027
  }) {
2045
- return /* @__PURE__ */ A(D, { type: "button", onClick: e, variant: i, className: M, children: g });
2028
+ return /* @__PURE__ */ A(D, { type: "button", onClick: e, variant: i, className: Y, children: g });
2046
2029
  }
2047
- function be({
2030
+ function Ve({
2048
2031
  userName: e,
2049
2032
  userAvatarUrl: g,
2050
2033
  userMenuItems: i,
2051
- LinkComponent: M
2034
+ LinkComponent: Y
2052
2035
  }) {
2053
- const Y = M ?? "a";
2036
+ const M = Y ?? "a";
2054
2037
  return /* @__PURE__ */ B("details", { className: "group relative", children: [
2055
2038
  /* @__PURE__ */ B(
2056
2039
  "summary",
@@ -2090,14 +2073,14 @@ function be({
2090
2073
  ]
2091
2074
  }
2092
2075
  );
2093
- return /* @__PURE__ */ A("li", { className: "m-0", children: x.href ? /* @__PURE__ */ A(Y, { href: x.href, className: "text-inherit no-underline", children: n }) : n }, `${x.label}-${m}`);
2076
+ return /* @__PURE__ */ A("li", { className: "m-0", children: x.href ? /* @__PURE__ */ A(M, { href: x.href, className: "text-inherit no-underline", children: n }) : n }, `${x.label}-${m}`);
2094
2077
  })
2095
2078
  }
2096
2079
  )
2097
2080
  ] });
2098
2081
  }
2099
- const Fe = "z-50 min-w-[200px] overflow-hidden rounded-lg border border-light-700/20 bg-white p-0 shadow-lg", ue = "flex select-none items-center gap-2 px-3 py-2 outline-none cursor-pointer data-[highlighted]:bg-light-100 data-[disabled]:opacity-50 data-[disabled]:pointer-events-none";
2100
- function je(e) {
2082
+ const je = "z-50 min-w-[200px] overflow-hidden rounded-lg border border-light-700/20 bg-white p-0 shadow-lg", De = "flex select-none items-center gap-2 px-3 py-2 outline-none cursor-pointer data-[highlighted]:bg-light-100 data-[disabled]:opacity-50 data-[disabled]:pointer-events-none";
2083
+ function de(e) {
2101
2084
  return e.map((g) => {
2102
2085
  if ("type" in g || "onSelect" in g || "iconLeft" in g || "destructive" in g)
2103
2086
  return g;
@@ -2110,22 +2093,22 @@ const X = c(
2110
2093
  items: e,
2111
2094
  trigger: g = "label",
2112
2095
  triggerLabel: i = "Ещё",
2113
- triggerIcon: M = "KeyboardArrowDown",
2114
- triggerAriaLabel: Y = "Открыть меню",
2096
+ triggerIcon: Y = "KeyboardArrowDown",
2097
+ triggerAriaLabel: M = "Открыть меню",
2115
2098
  labelTypography: x = "text_14_medium",
2116
2099
  align: m = "end",
2117
2100
  sideOffset: n = 6,
2118
2101
  className: h,
2119
2102
  style: w,
2120
2103
  children: J
2121
- }, G) => {
2122
- const v = je(e);
2123
- return /* @__PURE__ */ B("div", { ref: G, className: I("inline-flex items-center", h), style: w, children: [
2104
+ }, a) => {
2105
+ const v = de(e);
2106
+ return /* @__PURE__ */ B("div", { ref: a, className: I("inline-flex items-center", h), style: w, children: [
2124
2107
  /* @__PURE__ */ B(s.Root, { children: [
2125
2108
  /* @__PURE__ */ A(s.Trigger, { asChild: !0, children: g === "icon" ? /* @__PURE__ */ A(
2126
2109
  "button",
2127
2110
  {
2128
- "aria-label": Y,
2111
+ "aria-label": M,
2129
2112
  className: I(
2130
2113
  "inline-flex h-8 w-8 items-center justify-center rounded-md",
2131
2114
  "hover:bg-light-100 focus-visible:ring-primary-300 focus-visible:ring-2 focus-visible:outline-none"
@@ -2140,13 +2123,13 @@ const X = c(
2140
2123
  "hover:bg-light-100 transition-colors",
2141
2124
  "outline-none"
2142
2125
  ),
2143
- "aria-label": Y,
2126
+ "aria-label": M,
2144
2127
  children: [
2145
2128
  /* @__PURE__ */ A(l, { variant: x, children: i }),
2146
2129
  /* @__PURE__ */ A(
2147
2130
  C,
2148
2131
  {
2149
- iconId: M,
2132
+ iconId: Y,
2150
2133
  className: "h-5 w-5 transition-transform duration-300 data-[state=open]:rotate-180"
2151
2134
  }
2152
2135
  )
@@ -2156,7 +2139,7 @@ const X = c(
2156
2139
  /* @__PURE__ */ A(s.Portal, { children: /* @__PURE__ */ A(
2157
2140
  s.Content,
2158
2141
  {
2159
- className: Fe,
2142
+ className: je,
2160
2143
  sideOffset: n,
2161
2144
  align: m,
2162
2145
  children: v.map((z, f) => {
@@ -2169,7 +2152,7 @@ const X = c(
2169
2152
  `sep-${f}`
2170
2153
  );
2171
2154
  const o = I(
2172
- ue,
2155
+ De,
2173
2156
  z.destructive ? "text-danger-500" : "text-dark-400"
2174
2157
  ), k = /* @__PURE__ */ B(Z, { children: [
2175
2158
  z.iconLeft && /* @__PURE__ */ A(C, { iconId: z.iconLeft, className: "h-4 w-4" }),
@@ -2204,8 +2187,8 @@ const X = c(
2204
2187
  );
2205
2188
  X.displayName = "DropdownMenu";
2206
2189
  const p = c(
2207
- ({ items: e, className: g, style: i, children: M, lengthItem: Y = 5 }, x) => {
2208
- const m = e.slice(0, Y), n = e.slice(Y);
2190
+ ({ items: e, className: g, style: i, children: Y, lengthItem: M = 5 }, x) => {
2191
+ const m = e.slice(0, M), n = e.slice(M);
2209
2192
  return /* @__PURE__ */ B(
2210
2193
  "ul",
2211
2194
  {
@@ -2215,60 +2198,60 @@ const p = c(
2215
2198
  children: [
2216
2199
  m.map((h) => /* @__PURE__ */ A("li", { children: /* @__PURE__ */ A("a", { href: h.href, children: /* @__PURE__ */ A(l, { variant: "text_15_semibold", children: h.label }) }) }, h.label)),
2217
2200
  n.length > 0 && /* @__PURE__ */ A("li", { children: /* @__PURE__ */ A(X, { items: n }) }),
2218
- M
2201
+ Y
2219
2202
  ]
2220
2203
  }
2221
2204
  );
2222
2205
  }
2223
2206
  );
2224
2207
  p.displayName = "Navigation";
2225
- function De({ items: e, lengthItem: g = 5, hiddenOnMobile: i, className: M }) {
2208
+ function Le({ items: e, lengthItem: g = 5, hiddenOnMobile: i, className: Y }) {
2226
2209
  return Array.isArray(e) && e.length > 0 ? /* @__PURE__ */ A(
2227
2210
  "nav",
2228
2211
  {
2229
2212
  className: I(
2230
2213
  "ml-4 sm:ml-6",
2231
2214
  i && "hidden md:block",
2232
- M
2215
+ Y
2233
2216
  ),
2234
2217
  "aria-label": "Основная навигация",
2235
2218
  children: /* @__PURE__ */ A(p, { items: e, lengthItem: g })
2236
2219
  }
2237
2220
  ) : null;
2238
2221
  }
2239
- const de = c(function({ className: g, children: i, ...M }, Y) {
2222
+ const te = c(function({ className: g, children: i, ...Y }, M) {
2240
2223
  return /* @__PURE__ */ A(
2241
2224
  "header",
2242
2225
  {
2243
- ref: Y,
2226
+ ref: M,
2244
2227
  role: "banner",
2245
2228
  className: I("flex items-center justify-between bg-white py-3", g),
2246
- ...M,
2229
+ ...Y,
2247
2230
  children: i
2248
2231
  }
2249
2232
  );
2250
- }), Le = c(
2251
- function({ className: g, children: i, ...M }, Y) {
2252
- return /* @__PURE__ */ A("div", { ref: Y, className: I("flex min-w-0 items-center", g), ...M, children: i });
2233
+ }), We = c(
2234
+ function({ className: g, children: i, ...Y }, M) {
2235
+ return /* @__PURE__ */ A("div", { ref: M, className: I("flex min-w-0 items-center", g), ...Y, children: i });
2253
2236
  }
2254
- ), te = c(
2255
- function({ className: g, children: i, ...M }, Y) {
2256
- return /* @__PURE__ */ A("div", { ref: Y, className: I("flex items-center gap-3 sm:gap-6", g), ...M, children: i });
2237
+ ), He = c(
2238
+ function({ className: g, children: i, ...Y }, M) {
2239
+ return /* @__PURE__ */ A("div", { ref: M, className: I("flex items-center gap-3 sm:gap-6", g), ...Y, children: i });
2257
2240
  }
2258
- ), We = c(
2259
- function({ className: g, children: i, ...M }, Y) {
2260
- return /* @__PURE__ */ A("div", { ref: Y, className: I("flex items-center gap-3 sm:gap-4", g), ...M, children: i });
2241
+ ), re = c(
2242
+ function({ className: g, children: i, ...Y }, M) {
2243
+ return /* @__PURE__ */ A("div", { ref: M, className: I("flex items-center gap-3 sm:gap-4", g), ...Y, children: i });
2261
2244
  }
2262
- ), qe = Object.assign(de, {
2263
- Left: Le,
2264
- Right: te,
2265
- Group: We,
2266
- Actions: ke,
2267
- Logo: Oe,
2268
- Nav: De,
2269
- Locations: Ze,
2270
- Profile: ve
2271
- }), He = (e, g) => /* @__PURE__ */ B(
2245
+ ), _e = Object.assign(te, {
2246
+ Left: We,
2247
+ Right: He,
2248
+ Group: re,
2249
+ Actions: Ze,
2250
+ Logo: ve,
2251
+ Nav: Le,
2252
+ Locations: Fe,
2253
+ Profile: ue
2254
+ }), Se = (e, g) => /* @__PURE__ */ B(
2272
2255
  "svg",
2273
2256
  {
2274
2257
  xmlns: "http://www.w3.org/2000/svg",
@@ -2490,12 +2473,12 @@ const de = c(function({ className: g, children: i, ...M }, Y) {
2490
2473
  ] })
2491
2474
  ]
2492
2475
  }
2493
- ), re = c(He), Ve = ({
2476
+ ), Ue = c(Se), $e = ({
2494
2477
  children: e,
2495
2478
  onClick: g,
2496
2479
  variantColor: i = "success",
2497
- variantView: M = "secondary",
2498
- href: Y = "#",
2480
+ variantView: Y = "secondary",
2481
+ href: M = "#",
2499
2482
  className: x
2500
2483
  }) => {
2501
2484
  const m = {
@@ -2509,7 +2492,7 @@ const de = c(function({ className: g, children: i, ...M }, Y) {
2509
2492
  bgButton: "!bg-purple-800",
2510
2493
  bgCard: "bg-purple-100"
2511
2494
  }
2512
- }, { text: n, bgButton: h, bgCard: w } = m[i], J = M === "primary";
2495
+ }, { text: n, bgButton: h, bgCard: w } = m[i], J = Y === "primary";
2513
2496
  return /* @__PURE__ */ B(
2514
2497
  Ce,
2515
2498
  {
@@ -2526,17 +2509,17 @@ const de = c(function({ className: g, children: i, ...M }, Y) {
2526
2509
  ] }),
2527
2510
  J ? /* @__PURE__ */ B(Z, { children: [
2528
2511
  /* @__PURE__ */ A(r, { className: I("fill-current", n), width: "380px" }),
2529
- /* @__PURE__ */ A(D, { variant: "primary", className: I(h), onClick: g, children: /* @__PURE__ */ A("a", { href: Y, children: "Подробнее" }) })
2512
+ /* @__PURE__ */ A(D, { variant: "primary", className: I(h), onClick: g, children: /* @__PURE__ */ A("a", { href: M, children: "Подробнее" }) })
2530
2513
  ] }) : /* @__PURE__ */ B(Z, { children: [
2531
2514
  /* @__PURE__ */ A(
2532
- re,
2515
+ Ue,
2533
2516
  {
2534
2517
  width: 380,
2535
2518
  height: 380,
2536
2519
  className: "absolute right-[-60px] bottom-0"
2537
2520
  }
2538
2521
  ),
2539
- /* @__PURE__ */ A(l, { variant: "text_26_medium", className: I(n), onClick: g, children: /* @__PURE__ */ A("a", { href: Y, children: "yakavkaz.ru" }) })
2522
+ /* @__PURE__ */ A(l, { variant: "text_26_medium", className: I(n), onClick: g, children: /* @__PURE__ */ A("a", { href: M, children: "yakavkaz.ru" }) })
2540
2523
  ] })
2541
2524
  ]
2542
2525
  }
@@ -2548,7 +2531,7 @@ export {
2548
2531
  EA as AirportShuttle,
2549
2532
  xA as Arrow,
2550
2533
  wA as ArrowBackIosNew,
2551
- Ve as Banner,
2534
+ $e as Banner,
2552
2535
  r as BannerBgYak,
2553
2536
  JA as BannerBgYakHalfNews,
2554
2537
  CA as Bed,
@@ -2576,54 +2559,54 @@ export {
2576
2559
  VA as Favorite,
2577
2560
  $A as Filter,
2578
2561
  gg as Flight,
2579
- oe as FormattedDate,
2562
+ Re as FormattedDate,
2580
2563
  Bg as Gos,
2581
2564
  ig as Graph6,
2582
2565
  Yg as GridView,
2583
2566
  mg as GroupAdd,
2584
- qe as Header,
2585
- ke as HeaderActions,
2586
- Ze as HeaderLocations,
2587
- Oe as HeaderLogo,
2588
- De as HeaderNav,
2589
- ve as HeaderProfile,
2567
+ _e as Header,
2568
+ Ze as HeaderActions,
2569
+ Fe as HeaderLocations,
2570
+ ve as HeaderLogo,
2571
+ Le as HeaderNav,
2572
+ ue as HeaderProfile,
2590
2573
  Ig as HealthMetrics,
2591
2574
  ng as HomeAppLogo,
2592
2575
  Jg as Info,
2593
2576
  Cg as Journalist,
2594
2577
  Gg as KeyboardArrowDown,
2595
- Re as Label,
2578
+ ke as Label,
2596
2579
  sg as LocalTaxi,
2597
2580
  S as LocationOn,
2598
- Pe as LoginButton,
2581
+ qe as LoginButton,
2599
2582
  d as Logo,
2600
2583
  Rg as MailAuth,
2601
2584
  U as Menu,
2602
- pe as MenuButton,
2585
+ Pe as MenuButton,
2603
2586
  Og as MoreVert,
2604
2587
  vg as MovieSpeaker,
2605
2588
  p as Navigation,
2606
- Qe as PreviewTitle,
2589
+ fe as PreviewTitle,
2607
2590
  ug as Restaurant,
2608
2591
  Dg as RssFeed,
2609
2592
  T as Search,
2610
- Ne as SearchButton,
2593
+ be as SearchButton,
2611
2594
  K as SelectItem,
2612
2595
  y as Selector,
2613
2596
  tg as SignOut,
2614
2597
  Hg as Signpost,
2615
2598
  Sg as Sliders,
2616
2599
  Tg as StarFilled,
2617
- ae as Tag,
2600
+ oe as Tag,
2618
2601
  Kg as Telegram,
2619
- fe as TextField,
2602
+ Oe as TextField,
2620
2603
  pg as Tourismhero,
2621
2604
  Pg as Traffic,
2622
2605
  qg as Translate,
2623
2606
  _g as Travel,
2624
2607
  l as Typography,
2625
2608
  E as TypographyVariant,
2626
- be as UserDropdown,
2609
+ Ve as UserDropdown,
2627
2610
  Ae as Vk,
2628
2611
  ee as VkAuth,
2629
2612
  ce as Whatsaap,
@@ -2631,7 +2614,7 @@ export {
2631
2614
  Ee as X,
2632
2615
  xe as Yak,
2633
2616
  we as Yandex,
2634
- se as formatDate,
2617
+ Qe as formatDate,
2635
2618
  ze as variantToClasses
2636
2619
  };
2637
2620
  //# sourceMappingURL=index.js.map