@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.cjs CHANGED
@@ -780,7 +780,7 @@ var AccordionTrigger = React4.forwardRef(({ className, children, indicator, ...p
780
780
  {
781
781
  ref,
782
782
  className: cn(
783
- "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",
783
+ "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",
784
784
  className
785
785
  ),
786
786
  ...props,
@@ -790,8 +790,12 @@ var AccordionTrigger = React4.forwardRef(({ className, children, indicator, ...p
790
790
  className: "block text-foreground",
791
791
  size: "body",
792
792
  style: {
793
- fontWeight: 500,
794
- lineHeight: "24px"
793
+ color: "inherit",
794
+ fontFamily: "inherit",
795
+ fontSize: "inherit",
796
+ fontWeight: "inherit",
797
+ letterSpacing: "inherit",
798
+ lineHeight: "inherit"
795
799
  }
796
800
  }) }),
797
801
  /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
@@ -892,7 +896,7 @@ var Alert = React5.forwardRef(function Alert2({
892
896
  "span",
893
897
  {
894
898
  "data-slot": "alert-icon",
895
- className: "mt-0 inline-flex h-4 w-4 shrink-0 items-center justify-center text-current [&>svg]:h-4 [&>svg]:w-4",
899
+ className: "mt-2 inline-flex h-4 w-4 shrink-0 items-center justify-center text-current [&>svg]:h-4 [&>svg]:w-4",
896
900
  children: resolvedIcon
897
901
  }
898
902
  ) : null,
@@ -912,12 +916,7 @@ var AlertTitle = React5.forwardRef(function AlertTitle2({ children, className, .
912
916
  children: renderTextContent(children, {
913
917
  as: "span",
914
918
  className: "block text-current",
915
- size: "h4",
916
- style: {
917
- fontWeight: 500,
918
- lineHeight: "22px",
919
- letterSpacing: "-0.02em"
920
- }
919
+ size: "h4"
921
920
  })
922
921
  }
923
922
  );
@@ -933,10 +932,7 @@ var AlertDescription = React5.forwardRef(function AlertDescription2({ children,
933
932
  children: renderTextContent(children, {
934
933
  as: "span",
935
934
  className: "block text-current/80",
936
- size: "body",
937
- style: {
938
- lineHeight: "24px"
939
- }
935
+ size: "body"
940
936
  })
941
937
  }
942
938
  );
@@ -1629,13 +1625,7 @@ function CardTitle({ children, className, ...props }) {
1629
1625
  children: renderTextContent(children, {
1630
1626
  as: "span",
1631
1627
  className: "block text-card-foreground",
1632
- size: "h4",
1633
- style: {
1634
- fontSize: "1.25rem",
1635
- fontWeight: 600,
1636
- lineHeight: "1.75rem",
1637
- letterSpacing: "-0.025em"
1638
- }
1628
+ size: "h4"
1639
1629
  })
1640
1630
  }
1641
1631
  );
@@ -1648,10 +1638,7 @@ function CardDescription({
1648
1638
  return /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("p", { className: cn("text-muted-foreground", className), ...props, children: renderTextContent(children, {
1649
1639
  as: "span",
1650
1640
  className: "block text-muted-foreground",
1651
- size: "body",
1652
- style: {
1653
- lineHeight: "20px"
1654
- }
1641
+ size: "body"
1655
1642
  }) });
1656
1643
  }
1657
1644
  function CardContent({ children, className, ...props }) {
@@ -1751,12 +1738,7 @@ var Checkbox = React8.forwardRef(
1751
1738
  children: renderTextContent(label, {
1752
1739
  as: "span",
1753
1740
  className: "text-[color:var(--sofya-text-default)]",
1754
- size: "h4",
1755
- style: {
1756
- fontWeight: 400,
1757
- lineHeight: "22px",
1758
- letterSpacing: "-0.02em"
1759
- }
1741
+ size: "body"
1760
1742
  })
1761
1743
  }
1762
1744
  ) : null,
@@ -1768,10 +1750,7 @@ var Checkbox = React8.forwardRef(
1768
1750
  children: renderTextContent(description, {
1769
1751
  as: "span",
1770
1752
  className: "text-muted-foreground",
1771
- size: "body",
1772
- style: {
1773
- lineHeight: "20px"
1774
- }
1753
+ size: "body"
1775
1754
  })
1776
1755
  }
1777
1756
  ) : null
@@ -1802,7 +1781,7 @@ var dropdownTriggerClasses = {
1802
1781
  card: "h-12 rounded-[20px] px-6 py-2 text-primary",
1803
1782
  panel: "h-12 rounded-[10px] px-6 py-2 text-foreground",
1804
1783
  language: "",
1805
- 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]"
1784
+ 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)]"
1806
1785
  };
1807
1786
  var dropdownContentClasses = {
1808
1787
  card: "rounded-[20px] border-[color:var(--sofya-border-strong)] text-foreground shadow-[var(--sofya-shadow-soft)]",
@@ -1936,12 +1915,7 @@ function Dropdown({
1936
1915
  children: isLanguageVariant ? null : /* @__PURE__ */ (0, import_jsx_runtime11.jsx)("span", { className: "min-w-0 truncate", children: renderTextContent(triggerLabel, {
1937
1916
  as: "span",
1938
1917
  className: "block min-w-0 truncate text-inherit",
1939
- size: "body",
1940
- style: {
1941
- fontWeight: 400,
1942
- lineHeight: "22px",
1943
- letterSpacing: isSelectedVariant ? "-0.02em" : 0
1944
- }
1918
+ size: "body"
1945
1919
  }) })
1946
1920
  }
1947
1921
  ) }),
@@ -1972,7 +1946,7 @@ function Dropdown({
1972
1946
  value: item.value,
1973
1947
  disabled: item.disabled,
1974
1948
  className: cn(
1975
- "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",
1949
+ "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",
1976
1950
  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)]",
1977
1951
  dropdownItemClasses[variant],
1978
1952
  itemClassName
@@ -1990,11 +1964,7 @@ function Dropdown({
1990
1964
  /* @__PURE__ */ (0, import_jsx_runtime11.jsx)("span", { className: "truncate", children: renderTextContent(item.label, {
1991
1965
  as: "span",
1992
1966
  className: "block truncate text-inherit",
1993
- size: "body",
1994
- style: {
1995
- fontWeight: 400,
1996
- lineHeight: "22px"
1997
- }
1967
+ size: "body"
1998
1968
  }) }),
1999
1969
  isSelected ? /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
2000
1970
  "span",
@@ -2012,11 +1982,7 @@ function Dropdown({
2012
1982
  /* @__PURE__ */ (0, import_jsx_runtime11.jsx)("span", { className: "truncate", children: renderTextContent(item.label, {
2013
1983
  as: "span",
2014
1984
  className: "block truncate text-inherit",
2015
- size: "body",
2016
- style: {
2017
- fontWeight: 400,
2018
- lineHeight: "22px"
2019
- }
1985
+ size: "body"
2020
1986
  }) })
2021
1987
  ] }),
2022
1988
  /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
@@ -2080,12 +2046,12 @@ var DialogContent = React10.forwardRef(
2080
2046
  };
2081
2047
  return /* @__PURE__ */ (0, import_jsx_runtime12.jsxs)(DialogPortal, { children: [
2082
2048
  /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(DialogOverlay, { className: overlayClassName }),
2083
- /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
2049
+ /* @__PURE__ */ (0, import_jsx_runtime12.jsx)("div", { className: "sofya-dialog-positioner fixed inset-0 z-50 flex items-center justify-center p-4", children: /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
2084
2050
  DialogPrimitive.Content,
2085
2051
  {
2086
2052
  ref,
2087
2053
  className: cn(
2088
- "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",
2054
+ "sofya-dialog-content relative flex w-full max-w-[680px] max-h-[calc(100vh-2rem)] outline-none",
2089
2055
  className
2090
2056
  ),
2091
2057
  ...props,
@@ -2093,7 +2059,10 @@ var DialogContent = React10.forwardRef(
2093
2059
  Card,
2094
2060
  {
2095
2061
  variant: cardVariant,
2096
- className: cn("relative w-full overflow-hidden border-border bg-card", cardClassName),
2062
+ className: cn(
2063
+ "relative flex max-h-[inherit] min-h-0 w-full flex-col overflow-y-auto overflow-x-hidden border-border bg-card",
2064
+ cardClassName
2065
+ ),
2097
2066
  style: dialogCardStyle,
2098
2067
  children: [
2099
2068
  children,
@@ -2114,7 +2083,7 @@ var DialogContent = React10.forwardRef(
2114
2083
  }
2115
2084
  )
2116
2085
  }
2117
- )
2086
+ ) })
2118
2087
  ] });
2119
2088
  }
2120
2089
  );
@@ -2147,13 +2116,7 @@ var DialogTitle = React10.forwardRef(({ children, className, ...props }, ref) =>
2147
2116
  children: renderTextContent(children, {
2148
2117
  as: "span",
2149
2118
  className: "block text-card-foreground",
2150
- size: "h4",
2151
- style: {
2152
- fontSize: "1.25rem",
2153
- fontWeight: 600,
2154
- lineHeight: "1.75rem",
2155
- letterSpacing: "-0.025em"
2156
- }
2119
+ size: "h4"
2157
2120
  })
2158
2121
  }
2159
2122
  ));
