@sofya-ds/react 1.1.2 → 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 +70 -167
- package/dist/index.css +1 -1
- package/dist/index.js +70 -167
- package/package.json +2 -2
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-[
|
|
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
|
-
|
|
599
|
-
|
|
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-
|
|
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: "
|
|
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-[
|
|
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-[
|
|
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(
|
|
@@ -1952,13 +1918,7 @@ var DialogTitle = React10.forwardRef(({ children, className, ...props }, ref) =>
|
|
|
1952
1918
|
children: renderTextContent(children, {
|
|
1953
1919
|
as: "span",
|
|
1954
1920
|
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
|
-
}
|
|
1921
|
+
size: "h4"
|
|
1962
1922
|
})
|
|
1963
1923
|
}
|
|
1964
1924
|
));
|
|
@@ -1972,10 +1932,7 @@ var DialogDescription = React10.forwardRef(({ children, className, ...props }, r
|
|
|
1972
1932
|
children: renderTextContent(children, {
|
|
1973
1933
|
as: "span",
|
|
1974
1934
|
className: "block text-muted-foreground",
|
|
1975
|
-
size: "body"
|
|
1976
|
-
style: {
|
|
1977
|
-
lineHeight: "24px"
|
|
1978
|
-
}
|
|
1935
|
+
size: "body"
|
|
1979
1936
|
})
|
|
1980
1937
|
}
|
|
1981
1938
|
));
|
|
@@ -2021,10 +1978,7 @@ function EmptyTitle({ children, className, ...props }) {
|
|
|
2021
1978
|
children: renderTextContent(children, {
|
|
2022
1979
|
as: "span",
|
|
2023
1980
|
className: "block text-foreground",
|
|
2024
|
-
size: "h2"
|
|
2025
|
-
style: {
|
|
2026
|
-
letterSpacing: "-0.02em"
|
|
2027
|
-
}
|
|
1981
|
+
size: "h2"
|
|
2028
1982
|
})
|
|
2029
1983
|
}
|
|
2030
1984
|
);
|
|
@@ -2042,10 +1996,7 @@ function EmptyDescription({
|
|
|
2042
1996
|
children: renderTextContent(children, {
|
|
2043
1997
|
as: "span",
|
|
2044
1998
|
className: "inline-block whitespace-nowrap text-muted-foreground",
|
|
2045
|
-
size: "body"
|
|
2046
|
-
style: {
|
|
2047
|
-
lineHeight: "24px"
|
|
2048
|
-
}
|
|
1999
|
+
size: "body"
|
|
2049
2000
|
})
|
|
2050
2001
|
}
|
|
2051
2002
|
);
|
|
@@ -2296,7 +2247,7 @@ function InputShell({
|
|
|
2296
2247
|
if (!label && !containerClassName) {
|
|
2297
2248
|
return control;
|
|
2298
2249
|
}
|
|
2299
|
-
return /* @__PURE__ */ jsxs10("div", { className: cn("grid w-full gap-
|
|
2250
|
+
return /* @__PURE__ */ jsxs10("div", { className: cn("grid w-full gap-2", containerClassName), children: [
|
|
2300
2251
|
label ? /* @__PURE__ */ jsx15(
|
|
2301
2252
|
"label",
|
|
2302
2253
|
{
|
|
@@ -2308,11 +2259,9 @@ function InputShell({
|
|
|
2308
2259
|
children: renderTextContent(label, {
|
|
2309
2260
|
as: "span",
|
|
2310
2261
|
className: "block text-[color:var(--sofya-text-default)]",
|
|
2311
|
-
size: "
|
|
2262
|
+
size: "body",
|
|
2312
2263
|
style: {
|
|
2313
|
-
fontWeight: 500
|
|
2314
|
-
lineHeight: "22px",
|
|
2315
|
-
letterSpacing: "-0.02em"
|
|
2264
|
+
fontWeight: 500
|
|
2316
2265
|
}
|
|
2317
2266
|
})
|
|
2318
2267
|
}
|
|
@@ -2344,19 +2293,13 @@ function UploadInputShell({
|
|
|
2344
2293
|
className: "text-[color:var(--sofya-text-default)]",
|
|
2345
2294
|
size: "body",
|
|
2346
2295
|
style: {
|
|
2347
|
-
fontWeight: 700
|
|
2348
|
-
lineHeight: "normal",
|
|
2349
|
-
letterSpacing: "-0.02em"
|
|
2296
|
+
fontWeight: 700
|
|
2350
2297
|
}
|
|
2351
2298
|
}),
|
|
2352
2299
|
optionalLabel ? /* @__PURE__ */ jsx15("span", { className: "ml-2 text-[color:var(--sofya-text-subtle)]", children: renderTextContent(optionalLabel, {
|
|
2353
2300
|
as: "span",
|
|
2354
2301
|
className: "text-[color:var(--sofya-text-subtle)]",
|
|
2355
|
-
size: "tiny"
|
|
2356
|
-
style: {
|
|
2357
|
-
fontWeight: 400,
|
|
2358
|
-
lineHeight: "normal"
|
|
2359
|
-
}
|
|
2302
|
+
size: "tiny"
|
|
2360
2303
|
}) }) : null
|
|
2361
2304
|
]
|
|
2362
2305
|
}
|
|
@@ -2711,20 +2654,13 @@ var UploadInputControl = React13.forwardRef(function UploadInputControl2({
|
|
|
2711
2654
|
className: "block text-[color:var(--sofya-text-default)]",
|
|
2712
2655
|
size: "body",
|
|
2713
2656
|
style: {
|
|
2714
|
-
fontWeight: 500
|
|
2715
|
-
lineHeight: "normal",
|
|
2716
|
-
letterSpacing: "-0.02em"
|
|
2657
|
+
fontWeight: 500
|
|
2717
2658
|
}
|
|
2718
2659
|
}) }),
|
|
2719
2660
|
resolvedDescription ? /* @__PURE__ */ jsx15("span", { className: "text-[color:var(--sofya-text-subtle)]", children: renderTextContent(resolvedDescription, {
|
|
2720
2661
|
as: "span",
|
|
2721
2662
|
className: "block text-[color:var(--sofya-text-subtle)]",
|
|
2722
|
-
size: "tiny"
|
|
2723
|
-
style: {
|
|
2724
|
-
fontWeight: 500,
|
|
2725
|
-
lineHeight: "normal",
|
|
2726
|
-
letterSpacing: "-0.02em"
|
|
2727
|
-
}
|
|
2663
|
+
size: "tiny"
|
|
2728
2664
|
}) }) : null
|
|
2729
2665
|
]
|
|
2730
2666
|
}
|
|
@@ -2755,9 +2691,7 @@ var UploadInputControl = React13.forwardRef(function UploadInputControl2({
|
|
|
2755
2691
|
className: "block truncate text-[color:var(--sofya-text-default)]",
|
|
2756
2692
|
size: "body",
|
|
2757
2693
|
style: {
|
|
2758
|
-
fontWeight: 500
|
|
2759
|
-
lineHeight: "normal",
|
|
2760
|
-
letterSpacing: "-0.02em"
|
|
2694
|
+
fontWeight: 500
|
|
2761
2695
|
}
|
|
2762
2696
|
}) }),
|
|
2763
2697
|
/* @__PURE__ */ jsx15("p", { className: "mt-2 text-[color:var(--sofya-text-subtle)]", children: renderTextContent(
|
|
@@ -2767,12 +2701,7 @@ var UploadInputControl = React13.forwardRef(function UploadInputControl2({
|
|
|
2767
2701
|
{
|
|
2768
2702
|
as: "span",
|
|
2769
2703
|
className: "block text-[color:var(--sofya-text-subtle)]",
|
|
2770
|
-
size: "tiny"
|
|
2771
|
-
style: {
|
|
2772
|
-
fontWeight: 500,
|
|
2773
|
-
lineHeight: "normal",
|
|
2774
|
-
letterSpacing: "-0.02em"
|
|
2775
|
-
}
|
|
2704
|
+
size: "tiny"
|
|
2776
2705
|
}
|
|
2777
2706
|
) })
|
|
2778
2707
|
] }),
|
|
@@ -2956,7 +2885,7 @@ var Input = React13.forwardRef((props, ref) => {
|
|
|
2956
2885
|
ref,
|
|
2957
2886
|
type: resolvedType,
|
|
2958
2887
|
className: cn(
|
|
2959
|
-
"flex h-10 w-full rounded-[10px] border border-[color:var(--sofya-border-strong)] bg-card px-4 py-2 text-[
|
|
2888
|
+
"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
2889
|
className
|
|
2961
2890
|
),
|
|
2962
2891
|
...nativeProps,
|
|
@@ -2995,9 +2924,7 @@ var Label = React14.forwardRef(
|
|
|
2995
2924
|
className: "block text-foreground",
|
|
2996
2925
|
size: "body",
|
|
2997
2926
|
style: {
|
|
2998
|
-
|
|
2999
|
-
fontWeight: 500,
|
|
3000
|
-
lineHeight: 1
|
|
2927
|
+
fontWeight: 500
|
|
3001
2928
|
}
|
|
3002
2929
|
})
|
|
3003
2930
|
}
|
|
@@ -3223,8 +3150,16 @@ Logo.displayName = "Logo";
|
|
|
3223
3150
|
import { Slot as Slot4 } from "@radix-ui/react-slot";
|
|
3224
3151
|
import { cva as cva7 } from "class-variance-authority";
|
|
3225
3152
|
import { jsx as jsx19, jsxs as jsxs12 } from "react/jsx-runtime";
|
|
3153
|
+
var inheritTypographyStyle = {
|
|
3154
|
+
color: "inherit",
|
|
3155
|
+
fontFamily: "inherit",
|
|
3156
|
+
fontSize: "inherit",
|
|
3157
|
+
fontWeight: "inherit",
|
|
3158
|
+
letterSpacing: "inherit",
|
|
3159
|
+
lineHeight: "inherit"
|
|
3160
|
+
};
|
|
3226
3161
|
var paginationLinkVariants = cva7(
|
|
3227
|
-
"inline-flex h-10 min-w-10 items-center justify-center rounded-full border border-transparent px-4 text-[
|
|
3162
|
+
"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
3163
|
{
|
|
3229
3164
|
variants: {
|
|
3230
3165
|
isActive: {
|
|
@@ -3348,11 +3283,7 @@ function PaginationPrevious({
|
|
|
3348
3283
|
as: "span",
|
|
3349
3284
|
className: "block text-inherit",
|
|
3350
3285
|
size: "body",
|
|
3351
|
-
style:
|
|
3352
|
-
fontWeight: 500,
|
|
3353
|
-
lineHeight: 1,
|
|
3354
|
-
letterSpacing: "0.01em"
|
|
3355
|
-
}
|
|
3286
|
+
style: inheritTypographyStyle
|
|
3356
3287
|
}) })
|
|
3357
3288
|
]
|
|
3358
3289
|
}
|
|
@@ -3374,11 +3305,7 @@ function PaginationNext({
|
|
|
3374
3305
|
as: "span",
|
|
3375
3306
|
className: "block text-inherit",
|
|
3376
3307
|
size: "body",
|
|
3377
|
-
style:
|
|
3378
|
-
fontWeight: 500,
|
|
3379
|
-
lineHeight: 1,
|
|
3380
|
-
letterSpacing: "0.01em"
|
|
3381
|
-
}
|
|
3308
|
+
style: inheritTypographyStyle
|
|
3382
3309
|
}) }),
|
|
3383
3310
|
/* @__PURE__ */ jsx19(PaginationChevronRight, {})
|
|
3384
3311
|
]
|
|
@@ -3394,7 +3321,7 @@ function PaginationEllipsis({
|
|
|
3394
3321
|
{
|
|
3395
3322
|
"aria-hidden": "true",
|
|
3396
3323
|
className: cn(
|
|
3397
|
-
"flex h-10 w-10 items-center justify-center rounded-full text-[
|
|
3324
|
+
"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
3325
|
className
|
|
3399
3326
|
),
|
|
3400
3327
|
...props,
|
|
@@ -3402,12 +3329,8 @@ function PaginationEllipsis({
|
|
|
3402
3329
|
/* @__PURE__ */ jsx19("span", { children: renderTextContent("...", {
|
|
3403
3330
|
as: "span",
|
|
3404
3331
|
className: "block text-inherit",
|
|
3405
|
-
size: "
|
|
3406
|
-
style:
|
|
3407
|
-
fontSize: "18px",
|
|
3408
|
-
fontWeight: 400,
|
|
3409
|
-
lineHeight: 1
|
|
3410
|
-
}
|
|
3332
|
+
size: "h5",
|
|
3333
|
+
style: inheritTypographyStyle
|
|
3411
3334
|
}) }),
|
|
3412
3335
|
/* @__PURE__ */ jsx19("span", { className: "sr-only", children: "More pages" })
|
|
3413
3336
|
]
|
|
@@ -3459,12 +3382,7 @@ var PopoverTitle = React17.forwardRef(function PopoverTitle2({ children, classNa
|
|
|
3459
3382
|
children: renderTextContent(children, {
|
|
3460
3383
|
as: "span",
|
|
3461
3384
|
className: "block text-[hsl(var(--sofya-popover-foreground))]",
|
|
3462
|
-
size: "h4"
|
|
3463
|
-
style: {
|
|
3464
|
-
fontWeight: 600,
|
|
3465
|
-
lineHeight: "24px",
|
|
3466
|
-
letterSpacing: "-0.025em"
|
|
3467
|
-
}
|
|
3385
|
+
size: "h4"
|
|
3468
3386
|
})
|
|
3469
3387
|
}
|
|
3470
3388
|
);
|
|
@@ -3481,10 +3399,7 @@ var PopoverDescription = React17.forwardRef(function PopoverDescription2({ child
|
|
|
3481
3399
|
children: renderTextContent(children, {
|
|
3482
3400
|
as: "span",
|
|
3483
3401
|
className: "block text-muted-foreground",
|
|
3484
|
-
size: "body"
|
|
3485
|
-
style: {
|
|
3486
|
-
lineHeight: "24px"
|
|
3487
|
-
}
|
|
3402
|
+
size: "body"
|
|
3488
3403
|
})
|
|
3489
3404
|
}
|
|
3490
3405
|
);
|
|
@@ -3627,12 +3542,7 @@ var RadioGroupItem = React19.forwardRef(function RadioGroupItem2({
|
|
|
3627
3542
|
children: renderTextContent(label, {
|
|
3628
3543
|
as: "span",
|
|
3629
3544
|
className: "text-[color:var(--sofya-text-default)]",
|
|
3630
|
-
size: "
|
|
3631
|
-
style: {
|
|
3632
|
-
fontWeight: 400,
|
|
3633
|
-
lineHeight: "22px",
|
|
3634
|
-
letterSpacing: "-0.02em"
|
|
3635
|
-
}
|
|
3545
|
+
size: "body"
|
|
3636
3546
|
})
|
|
3637
3547
|
}
|
|
3638
3548
|
) : null,
|
|
@@ -3644,10 +3554,7 @@ var RadioGroupItem = React19.forwardRef(function RadioGroupItem2({
|
|
|
3644
3554
|
children: renderTextContent(description, {
|
|
3645
3555
|
as: "span",
|
|
3646
3556
|
className: "text-muted-foreground",
|
|
3647
|
-
size: "body"
|
|
3648
|
-
style: {
|
|
3649
|
-
lineHeight: "20px"
|
|
3650
|
-
}
|
|
3557
|
+
size: "body"
|
|
3651
3558
|
})
|
|
3652
3559
|
}
|
|
3653
3560
|
) : null
|
|
@@ -3733,6 +3640,14 @@ ScrollAreaCorner.displayName = ScrollAreaPrimitive.Corner.displayName;
|
|
|
3733
3640
|
import * as React21 from "react";
|
|
3734
3641
|
import * as SelectPrimitive from "@radix-ui/react-select";
|
|
3735
3642
|
import { jsx as jsx24, jsxs as jsxs14 } from "react/jsx-runtime";
|
|
3643
|
+
var inheritTypographyStyle2 = {
|
|
3644
|
+
color: "inherit",
|
|
3645
|
+
fontFamily: "inherit",
|
|
3646
|
+
fontSize: "inherit",
|
|
3647
|
+
fontWeight: "inherit",
|
|
3648
|
+
letterSpacing: "inherit",
|
|
3649
|
+
lineHeight: "inherit"
|
|
3650
|
+
};
|
|
3736
3651
|
var selectSizeOptions = ["default", "sm"];
|
|
3737
3652
|
var Select = SelectPrimitive.Root;
|
|
3738
3653
|
var SelectGroup = SelectPrimitive.Group;
|
|
@@ -3766,7 +3681,7 @@ var SelectTrigger = React21.forwardRef(function SelectTrigger2({ className, chil
|
|
|
3766
3681
|
"data-slot": "select-trigger",
|
|
3767
3682
|
"data-size": size,
|
|
3768
3683
|
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-[
|
|
3684
|
+
"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
3685
|
className
|
|
3771
3686
|
),
|
|
3772
3687
|
...props,
|
|
@@ -3876,7 +3791,7 @@ var SelectItem = React21.forwardRef(function SelectItem2({ className, children,
|
|
|
3876
3791
|
ref,
|
|
3877
3792
|
"data-slot": "select-item",
|
|
3878
3793
|
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-[
|
|
3794
|
+
"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
3795
|
className
|
|
3881
3796
|
),
|
|
3882
3797
|
...props,
|
|
@@ -3885,9 +3800,7 @@ var SelectItem = React21.forwardRef(function SelectItem2({ className, children,
|
|
|
3885
3800
|
as: "span",
|
|
3886
3801
|
className: "block truncate text-[color:var(--sofya-text-default)]",
|
|
3887
3802
|
size: "body",
|
|
3888
|
-
style:
|
|
3889
|
-
lineHeight: "20px"
|
|
3890
|
-
}
|
|
3803
|
+
style: inheritTypographyStyle2
|
|
3891
3804
|
}) }),
|
|
3892
3805
|
/* @__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
3806
|
]
|
|
@@ -4460,7 +4373,7 @@ function Tabs({
|
|
|
4460
4373
|
value: item.value,
|
|
4461
4374
|
disabled: isUnavailable,
|
|
4462
4375
|
className: cn(
|
|
4463
|
-
"relative inline-flex min-h-[76px] shrink-0 items-center justify-center px-8 pb-4 pt-6 text-[
|
|
4376
|
+
"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
4377
|
item.loading && "disabled:text-[color:var(--sofya-text-soft)]",
|
|
4465
4378
|
triggerClassName,
|
|
4466
4379
|
item.triggerClassName
|
|
@@ -4487,13 +4400,7 @@ function Tabs({
|
|
|
4487
4400
|
/* @__PURE__ */ jsx31("span", { children: renderTextContent(item.label, {
|
|
4488
4401
|
as: "span",
|
|
4489
4402
|
className: "block text-inherit",
|
|
4490
|
-
size: "
|
|
4491
|
-
style: {
|
|
4492
|
-
fontSize: "18px",
|
|
4493
|
-
fontWeight: 600,
|
|
4494
|
-
lineHeight: "18px",
|
|
4495
|
-
letterSpacing: "-0.01em"
|
|
4496
|
-
}
|
|
4403
|
+
size: "h5"
|
|
4497
4404
|
}) })
|
|
4498
4405
|
] })
|
|
4499
4406
|
]
|
|
@@ -4546,7 +4453,7 @@ var Textarea = React29.forwardRef(
|
|
|
4546
4453
|
"textarea",
|
|
4547
4454
|
{
|
|
4548
4455
|
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-[
|
|
4456
|
+
"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
4457
|
className
|
|
4551
4458
|
),
|
|
4552
4459
|
id: resolvedId,
|
|
@@ -4559,7 +4466,7 @@ var Textarea = React29.forwardRef(
|
|
|
4559
4466
|
if (!label && !containerClassName) {
|
|
4560
4467
|
return control;
|
|
4561
4468
|
}
|
|
4562
|
-
return /* @__PURE__ */ jsxs17("div", { className: cn("grid w-full gap-
|
|
4469
|
+
return /* @__PURE__ */ jsxs17("div", { className: cn("grid w-full gap-2", containerClassName), children: [
|
|
4563
4470
|
label ? /* @__PURE__ */ jsx32(
|
|
4564
4471
|
"label",
|
|
4565
4472
|
{
|
|
@@ -4571,11 +4478,9 @@ var Textarea = React29.forwardRef(
|
|
|
4571
4478
|
children: renderTextContent(label, {
|
|
4572
4479
|
as: "span",
|
|
4573
4480
|
className: "block text-[color:var(--sofya-text-default)]",
|
|
4574
|
-
size: "
|
|
4481
|
+
size: "body",
|
|
4575
4482
|
style: {
|
|
4576
|
-
fontWeight: 500
|
|
4577
|
-
lineHeight: "22px",
|
|
4578
|
-
letterSpacing: "-0.02em"
|
|
4483
|
+
fontWeight: 500
|
|
4579
4484
|
}
|
|
4580
4485
|
})
|
|
4581
4486
|
}
|
|
@@ -4609,9 +4514,7 @@ var TooltipContent = React30.forwardRef(function TooltipContent2({ className, si
|
|
|
4609
4514
|
className: "block text-[color:var(--sofya-tooltip-foreground)]",
|
|
4610
4515
|
size: "tiny",
|
|
4611
4516
|
style: {
|
|
4612
|
-
fontWeight: 500
|
|
4613
|
-
lineHeight: "16px",
|
|
4614
|
-
letterSpacing: "0.01em"
|
|
4517
|
+
fontWeight: 500
|
|
4615
4518
|
}
|
|
4616
4519
|
})
|
|
4617
4520
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sofya-ds/react",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.3",
|
|
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.
|
|
61
|
+
"@sofya-ds/tokens": "1.1.3"
|
|
62
62
|
},
|
|
63
63
|
"devDependencies": {
|
|
64
64
|
"@testing-library/jest-dom": "^6.9.1",
|