@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.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-[
|
|
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
|
-
|
|
794
|
-
|
|
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-
|
|
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: "
|
|
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-[
|
|
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-[
|
|
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)(
|
|
@@ -2147,13 +2113,7 @@ var DialogTitle = React10.forwardRef(({ children, className, ...props }, ref) =>
|
|
|
2147
2113
|
children: renderTextContent(children, {
|
|
2148
2114
|
as: "span",
|
|
2149
2115
|
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
|
-
}
|
|
2116
|
+
size: "h4"
|
|
2157
2117
|
})
|
|
2158
2118
|
}
|
|
2159
2119
|
));
|
|
@@ -2167,10 +2127,7 @@ var DialogDescription = React10.forwardRef(({ children, className, ...props }, r
|
|
|
2167
2127
|
children: renderTextContent(children, {
|
|
2168
2128
|
as: "span",
|
|
2169
2129
|
className: "block text-muted-foreground",
|
|
2170
|
-
size: "body"
|
|
2171
|
-
style: {
|
|
2172
|
-
lineHeight: "24px"
|
|
2173
|
-
}
|
|
2130
|
+
size: "body"
|
|
2174
2131
|
})
|
|
2175
2132
|
}
|
|
2176
2133
|
));
|
|
@@ -2216,10 +2173,7 @@ function EmptyTitle({ children, className, ...props }) {
|
|
|
2216
2173
|
children: renderTextContent(children, {
|
|
2217
2174
|
as: "span",
|
|
2218
2175
|
className: "block text-foreground",
|
|
2219
|
-
size: "h2"
|
|
2220
|
-
style: {
|
|
2221
|
-
letterSpacing: "-0.02em"
|
|
2222
|
-
}
|
|
2176
|
+
size: "h2"
|
|
2223
2177
|
})
|
|
2224
2178
|
}
|
|
2225
2179
|
);
|
|
@@ -2237,10 +2191,7 @@ function EmptyDescription({
|
|
|
2237
2191
|
children: renderTextContent(children, {
|
|
2238
2192
|
as: "span",
|
|
2239
2193
|
className: "inline-block whitespace-nowrap text-muted-foreground",
|
|
2240
|
-
size: "body"
|
|
2241
|
-
style: {
|
|
2242
|
-
lineHeight: "24px"
|
|
2243
|
-
}
|
|
2194
|
+
size: "body"
|
|
2244
2195
|
})
|
|
2245
2196
|
}
|
|
2246
2197
|
);
|
|
@@ -2487,7 +2438,7 @@ function InputShell({
|
|
|
2487
2438
|
if (!label && !containerClassName) {
|
|
2488
2439
|
return control;
|
|
2489
2440
|
}
|
|
2490
|
-
return /* @__PURE__ */ (0, import_jsx_runtime15.jsxs)("div", { className: cn("grid w-full gap-
|
|
2441
|
+
return /* @__PURE__ */ (0, import_jsx_runtime15.jsxs)("div", { className: cn("grid w-full gap-2", containerClassName), children: [
|
|
2491
2442
|
label ? /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
|
|
2492
2443
|
"label",
|
|
2493
2444
|
{
|
|
@@ -2499,11 +2450,9 @@ function InputShell({
|
|
|
2499
2450
|
children: renderTextContent(label, {
|
|
2500
2451
|
as: "span",
|
|
2501
2452
|
className: "block text-[color:var(--sofya-text-default)]",
|
|
2502
|
-
size: "
|
|
2453
|
+
size: "body",
|
|
2503
2454
|
style: {
|
|
2504
|
-
fontWeight: 500
|
|
2505
|
-
lineHeight: "22px",
|
|
2506
|
-
letterSpacing: "-0.02em"
|
|
2455
|
+
fontWeight: 500
|
|
2507
2456
|
}
|
|
2508
2457
|
})
|
|
2509
2458
|
}
|
|
@@ -2535,19 +2484,13 @@ function UploadInputShell({
|
|
|
2535
2484
|
className: "text-[color:var(--sofya-text-default)]",
|
|
2536
2485
|
size: "body",
|
|
2537
2486
|
style: {
|
|
2538
|
-
fontWeight: 700
|
|
2539
|
-
lineHeight: "normal",
|
|
2540
|
-
letterSpacing: "-0.02em"
|
|
2487
|
+
fontWeight: 700
|
|
2541
2488
|
}
|
|
2542
2489
|
}),
|
|
2543
2490
|
optionalLabel ? /* @__PURE__ */ (0, import_jsx_runtime15.jsx)("span", { className: "ml-2 text-[color:var(--sofya-text-subtle)]", children: renderTextContent(optionalLabel, {
|
|
2544
2491
|
as: "span",
|
|
2545
2492
|
className: "text-[color:var(--sofya-text-subtle)]",
|
|
2546
|
-
size: "tiny"
|
|
2547
|
-
style: {
|
|
2548
|
-
fontWeight: 400,
|
|
2549
|
-
lineHeight: "normal"
|
|
2550
|
-
}
|
|
2493
|
+
size: "tiny"
|
|
2551
2494
|
}) }) : null
|
|
2552
2495
|
]
|
|
2553
2496
|
}
|
|
@@ -2902,20 +2845,13 @@ var UploadInputControl = React13.forwardRef(function UploadInputControl2({
|
|
|
2902
2845
|
className: "block text-[color:var(--sofya-text-default)]",
|
|
2903
2846
|
size: "body",
|
|
2904
2847
|
style: {
|
|
2905
|
-
fontWeight: 500
|
|
2906
|
-
lineHeight: "normal",
|
|
2907
|
-
letterSpacing: "-0.02em"
|
|
2848
|
+
fontWeight: 500
|
|
2908
2849
|
}
|
|
2909
2850
|
}) }),
|
|
2910
2851
|
resolvedDescription ? /* @__PURE__ */ (0, import_jsx_runtime15.jsx)("span", { className: "text-[color:var(--sofya-text-subtle)]", children: renderTextContent(resolvedDescription, {
|
|
2911
2852
|
as: "span",
|
|
2912
2853
|
className: "block text-[color:var(--sofya-text-subtle)]",
|
|
2913
|
-
size: "tiny"
|
|
2914
|
-
style: {
|
|
2915
|
-
fontWeight: 500,
|
|
2916
|
-
lineHeight: "normal",
|
|
2917
|
-
letterSpacing: "-0.02em"
|
|
2918
|
-
}
|
|
2854
|
+
size: "tiny"
|
|
2919
2855
|
}) }) : null
|
|
2920
2856
|
]
|
|
2921
2857
|
}
|
|
@@ -2946,9 +2882,7 @@ var UploadInputControl = React13.forwardRef(function UploadInputControl2({
|
|
|
2946
2882
|
className: "block truncate text-[color:var(--sofya-text-default)]",
|
|
2947
2883
|
size: "body",
|
|
2948
2884
|
style: {
|
|
2949
|
-
fontWeight: 500
|
|
2950
|
-
lineHeight: "normal",
|
|
2951
|
-
letterSpacing: "-0.02em"
|
|
2885
|
+
fontWeight: 500
|
|
2952
2886
|
}
|
|
2953
2887
|
}) }),
|
|
2954
2888
|
/* @__PURE__ */ (0, import_jsx_runtime15.jsx)("p", { className: "mt-2 text-[color:var(--sofya-text-subtle)]", children: renderTextContent(
|
|
@@ -2958,12 +2892,7 @@ var UploadInputControl = React13.forwardRef(function UploadInputControl2({
|
|
|
2958
2892
|
{
|
|
2959
2893
|
as: "span",
|
|
2960
2894
|
className: "block text-[color:var(--sofya-text-subtle)]",
|
|
2961
|
-
size: "tiny"
|
|
2962
|
-
style: {
|
|
2963
|
-
fontWeight: 500,
|
|
2964
|
-
lineHeight: "normal",
|
|
2965
|
-
letterSpacing: "-0.02em"
|
|
2966
|
-
}
|
|
2895
|
+
size: "tiny"
|
|
2967
2896
|
}
|
|
2968
2897
|
) })
|
|
2969
2898
|
] }),
|
|
@@ -3147,7 +3076,7 @@ var Input = React13.forwardRef((props, ref) => {
|
|
|
3147
3076
|
ref,
|
|
3148
3077
|
type: resolvedType,
|
|
3149
3078
|
className: cn(
|
|
3150
|
-
"flex h-10 w-full rounded-[10px] border border-[color:var(--sofya-border-strong)] bg-card px-4 py-2 text-[
|
|
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",
|
|
3151
3080
|
className
|
|
3152
3081
|
),
|
|
3153
3082
|
...nativeProps,
|
|
@@ -3186,9 +3115,7 @@ var Label = React14.forwardRef(
|
|
|
3186
3115
|
className: "block text-foreground",
|
|
3187
3116
|
size: "body",
|
|
3188
3117
|
style: {
|
|
3189
|
-
|
|
3190
|
-
fontWeight: 500,
|
|
3191
|
-
lineHeight: 1
|
|
3118
|
+
fontWeight: 500
|
|
3192
3119
|
}
|
|
3193
3120
|
})
|
|
3194
3121
|
}
|
|
@@ -3414,8 +3341,16 @@ Logo.displayName = "Logo";
|
|
|
3414
3341
|
var import_react_slot4 = require("@radix-ui/react-slot");
|
|
3415
3342
|
var import_class_variance_authority7 = require("class-variance-authority");
|
|
3416
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
|
+
};
|
|
3417
3352
|
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-[
|
|
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",
|
|
3419
3354
|
{
|
|
3420
3355
|
variants: {
|
|
3421
3356
|
isActive: {
|
|
@@ -3539,11 +3474,7 @@ function PaginationPrevious({
|
|
|
3539
3474
|
as: "span",
|
|
3540
3475
|
className: "block text-inherit",
|
|
3541
3476
|
size: "body",
|
|
3542
|
-
style:
|
|
3543
|
-
fontWeight: 500,
|
|
3544
|
-
lineHeight: 1,
|
|
3545
|
-
letterSpacing: "0.01em"
|
|
3546
|
-
}
|
|
3477
|
+
style: inheritTypographyStyle
|
|
3547
3478
|
}) })
|
|
3548
3479
|
]
|
|
3549
3480
|
}
|
|
@@ -3565,11 +3496,7 @@ function PaginationNext({
|
|
|
3565
3496
|
as: "span",
|
|
3566
3497
|
className: "block text-inherit",
|
|
3567
3498
|
size: "body",
|
|
3568
|
-
style:
|
|
3569
|
-
fontWeight: 500,
|
|
3570
|
-
lineHeight: 1,
|
|
3571
|
-
letterSpacing: "0.01em"
|
|
3572
|
-
}
|
|
3499
|
+
style: inheritTypographyStyle
|
|
3573
3500
|
}) }),
|
|
3574
3501
|
/* @__PURE__ */ (0, import_jsx_runtime19.jsx)(PaginationChevronRight, {})
|
|
3575
3502
|
]
|
|
@@ -3585,7 +3512,7 @@ function PaginationEllipsis({
|
|
|
3585
3512
|
{
|
|
3586
3513
|
"aria-hidden": "true",
|
|
3587
3514
|
className: cn(
|
|
3588
|
-
"flex h-10 w-10 items-center justify-center rounded-full text-[
|
|
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)]",
|
|
3589
3516
|
className
|
|
3590
3517
|
),
|
|
3591
3518
|
...props,
|
|
@@ -3593,12 +3520,8 @@ function PaginationEllipsis({
|
|
|
3593
3520
|
/* @__PURE__ */ (0, import_jsx_runtime19.jsx)("span", { children: renderTextContent("...", {
|
|
3594
3521
|
as: "span",
|
|
3595
3522
|
className: "block text-inherit",
|
|
3596
|
-
size: "
|
|
3597
|
-
style:
|
|
3598
|
-
fontSize: "18px",
|
|
3599
|
-
fontWeight: 400,
|
|
3600
|
-
lineHeight: 1
|
|
3601
|
-
}
|
|
3523
|
+
size: "h5",
|
|
3524
|
+
style: inheritTypographyStyle
|
|
3602
3525
|
}) }),
|
|
3603
3526
|
/* @__PURE__ */ (0, import_jsx_runtime19.jsx)("span", { className: "sr-only", children: "More pages" })
|
|
3604
3527
|
]
|
|
@@ -3650,12 +3573,7 @@ var PopoverTitle = React17.forwardRef(function PopoverTitle2({ children, classNa
|
|
|
3650
3573
|
children: renderTextContent(children, {
|
|
3651
3574
|
as: "span",
|
|
3652
3575
|
className: "block text-[hsl(var(--sofya-popover-foreground))]",
|
|
3653
|
-
size: "h4"
|
|
3654
|
-
style: {
|
|
3655
|
-
fontWeight: 600,
|
|
3656
|
-
lineHeight: "24px",
|
|
3657
|
-
letterSpacing: "-0.025em"
|
|
3658
|
-
}
|
|
3576
|
+
size: "h4"
|
|
3659
3577
|
})
|
|
3660
3578
|
}
|
|
3661
3579
|
);
|
|
@@ -3672,10 +3590,7 @@ var PopoverDescription = React17.forwardRef(function PopoverDescription2({ child
|
|
|
3672
3590
|
children: renderTextContent(children, {
|
|
3673
3591
|
as: "span",
|
|
3674
3592
|
className: "block text-muted-foreground",
|
|
3675
|
-
size: "body"
|
|
3676
|
-
style: {
|
|
3677
|
-
lineHeight: "24px"
|
|
3678
|
-
}
|
|
3593
|
+
size: "body"
|
|
3679
3594
|
})
|
|
3680
3595
|
}
|
|
3681
3596
|
);
|
|
@@ -3818,12 +3733,7 @@ var RadioGroupItem = React19.forwardRef(function RadioGroupItem2({
|
|
|
3818
3733
|
children: renderTextContent(label, {
|
|
3819
3734
|
as: "span",
|
|
3820
3735
|
className: "text-[color:var(--sofya-text-default)]",
|
|
3821
|
-
size: "
|
|
3822
|
-
style: {
|
|
3823
|
-
fontWeight: 400,
|
|
3824
|
-
lineHeight: "22px",
|
|
3825
|
-
letterSpacing: "-0.02em"
|
|
3826
|
-
}
|
|
3736
|
+
size: "body"
|
|
3827
3737
|
})
|
|
3828
3738
|
}
|
|
3829
3739
|
) : null,
|
|
@@ -3835,10 +3745,7 @@ var RadioGroupItem = React19.forwardRef(function RadioGroupItem2({
|
|
|
3835
3745
|
children: renderTextContent(description, {
|
|
3836
3746
|
as: "span",
|
|
3837
3747
|
className: "text-muted-foreground",
|
|
3838
|
-
size: "body"
|
|
3839
|
-
style: {
|
|
3840
|
-
lineHeight: "20px"
|
|
3841
|
-
}
|
|
3748
|
+
size: "body"
|
|
3842
3749
|
})
|
|
3843
3750
|
}
|
|
3844
3751
|
) : null
|
|
@@ -3924,6 +3831,14 @@ ScrollAreaCorner.displayName = ScrollAreaPrimitive.Corner.displayName;
|
|
|
3924
3831
|
var React21 = __toESM(require("react"), 1);
|
|
3925
3832
|
var SelectPrimitive = __toESM(require("@radix-ui/react-select"), 1);
|
|
3926
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
|
+
};
|
|
3927
3842
|
var selectSizeOptions = ["default", "sm"];
|
|
3928
3843
|
var Select = SelectPrimitive.Root;
|
|
3929
3844
|
var SelectGroup = SelectPrimitive.Group;
|
|
@@ -3957,7 +3872,7 @@ var SelectTrigger = React21.forwardRef(function SelectTrigger2({ className, chil
|
|
|
3957
3872
|
"data-slot": "select-trigger",
|
|
3958
3873
|
"data-size": size,
|
|
3959
3874
|
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-[
|
|
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",
|
|
3961
3876
|
className
|
|
3962
3877
|
),
|
|
3963
3878
|
...props,
|
|
@@ -4067,7 +3982,7 @@ var SelectItem = React21.forwardRef(function SelectItem2({ className, children,
|
|
|
4067
3982
|
ref,
|
|
4068
3983
|
"data-slot": "select-item",
|
|
4069
3984
|
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-[
|
|
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)]",
|
|
4071
3986
|
className
|
|
4072
3987
|
),
|
|
4073
3988
|
...props,
|
|
@@ -4076,9 +3991,7 @@ var SelectItem = React21.forwardRef(function SelectItem2({ className, children,
|
|
|
4076
3991
|
as: "span",
|
|
4077
3992
|
className: "block truncate text-[color:var(--sofya-text-default)]",
|
|
4078
3993
|
size: "body",
|
|
4079
|
-
style:
|
|
4080
|
-
lineHeight: "20px"
|
|
4081
|
-
}
|
|
3994
|
+
style: inheritTypographyStyle2
|
|
4082
3995
|
}) }),
|
|
4083
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 }) }) })
|
|
4084
3997
|
]
|
|
@@ -4648,7 +4561,7 @@ function Tabs({
|
|
|
4648
4561
|
value: item.value,
|
|
4649
4562
|
disabled: isUnavailable,
|
|
4650
4563
|
className: cn(
|
|
4651
|
-
"relative inline-flex min-h-[76px] shrink-0 items-center justify-center px-8 pb-4 pt-6 text-[
|
|
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",
|
|
4652
4565
|
item.loading && "disabled:text-[color:var(--sofya-text-soft)]",
|
|
4653
4566
|
triggerClassName,
|
|
4654
4567
|
item.triggerClassName
|
|
@@ -4675,13 +4588,7 @@ function Tabs({
|
|
|
4675
4588
|
/* @__PURE__ */ (0, import_jsx_runtime31.jsx)("span", { children: renderTextContent(item.label, {
|
|
4676
4589
|
as: "span",
|
|
4677
4590
|
className: "block text-inherit",
|
|
4678
|
-
size: "
|
|
4679
|
-
style: {
|
|
4680
|
-
fontSize: "18px",
|
|
4681
|
-
fontWeight: 600,
|
|
4682
|
-
lineHeight: "18px",
|
|
4683
|
-
letterSpacing: "-0.01em"
|
|
4684
|
-
}
|
|
4591
|
+
size: "h5"
|
|
4685
4592
|
}) })
|
|
4686
4593
|
] })
|
|
4687
4594
|
]
|
|
@@ -4734,7 +4641,7 @@ var Textarea = React29.forwardRef(
|
|
|
4734
4641
|
"textarea",
|
|
4735
4642
|
{
|
|
4736
4643
|
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-[
|
|
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",
|
|
4738
4645
|
className
|
|
4739
4646
|
),
|
|
4740
4647
|
id: resolvedId,
|
|
@@ -4747,7 +4654,7 @@ var Textarea = React29.forwardRef(
|
|
|
4747
4654
|
if (!label && !containerClassName) {
|
|
4748
4655
|
return control;
|
|
4749
4656
|
}
|
|
4750
|
-
return /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)("div", { className: cn("grid w-full gap-
|
|
4657
|
+
return /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)("div", { className: cn("grid w-full gap-2", containerClassName), children: [
|
|
4751
4658
|
label ? /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
|
|
4752
4659
|
"label",
|
|
4753
4660
|
{
|
|
@@ -4759,11 +4666,9 @@ var Textarea = React29.forwardRef(
|
|
|
4759
4666
|
children: renderTextContent(label, {
|
|
4760
4667
|
as: "span",
|
|
4761
4668
|
className: "block text-[color:var(--sofya-text-default)]",
|
|
4762
|
-
size: "
|
|
4669
|
+
size: "body",
|
|
4763
4670
|
style: {
|
|
4764
|
-
fontWeight: 500
|
|
4765
|
-
lineHeight: "22px",
|
|
4766
|
-
letterSpacing: "-0.02em"
|
|
4671
|
+
fontWeight: 500
|
|
4767
4672
|
}
|
|
4768
4673
|
})
|
|
4769
4674
|
}
|
|
@@ -4797,9 +4702,7 @@ var TooltipContent = React30.forwardRef(function TooltipContent2({ className, si
|
|
|
4797
4702
|
className: "block text-[color:var(--sofya-tooltip-foreground)]",
|
|
4798
4703
|
size: "tiny",
|
|
4799
4704
|
style: {
|
|
4800
|
-
fontWeight: 500
|
|
4801
|
-
lineHeight: "16px",
|
|
4802
|
-
letterSpacing: "0.01em"
|
|
4705
|
+
fontWeight: 500
|
|
4803
4706
|
}
|
|
4804
4707
|
})
|
|
4805
4708
|
}
|