@yakavkaz/uikit 0.0.28 → 0.0.31

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