@sofya-ds/react 1.1.1 → 1.1.3

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
@@ -549,7 +549,7 @@ Icon.displayName = "Icon";
549
549
  // src/components/text.tsx
550
550
  var React3 = __toESM(require("react"), 1);
551
551
  var import_jsx_runtime3 = require("react/jsx-runtime");
552
- var textSizeOptions = ["h1", "h2", "h3", "h4", "body", "tiny"];
552
+ var textSizeOptions = ["h1", "h2", "h3", "h4", "h5", "body", "tiny"];
553
553
  var textVariantOptions = ["default", "gradient", "shiny", "split"];
554
554
  var textSplitTypeOptions = ["chars", "words", "words, chars"];
555
555
  var defaultElements = {
@@ -557,6 +557,7 @@ var defaultElements = {
557
557
  h2: "h2",
558
558
  h3: "h3",
559
559
  h4: "h4",
560
+ h5: "h5",
560
561
  body: "p",
561
562
  tiny: "span"
562
563
  };
@@ -779,7 +780,7 @@ var AccordionTrigger = React4.forwardRef(({ className, children, indicator, ...p
779
780
  {
780
781
  ref,
781
782
  className: cn(
782
- "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",
783
784
  className
784
785
  ),
785
786
  ...props,
@@ -789,8 +790,12 @@ var AccordionTrigger = React4.forwardRef(({ className, children, indicator, ...p
789
790
  className: "block text-foreground",
790
791
  size: "body",
791
792
  style: {
792
- fontWeight: 500,
793
- lineHeight: "24px"
793
+ color: "inherit",
794
+ fontFamily: "inherit",
795
+ fontSize: "inherit",
796
+ fontWeight: "inherit",
797
+ letterSpacing: "inherit",
798
+ lineHeight: "inherit"
794
799
  }
795
800
  }) }),
796
801
  /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
@@ -891,7 +896,7 @@ var Alert = React5.forwardRef(function Alert2({
891
896
  "span",
892
897
  {
893
898
  "data-slot": "alert-icon",
894
- 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",
895
900
  children: resolvedIcon
896
901
  }
897
902
  ) : null,
@@ -911,12 +916,7 @@ var AlertTitle = React5.forwardRef(function AlertTitle2({ children, className, .
911
916
  children: renderTextContent(children, {
912
917
  as: "span",
913
918
  className: "block text-current",
914
- size: "h4",
915
- style: {
916
- fontWeight: 500,
917
- lineHeight: "22px",
918
- letterSpacing: "-0.02em"
919
- }
919
+ size: "h4"
920
920
  })
921
921
  }
922
922
  );
@@ -932,10 +932,7 @@ var AlertDescription = React5.forwardRef(function AlertDescription2({ children,
932
932
  children: renderTextContent(children, {
933
933
  as: "span",
934
934
  className: "block text-current/80",
935
- size: "body",
936
- style: {
937
- lineHeight: "24px"
938
- }
935
+ size: "body"
939
936
  })
940
937
  }
941
938
  );
@@ -1628,13 +1625,7 @@ function CardTitle({ children, className, ...props }) {
1628
1625
  children: renderTextContent(children, {
1629
1626
  as: "span",
1630
1627
  className: "block text-card-foreground",
1631
- size: "h4",
1632
- style: {
1633
- fontSize: "1.25rem",
1634
- fontWeight: 600,
1635
- lineHeight: "1.75rem",
1636
- letterSpacing: "-0.025em"
1637
- }
1628
+ size: "h4"
1638
1629
  })
1639
1630
  }
1640
1631
  );
@@ -1647,10 +1638,7 @@ function CardDescription({
1647
1638
  return /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("p", { className: cn("text-muted-foreground", className), ...props, children: renderTextContent(children, {
1648
1639
  as: "span",
1649
1640
  className: "block text-muted-foreground",
1650
- size: "body",
1651
- style: {
1652
- lineHeight: "20px"
1653
- }
1641
+ size: "body"
1654
1642
  }) });
1655
1643
  }
1656
1644
  function CardContent({ children, className, ...props }) {
@@ -1750,12 +1738,7 @@ var Checkbox = React8.forwardRef(
1750
1738
  children: renderTextContent(label, {
1751
1739
  as: "span",
1752
1740
  className: "text-[color:var(--sofya-text-default)]",
1753
- size: "h4",
1754
- style: {
1755
- fontWeight: 400,
1756
- lineHeight: "22px",
1757
- letterSpacing: "-0.02em"
1758
- }
1741
+ size: "body"
1759
1742
  })
1760
1743
  }
1761
1744
  ) : null,
@@ -1767,10 +1750,7 @@ var Checkbox = React8.forwardRef(
1767
1750
  children: renderTextContent(description, {
1768
1751
  as: "span",
1769
1752
  className: "text-muted-foreground",
1770
- size: "body",
1771
- style: {
1772
- lineHeight: "20px"
1773
- }
1753
+ size: "body"
1774
1754
  })
1775
1755
  }
1776
1756
  ) : null
@@ -1801,7 +1781,7 @@ var dropdownTriggerClasses = {
1801
1781
  card: "h-12 rounded-[20px] px-6 py-2 text-primary",
1802
1782
  panel: "h-12 rounded-[10px] px-6 py-2 text-foreground",
1803
1783
  language: "",
1804
- 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)]"
1805
1785
  };
1806
1786
  var dropdownContentClasses = {
1807
1787
  card: "rounded-[20px] border-[color:var(--sofya-border-strong)] text-foreground shadow-[var(--sofya-shadow-soft)]",
@@ -1935,12 +1915,7 @@ function Dropdown({
1935
1915
  children: isLanguageVariant ? null : /* @__PURE__ */ (0, import_jsx_runtime11.jsx)("span", { className: "min-w-0 truncate", children: renderTextContent(triggerLabel, {
1936
1916
  as: "span",
1937
1917
  className: "block min-w-0 truncate text-inherit",
1938
- size: "body",
1939
- style: {
1940
- fontWeight: 400,
1941
- lineHeight: "22px",
1942
- letterSpacing: isSelectedVariant ? "-0.02em" : 0
1943
- }
1918
+ size: "body"
1944
1919
  }) })
1945
1920
  }
1946
1921
  ) }),
@@ -1971,7 +1946,7 @@ function Dropdown({
1971
1946
  value: item.value,
1972
1947
  disabled: item.disabled,
1973
1948
  className: cn(
1974
- "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",
1975
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)]",
1976
1951
  dropdownItemClasses[variant],
1977
1952
  itemClassName
@@ -1989,11 +1964,7 @@ function Dropdown({
1989
1964
  /* @__PURE__ */ (0, import_jsx_runtime11.jsx)("span", { className: "truncate", children: renderTextContent(item.label, {
1990
1965
  as: "span",
1991
1966
  className: "block truncate text-inherit",
1992
- size: "body",
1993
- style: {
1994
- fontWeight: 400,
1995
- lineHeight: "22px"
1996
- }
1967
+ size: "body"
1997
1968
  }) }),
1998
1969
  isSelected ? /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
1999
1970
  "span",
@@ -2011,11 +1982,7 @@ function Dropdown({
2011
1982
  /* @__PURE__ */ (0, import_jsx_runtime11.jsx)("span", { className: "truncate", children: renderTextContent(item.label, {
2012
1983
  as: "span",
2013
1984
  className: "block truncate text-inherit",
2014
- size: "body",
2015
- style: {
2016
- fontWeight: 400,
2017
- lineHeight: "22px"
2018
- }
1985
+ size: "body"
2019
1986
  }) })
2020
1987
  ] }),
2021
1988
  /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
@@ -2146,13 +2113,7 @@ var DialogTitle = React10.forwardRef(({ children, className, ...props }, ref) =>
2146
2113
  children: renderTextContent(children, {
2147
2114
  as: "span",
2148
2115
  className: "block text-card-foreground",
2149
- size: "h4",
2150
- style: {
2151
- fontSize: "1.25rem",
2152
- fontWeight: 600,
2153
- lineHeight: "1.75rem",
2154
- letterSpacing: "-0.025em"
2155
- }
2116
+ size: "h4"
2156
2117
  })
2157
2118
  }
2158
2119
  ));
@@ -2166,10 +2127,7 @@ var DialogDescription = React10.forwardRef(({ children, className, ...props }, r
2166
2127
  children: renderTextContent(children, {
2167
2128
  as: "span",
2168
2129
  className: "block text-muted-foreground",
2169
- size: "body",
2170
- style: {
2171
- lineHeight: "24px"
2172
- }
2130
+ size: "body"
2173
2131
  })
2174
2132
  }
2175
2133
  ));
@@ -2215,10 +2173,7 @@ function EmptyTitle({ children, className, ...props }) {
2215
2173
  children: renderTextContent(children, {
2216
2174
  as: "span",
2217
2175
  className: "block text-foreground",
2218
- size: "h2",
2219
- style: {
2220
- letterSpacing: "-0.02em"
2221
- }
2176
+ size: "h2"
2222
2177
  })
2223
2178
  }
2224
2179
  );
@@ -2236,10 +2191,7 @@ function EmptyDescription({
2236
2191
  children: renderTextContent(children, {
2237
2192
  as: "span",
2238
2193
  className: "inline-block whitespace-nowrap text-muted-foreground",
2239
- size: "body",
2240
- style: {
2241
- lineHeight: "24px"
2242
- }
2194
+ size: "body"
2243
2195
  })
2244
2196
  }
2245
2197
  );
@@ -2486,7 +2438,7 @@ function InputShell({
2486
2438
  if (!label && !containerClassName) {
2487
2439
  return control;
2488
2440
  }
2489
- return /* @__PURE__ */ (0, import_jsx_runtime15.jsxs)("div", { className: cn("grid w-full gap-4", containerClassName), children: [
2441
+ return /* @__PURE__ */ (0, import_jsx_runtime15.jsxs)("div", { className: cn("grid w-full gap-2", containerClassName), children: [
2490
2442
  label ? /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
2491
2443
  "label",
2492
2444
  {
@@ -2498,11 +2450,9 @@ function InputShell({
2498
2450
  children: renderTextContent(label, {
2499
2451
  as: "span",
2500
2452
  className: "block text-[color:var(--sofya-text-default)]",
2501
- size: "h4",
2453
+ size: "body",
2502
2454
  style: {
2503
- fontWeight: 500,
2504
- lineHeight: "22px",
2505
- letterSpacing: "-0.02em"
2455
+ fontWeight: 500
2506
2456
  }
2507
2457
  })
2508
2458
  }
@@ -2534,19 +2484,13 @@ function UploadInputShell({
2534
2484
  className: "text-[color:var(--sofya-text-default)]",
2535
2485
  size: "body",
2536
2486
  style: {
2537
- fontWeight: 700,
2538
- lineHeight: "normal",
2539
- letterSpacing: "-0.02em"
2487
+ fontWeight: 700
2540
2488
  }
2541
2489
  }),
2542
2490
  optionalLabel ? /* @__PURE__ */ (0, import_jsx_runtime15.jsx)("span", { className: "ml-2 text-[color:var(--sofya-text-subtle)]", children: renderTextContent(optionalLabel, {
2543
2491
  as: "span",
2544
2492
  className: "text-[color:var(--sofya-text-subtle)]",
2545
- size: "tiny",
2546
- style: {
2547
- fontWeight: 400,
2548
- lineHeight: "normal"
2549
- }
2493
+ size: "tiny"
2550
2494
  }) }) : null
2551
2495
  ]
2552
2496
  }
@@ -2901,20 +2845,13 @@ var UploadInputControl = React13.forwardRef(function UploadInputControl2({
2901
2845
  className: "block text-[color:var(--sofya-text-default)]",
2902
2846
  size: "body",
2903
2847
  style: {
2904
- fontWeight: 500,
2905
- lineHeight: "normal",
2906
- letterSpacing: "-0.02em"
2848
+ fontWeight: 500
2907
2849
  }
2908
2850
  }) }),
2909
2851
  resolvedDescription ? /* @__PURE__ */ (0, import_jsx_runtime15.jsx)("span", { className: "text-[color:var(--sofya-text-subtle)]", children: renderTextContent(resolvedDescription, {
2910
2852
  as: "span",
2911
2853
  className: "block text-[color:var(--sofya-text-subtle)]",
2912
- size: "tiny",
2913
- style: {
2914
- fontWeight: 500,
2915
- lineHeight: "normal",
2916
- letterSpacing: "-0.02em"
2917
- }
2854
+ size: "tiny"
2918
2855
  }) }) : null
2919
2856
  ]
2920
2857
  }
@@ -2945,9 +2882,7 @@ var UploadInputControl = React13.forwardRef(function UploadInputControl2({
2945
2882
  className: "block truncate text-[color:var(--sofya-text-default)]",
2946
2883
  size: "body",
2947
2884
  style: {
2948
- fontWeight: 500,
2949
- lineHeight: "normal",
2950
- letterSpacing: "-0.02em"
2885
+ fontWeight: 500
2951
2886
  }
2952
2887
  }) }),
2953
2888
  /* @__PURE__ */ (0, import_jsx_runtime15.jsx)("p", { className: "mt-2 text-[color:var(--sofya-text-subtle)]", children: renderTextContent(
@@ -2957,12 +2892,7 @@ var UploadInputControl = React13.forwardRef(function UploadInputControl2({
2957
2892
  {
2958
2893
  as: "span",
2959
2894
  className: "block text-[color:var(--sofya-text-subtle)]",
2960
- size: "tiny",
2961
- style: {
2962
- fontWeight: 500,
2963
- lineHeight: "normal",
2964
- letterSpacing: "-0.02em"
2965
- }
2895
+ size: "tiny"
2966
2896
  }
2967
2897
  ) })
2968
2898
  ] }),
@@ -3146,7 +3076,7 @@ var Input = React13.forwardRef((props, ref) => {
3146
3076
  ref,
3147
3077
  type: resolvedType,
3148
3078
  className: cn(
3149
- "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",
3079
+ "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",
3150
3080
  className
3151
3081
  ),
3152
3082
  ...nativeProps,
@@ -3185,9 +3115,7 @@ var Label = React14.forwardRef(
3185
3115
  className: "block text-foreground",
3186
3116
  size: "body",
3187
3117
  style: {
3188
- fontSize: "14px",
3189
- fontWeight: 500,
3190
- lineHeight: 1
3118
+ fontWeight: 500
3191
3119
  }
3192
3120
  })
3193
3121
  }
@@ -3413,8 +3341,16 @@ Logo.displayName = "Logo";
3413
3341
  var import_react_slot4 = require("@radix-ui/react-slot");
3414
3342
  var import_class_variance_authority7 = require("class-variance-authority");
3415
3343
  var import_jsx_runtime19 = require("react/jsx-runtime");
3344
+ var inheritTypographyStyle = {
3345
+ color: "inherit",
3346
+ fontFamily: "inherit",
3347
+ fontSize: "inherit",
3348
+ fontWeight: "inherit",
3349
+ letterSpacing: "inherit",
3350
+ lineHeight: "inherit"
3351
+ };
3416
3352
  var paginationLinkVariants = (0, import_class_variance_authority7.cva)(
3417
- "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",
3353
+ "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",
3418
3354
  {
3419
3355
  variants: {
3420
3356
  isActive: {
@@ -3538,11 +3474,7 @@ function PaginationPrevious({
3538
3474
  as: "span",
3539
3475
  className: "block text-inherit",
3540
3476
  size: "body",
3541
- style: {
3542
- fontWeight: 500,
3543
- lineHeight: 1,
3544
- letterSpacing: "0.01em"
3545
- }
3477
+ style: inheritTypographyStyle
3546
3478
  }) })
3547
3479
  ]
3548
3480
  }
@@ -3564,11 +3496,7 @@ function PaginationNext({
3564
3496
  as: "span",
3565
3497
  className: "block text-inherit",
3566
3498
  size: "body",
3567
- style: {
3568
- fontWeight: 500,
3569
- lineHeight: 1,
3570
- letterSpacing: "0.01em"
3571
- }
3499
+ style: inheritTypographyStyle
3572
3500
  }) }),
3573
3501
  /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(PaginationChevronRight, {})
3574
3502
  ]
@@ -3584,7 +3512,7 @@ function PaginationEllipsis({
3584
3512
  {
3585
3513
  "aria-hidden": "true",
3586
3514
  className: cn(
3587
- "flex h-10 w-10 items-center justify-center rounded-full text-[18px] leading-none text-[color:var(--sofya-text-subtle)]",
3515
+ "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)]",
3588
3516
  className
3589
3517
  ),
3590
3518
  ...props,
@@ -3592,12 +3520,8 @@ function PaginationEllipsis({
3592
3520
  /* @__PURE__ */ (0, import_jsx_runtime19.jsx)("span", { children: renderTextContent("...", {
3593
3521
  as: "span",
3594
3522
  className: "block text-inherit",
3595
- size: "h4",
3596
- style: {
3597
- fontSize: "18px",
3598
- fontWeight: 400,
3599
- lineHeight: 1
3600
- }
3523
+ size: "h5",
3524
+ style: inheritTypographyStyle
3601
3525
  }) }),
3602
3526
  /* @__PURE__ */ (0, import_jsx_runtime19.jsx)("span", { className: "sr-only", children: "More pages" })
3603
3527
  ]
@@ -3649,12 +3573,7 @@ var PopoverTitle = React17.forwardRef(function PopoverTitle2({ children, classNa
3649
3573
  children: renderTextContent(children, {
3650
3574
  as: "span",
3651
3575
  className: "block text-[hsl(var(--sofya-popover-foreground))]",
3652
- size: "h4",
3653
- style: {
3654
- fontWeight: 600,
3655
- lineHeight: "24px",
3656
- letterSpacing: "-0.025em"
3657
- }
3576
+ size: "h4"
3658
3577
  })
3659
3578
  }
3660
3579
  );
@@ -3671,10 +3590,7 @@ var PopoverDescription = React17.forwardRef(function PopoverDescription2({ child
3671
3590
  children: renderTextContent(children, {
3672
3591
  as: "span",
3673
3592
  className: "block text-muted-foreground",
3674
- size: "body",
3675
- style: {
3676
- lineHeight: "24px"
3677
- }
3593
+ size: "body"
3678
3594
  })
3679
3595
  }
3680
3596
  );
@@ -3817,12 +3733,7 @@ var RadioGroupItem = React19.forwardRef(function RadioGroupItem2({
3817
3733
  children: renderTextContent(label, {
3818
3734
  as: "span",
3819
3735
  className: "text-[color:var(--sofya-text-default)]",
3820
- size: "h4",
3821
- style: {
3822
- fontWeight: 400,
3823
- lineHeight: "22px",
3824
- letterSpacing: "-0.02em"
3825
- }
3736
+ size: "body"
3826
3737
  })
3827
3738
  }
3828
3739
  ) : null,
@@ -3834,10 +3745,7 @@ var RadioGroupItem = React19.forwardRef(function RadioGroupItem2({
3834
3745
  children: renderTextContent(description, {
3835
3746
  as: "span",
3836
3747
  className: "text-muted-foreground",
3837
- size: "body",
3838
- style: {
3839
- lineHeight: "20px"
3840
- }
3748
+ size: "body"
3841
3749
  })
3842
3750
  }
3843
3751
  ) : null
@@ -3923,6 +3831,14 @@ ScrollAreaCorner.displayName = ScrollAreaPrimitive.Corner.displayName;
3923
3831
  var React21 = __toESM(require("react"), 1);
3924
3832
  var SelectPrimitive = __toESM(require("@radix-ui/react-select"), 1);
3925
3833
  var import_jsx_runtime24 = require("react/jsx-runtime");
3834
+ var inheritTypographyStyle2 = {
3835
+ color: "inherit",
3836
+ fontFamily: "inherit",
3837
+ fontSize: "inherit",
3838
+ fontWeight: "inherit",
3839
+ letterSpacing: "inherit",
3840
+ lineHeight: "inherit"
3841
+ };
3926
3842
  var selectSizeOptions = ["default", "sm"];
3927
3843
  var Select = SelectPrimitive.Root;
3928
3844
  var SelectGroup = SelectPrimitive.Group;
@@ -3956,7 +3872,7 @@ var SelectTrigger = React21.forwardRef(function SelectTrigger2({ className, chil
3956
3872
  "data-slot": "select-trigger",
3957
3873
  "data-size": size,
3958
3874
  className: cn(
3959
- "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",
3875
+ "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",
3960
3876
  className
3961
3877
  ),
3962
3878
  ...props,
@@ -4066,7 +3982,7 @@ var SelectItem = React21.forwardRef(function SelectItem2({ className, children,
4066
3982
  ref,
4067
3983
  "data-slot": "select-item",
4068
3984
  className: cn(
4069
- "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)]",
3985
+ "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)]",
4070
3986
  className
4071
3987
  ),
4072
3988
  ...props,
@@ -4075,9 +3991,7 @@ var SelectItem = React21.forwardRef(function SelectItem2({ className, children,
4075
3991
  as: "span",
4076
3992
  className: "block truncate text-[color:var(--sofya-text-default)]",
4077
3993
  size: "body",
4078
- style: {
4079
- lineHeight: "20px"
4080
- }
3994
+ style: inheritTypographyStyle2
4081
3995
  }) }),
4082
3996
  /* @__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 }) }) })
4083
3997
  ]
@@ -4647,7 +4561,7 @@ function Tabs({
4647
4561
  value: item.value,
4648
4562
  disabled: isUnavailable,
4649
4563
  className: cn(
4650
- "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",
4564
+ "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",
4651
4565
  item.loading && "disabled:text-[color:var(--sofya-text-soft)]",
4652
4566
  triggerClassName,
4653
4567
  item.triggerClassName
@@ -4674,13 +4588,7 @@ function Tabs({
4674
4588
  /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("span", { children: renderTextContent(item.label, {
4675
4589
  as: "span",
4676
4590
  className: "block text-inherit",
4677
- size: "h4",
4678
- style: {
4679
- fontSize: "18px",
4680
- fontWeight: 600,
4681
- lineHeight: "18px",
4682
- letterSpacing: "-0.01em"
4683
- }
4591
+ size: "h5"
4684
4592
  }) })
4685
4593
  ] })
4686
4594
  ]
@@ -4733,7 +4641,7 @@ var Textarea = React29.forwardRef(
4733
4641
  "textarea",
4734
4642
  {
4735
4643
  className: cn(
4736
- "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",
4644
+ "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",
4737
4645
  className
4738
4646
  ),
4739
4647
  id: resolvedId,
@@ -4746,7 +4654,7 @@ var Textarea = React29.forwardRef(
4746
4654
  if (!label && !containerClassName) {
4747
4655
  return control;
4748
4656
  }
4749
- return /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)("div", { className: cn("grid w-full gap-4", containerClassName), children: [
4657
+ return /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)("div", { className: cn("grid w-full gap-2", containerClassName), children: [
4750
4658
  label ? /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
4751
4659
  "label",
4752
4660
  {
@@ -4758,11 +4666,9 @@ var Textarea = React29.forwardRef(
4758
4666
  children: renderTextContent(label, {
4759
4667
  as: "span",
4760
4668
  className: "block text-[color:var(--sofya-text-default)]",
4761
- size: "h4",
4669
+ size: "body",
4762
4670
  style: {
4763
- fontWeight: 500,
4764
- lineHeight: "22px",
4765
- letterSpacing: "-0.02em"
4671
+ fontWeight: 500
4766
4672
  }
4767
4673
  })
4768
4674
  }
@@ -4796,9 +4702,7 @@ var TooltipContent = React30.forwardRef(function TooltipContent2({ className, si
4796
4702
  className: "block text-[color:var(--sofya-tooltip-foreground)]",
4797
4703
  size: "tiny",
4798
4704
  style: {
4799
- fontWeight: 500,
4800
- lineHeight: "16px",
4801
- letterSpacing: "0.01em"
4705
+ fontWeight: 500
4802
4706
  }
4803
4707
  })
4804
4708
  }