@sofya-ds/react 1.1.2 → 1.1.4

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
@@ -585,7 +585,7 @@ var AccordionTrigger = React4.forwardRef(({ className, children, indicator, ...p
585
585
  {
586
586
  ref,
587
587
  className: cn(
588
- "sofya-accordion-trigger flex flex-1 items-center justify-between gap-4 py-4 text-left text-[14px] font-medium leading-6 text-foreground transition-colors duration-sofya ease-sofya focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background disabled:pointer-events-none disabled:opacity-50",
588
+ "sofya-accordion-trigger flex flex-1 items-center justify-between gap-4 py-4 text-left [font-family:var(--sofya-text-body-font-family)] text-[length:var(--sofya-text-body-font-size)] font-medium leading-[var(--sofya-text-body-line-height)] tracking-[var(--sofya-text-body-letter-spacing)] text-foreground transition-colors duration-sofya ease-sofya focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background disabled:pointer-events-none disabled:opacity-50",
589
589
  className
590
590
  ),
591
591
  ...props,
@@ -595,8 +595,12 @@ var AccordionTrigger = React4.forwardRef(({ className, children, indicator, ...p
595
595
  className: "block text-foreground",
596
596
  size: "body",
597
597
  style: {
598
- fontWeight: 500,
599
- lineHeight: "24px"
598
+ color: "inherit",
599
+ fontFamily: "inherit",
600
+ fontSize: "inherit",
601
+ fontWeight: "inherit",
602
+ letterSpacing: "inherit",
603
+ lineHeight: "inherit"
600
604
  }
601
605
  }) }),
602
606
  /* @__PURE__ */ jsx4(
@@ -697,7 +701,7 @@ var Alert = React5.forwardRef(function Alert2({
697
701
  "span",
698
702
  {
699
703
  "data-slot": "alert-icon",
700
- className: "mt-0 inline-flex h-4 w-4 shrink-0 items-center justify-center text-current [&>svg]:h-4 [&>svg]:w-4",
704
+ className: "mt-2 inline-flex h-4 w-4 shrink-0 items-center justify-center text-current [&>svg]:h-4 [&>svg]:w-4",
701
705
  children: resolvedIcon
702
706
  }
703
707
  ) : null,
@@ -717,12 +721,7 @@ var AlertTitle = React5.forwardRef(function AlertTitle2({ children, className, .
717
721
  children: renderTextContent(children, {
718
722
  as: "span",
719
723
  className: "block text-current",
720
- size: "h4",
721
- style: {
722
- fontWeight: 500,
723
- lineHeight: "22px",
724
- letterSpacing: "-0.02em"
725
- }
724
+ size: "h4"
726
725
  })
727
726
  }
728
727
  );
@@ -738,10 +737,7 @@ var AlertDescription = React5.forwardRef(function AlertDescription2({ children,
738
737
  children: renderTextContent(children, {
739
738
  as: "span",
740
739
  className: "block text-current/80",
741
- size: "body",
742
- style: {
743
- lineHeight: "24px"
744
- }
740
+ size: "body"
745
741
  })
746
742
  }
747
743
  );
@@ -1434,13 +1430,7 @@ function CardTitle({ children, className, ...props }) {
1434
1430
  children: renderTextContent(children, {
1435
1431
  as: "span",
1436
1432
  className: "block text-card-foreground",
1437
- size: "h4",
1438
- style: {
1439
- fontSize: "1.25rem",
1440
- fontWeight: 600,
1441
- lineHeight: "1.75rem",
1442
- letterSpacing: "-0.025em"
1443
- }
1433
+ size: "h4"
1444
1434
  })
1445
1435
  }
1446
1436
  );
@@ -1453,10 +1443,7 @@ function CardDescription({
1453
1443
  return /* @__PURE__ */ jsx9("p", { className: cn("text-muted-foreground", className), ...props, children: renderTextContent(children, {
1454
1444
  as: "span",
1455
1445
  className: "block text-muted-foreground",
1456
- size: "body",
1457
- style: {
1458
- lineHeight: "20px"
1459
- }
1446
+ size: "body"
1460
1447
  }) });
1461
1448
  }
1462
1449
  function CardContent({ children, className, ...props }) {
@@ -1556,12 +1543,7 @@ var Checkbox = React8.forwardRef(
1556
1543
  children: renderTextContent(label, {
1557
1544
  as: "span",
1558
1545
  className: "text-[color:var(--sofya-text-default)]",
1559
- size: "h4",
1560
- style: {
1561
- fontWeight: 400,
1562
- lineHeight: "22px",
1563
- letterSpacing: "-0.02em"
1564
- }
1546
+ size: "body"
1565
1547
  })
1566
1548
  }
1567
1549
  ) : null,
@@ -1573,10 +1555,7 @@ var Checkbox = React8.forwardRef(
1573
1555
  children: renderTextContent(description, {
1574
1556
  as: "span",
1575
1557
  className: "text-muted-foreground",
1576
- size: "body",
1577
- style: {
1578
- lineHeight: "20px"
1579
- }
1558
+ size: "body"
1580
1559
  })
1581
1560
  }
1582
1561
  ) : null
@@ -1607,7 +1586,7 @@ var dropdownTriggerClasses = {
1607
1586
  card: "h-12 rounded-[20px] px-6 py-2 text-primary",
1608
1587
  panel: "h-12 rounded-[10px] px-6 py-2 text-foreground",
1609
1588
  language: "",
1610
- selected: "h-10 w-full rounded-[10px] border-[color:var(--sofya-border-strong)] px-4 py-2 text-[14px] font-normal leading-[22px] tracking-[-0.02em]"
1589
+ selected: "h-10 w-full rounded-[10px] border-[color:var(--sofya-border-strong)] px-4 py-2 [font-family:var(--sofya-text-body-font-family)] text-[length:var(--sofya-text-body-font-size)] [font-weight:var(--sofya-text-body-font-weight)] leading-[var(--sofya-text-body-line-height)] tracking-[var(--sofya-text-body-letter-spacing)]"
1611
1590
  };
1612
1591
  var dropdownContentClasses = {
1613
1592
  card: "rounded-[20px] border-[color:var(--sofya-border-strong)] text-foreground shadow-[var(--sofya-shadow-soft)]",
@@ -1741,12 +1720,7 @@ function Dropdown({
1741
1720
  children: isLanguageVariant ? null : /* @__PURE__ */ jsx11("span", { className: "min-w-0 truncate", children: renderTextContent(triggerLabel, {
1742
1721
  as: "span",
1743
1722
  className: "block min-w-0 truncate text-inherit",
1744
- size: "body",
1745
- style: {
1746
- fontWeight: 400,
1747
- lineHeight: "22px",
1748
- letterSpacing: isSelectedVariant ? "-0.02em" : 0
1749
- }
1723
+ size: "body"
1750
1724
  }) })
1751
1725
  }
1752
1726
  ) }),
@@ -1777,7 +1751,7 @@ function Dropdown({
1777
1751
  value: item.value,
1778
1752
  disabled: item.disabled,
1779
1753
  className: cn(
1780
- "flex w-full cursor-pointer items-center rounded-[4px] text-[14px] font-normal leading-[normal] outline-none transition-colors duration-sofya ease-sofya data-[disabled]:pointer-events-none data-[disabled]:opacity-40",
1754
+ "flex w-full cursor-pointer items-center rounded-[4px] [font-family:var(--sofya-text-body-font-family)] text-[length:var(--sofya-text-body-font-size)] [font-weight:var(--sofya-text-body-font-weight)] leading-[22px] tracking-[var(--sofya-text-body-letter-spacing)] outline-none transition-colors duration-sofya ease-sofya data-[disabled]:pointer-events-none data-[disabled]:opacity-40",
1781
1755
  usesDefaultListStyle ? "px-0 py-0 data-[highlighted]:bg-transparent [&[data-highlighted]_span[data-dropdown-item-body]]:bg-[color:var(--sofya-surface-selected)]" : "px-2 py-2 data-[highlighted]:bg-[color:var(--sofya-surface-hover)]",
1782
1756
  dropdownItemClasses[variant],
1783
1757
  itemClassName
@@ -1795,11 +1769,7 @@ function Dropdown({
1795
1769
  /* @__PURE__ */ jsx11("span", { className: "truncate", children: renderTextContent(item.label, {
1796
1770
  as: "span",
1797
1771
  className: "block truncate text-inherit",
1798
- size: "body",
1799
- style: {
1800
- fontWeight: 400,
1801
- lineHeight: "22px"
1802
- }
1772
+ size: "body"
1803
1773
  }) }),
1804
1774
  isSelected ? /* @__PURE__ */ jsx11(
1805
1775
  "span",
@@ -1817,11 +1787,7 @@ function Dropdown({
1817
1787
  /* @__PURE__ */ jsx11("span", { className: "truncate", children: renderTextContent(item.label, {
1818
1788
  as: "span",
1819
1789
  className: "block truncate text-inherit",
1820
- size: "body",
1821
- style: {
1822
- fontWeight: 400,
1823
- lineHeight: "22px"
1824
- }
1790
+ size: "body"
1825
1791
  }) })
1826
1792
  ] }),
1827
1793
  /* @__PURE__ */ jsx11(
@@ -1885,12 +1851,12 @@ var DialogContent = React10.forwardRef(
1885
1851
  };
1886
1852
  return /* @__PURE__ */ jsxs7(DialogPortal, { children: [
1887
1853
  /* @__PURE__ */ jsx12(DialogOverlay, { className: overlayClassName }),
1888
- /* @__PURE__ */ jsx12(
1854
+ /* @__PURE__ */ jsx12("div", { className: "sofya-dialog-positioner fixed inset-0 z-50 flex items-center justify-center p-4", children: /* @__PURE__ */ jsx12(
1889
1855
  DialogPrimitive.Content,
1890
1856
  {
1891
1857
  ref,
1892
1858
  className: cn(
1893
- "sofya-dialog-content fixed left-1/2 top-1/2 z-50 w-[calc(100%-2rem)] max-w-[min(680px,calc(100%-2rem))] -translate-x-1/2 -translate-y-1/2 outline-none",
1859
+ "sofya-dialog-content relative flex w-full max-w-[680px] max-h-[calc(100vh-2rem)] outline-none",
1894
1860
  className
1895
1861
  ),
1896
1862
  ...props,
@@ -1898,7 +1864,10 @@ var DialogContent = React10.forwardRef(
1898
1864
  Card,
1899
1865
  {
1900
1866
  variant: cardVariant,
1901
- className: cn("relative w-full overflow-hidden border-border bg-card", cardClassName),
1867
+ className: cn(
1868
+ "relative flex max-h-[inherit] min-h-0 w-full flex-col overflow-y-auto overflow-x-hidden border-border bg-card",
1869
+ cardClassName
1870
+ ),
1902
1871
  style: dialogCardStyle,
1903
1872
  children: [
1904
1873
  children,
@@ -1919,7 +1888,7 @@ var DialogContent = React10.forwardRef(
1919
1888
  }
1920
1889
  )
1921
1890
  }
1922
- )
1891
+ ) })
1923
1892
  ] });
1924
1893
  }
1925
1894
  );
@@ -1952,13 +1921,7 @@ var DialogTitle = React10.forwardRef(({ children, className, ...props }, ref) =>
1952
1921
  children: renderTextContent(children, {
1953
1922
  as: "span",
1954
1923
  className: "block text-card-foreground",
1955
- size: "h4",
1956
- style: {
1957
- fontSize: "1.25rem",
1958
- fontWeight: 600,
1959
- lineHeight: "1.75rem",
1960
- letterSpacing: "-0.025em"
1961
- }
1924
+ size: "h4"
1962
1925
  })
1963
1926
  }
1964
1927
  ));
@@ -1972,10 +1935,7 @@ var DialogDescription = React10.forwardRef(({ children, className, ...props }, r
1972
1935
  children: renderTextContent(children, {
1973
1936
  as: "span",
1974
1937
  className: "block text-muted-foreground",
1975
- size: "body",
1976
- style: {
1977
- lineHeight: "24px"
1978
- }
1938
+ size: "body"
1979
1939
  })
1980
1940
  }
1981
1941
  ));
@@ -2021,10 +1981,7 @@ function EmptyTitle({ children, className, ...props }) {
2021
1981
  children: renderTextContent(children, {
2022
1982
  as: "span",
2023
1983
  className: "block text-foreground",
2024
- size: "h2",
2025
- style: {
2026
- letterSpacing: "-0.02em"
2027
- }
1984
+ size: "h2"
2028
1985
  })
2029
1986
  }
2030
1987
  );
@@ -2042,10 +1999,7 @@ function EmptyDescription({
2042
1999
  children: renderTextContent(children, {
2043
2000
  as: "span",
2044
2001
  className: "inline-block whitespace-nowrap text-muted-foreground",
2045
- size: "body",
2046
- style: {
2047
- lineHeight: "24px"
2048
- }
2002
+ size: "body"
2049
2003
  })
2050
2004
  }
2051
2005
  );
@@ -2296,7 +2250,7 @@ function InputShell({
2296
2250
  if (!label && !containerClassName) {
2297
2251
  return control;
2298
2252
  }
2299
- return /* @__PURE__ */ jsxs10("div", { className: cn("grid w-full gap-4", containerClassName), children: [
2253
+ return /* @__PURE__ */ jsxs10("div", { className: cn("grid w-full gap-2", containerClassName), children: [
2300
2254
  label ? /* @__PURE__ */ jsx15(
2301
2255
  "label",
2302
2256
  {
@@ -2308,11 +2262,9 @@ function InputShell({
2308
2262
  children: renderTextContent(label, {
2309
2263
  as: "span",
2310
2264
  className: "block text-[color:var(--sofya-text-default)]",
2311
- size: "h4",
2265
+ size: "body",
2312
2266
  style: {
2313
- fontWeight: 500,
2314
- lineHeight: "22px",
2315
- letterSpacing: "-0.02em"
2267
+ fontWeight: 500
2316
2268
  }
2317
2269
  })
2318
2270
  }
@@ -2344,19 +2296,13 @@ function UploadInputShell({
2344
2296
  className: "text-[color:var(--sofya-text-default)]",
2345
2297
  size: "body",
2346
2298
  style: {
2347
- fontWeight: 700,
2348
- lineHeight: "normal",
2349
- letterSpacing: "-0.02em"
2299
+ fontWeight: 700
2350
2300
  }
2351
2301
  }),
2352
2302
  optionalLabel ? /* @__PURE__ */ jsx15("span", { className: "ml-2 text-[color:var(--sofya-text-subtle)]", children: renderTextContent(optionalLabel, {
2353
2303
  as: "span",
2354
2304
  className: "text-[color:var(--sofya-text-subtle)]",
2355
- size: "tiny",
2356
- style: {
2357
- fontWeight: 400,
2358
- lineHeight: "normal"
2359
- }
2305
+ size: "tiny"
2360
2306
  }) }) : null
2361
2307
  ]
2362
2308
  }
@@ -2711,20 +2657,13 @@ var UploadInputControl = React13.forwardRef(function UploadInputControl2({
2711
2657
  className: "block text-[color:var(--sofya-text-default)]",
2712
2658
  size: "body",
2713
2659
  style: {
2714
- fontWeight: 500,
2715
- lineHeight: "normal",
2716
- letterSpacing: "-0.02em"
2660
+ fontWeight: 500
2717
2661
  }
2718
2662
  }) }),
2719
2663
  resolvedDescription ? /* @__PURE__ */ jsx15("span", { className: "text-[color:var(--sofya-text-subtle)]", children: renderTextContent(resolvedDescription, {
2720
2664
  as: "span",
2721
2665
  className: "block text-[color:var(--sofya-text-subtle)]",
2722
- size: "tiny",
2723
- style: {
2724
- fontWeight: 500,
2725
- lineHeight: "normal",
2726
- letterSpacing: "-0.02em"
2727
- }
2666
+ size: "tiny"
2728
2667
  }) }) : null
2729
2668
  ]
2730
2669
  }
@@ -2755,9 +2694,7 @@ var UploadInputControl = React13.forwardRef(function UploadInputControl2({
2755
2694
  className: "block truncate text-[color:var(--sofya-text-default)]",
2756
2695
  size: "body",
2757
2696
  style: {
2758
- fontWeight: 500,
2759
- lineHeight: "normal",
2760
- letterSpacing: "-0.02em"
2697
+ fontWeight: 500
2761
2698
  }
2762
2699
  }) }),
2763
2700
  /* @__PURE__ */ jsx15("p", { className: "mt-2 text-[color:var(--sofya-text-subtle)]", children: renderTextContent(
@@ -2767,12 +2704,7 @@ var UploadInputControl = React13.forwardRef(function UploadInputControl2({
2767
2704
  {
2768
2705
  as: "span",
2769
2706
  className: "block text-[color:var(--sofya-text-subtle)]",
2770
- size: "tiny",
2771
- style: {
2772
- fontWeight: 500,
2773
- lineHeight: "normal",
2774
- letterSpacing: "-0.02em"
2775
- }
2707
+ size: "tiny"
2776
2708
  }
2777
2709
  ) })
2778
2710
  ] }),
@@ -2956,7 +2888,7 @@ var Input = React13.forwardRef((props, ref) => {
2956
2888
  ref,
2957
2889
  type: resolvedType,
2958
2890
  className: cn(
2959
- "flex h-10 w-full rounded-[10px] border border-[color:var(--sofya-border-strong)] bg-card px-4 py-2 text-[16px] font-normal leading-[22px] tracking-[-0.02em] text-[color:var(--sofya-text-default)] shadow-none transition-[border-color,box-shadow,background-color,color] duration-sofya ease-sofya placeholder:text-[color:var(--sofya-text-placeholder)] hover:border-[color:var(--sofya-border-hover)] focus:border-transparent focus:outline-none focus:ring-2 focus:ring-[color:var(--sofya-focus-ring-soft)] focus:ring-offset-0 active:border-transparent active:ring-2 active:ring-[color:var(--sofya-focus-ring-soft)] disabled:cursor-not-allowed disabled:bg-muted disabled:opacity-50",
2891
+ "flex h-10 w-full rounded-[10px] border border-[color:var(--sofya-border-strong)] bg-card px-4 py-2 [font-family:var(--sofya-text-body-font-family)] text-[length:var(--sofya-text-body-font-size)] [font-weight:var(--sofya-text-body-font-weight)] leading-[var(--sofya-text-body-line-height)] tracking-[var(--sofya-text-body-letter-spacing)] text-[color:var(--sofya-text-default)] shadow-none transition-[border-color,box-shadow,background-color,color] duration-sofya ease-sofya placeholder:text-[color:var(--sofya-text-placeholder)] hover:border-[color:var(--sofya-border-hover)] focus:border-transparent focus:outline-none focus:ring-2 focus:ring-[color:var(--sofya-focus-ring-soft)] focus:ring-offset-0 active:border-transparent active:ring-2 active:ring-[color:var(--sofya-focus-ring-soft)] disabled:cursor-not-allowed disabled:bg-muted disabled:opacity-50",
2960
2892
  className
2961
2893
  ),
2962
2894
  ...nativeProps,
@@ -2995,9 +2927,7 @@ var Label = React14.forwardRef(
2995
2927
  className: "block text-foreground",
2996
2928
  size: "body",
2997
2929
  style: {
2998
- fontSize: "14px",
2999
- fontWeight: 500,
3000
- lineHeight: 1
2930
+ fontWeight: 500
3001
2931
  }
3002
2932
  })
3003
2933
  }
@@ -3223,8 +3153,16 @@ Logo.displayName = "Logo";
3223
3153
  import { Slot as Slot4 } from "@radix-ui/react-slot";
3224
3154
  import { cva as cva7 } from "class-variance-authority";
3225
3155
  import { jsx as jsx19, jsxs as jsxs12 } from "react/jsx-runtime";
3156
+ var inheritTypographyStyle = {
3157
+ color: "inherit",
3158
+ fontFamily: "inherit",
3159
+ fontSize: "inherit",
3160
+ fontWeight: "inherit",
3161
+ letterSpacing: "inherit",
3162
+ lineHeight: "inherit"
3163
+ };
3226
3164
  var paginationLinkVariants = cva7(
3227
- "inline-flex h-10 min-w-10 items-center justify-center rounded-full border border-transparent px-4 text-[14px] font-medium leading-none tracking-[0.01em] text-[color:var(--sofya-text-soft)] no-underline transition-[transform,background-color,border-color,color,box-shadow] duration-sofya ease-sofya motion-safe:active:scale-[0.985] focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[color:var(--sofya-focus-ring-soft)] focus-visible:ring-offset-0",
3165
+ "inline-flex h-10 min-w-10 items-center justify-center rounded-full border border-transparent px-4 [font-family:var(--sofya-text-body-font-family)] text-[length:var(--sofya-text-body-font-size)] font-medium leading-[var(--sofya-text-body-line-height)] tracking-[var(--sofya-text-body-letter-spacing)] text-[color:var(--sofya-text-soft)] no-underline transition-[transform,background-color,border-color,color,box-shadow] duration-sofya ease-sofya motion-safe:active:scale-[0.985] focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[color:var(--sofya-focus-ring-soft)] focus-visible:ring-offset-0",
3228
3166
  {
3229
3167
  variants: {
3230
3168
  isActive: {
@@ -3348,11 +3286,7 @@ function PaginationPrevious({
3348
3286
  as: "span",
3349
3287
  className: "block text-inherit",
3350
3288
  size: "body",
3351
- style: {
3352
- fontWeight: 500,
3353
- lineHeight: 1,
3354
- letterSpacing: "0.01em"
3355
- }
3289
+ style: inheritTypographyStyle
3356
3290
  }) })
3357
3291
  ]
3358
3292
  }
@@ -3374,11 +3308,7 @@ function PaginationNext({
3374
3308
  as: "span",
3375
3309
  className: "block text-inherit",
3376
3310
  size: "body",
3377
- style: {
3378
- fontWeight: 500,
3379
- lineHeight: 1,
3380
- letterSpacing: "0.01em"
3381
- }
3311
+ style: inheritTypographyStyle
3382
3312
  }) }),
3383
3313
  /* @__PURE__ */ jsx19(PaginationChevronRight, {})
3384
3314
  ]
@@ -3394,7 +3324,7 @@ function PaginationEllipsis({
3394
3324
  {
3395
3325
  "aria-hidden": "true",
3396
3326
  className: cn(
3397
- "flex h-10 w-10 items-center justify-center rounded-full text-[18px] leading-none text-[color:var(--sofya-text-subtle)]",
3327
+ "flex h-10 w-10 items-center justify-center rounded-full [font-family:var(--sofya-text-h5-font-family)] text-[length:var(--sofya-text-h5-font-size)] [font-weight:var(--sofya-text-h5-font-weight)] leading-[var(--sofya-text-h5-line-height)] tracking-[var(--sofya-text-h5-letter-spacing)] text-[color:var(--sofya-text-subtle)]",
3398
3328
  className
3399
3329
  ),
3400
3330
  ...props,
@@ -3402,12 +3332,8 @@ function PaginationEllipsis({
3402
3332
  /* @__PURE__ */ jsx19("span", { children: renderTextContent("...", {
3403
3333
  as: "span",
3404
3334
  className: "block text-inherit",
3405
- size: "h4",
3406
- style: {
3407
- fontSize: "18px",
3408
- fontWeight: 400,
3409
- lineHeight: 1
3410
- }
3335
+ size: "h5",
3336
+ style: inheritTypographyStyle
3411
3337
  }) }),
3412
3338
  /* @__PURE__ */ jsx19("span", { className: "sr-only", children: "More pages" })
3413
3339
  ]
@@ -3459,12 +3385,7 @@ var PopoverTitle = React17.forwardRef(function PopoverTitle2({ children, classNa
3459
3385
  children: renderTextContent(children, {
3460
3386
  as: "span",
3461
3387
  className: "block text-[hsl(var(--sofya-popover-foreground))]",
3462
- size: "h4",
3463
- style: {
3464
- fontWeight: 600,
3465
- lineHeight: "24px",
3466
- letterSpacing: "-0.025em"
3467
- }
3388
+ size: "h4"
3468
3389
  })
3469
3390
  }
3470
3391
  );
@@ -3481,10 +3402,7 @@ var PopoverDescription = React17.forwardRef(function PopoverDescription2({ child
3481
3402
  children: renderTextContent(children, {
3482
3403
  as: "span",
3483
3404
  className: "block text-muted-foreground",
3484
- size: "body",
3485
- style: {
3486
- lineHeight: "24px"
3487
- }
3405
+ size: "body"
3488
3406
  })
3489
3407
  }
3490
3408
  );
@@ -3627,12 +3545,7 @@ var RadioGroupItem = React19.forwardRef(function RadioGroupItem2({
3627
3545
  children: renderTextContent(label, {
3628
3546
  as: "span",
3629
3547
  className: "text-[color:var(--sofya-text-default)]",
3630
- size: "h4",
3631
- style: {
3632
- fontWeight: 400,
3633
- lineHeight: "22px",
3634
- letterSpacing: "-0.02em"
3635
- }
3548
+ size: "body"
3636
3549
  })
3637
3550
  }
3638
3551
  ) : null,
@@ -3644,10 +3557,7 @@ var RadioGroupItem = React19.forwardRef(function RadioGroupItem2({
3644
3557
  children: renderTextContent(description, {
3645
3558
  as: "span",
3646
3559
  className: "text-muted-foreground",
3647
- size: "body",
3648
- style: {
3649
- lineHeight: "20px"
3650
- }
3560
+ size: "body"
3651
3561
  })
3652
3562
  }
3653
3563
  ) : null
@@ -3733,6 +3643,14 @@ ScrollAreaCorner.displayName = ScrollAreaPrimitive.Corner.displayName;
3733
3643
  import * as React21 from "react";
3734
3644
  import * as SelectPrimitive from "@radix-ui/react-select";
3735
3645
  import { jsx as jsx24, jsxs as jsxs14 } from "react/jsx-runtime";
3646
+ var inheritTypographyStyle2 = {
3647
+ color: "inherit",
3648
+ fontFamily: "inherit",
3649
+ fontSize: "inherit",
3650
+ fontWeight: "inherit",
3651
+ letterSpacing: "inherit",
3652
+ lineHeight: "inherit"
3653
+ };
3736
3654
  var selectSizeOptions = ["default", "sm"];
3737
3655
  var Select = SelectPrimitive.Root;
3738
3656
  var SelectGroup = SelectPrimitive.Group;
@@ -3766,7 +3684,7 @@ var SelectTrigger = React21.forwardRef(function SelectTrigger2({ className, chil
3766
3684
  "data-slot": "select-trigger",
3767
3685
  "data-size": size,
3768
3686
  className: cn(
3769
- "flex w-full items-center justify-between gap-4 rounded-[10px] border border-[color:var(--sofya-border-strong)] bg-card px-4 text-left text-[16px] font-normal leading-[22px] tracking-[-0.02em] text-[color:var(--sofya-text-default)] shadow-none transition-[border-color,box-shadow,background-color,color] duration-sofya ease-sofya hover:border-[color:var(--sofya-border-hover)] focus:outline-none focus:ring-2 focus:ring-[color:var(--sofya-focus-ring-soft)] focus:ring-offset-0 active:border-transparent active:ring-2 active:ring-[color:var(--sofya-focus-ring-soft)] disabled:cursor-not-allowed disabled:bg-muted disabled:opacity-50 aria-invalid:border-destructive aria-invalid:focus:ring-destructive/20 data-[placeholder]:text-[color:var(--sofya-text-placeholder)] data-[size=default]:h-10 data-[size=default]:py-2 data-[size=sm]:h-9 data-[size=sm]:px-2 data-[size=sm]:text-[14px] data-[size=sm]:leading-5 [&>span]:line-clamp-1 [&>span]:flex-1",
3687
+ "flex w-full items-center justify-between gap-4 rounded-[10px] border border-[color:var(--sofya-border-strong)] bg-card px-4 text-left [font-family:var(--sofya-text-body-font-family)] text-[length:var(--sofya-text-body-font-size)] [font-weight:var(--sofya-text-body-font-weight)] leading-[var(--sofya-text-body-line-height)] tracking-[var(--sofya-text-body-letter-spacing)] text-[color:var(--sofya-text-default)] shadow-none transition-[border-color,box-shadow,background-color,color] duration-sofya ease-sofya hover:border-[color:var(--sofya-border-hover)] focus:outline-none focus:ring-2 focus:ring-[color:var(--sofya-focus-ring-soft)] focus:ring-offset-0 active:border-transparent active:ring-2 active:ring-[color:var(--sofya-focus-ring-soft)] disabled:cursor-not-allowed disabled:bg-muted disabled:opacity-50 aria-invalid:border-destructive aria-invalid:focus:ring-destructive/20 data-[placeholder]:text-[color:var(--sofya-text-placeholder)] data-[size=default]:h-10 data-[size=default]:py-2 data-[size=sm]:h-9 data-[size=sm]:px-2 data-[size=sm]:text-[14px] data-[size=sm]:leading-5 [&>span]:line-clamp-1 [&>span]:flex-1",
3770
3688
  className
3771
3689
  ),
3772
3690
  ...props,
@@ -3876,7 +3794,7 @@ var SelectItem = React21.forwardRef(function SelectItem2({ className, children,
3876
3794
  ref,
3877
3795
  "data-slot": "select-item",
3878
3796
  className: cn(
3879
- "relative flex min-w-0 cursor-pointer select-none items-center self-stretch rounded-[8px] px-4 py-2 pr-8 text-[14px] font-normal leading-5 text-[color:var(--sofya-text-default)] outline-none transition-colors duration-sofya ease-sofya data-[disabled]:pointer-events-none data-[disabled]:opacity-40 data-[highlighted]:bg-[color:var(--sofya-surface-hover)] data-[highlighted]:text-[color:var(--sofya-text-default)] data-[state=checked]:bg-[color:var(--sofya-surface-selected)]",
3797
+ "relative flex min-w-0 cursor-pointer select-none items-center self-stretch rounded-[8px] px-4 py-2 pr-8 [font-family:var(--sofya-text-body-font-family)] text-[length:var(--sofya-text-body-font-size)] [font-weight:var(--sofya-text-body-font-weight)] leading-[var(--sofya-text-body-line-height)] tracking-[var(--sofya-text-body-letter-spacing)] text-[color:var(--sofya-text-default)] outline-none transition-colors duration-sofya ease-sofya data-[disabled]:pointer-events-none data-[disabled]:opacity-40 data-[highlighted]:bg-[color:var(--sofya-surface-hover)] data-[highlighted]:text-[color:var(--sofya-text-default)] data-[state=checked]:bg-[color:var(--sofya-surface-selected)]",
3880
3798
  className
3881
3799
  ),
3882
3800
  ...props,
@@ -3885,9 +3803,7 @@ var SelectItem = React21.forwardRef(function SelectItem2({ className, children,
3885
3803
  as: "span",
3886
3804
  className: "block truncate text-[color:var(--sofya-text-default)]",
3887
3805
  size: "body",
3888
- style: {
3889
- lineHeight: "20px"
3890
- }
3806
+ style: inheritTypographyStyle2
3891
3807
  }) }),
3892
3808
  /* @__PURE__ */ jsx24(SelectPrimitive.ItemIndicator, { asChild: true, children: /* @__PURE__ */ jsx24("span", { className: "absolute right-4 inline-flex h-4 w-4 items-center justify-center text-primary", children: /* @__PURE__ */ jsx24(Icon, { name: "check", size: 14 }) }) })
3893
3809
  ]
@@ -4460,7 +4376,7 @@ function Tabs({
4460
4376
  value: item.value,
4461
4377
  disabled: isUnavailable,
4462
4378
  className: cn(
4463
- "relative inline-flex min-h-[76px] shrink-0 items-center justify-center px-8 pb-4 pt-6 text-[18px] font-semibold leading-none tracking-[-0.01em] text-[color:var(--sofya-text-subtle)] transition-[color,opacity] duration-sofya ease-sofya focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[color:var(--sofya-focus-ring-soft)] focus-visible:ring-offset-0 disabled:pointer-events-none disabled:text-[color:var(--sofya-text-placeholder)] data-[state=active]:text-primary",
4379
+ "relative inline-flex min-h-[76px] shrink-0 items-center justify-center px-8 pb-4 pt-6 [font-family:var(--sofya-text-h5-font-family)] text-[length:var(--sofya-text-h5-font-size)] [font-weight:var(--sofya-text-h5-font-weight)] leading-[var(--sofya-text-h5-line-height)] tracking-[var(--sofya-text-h5-letter-spacing)] text-[color:var(--sofya-text-subtle)] transition-[color,opacity] duration-sofya ease-sofya focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[color:var(--sofya-focus-ring-soft)] focus-visible:ring-offset-0 disabled:pointer-events-none disabled:text-[color:var(--sofya-text-placeholder)] data-[state=active]:text-primary",
4464
4380
  item.loading && "disabled:text-[color:var(--sofya-text-soft)]",
4465
4381
  triggerClassName,
4466
4382
  item.triggerClassName
@@ -4487,13 +4403,7 @@ function Tabs({
4487
4403
  /* @__PURE__ */ jsx31("span", { children: renderTextContent(item.label, {
4488
4404
  as: "span",
4489
4405
  className: "block text-inherit",
4490
- size: "h4",
4491
- style: {
4492
- fontSize: "18px",
4493
- fontWeight: 600,
4494
- lineHeight: "18px",
4495
- letterSpacing: "-0.01em"
4496
- }
4406
+ size: "h5"
4497
4407
  }) })
4498
4408
  ] })
4499
4409
  ]
@@ -4546,7 +4456,7 @@ var Textarea = React29.forwardRef(
4546
4456
  "textarea",
4547
4457
  {
4548
4458
  className: cn(
4549
- "flex min-h-[120px] w-full resize-y rounded-[10px] border border-[color:var(--sofya-border-strong)] bg-card px-4 py-2 text-[16px] font-normal leading-[22px] tracking-[-0.02em] text-[color:var(--sofya-text-default)] shadow-none transition-[border-color,box-shadow,background-color,color] duration-sofya ease-sofya placeholder:text-[color:var(--sofya-text-placeholder)] hover:border-[color:var(--sofya-border-hover)] focus:border-[color:var(--sofya-border-hover)] focus:outline-none focus:ring-2 focus:ring-[color:var(--sofya-focus-ring-soft)] focus:ring-offset-0 active:border-[color:var(--sofya-border-hover)] disabled:cursor-not-allowed disabled:bg-muted disabled:opacity-50",
4459
+ "flex min-h-[120px] w-full resize-y rounded-[10px] border border-[color:var(--sofya-border-strong)] bg-card px-4 py-2 [font-family:var(--sofya-text-body-font-family)] text-[length:var(--sofya-text-body-font-size)] [font-weight:var(--sofya-text-body-font-weight)] leading-[var(--sofya-text-body-line-height)] tracking-[var(--sofya-text-body-letter-spacing)] text-[color:var(--sofya-text-default)] shadow-none transition-[border-color,box-shadow,background-color,color] duration-sofya ease-sofya placeholder:text-[color:var(--sofya-text-placeholder)] hover:border-[color:var(--sofya-border-hover)] focus:border-[color:var(--sofya-border-hover)] focus:outline-none focus:ring-2 focus:ring-[color:var(--sofya-focus-ring-soft)] focus:ring-offset-0 active:border-[color:var(--sofya-border-hover)] disabled:cursor-not-allowed disabled:bg-muted disabled:opacity-50",
4550
4460
  className
4551
4461
  ),
4552
4462
  id: resolvedId,
@@ -4559,7 +4469,7 @@ var Textarea = React29.forwardRef(
4559
4469
  if (!label && !containerClassName) {
4560
4470
  return control;
4561
4471
  }
4562
- return /* @__PURE__ */ jsxs17("div", { className: cn("grid w-full gap-4", containerClassName), children: [
4472
+ return /* @__PURE__ */ jsxs17("div", { className: cn("grid w-full gap-2", containerClassName), children: [
4563
4473
  label ? /* @__PURE__ */ jsx32(
4564
4474
  "label",
4565
4475
  {
@@ -4571,11 +4481,9 @@ var Textarea = React29.forwardRef(
4571
4481
  children: renderTextContent(label, {
4572
4482
  as: "span",
4573
4483
  className: "block text-[color:var(--sofya-text-default)]",
4574
- size: "h4",
4484
+ size: "body",
4575
4485
  style: {
4576
- fontWeight: 500,
4577
- lineHeight: "22px",
4578
- letterSpacing: "-0.02em"
4486
+ fontWeight: 500
4579
4487
  }
4580
4488
  })
4581
4489
  }
@@ -4609,9 +4517,7 @@ var TooltipContent = React30.forwardRef(function TooltipContent2({ className, si
4609
4517
  className: "block text-[color:var(--sofya-tooltip-foreground)]",
4610
4518
  size: "tiny",
4611
4519
  style: {
4612
- fontWeight: 500,
4613
- lineHeight: "16px",
4614
- letterSpacing: "0.01em"
4520
+ fontWeight: 500
4615
4521
  }
4616
4522
  })
4617
4523
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sofya-ds/react",
3
- "version": "1.1.2",
3
+ "version": "1.1.4",
4
4
  "description": "Sofya React design system with official brand tokens, provider and UI components.",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",
@@ -58,7 +58,7 @@
58
58
  "motion": "^12.38.0",
59
59
  "sonner": "^2.0.7",
60
60
  "tailwind-merge": "^3.5.0",
61
- "@sofya-ds/tokens": "1.1.2"
61
+ "@sofya-ds/tokens": "1.1.4"
62
62
  },
63
63
  "devDependencies": {
64
64
  "@testing-library/jest-dom": "^6.9.1",