@@ -2167,10 +2130,7 @@ var DialogDescription = React10.forwardRef(({ children, className, ...props }, r
2167
2130
  children: renderTextContent(children, {
2168
2131
  as: "span",
2169
2132
  className: "block text-muted-foreground",
2170
- size: "body",
2171
- style: {
2172
- lineHeight: "24px"
2173
- }
2133
+ size: "body"
2174
2134
  })
2175
2135
  }
2176
2136
  ));
@@ -2216,10 +2176,7 @@ function EmptyTitle({ children, className, ...props }) {
2216
2176
  children: renderTextContent(children, {
2217
2177
  as: "span",
2218
2178
  className: "block text-foreground",
2219
- size: "h2",
2220
- style: {
2221
- letterSpacing: "-0.02em"
2222
- }
2179
+ size: "h2"
2223
2180
  })
2224
2181
  }
2225
2182
  );
@@ -2237,10 +2194,7 @@ function EmptyDescription({
2237
2194
  children: renderTextContent(children, {
2238
2195
  as: "span",
2239
2196
  className: "inline-block whitespace-nowrap text-muted-foreground",
2240
- size: "body",
2241
- style: {
2242
- lineHeight: "24px"
2243
- }
2197
+ size: "body"
2244
2198
  })
2245
2199
  }
2246
2200
  );
