@yakavkaz/uikit 0.0.28 → 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,25 +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,
2044
- size: Y = "lg"
2026
+ className: Y
2045
2027
  }) {
2046
- return /* @__PURE__ */ A(D, { type: "button", size: Y, onClick: e, variant: i, className: M, children: g });
2028
+ return /* @__PURE__ */ A(D, { type: "button", onClick: e, variant: i, className: Y, children: g });
2047
2029
  }
2048
- function be({
2030
+ function Ve({
2049
2031
  userName: e,
2050
2032
  userAvatarUrl: g,
2051
2033
  userMenuItems: i,
2052
- LinkComponent: M
2034
+ LinkComponent: Y
2053
2035
  }) {
2054
- const Y = M ?? "a";
2036
+ const M = Y ?? "a";
2055
2037
  return /* @__PURE__ */ B("details", { className: "group relative", children: [
2056
2038
  /* @__PURE__ */ B(
2057
2039
  "summary",
@@ -2091,14 +2073,14 @@ function be({
2091
2073
  ]
2092
2074
  }
2093
2075
  );
2094
- 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}`);
2095
2077
  })
2096
2078
  }
2097
2079
  )
2098
2080
  ] });
2099
2081
  }
2100
- 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";
2101
- 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) {
2102
2084
  return e.map((g) => {
2103
2085
  if ("type" in g || "onSelect" in g || "iconLeft" in g || "destructive" in g)
2104
2086
  return g;
@@ -2111,22 +2093,22 @@ const X = c(
2111
2093
  items: e,
2112
2094
  trigger: g = "label",
2113
2095
  triggerLabel: i = "Ещё",
2114
- triggerIcon: M = "KeyboardArrowDown",
2115
- triggerAriaLabel: Y = "Открыть меню",
2096
+ triggerIcon: Y = "KeyboardArrowDown",
2097
+ triggerAriaLabel: M = "Открыть меню",
2116
2098
  labelTypography: x = "text_14_medium",
2117
2099
  align: m = "end",
2118
2100
  sideOffset: n = 6,
2119
2101
  className: h,
2120
2102
  style: w,
2121
2103
  children: J
2122
- }, G) => {
2123
- const v = je(e);
2124
- 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: [
2125
2107
  /* @__PURE__ */ B(s.Root, { children: [
2126
2108
  /* @__PURE__ */ A(s.Trigger, { asChild: !0, children: g === "icon" ? /* @__PURE__ */ A(
2127
2109
  "button",
2128
2110
  {
2129
- "aria-label": Y,
2111
+ "aria-label": M,
2130
2112
  className: I(
2131
2113
  "inline-flex h-8 w-8 items-center justify-center rounded-md",
2132
2114
  "hover:bg-light-100 focus-visible:ring-primary-300 focus-visible:ring-2 focus-visible:outline-none"
@@ -2141,13 +2123,13 @@ const X = c(
2141
2123
  "hover:bg-light-100 transition-colors",
2142
2124
  "outline-none"
2143
2125
  ),
2144
- "aria-label": Y,
2126
+ "aria-label": M,
2145
2127
  children: [
2146
2128
  /* @__PURE__ */ A(l, { variant: x, children: i }),
2147
2129
  /* @__PURE__ */ A(
2148
2130
  C,
2149
2131
  {
2150
- iconId: M,
2132
+ iconId: Y,
2151
2133
  className: "h-5 w-5 transition-transform duration-300 data-[state=open]:rotate-180"
2152
2134
  }
2153
2135
  )
@@ -2157,7 +2139,7 @@ const X = c(
2157
2139
  /* @__PURE__ */ A(s.Portal, { children: /* @__PURE__ */ A(
2158
2140
  s.Content,
2159
2141
  {
2160
- className: Fe,
2142
+ className: je,
2161
2143
  sideOffset: n,
2162
2144
  align: m,
2163
2145
  children: v.map((z, f) => {
@@ -2170,7 +2152,7 @@ const X = c(
2170
2152
  `sep-${f}`
2171
2153
  );
2172
2154
  const o = I(
2173
- ue,
2155
+ De,
2174
2156
  z.destructive ? "text-danger-500" : "text-dark-400"
2175
2157
  ), k = /* @__PURE__ */ B(Z, { children: [
2176
2158
  z.iconLeft && /* @__PURE__ */ A(C, { iconId: z.iconLeft, className: "h-4 w-4" }),
@@ -2205,8 +2187,8 @@ const X = c(
2205
2187
  );
2206
2188
  X.displayName = "DropdownMenu";
2207
2189
  const p = c(
2208
- ({ items: e, className: g, style: i, children: M, lengthItem: Y = 5 }, x) => {
2209
- 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);
2210
2192
  return /* @__PURE__ */ B(
2211
2193
  "ul",
2212
2194
  {
@@ -2216,60 +2198,60 @@ const p = c(
2216
2198
  children: [
2217
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)),
2218
2200
  n.length > 0 && /* @__PURE__ */ A("li", { children: /* @__PURE__ */ A(X, { items: n }) }),
2219
- M
2201
+ Y
2220
2202
  ]
2221
2203
  }
2222
2204
  );
2223
2205
  }
2224
2206
  );
2225
2207
  p.displayName = "Navigation";
2226
- function De({ items: e, lengthItem: g = 5, hiddenOnMobile: i, className: M }) {
2208
+ function Le({ items: e, lengthItem: g = 5, hiddenOnMobile: i, className: Y }) {
2227
2209
  return Array.isArray(e) && e.length > 0 ? /* @__PURE__ */ A(
2228
2210
  "nav",
2229
2211
  {
2230
2212
  className: I(
2231
2213
  "ml-4 sm:ml-6",
2232
2214
  i && "hidden md:block",
2233
- M
2215
+ Y
2234
2216
  ),
2235
2217
  "aria-label": "Основная навигация",
2236
2218
  children: /* @__PURE__ */ A(p, { items: e, lengthItem: g })
2237
2219
  }
2238
2220
  ) : null;
2239
2221
  }
2240
- const de = c(function({ className: g, children: i, ...M }, Y) {
2222
+ const te = c(function({ className: g, children: i, ...Y }, M) {
2241
2223
  return /* @__PURE__ */ A(
2242
2224
  "header",
2243
2225
  {
2244
- ref: Y,
2226
+ ref: M,
2245
2227
  role: "banner",
2246
2228
  className: I("flex items-center justify-between bg-white py-3", g),
2247
- ...M,
2229
+ ...Y,
2248
2230
  children: i
2249
2231
  }
2250
2232
  );
2251
- }), Le = c(
2252
- function({ className: g, children: i, ...M }, Y) {
2253
- 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 });
2254
2236
  }
2255
- ), te = c(
2256
- function({ className: g, children: i, ...M }, Y) {
2257
- 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 });
2258
2240
  }
2259
- ), We = c(
2260
- function({ className: g, children: i, ...M }, Y) {
2261
- 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 });
2262
2244
  }
2263
- ), qe = Object.assign(de, {
2264
- Left: Le,
2265
- Right: te,
2266
- Group: We,
2267
- Actions: ke,
2268
- Logo: Oe,
2269
- Nav: De,
2270
- Locations: Ze,
2271
- Profile: ve
2272
- }), 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(
2273
2255
  "svg",
2274
2256
  {
2275
2257
  xmlns: "http://www.w3.org/2000/svg",
@@ -2491,12 +2473,12 @@ const de = c(function({ className: g, children: i, ...M }, Y) {
2491
2473
  ] })
2492
2474
  ]
2493
2475
  }
2494
- ), re = c(He), Ve = ({
2476
+ ), Ue = c(Se), $e = ({
2495
2477
  children: e,
2496
2478
  onClick: g,
2497
2479
  variantColor: i = "success",
2498
- variantView: M = "secondary",
2499
- href: Y = "#",
2480
+ variantView: Y = "secondary",
2481
+ href: M = "#",
2500
2482
  className: x
2501
2483
  }) => {
2502
2484
  const m = {
@@ -2510,7 +2492,7 @@ const de = c(function({ className: g, children: i, ...M }, Y) {
2510
2492
  bgButton: "!bg-purple-800",
2511
2493
  bgCard: "bg-purple-100"
2512
2494
  }
2513
- }, { text: n, bgButton: h, bgCard: w } = m[i], J = M === "primary";
2495
+ }, { text: n, bgButton: h, bgCard: w } = m[i], J = Y === "primary";
2514
2496
  return /* @__PURE__ */ B(
2515
2497
  Ce,
2516
2498
  {
@@ -2527,17 +2509,17 @@ const de = c(function({ className: g, children: i, ...M }, Y) {
2527
2509
  ] }),
2528
2510
  J ? /* @__PURE__ */ B(Z, { children: [
2529
2511
  /* @__PURE__ */ A(r, { className: I("fill-current", n), width: "380px" }),
2530
- /* @__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: "Подробнее" }) })
2531
2513
  ] }) : /* @__PURE__ */ B(Z, { children: [
2532
2514
  /* @__PURE__ */ A(
2533
- re,
2515
+ Ue,
2534
2516
  {
2535
2517
  width: 380,
2536
2518
  height: 380,
2537
2519
  className: "absolute right-[-60px] bottom-0"
2538
2520
  }
2539
2521
  ),
2540
- /* @__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" }) })
2541
2523
  ] })
2542
2524
  ]
2543
2525
  }
@@ -2549,7 +2531,7 @@ export {
2549
2531
  EA as AirportShuttle,
2550
2532
  xA as Arrow,
2551
2533
  wA as ArrowBackIosNew,
2552
- Ve as Banner,
2534
+ $e as Banner,
2553
2535
  r as BannerBgYak,
2554
2536
  JA as BannerBgYakHalfNews,
2555
2537
  CA as Bed,
@@ -2577,54 +2559,54 @@ export {
2577
2559
  VA as Favorite,
2578
2560
  $A as Filter,
2579
2561
  gg as Flight,
2580
- oe as FormattedDate,
2562
+ Re as FormattedDate,
2581
2563
  Bg as Gos,
2582
2564
  ig as Graph6,
2583
2565
  Yg as GridView,
2584
2566
  mg as GroupAdd,
2585
- qe as Header,
2586
- ke as HeaderActions,
2587
- Ze as HeaderLocations,
2588
- Oe as HeaderLogo,
2589
- De as HeaderNav,
2590
- 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,
2591
2573
  Ig as HealthMetrics,
2592
2574
  ng as HomeAppLogo,
2593
2575
  Jg as Info,
2594
2576
  Cg as Journalist,
2595
2577
  Gg as KeyboardArrowDown,
2596
- Re as Label,
2578
+ ke as Label,
2597
2579
  sg as LocalTaxi,
2598
2580
  S as LocationOn,
2599
- Pe as LoginButton,
2581
+ qe as LoginButton,
2600
2582
  d as Logo,
2601
2583
  Rg as MailAuth,
2602
2584
  U as Menu,
2603
- pe as MenuButton,
2585
+ Pe as MenuButton,
2604
2586
  Og as MoreVert,
2605
2587
  vg as MovieSpeaker,
2606
2588
  p as Navigation,
2607
- Qe as PreviewTitle,
2589
+ fe as PreviewTitle,
2608
2590
  ug as Restaurant,
2609
2591
  Dg as RssFeed,
2610
2592
  T as Search,
2611
- Ne as SearchButton,
2593
+ be as SearchButton,
2612
2594
  K as SelectItem,
2613
2595
  y as Selector,
2614
2596
  tg as SignOut,
2615
2597
  Hg as Signpost,
2616
2598
  Sg as Sliders,
2617
2599
  Tg as StarFilled,
2618
- ae as Tag,
2600
+ oe as Tag,
2619
2601
  Kg as Telegram,
2620
- fe as TextField,
2602
+ Oe as TextField,
2621
2603
  pg as Tourismhero,
2622
2604
  Pg as Traffic,
2623
2605
  qg as Translate,
2624
2606
  _g as Travel,
2625
2607
  l as Typography,
2626
2608
  E as TypographyVariant,
2627
- be as UserDropdown,
2609
+ Ve as UserDropdown,
2628
2610
  Ae as Vk,
2629
2611
  ee as VkAuth,
2630
2612
  ce as Whatsaap,
@@ -2632,7 +2614,7 @@ export {
2632
2614
  Ee as X,
2633
2615
  xe as Yak,
2634
2616
  we as Yandex,
2635
- se as formatDate,
2617
+ Qe as formatDate,
2636
2618
  ze as variantToClasses
2637
2619
  };
2638
2620
  //# sourceMappingURL=index.js.map