ssovee-os-web-ui 0.1.56 → 0.1.58
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 +77 -42
- package/dist/index.cjs.map +1 -1
- package/dist/index.css +47 -77
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +78 -44
- package/dist/index.js.map +1 -1
- package/dist/sdk.cjs +14 -0
- package/dist/sdk.cjs.map +1 -1
- package/dist/sdk.d.cts +3 -1
- package/dist/sdk.d.ts +3 -1
- package/dist/sdk.js +14 -1
- package/dist/sdk.js.map +1 -1
- package/package.json +1 -1
- package/tailwind-preset.js +0 -20
- package/tailwind.config.js +1 -0
package/dist/index.cjs
CHANGED
|
@@ -183,11 +183,11 @@ var Input = React22__namespace.default.forwardRef(
|
|
|
183
183
|
onKeyUp,
|
|
184
184
|
...props
|
|
185
185
|
}, ref) => {
|
|
186
|
-
const baseClasses = "transition-all duration-200 focus:outline-none
|
|
186
|
+
const baseClasses = "transition-all duration-200 focus:outline-none rounded-[6px]";
|
|
187
187
|
const variantClasses = {
|
|
188
|
-
default: "bg-primary border border-surface-1 focus:border-brand-color focus:ring-1 focus:ring-brand-color/50",
|
|
189
|
-
filled: "bg-surface-4 border border-surface-4 focus:border-brand-color focus:ring-1 focus:ring-brand-color/50",
|
|
190
|
-
outline: "bg-transparent border border-surface-1 focus:border-brand-color focus:ring-1 focus:ring-brand-color/50"
|
|
188
|
+
default: "bg-primary input-text-default border border-surface-1 focus:border-brand-color focus:ring-1 focus:ring-brand-color/50 placeholder-light placeholder-default",
|
|
189
|
+
filled: "bg-surface-4 input-text-filled border border-surface-4 focus:border-brand-color focus:ring-1 focus:ring-brand-color/50 placeholder-light placeholder-filled",
|
|
190
|
+
outline: "bg-transparent input-text-outline border border-surface-1 focus:border-brand-color focus:ring-1 focus:ring-brand-color/50 placeholder-light placeholder-outline"
|
|
191
191
|
};
|
|
192
192
|
const sizeClasses = {
|
|
193
193
|
sm: "h-8 px-2 text-sm",
|
|
@@ -204,7 +204,7 @@ var Input = React22__namespace.default.forwardRef(
|
|
|
204
204
|
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: cn("flex flex-col", fullWidth && "w-full"), children: [
|
|
205
205
|
label && /* @__PURE__ */ jsxRuntime.jsx("label", { className: "text-sm font-medium text-neutral-500 mb-1", children: label }),
|
|
206
206
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "relative", children: [
|
|
207
|
-
leftIcon && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "absolute left-3 top-1/2 transform -translate-y-1/2 text-
|
|
207
|
+
leftIcon && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "absolute left-3 top-1/2 transform -translate-y-1/2 text-neutral-400", children: leftIcon }),
|
|
208
208
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
209
209
|
"input",
|
|
210
210
|
{
|
|
@@ -223,14 +223,14 @@ var Input = React22__namespace.default.forwardRef(
|
|
|
223
223
|
...props
|
|
224
224
|
}
|
|
225
225
|
),
|
|
226
|
-
rightIcon && !showSubmitButton && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "absolute right-3 top-1/2 transform -translate-y-1/2 text-
|
|
226
|
+
rightIcon && !showSubmitButton && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "absolute right-3 top-1/2 transform -translate-y-1/2 text-neutral-400", children: rightIcon }),
|
|
227
227
|
showSubmitButton && /* @__PURE__ */ jsxRuntime.jsx(
|
|
228
228
|
"button",
|
|
229
229
|
{
|
|
230
230
|
type: "button",
|
|
231
231
|
onClick: onSubmit,
|
|
232
232
|
disabled: props.disabled || props.readOnly || !onSubmit,
|
|
233
|
-
className: "absolute right-3 top-1/2 -translate-y-1/2 text-
|
|
233
|
+
className: "absolute right-3 top-1/2 -translate-y-1/2 text-neutral-300 transition-colors hover:text-neutral-400 disabled:cursor-not-allowed disabled:opacity-50",
|
|
234
234
|
"aria-label": "Submit input",
|
|
235
235
|
children: /* @__PURE__ */ jsxRuntime.jsx(react.ArrowCircleRightIcon, { size: 20 })
|
|
236
236
|
}
|
|
@@ -257,11 +257,11 @@ var TextArea = React22__namespace.default.forwardRef(
|
|
|
257
257
|
resize = "vertical",
|
|
258
258
|
...props
|
|
259
259
|
}, ref) => {
|
|
260
|
-
const baseClasses = "transition-all duration-200 focus:outline-none
|
|
260
|
+
const baseClasses = "transition-all duration-200 focus:outline-none rounded-[6px]";
|
|
261
261
|
const variantClasses = {
|
|
262
|
-
default: "bg-primary border border-surface-1 focus:border-brand-color focus:ring-1 focus:ring-brand-color/50",
|
|
263
|
-
filled: "bg-surface-4 border border-surface-4 focus:border-brand-color focus:ring-1 focus:ring-brand-color/50",
|
|
264
|
-
outline: "bg-transparent border border-surface-1 focus:border-brand-color focus:ring-1 focus:ring-brand-color/50"
|
|
262
|
+
default: "bg-primary input-text-default border border-surface-1 focus:border-brand-color focus:ring-1 focus:ring-brand-color/50 placeholder-light placeholder-default",
|
|
263
|
+
filled: "bg-surface-4 input-text-filled border border-surface-4 focus:border-brand-color focus:ring-1 focus:ring-brand-color/50 placeholder-light placeholder-filled",
|
|
264
|
+
outline: "bg-transparent input-text-outline border border-surface-1 focus:border-brand-color focus:ring-1 focus:ring-brand-color/50 placeholder-light placeholder-outline"
|
|
265
265
|
};
|
|
266
266
|
const sizeClasses = {
|
|
267
267
|
sm: "px-2 py-1 text-sm",
|
|
@@ -329,7 +329,6 @@ var Select = React22__namespace.default.forwardRef(
|
|
|
329
329
|
lg: "h-12 px-4 text-lg"
|
|
330
330
|
};
|
|
331
331
|
const widthClasses = fullWidth ? "w-full" : "";
|
|
332
|
-
const isPlaceholderSelected = Boolean(placeholder) && (value === "" || value === void 0 || value === null);
|
|
333
332
|
const handleChange = (e) => {
|
|
334
333
|
onChange?.(e.target.value);
|
|
335
334
|
};
|
|
@@ -343,7 +342,6 @@ var Select = React22__namespace.default.forwardRef(
|
|
|
343
342
|
className: cn(
|
|
344
343
|
baseClasses,
|
|
345
344
|
variantClasses[variant],
|
|
346
|
-
isPlaceholderSelected ? "text-neutral-700 dark:text-neutral-200" : "text-[#173657] dark:text-[#d7e1ef]",
|
|
347
345
|
sizeClasses[size],
|
|
348
346
|
widthClasses,
|
|
349
347
|
"pr-10",
|
|
@@ -371,7 +369,7 @@ var Select = React22__namespace.default.forwardRef(
|
|
|
371
369
|
react.CaretDownIcon,
|
|
372
370
|
{
|
|
373
371
|
size: 16,
|
|
374
|
-
className: "absolute right-3 top-1/2 transform -translate-y-1/2 text-
|
|
372
|
+
className: "absolute right-3 top-1/2 transform -translate-y-1/2 text-neutral-400 pointer-events-none"
|
|
375
373
|
}
|
|
376
374
|
)
|
|
377
375
|
] }),
|
|
@@ -624,13 +622,13 @@ var Dropdown = ({
|
|
|
624
622
|
className
|
|
625
623
|
),
|
|
626
624
|
children: [
|
|
627
|
-
/* @__PURE__ */ jsxRuntime.jsx("span", { className: selectedOption ? "text-
|
|
625
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { className: selectedOption ? "text-neutral-500" : "text-neutral-300", children: selectedOption ? selectedOption.label : placeholder }),
|
|
628
626
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
629
627
|
react.CaretDownIcon,
|
|
630
628
|
{
|
|
631
629
|
size: 16,
|
|
632
630
|
className: cn(
|
|
633
|
-
"text-
|
|
631
|
+
"text-neutral-400 transition-transform duration-200",
|
|
634
632
|
isOpen && "rotate-180"
|
|
635
633
|
)
|
|
636
634
|
}
|
|
@@ -796,7 +794,7 @@ var Loading = ({
|
|
|
796
794
|
return content;
|
|
797
795
|
};
|
|
798
796
|
var Loading_default = Loading;
|
|
799
|
-
var basePulseClasses = "
|
|
797
|
+
var basePulseClasses = "skeleton-bg rounded-md overflow-hidden";
|
|
800
798
|
var lineWidths = ["w-full", "w-11/12", "w-4/5", "w-3/5"];
|
|
801
799
|
var Skeleton = ({
|
|
802
800
|
variant = "text",
|
|
@@ -946,7 +944,7 @@ var Toast = ({
|
|
|
946
944
|
case "success":
|
|
947
945
|
return "border-l-green-500 bg-green-50";
|
|
948
946
|
case "warning":
|
|
949
|
-
return "border-l-yellow-500 bg-yellow-50";
|
|
947
|
+
return "border-l-yellow-500 bg-yellow-50 dark:text-[#121316]";
|
|
950
948
|
case "info":
|
|
951
949
|
return "border-l-blue-500 bg-blue-50";
|
|
952
950
|
default:
|
|
@@ -994,8 +992,28 @@ var Toast = ({
|
|
|
994
992
|
children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-start gap-3", children: [
|
|
995
993
|
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex-shrink-0 mt-0.5", children: getIcon() }),
|
|
996
994
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex-1 min-w-0", children: [
|
|
997
|
-
heading && /* @__PURE__ */ jsxRuntime.jsx(
|
|
998
|
-
|
|
995
|
+
heading && /* @__PURE__ */ jsxRuntime.jsx(
|
|
996
|
+
Typography_default,
|
|
997
|
+
{
|
|
998
|
+
variant: "h4",
|
|
999
|
+
className: cn(
|
|
1000
|
+
"text-sm font-medium mb-1",
|
|
1001
|
+
type === "warning" ? "text-neutral-700 dark:text-[#121316]" : "text-neutral-700"
|
|
1002
|
+
),
|
|
1003
|
+
children: heading
|
|
1004
|
+
}
|
|
1005
|
+
),
|
|
1006
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1007
|
+
Typography_default,
|
|
1008
|
+
{
|
|
1009
|
+
variant: "p",
|
|
1010
|
+
className: cn(
|
|
1011
|
+
"text-sm leading-relaxed",
|
|
1012
|
+
type === "warning" ? "text-neutral-600 dark:text-[#121316]" : "text-neutral-600"
|
|
1013
|
+
),
|
|
1014
|
+
children: message
|
|
1015
|
+
}
|
|
1016
|
+
)
|
|
999
1017
|
] }),
|
|
1000
1018
|
showCloseButton && /* @__PURE__ */ jsxRuntime.jsx(
|
|
1001
1019
|
"button",
|
|
@@ -1227,7 +1245,7 @@ var Badge = React22__namespace.default.forwardRef(
|
|
|
1227
1245
|
}, ref) => {
|
|
1228
1246
|
const variantClasses = {
|
|
1229
1247
|
default: "bg-surface-3 text-neutral-400",
|
|
1230
|
-
primary: "bg-brand-color text-neutral-500",
|
|
1248
|
+
primary: "bg-brand-color text-neutral-500 dark:text-white",
|
|
1231
1249
|
success: "bg-green-500 text-white",
|
|
1232
1250
|
warning: "bg-yellow-500 text-white",
|
|
1233
1251
|
danger: "bg-red-500 text-white",
|
|
@@ -1402,7 +1420,7 @@ var Tooltip = ({
|
|
|
1402
1420
|
"div",
|
|
1403
1421
|
{
|
|
1404
1422
|
className: cn(
|
|
1405
|
-
"absolute z-50 px-2 py-1 text-xs text
|
|
1423
|
+
"absolute z-50 px-2 py-1 text-xs tooltip-text bg-surface-1 rounded shadow-lg whitespace-nowrap",
|
|
1406
1424
|
positionClasses[position],
|
|
1407
1425
|
className
|
|
1408
1426
|
),
|
|
@@ -1662,11 +1680,11 @@ var SearchInput = React22__namespace.default.forwardRef(
|
|
|
1662
1680
|
};
|
|
1663
1681
|
}, [enableKeyboardShortcuts, isActive, handleClear, addShortcutListener, removeShortcutListener]);
|
|
1664
1682
|
const displayPlaceholder = enableKeyboardShortcuts ? `${placeholder} (${formatKeys(getShortcutByCommand("focus_search"))})` : placeholder;
|
|
1665
|
-
const baseClasses = "transition-all duration-200 focus:outline-none rounded-[6px]
|
|
1683
|
+
const baseClasses = "transition-all duration-200 focus:outline-none rounded-[6px]";
|
|
1666
1684
|
const variantClasses = {
|
|
1667
|
-
default: "bg-primary border border-surface-1 focus:border-brand-color focus:ring-1 focus:ring-brand-color/50",
|
|
1668
|
-
filled: "bg-surface-4 border border-surface-4 focus:border-brand-color focus:ring-1 focus:ring-brand-color/50",
|
|
1669
|
-
outline: "bg-transparent border border-surface-1 focus:border-brand-color focus:ring-1 focus:ring-brand-color/50"
|
|
1685
|
+
default: "bg-primary input-text-default border border-surface-1 focus:border-brand-color focus:ring-1 focus:ring-brand-color/50 placeholder-light placeholder-default",
|
|
1686
|
+
filled: "bg-surface-4 input-text-filled border border-surface-4 focus:border-brand-color focus:ring-1 focus:ring-brand-color/50 placeholder-light placeholder-filled",
|
|
1687
|
+
outline: "bg-transparent input-text-outline border border-surface-1 focus:border-brand-color focus:ring-1 focus:ring-brand-color/50 placeholder-light placeholder-outline"
|
|
1670
1688
|
};
|
|
1671
1689
|
const sizeClasses = {
|
|
1672
1690
|
sm: "h-8 text-sm leading-tight",
|
|
@@ -1698,7 +1716,7 @@ var SearchInput = React22__namespace.default.forwardRef(
|
|
|
1698
1716
|
"div",
|
|
1699
1717
|
{
|
|
1700
1718
|
className: cn(
|
|
1701
|
-
"pointer-events-none absolute top-1/2 z-10 -translate-y-1/2 text-
|
|
1719
|
+
"pointer-events-none absolute top-1/2 z-10 -translate-y-1/2 text-neutral-400",
|
|
1702
1720
|
iconPositionClasses[size]
|
|
1703
1721
|
),
|
|
1704
1722
|
children: /* @__PURE__ */ jsxRuntime.jsxs(
|
|
@@ -1750,7 +1768,7 @@ var SearchInput = React22__namespace.default.forwardRef(
|
|
|
1750
1768
|
"button",
|
|
1751
1769
|
{
|
|
1752
1770
|
onClick: handleClear,
|
|
1753
|
-
className: "absolute right-3 top-1/2 -translate-y-1/2 text-
|
|
1771
|
+
className: "absolute right-3 top-1/2 -translate-y-1/2 text-neutral-400 hover:text-neutral-600 transition-colors",
|
|
1754
1772
|
"aria-label": "Clear search",
|
|
1755
1773
|
type: "button",
|
|
1756
1774
|
children: /* @__PURE__ */ jsxRuntime.jsx("svg", { className: iconSizeClasses[size], fill: "none", stroke: "currentColor", viewBox: "0 0 24 24", children: /* @__PURE__ */ jsxRuntime.jsx("path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2, d: "M6 18L18 6M6 6l12 12" }) })
|
|
@@ -1824,10 +1842,12 @@ var FileUpload = ({
|
|
|
1824
1842
|
md: "h-24 px-4 text-base",
|
|
1825
1843
|
lg: "h-32 px-6 text-lg"
|
|
1826
1844
|
};
|
|
1845
|
+
const defaultTextClasses = variant === "default" || variant === "outline" ? "text-neutral-600" : "text-neutral-600";
|
|
1846
|
+
const acceptTextClasses = variant === "default" || variant === "outline" ? "text-xs text-neutral-600" : "text-xs text-neutral-600";
|
|
1827
1847
|
const defaultContent = /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex flex-col items-center justify-center h-full text-center", children: [
|
|
1828
|
-
/* @__PURE__ */ jsxRuntime.jsx(react.UploadIcon, { size: 24, className: "
|
|
1829
|
-
/* @__PURE__ */ jsxRuntime.jsx(Typography_default, { variant: "p", className: "text-sm
|
|
1830
|
-
accept && /* @__PURE__ */ jsxRuntime.jsxs(Typography_default, { variant: "p", className: "
|
|
1848
|
+
/* @__PURE__ */ jsxRuntime.jsx(react.UploadIcon, { size: 24, className: cn("mb-2", defaultTextClasses) }),
|
|
1849
|
+
/* @__PURE__ */ jsxRuntime.jsx(Typography_default, { variant: "p", className: cn("text-sm", defaultTextClasses), children: dragAndDrop ? "Drag and drop files here" : "Click to upload files" }),
|
|
1850
|
+
accept && /* @__PURE__ */ jsxRuntime.jsxs(Typography_default, { variant: "p", className: cn(acceptTextClasses, "mt-1"), children: [
|
|
1831
1851
|
"Accepted: ",
|
|
1832
1852
|
accept
|
|
1833
1853
|
] })
|
|
@@ -1989,7 +2009,7 @@ var Pagination = ({
|
|
|
1989
2009
|
className: cn(
|
|
1990
2010
|
"flex items-center justify-center",
|
|
1991
2011
|
sizeClasses[size],
|
|
1992
|
-
"text-neutral-400
|
|
2012
|
+
"text-neutral-400"
|
|
1993
2013
|
),
|
|
1994
2014
|
children: "..."
|
|
1995
2015
|
},
|
|
@@ -2005,8 +2025,8 @@ var Pagination = ({
|
|
|
2005
2025
|
"flex items-center justify-center font-medium transition-all duration-200 rounded-[6px]",
|
|
2006
2026
|
sizeClasses[size],
|
|
2007
2027
|
variantClasses[variant],
|
|
2008
|
-
isActive ? activeClasses[variant] : "text-neutral-
|
|
2009
|
-
!isActive && "hover:text-neutral-
|
|
2028
|
+
isActive ? activeClasses[variant] : "text-neutral-400",
|
|
2029
|
+
!isActive && "hover:text-neutral-500"
|
|
2010
2030
|
),
|
|
2011
2031
|
children: page
|
|
2012
2032
|
},
|
|
@@ -2022,7 +2042,7 @@ var Pagination = ({
|
|
|
2022
2042
|
"flex items-center justify-center font-medium transition-all duration-200 rounded-[6px]",
|
|
2023
2043
|
sizeClasses[size],
|
|
2024
2044
|
variantClasses[variant],
|
|
2025
|
-
"text-neutral-
|
|
2045
|
+
"text-neutral-400 hover:text-neutral-500"
|
|
2026
2046
|
),
|
|
2027
2047
|
children: "First"
|
|
2028
2048
|
}
|
|
@@ -2035,7 +2055,7 @@ var Pagination = ({
|
|
|
2035
2055
|
"flex items-center justify-center font-medium transition-all duration-200 rounded-[6px]",
|
|
2036
2056
|
sizeClasses[size],
|
|
2037
2057
|
variantClasses[variant],
|
|
2038
|
-
"text-neutral-
|
|
2058
|
+
"text-neutral-400 hover:text-neutral-500"
|
|
2039
2059
|
),
|
|
2040
2060
|
children: /* @__PURE__ */ jsxRuntime.jsx(react.CaretLeftIcon, { size: 16 })
|
|
2041
2061
|
}
|
|
@@ -2049,7 +2069,7 @@ var Pagination = ({
|
|
|
2049
2069
|
"flex items-center justify-center font-medium transition-all duration-200 rounded-[6px]",
|
|
2050
2070
|
sizeClasses[size],
|
|
2051
2071
|
variantClasses[variant],
|
|
2052
|
-
"text-neutral-
|
|
2072
|
+
"text-neutral-400 hover:text-neutral-500"
|
|
2053
2073
|
),
|
|
2054
2074
|
children: /* @__PURE__ */ jsxRuntime.jsx(react.CaretRightIcon, { size: 16 })
|
|
2055
2075
|
}
|
|
@@ -2062,7 +2082,7 @@ var Pagination = ({
|
|
|
2062
2082
|
"flex items-center justify-center font-medium transition-all duration-200 rounded-[6px]",
|
|
2063
2083
|
sizeClasses[size],
|
|
2064
2084
|
variantClasses[variant],
|
|
2065
|
-
"text-neutral-
|
|
2085
|
+
"text-neutral-400 hover:text-neutral-500"
|
|
2066
2086
|
),
|
|
2067
2087
|
children: "Last"
|
|
2068
2088
|
}
|
|
@@ -2084,7 +2104,7 @@ var Radio = React22__namespace.default.forwardRef(
|
|
|
2084
2104
|
const baseClasses = "transition-all duration-200 focus:outline-none focus:ring-2 focus:ring-offset-2 cursor-pointer rounded-[6px]";
|
|
2085
2105
|
const variantClasses = {
|
|
2086
2106
|
default: "bg-primary border border-surface-1 focus:border-brand-color focus:ring-brand-color/50 checked:bg-brand-color checked:border-brand-color",
|
|
2087
|
-
filled: "bg-surface-4 border border-surface-
|
|
2107
|
+
filled: "bg-surface-4 border border-surface-1 focus:border-brand-color focus:ring-brand-color/50 checked:bg-brand-color checked:border-brand-color"
|
|
2088
2108
|
};
|
|
2089
2109
|
const sizeClasses = {
|
|
2090
2110
|
sm: "w-4 h-4",
|
|
@@ -2100,6 +2120,7 @@ var Radio = React22__namespace.default.forwardRef(
|
|
|
2100
2120
|
ref,
|
|
2101
2121
|
type: "radio",
|
|
2102
2122
|
className: cn(
|
|
2123
|
+
"peer",
|
|
2103
2124
|
baseClasses,
|
|
2104
2125
|
variantClasses[variant],
|
|
2105
2126
|
sizeClasses[size],
|
|
@@ -2111,7 +2132,7 @@ var Radio = React22__namespace.default.forwardRef(
|
|
|
2111
2132
|
...props
|
|
2112
2133
|
}
|
|
2113
2134
|
),
|
|
2114
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "absolute inset-0 flex items-center justify-center pointer-events-none", children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: "w-1/2 h-1/2 bg-white rounded-full opacity-0 checked:opacity-100" }) })
|
|
2135
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "absolute inset-0 flex items-center justify-center pointer-events-none", children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: "w-1/2 h-1/2 bg-white rounded-full opacity-0 peer-checked:opacity-100" }) })
|
|
2115
2136
|
] }),
|
|
2116
2137
|
label && /* @__PURE__ */ jsxRuntime.jsx(
|
|
2117
2138
|
"label",
|
|
@@ -3133,13 +3154,13 @@ var Table = React22__namespace.forwardRef(({ className, ...props }, ref) => /* @
|
|
|
3133
3154
|
}
|
|
3134
3155
|
) }));
|
|
3135
3156
|
Table.displayName = "Table";
|
|
3136
|
-
var TableHeader = React22__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx("thead", { ref, className: cn("[&_tr]:border-b text-neutral-
|
|
3157
|
+
var TableHeader = React22__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx("thead", { ref, className: cn("[&_tr]:border-b text-neutral-400 bg-surface-2", className), ...props }));
|
|
3137
3158
|
TableHeader.displayName = "TableHeader";
|
|
3138
3159
|
var TableBody = React22__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
3139
3160
|
"tbody",
|
|
3140
3161
|
{
|
|
3141
3162
|
ref,
|
|
3142
|
-
className: cn("[&_tr:last-child]:border-0 text-neutral-
|
|
3163
|
+
className: cn("[&_tr:last-child]:border-0 text-neutral-300", className),
|
|
3143
3164
|
...props
|
|
3144
3165
|
}
|
|
3145
3166
|
));
|
|
@@ -3384,6 +3405,19 @@ var useSound = () => {
|
|
|
3384
3405
|
};
|
|
3385
3406
|
};
|
|
3386
3407
|
|
|
3408
|
+
// src/hooks/getFormattedDate.ts
|
|
3409
|
+
var getFormattedDate = (dateInput) => {
|
|
3410
|
+
const timestamp = Number(dateInput);
|
|
3411
|
+
if (isNaN(timestamp)) return "Invalid date";
|
|
3412
|
+
const date = new Date(timestamp);
|
|
3413
|
+
const formatter = new Intl.DateTimeFormat("en-GB", {
|
|
3414
|
+
day: "2-digit",
|
|
3415
|
+
month: "short",
|
|
3416
|
+
year: "numeric"
|
|
3417
|
+
});
|
|
3418
|
+
return formatter.format(date);
|
|
3419
|
+
};
|
|
3420
|
+
|
|
3387
3421
|
exports.Accordion = Accordion_default;
|
|
3388
3422
|
exports.Alert = Alert_default;
|
|
3389
3423
|
exports.Avatar = Avatar_default;
|
|
@@ -3421,6 +3455,7 @@ exports.Tooltip = Tooltip_default;
|
|
|
3421
3455
|
exports.Typography = Typography_default;
|
|
3422
3456
|
exports.WindowWithSideMenu = WindowWithSideMenu_default;
|
|
3423
3457
|
exports.WindowWithoutSideMenu = WindowWithoutSideMenu_default;
|
|
3458
|
+
exports.getFormattedDate = getFormattedDate;
|
|
3424
3459
|
exports.useDeviceSupport = useDeviceSupport;
|
|
3425
3460
|
exports.useGridClasses = useGridClasses_default;
|
|
3426
3461
|
exports.useShortcutFormatter = useShortcutFormatter_default;
|