@@ -2487,7 +2441,7 @@ function InputShell({
2487
2441
  if (!label && !containerClassName) {
2488
2442
  return control;
2489
2443
  }
2490
- return /* @__PURE__ */ (0, import_jsx_runtime15.jsxs)("div", { className: cn("grid w-full gap-4", containerClassName), children: [
2444
+ return /* @__PURE__ */ (0, import_jsx_runtime15.jsxs)("div", { className: cn("grid w-full gap-2", containerClassName), children: [
2491
2445
  label ? /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
2492
2446
  "label",
2493
2447
  {
@@ -2499,11 +2453,9 @@ function InputShell({
2499
2453
  children: renderTextContent(label, {
2500
2454
  as: "span",
2501
2455
  className: "block text-[color:var(--sofya-text-default)]",
2502
- size: "h4",
2456
+ size: "body",
2503
2457
  style: {
2504
- fontWeight: 500,
2505
- lineHeight: "22px",
2506
- letterSpacing: "-0.02em"
2458
+ fontWeight: 500
2507
2459
  }
2508
2460
  })
2509
2461
  }
@@ -2535,19 +2487,13 @@ function UploadInputShell({
2535
2487
  className: "text-[color:var(--sofya-text-default)]",
2536
2488
  size: "body",
2537
2489
  style: {
2538
- fontWeight: 700,
2539
- lineHeight: "normal",
2540
- letterSpacing: "-0.02em"
2490
+ fontWeight: 700
2541
2491
  }
2542
2492
  }),
2543
2493
  optionalLabel ? /* @__PURE__ */ (0, import_jsx_runtime15.jsx)("span", { className: "ml-2 text-[color:var(--sofya-text-subtle)]", children: renderTextContent(optionalLabel, {
2544
2494
  as: "span",
2545
2495
  className: "text-[color:var(--sofya-text-subtle)]",
2546
- size: "tiny",
2547
- style: {
2548
- fontWeight: 400,
2549
- lineHeight: "normal"
2550
- }
2496
+ size: "tiny"
2551
2497
  }) }) : null
2552
2498
  ]
2553
2499
  }
@@ -2902,20 +2848,13 @@ var UploadInputControl = React13.forwardRef(function UploadInputControl2({
2902
2848
  className: "block text-[color:var(--sofya-text-default)]",
2903
2849
  size: "body",
2904
2850
  style: {
2905
- fontWeight: 500,
2906
- lineHeight: "normal",
2907
- letterSpacing: "-0.02em"
2851
+ fontWeight: 500
2908
2852
  }
2909
2853
  }) }),
2910
2854
  resolvedDescription ? /* @__PURE__ */ (0, import_jsx_runtime15.jsx)("span", { className: "text-[color:var(--sofya-text-subtle)]", children: renderTextContent(resolvedDescription, {
2911
2855
  as: "span",
2912
2856
  className: "block text-[color:var(--sofya-text-subtle)]",
2913
- size: "tiny",
2914
- style: {
2915
- fontWeight: 500,
2916
- lineHeight: "normal",
2917
- letterSpacing: "-0.02em"
2918
- }
2857
+ size: "tiny"
2919
2858
  }) }) : null
2920
2859
  ]
2921
2860
  }
@@ -2946,9 +2885,7 @@ var UploadInputControl = React13.forwardRef(function UploadInputControl2({
2946
2885
  className: "block truncate text-[color:var(--sofya-text-default)]",
2947
2886
  size: "body",
2948
2887
  style: {
2949
- fontWeight: 500,
2950
- lineHeight: "normal",
2951
- letterSpacing: "-0.02em"
2888
+ fontWeight: 500
2952
2889
  }
2953
2890
  }) }),
2954
2891
  /* @__PURE__ */ (0, import_jsx_runtime15.jsx)("p", { className: "mt-2 text-[color:var(--sofya-text-subtle)]", children: renderTextContent(
@@ -2958,12 +2895,7 @@ var UploadInputControl = React13.forwardRef(function UploadInputControl2({
2958
2895
  {
2959
2896
  as: "span",
2960
2897
  className: "block text-[color:var(--sofya-text-subtle)]",
2961
- size: "tiny",
2962
- style: {
2963
- fontWeight: 500,
2964
- lineHeight: "normal",
2965
- letterSpacing: "-0.02em"
2966
- }
2898
+ size: "tiny"
2967
2899
  }
2968
2900
  ) })
2969
2901
  ] }),
@@ -3147,7 +3079,7 @@ var Input = React13.forwardRef((props, ref) => {
3147
3079
  ref,
3148
3080
  type: resolvedType,
3149
3081
  className: cn(
3150
- "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",
3082
+ "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",
3151
3083
  className
3152
3084
  ),
3153
3085
  ...nativeProps,
@@ -3186,9 +3118,7 @@ var Label = React14.forwardRef(
3186
3118
  className: "block text-foreground",
3187
3119
  size: "body",
3188
3120
  style: {
3189
- fontSize: "14px",
3190
- fontWeight: 500,
3191
- lineHeight: 1
3121
+ fontWeight: 500
3192
3122
  }
3193
3123
  })
3194
3124
  }
@@ -3414,8 +3344,16 @@ Logo.displayName = "Logo";
3414
3344
  var import_react_slot4 = require("@radix-ui/react-slot");
3415
3345
  var import_class_variance_authority7 = require("class-variance-authority");
3416
3346
  var import_jsx_runtime19 = require("react/jsx-runtime");
3347
+ var inheritTypographyStyle = {
3348
+ color: "inherit",
3349
+ fontFamily: "inherit",
3350
+ fontSize: "inherit",
3351
+ fontWeight: "inherit",
3352
+ letterSpacing: "inherit",
3353
+ lineHeight: "inherit"
3354
+ };
3417
3355
  var paginationLinkVariants = (0, import_class_variance_authority7.cva)(
3418
- "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",
3356
+ "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",
3419
3357
  {
3420
3358
  variants: {
3421
3359
  isActive: {
@@ -3539,11 +3477,7 @@ function PaginationPrevious({
3539
3477
  as: "span",
3540
3478
  className: "block text-inherit",
3541
3479
  size: "body",
3542
- style: {
3543
- fontWeight: 500,
3544
- lineHeight: 1,
3545
- letterSpacing: "0.01em"
3546
- }
3480
+ style: inheritTypographyStyle
3547
3481
  }) })
3548
3482
  ]
3549
3483
  }
@@ -3565,11 +3499,7 @@ function PaginationNext({
3565
3499
  as: "span",
3566
3500
  className: "block text-inherit",
3567
3501
  size: "body",
3568
- style: {
3569
- fontWeight: 500,
3570
- lineHeight: 1,
3571
- letterSpacing: "0.01em"
3572
- }
3502
+ style: inheritTypographyStyle
3573
3503
  }) }),
3574
3504
  /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(PaginationChevronRight, {})
3575
3505
  ]
@@ -3585,7 +3515,7 @@ function PaginationEllipsis({
3585
3515
  {
3586
3516
  "aria-hidden": "true",
3587
3517
  className: cn(
3588
- "flex h-10 w-10 items-center justify-center rounded-full text-[18px] leading-none text-[color:var(--sofya-text-subtle)]",
3518
+ "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)]",
3589
3519
  className
3590
3520
  ),
3591
3521
  ...props,
@@ -3593,12 +3523,8 @@ function PaginationEllipsis({
3593
3523
  /* @__PURE__ */ (0, import_jsx_runtime19.jsx)("span", { children: renderTextContent("...", {
3594
3524
  as: "span",
3595
3525
  className: "block text-inherit",
3596
- size: "h4",
3597
- style: {
3598
- fontSize: "18px",
3599
- fontWeight: 400,
3600
- lineHeight: 1
3601
- }
3526
+ size: "h5",
3527
+ style: inheritTypographyStyle
3602
3528
  }) }),
3603
3529
  /* @__PURE__ */ (0, import_jsx_runtime19.jsx)("span", { className: "sr-only", children: "More pages" })
3604
3530
  ]
@@ -3650,12 +3576,7 @@ var PopoverTitle = React17.forwardRef(function PopoverTitle2({ children, classNa
3650
3576
  children: renderTextContent(children, {
3651
3577
  as: "span",
3652
3578
  className: "block text-[hsl(var(--sofya-popover-foreground))]",
3653
- size: "h4",
3654
- style: {
3655
- fontWeight: 600,
3656
- lineHeight: "24px",
3657
- letterSpacing: "-0.025em"
3658
- }
3579
+ size: "h4"
3659
3580
  })
3660
3581
  }
3661
3582
  );
@@ -3672,10 +3593,7 @@ var PopoverDescription = React17.forwardRef(function PopoverDescription2({ child
3672
3593
  children: renderTextContent(children, {
3673
3594
  as: "span",
3674
3595
  className: "block text-muted-foreground",
3675
- size: "body",
3676
- style: {
3677
- lineHeight: "24px"
3678
- }
3596
+ size: "body"
3679
3597
  })
3680
3598
  }
3681
3599
  );
@@ -3818,12 +3736,7 @@ var RadioGroupItem = React19.forwardRef(function RadioGroupItem2({
3818
3736
  children: renderTextContent(label, {
3819
3737
  as: "span",
3820
3738
  className: "text-[color:var(--sofya-text-default)]",
3821
- size: "h4",
3822
- style: {
3823
- fontWeight: 400,
3824
- lineHeight: "22px",
3825
- letterSpacing: "-0.02em"
3826
- }
3739
+ size: "body"
3827
3740
  })
3828
3741
  }
3829
3742
  ) : null,
@@ -3835,10 +3748,7 @@ var RadioGroupItem = React19.forwardRef(function RadioGroupItem2({
3835
3748
  children: renderTextContent(description, {
3836
3749
  as: "span",
3837
3750
  className: "text-muted-foreground",
3838
- size: "body",
3839
- style: {
3840
- lineHeight: "20px"
3841
- }
3751
+ size: "body"
3842
3752
  })
3843
3753
  }
3844
3754
  ) : null
@@ -3924,6 +3834,14 @@ ScrollAreaCorner.displayName = ScrollAreaPrimitive.Corner.displayName;
3924
3834
  var React21 = __toESM(require("react"), 1);
3925
3835
  var SelectPrimitive = __toESM(require("@radix-ui/react-select"), 1);
3926
3836
  var import_jsx_runtime24 = require("react/jsx-runtime");
3837
+ var inheritTypographyStyle2 = {
3838
+ color: "inherit",
3839
+ fontFamily: "inherit",
3840
+ fontSize: "inherit",
3841
+ fontWeight: "inherit",
3842
+ letterSpacing: "inherit",
3843
+ lineHeight: "inherit"
3844
+ };
3927
3845
  var selectSizeOptions = ["default", "sm"];
3928
3846
  var Select = SelectPrimitive.Root;
3929
3847
  var SelectGroup = SelectPrimitive.Group;
@@ -3957,7 +3875,7 @@ var SelectTrigger = React21.forwardRef(function SelectTrigger2({ className, chil
3957
3875
  "data-slot": "select-trigger",
3958
3876
  "data-size": size,
3959
3877
  className: cn(
3960
- "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",
3878
+ "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",
3961
3879
  className
3962
3880
  ),
3963
3881
  ...props,
@@ -4067,7 +3985,7 @@ var SelectItem = React21.forwardRef(function SelectItem2({ className, children,
4067
3985
  ref,
4068
3986
  "data-slot": "select-item",
4069
3987
  className: cn(
4070
- "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)]",
3988
+ "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)]",
4071
3989
  className
4072
3990
  ),
4073
3991
  ...props,
@@ -4076,9 +3994,7 @@ var SelectItem = React21.forwardRef(function SelectItem2({ className, children,
4076
3994
  as: "span",
4077
3995
  className: "block truncate text-[color:var(--sofya-text-default)]",
4078
3996
  size: "body",
4079
- style: {
4080
- lineHeight: "20px"
4081
- }
3997
+ style: inheritTypographyStyle2
4082
3998
  }) }),
4083
3999
  /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(SelectPrimitive.ItemIndicator, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)("span", { className: "absolute right-4 inline-flex h-4 w-4 items-center justify-center text-primary", children: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(Icon, { name: "check", size: 14 }) }) })
4084
4000
  ]
@@ -4648,7 +4564,7 @@ function Tabs({
4648
4564
  value: item.value,
4649
4565
  disabled: isUnavailable,
4650
4566
  className: cn(
4651
- "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",
4567
+ "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",
4652
4568
  item.loading && "disabled:text-[color:var(--sofya-text-soft)]",
4653
4569
  triggerClassName,
4654
4570
  item.triggerClassName
@@ -4675,13 +4591,7 @@ function Tabs({
4675
4591
  /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("span", { children: renderTextContent(item.label, {
4676
4592
  as: "span",
4677
4593
  className: "block text-inherit",
4678
- size: "h4",
4679
- style: {
4680
- fontSize: "18px",
4681
- fontWeight: 600,
4682
- lineHeight: "18px",
4683
- letterSpacing: "-0.01em"
4684
- }
4594
+ size: "h5"
4685
4595
  }) })
4686
4596
  ] })
4687
4597
  ]
@@ -4734,7 +4644,7 @@ var Textarea = React29.forwardRef(
4734
4644
  "textarea",
4735
4645
  {
4736
4646
  className: cn(
4737
- "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",
4647
+ "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",
4738
4648
  className
4739
4649
  ),
4740
4650
  id: resolvedId,
@@ -4747,7 +4657,7 @@ var Textarea = React29.forwardRef(
4747
4657
  if (!label && !containerClassName) {
4748
4658
  return control;
4749
4659
  }
4750
- return /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)("div", { className: cn("grid w-full gap-4", containerClassName), children: [
4660
+ return /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)("div", { className: cn("grid w-full gap-2", containerClassName), children: [
4751
4661
  label ? /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
4752
4662
  "label",
4753
4663
  {
@@ -4759,11 +4669,9 @@ var Textarea = React29.forwardRef(
4759
4669
  children: renderTextContent(label, {
4760
4670
  as: "span",
4761
4671
  className: "block text-[color:var(--sofya-text-default)]",
4762
- size: "h4",
4672
+ size: "body",
4763
4673
  style: {
4764
- fontWeight: 500,
4765
- lineHeight: "22px",
4766
- letterSpacing: "-0.02em"
4674
+ fontWeight: 500
4767
4675
  }
4768
4676
  })
4769
4677
  }
@@ -4797,9 +4705,7 @@ var TooltipContent = React30.forwardRef(function TooltipContent2({ className, si
4797
4705
  className: "block text-[color:var(--sofya-tooltip-foreground)]",
4798
4706
  size: "tiny",
4799
4707
  style: {
4800
- fontWeight: 500,
4801
- lineHeight: "16px",
4802
- letterSpacing: "0.01em"
4708
+ fontWeight: 500
4803
4709
  }
4804
4710
  })
4805
4711
  }