ssovee-os-web-ui 0.1.53 → 0.1.54
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 +22 -22
- package/dist/index.cjs.map +1 -1
- package/dist/index.css +8 -8
- package/dist/index.js +22 -22
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -183,7 +183,7 @@ 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 placeholder:text-[#
|
|
186
|
+
const baseClasses = "transition-all duration-200 focus:outline-none placeholder:text-[#173657] dark:placeholder:text-[#d7e1ef] rounded-[6px] text-[#173657] dark:text-[#d7e1ef]";
|
|
187
187
|
const variantClasses = {
|
|
188
188
|
default: "bg-primary border border-surface-1 focus:border-brand-color focus:ring-1 focus:ring-brand-color/50",
|
|
189
189
|
filled: "bg-surface-4 border border-surface-4 focus:border-brand-color focus:ring-1 focus:ring-brand-color/50",
|
|
@@ -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-[#173657] dark:text-[#d7e1ef]", 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-[#173657] dark:text-[#d7e1ef]", 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-[#173657] transition-colors hover:text-[#3f5976] dark:text-[#d7e1ef] dark:hover:text-[#d7e1ef] 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,7 +257,7 @@ 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 placeholder:text-[#
|
|
260
|
+
const baseClasses = "transition-all duration-200 focus:outline-none placeholder:text-[#173657] dark:placeholder:text-[#d7e1ef] rounded-[6px] text-[#173657] dark:text-[#d7e1ef]";
|
|
261
261
|
const variantClasses = {
|
|
262
262
|
default: "bg-primary border border-surface-1 focus:border-brand-color focus:ring-1 focus:ring-brand-color/50",
|
|
263
263
|
filled: "bg-surface-4 border border-surface-4 focus:border-brand-color focus:ring-1 focus:ring-brand-color/50",
|
|
@@ -343,7 +343,7 @@ var Select = React22__namespace.default.forwardRef(
|
|
|
343
343
|
className: cn(
|
|
344
344
|
baseClasses,
|
|
345
345
|
variantClasses[variant],
|
|
346
|
-
isPlaceholderSelected ? "text-[#
|
|
346
|
+
isPlaceholderSelected ? "text-[#173657]/60 dark:text-[#d7e1ef]/70" : "text-[#173657] dark:text-[#d7e1ef]",
|
|
347
347
|
sizeClasses[size],
|
|
348
348
|
widthClasses,
|
|
349
349
|
"pr-10",
|
|
@@ -371,7 +371,7 @@ var Select = React22__namespace.default.forwardRef(
|
|
|
371
371
|
react.CaretDownIcon,
|
|
372
372
|
{
|
|
373
373
|
size: 16,
|
|
374
|
-
className: "absolute right-3 top-1/2 transform -translate-y-1/2 text-[#
|
|
374
|
+
className: "absolute right-3 top-1/2 transform -translate-y-1/2 text-[#173657] dark:text-[#d7e1ef] pointer-events-none"
|
|
375
375
|
}
|
|
376
376
|
)
|
|
377
377
|
] }),
|
|
@@ -624,13 +624,13 @@ var Dropdown = ({
|
|
|
624
624
|
className
|
|
625
625
|
),
|
|
626
626
|
children: [
|
|
627
|
-
/* @__PURE__ */ jsxRuntime.jsx("span", { className: selectedOption ? "text-[#
|
|
627
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { className: selectedOption ? "text-[#173657] dark:text-[#d7e1ef]" : cn("text-[#173657]/60 dark:text-[#d7e1ef]/70", variant !== "filled" && "dark:text-[#d7e1ef]"), children: selectedOption ? selectedOption.label : placeholder }),
|
|
628
628
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
629
629
|
react.CaretDownIcon,
|
|
630
630
|
{
|
|
631
631
|
size: 16,
|
|
632
632
|
className: cn(
|
|
633
|
-
"text-[#
|
|
633
|
+
"text-[#173657] transition-transform duration-200 dark:text-[#d7e1ef]",
|
|
634
634
|
isOpen && "rotate-180"
|
|
635
635
|
)
|
|
636
636
|
}
|
|
@@ -1662,7 +1662,7 @@ var SearchInput = React22__namespace.default.forwardRef(
|
|
|
1662
1662
|
};
|
|
1663
1663
|
}, [enableKeyboardShortcuts, isActive, handleClear, addShortcutListener, removeShortcutListener]);
|
|
1664
1664
|
const displayPlaceholder = enableKeyboardShortcuts ? `${placeholder} (${formatKeys(getShortcutByCommand("focus_search"))})` : placeholder;
|
|
1665
|
-
const baseClasses = "transition-all duration-200 focus:outline-none rounded-[6px] placeholder:text-[#
|
|
1665
|
+
const baseClasses = "transition-all duration-200 focus:outline-none rounded-[6px] placeholder:text-[#173657] dark:placeholder:text-[#d7e1ef] text-[#173657] dark:text-[#d7e1ef]";
|
|
1666
1666
|
const variantClasses = {
|
|
1667
1667
|
default: "bg-primary border border-surface-1 focus:border-brand-color focus:ring-1 focus:ring-brand-color/50",
|
|
1668
1668
|
filled: "bg-surface-4 border border-surface-4 focus:border-brand-color focus:ring-1 focus:ring-brand-color/50",
|
|
@@ -1698,7 +1698,7 @@ var SearchInput = React22__namespace.default.forwardRef(
|
|
|
1698
1698
|
"div",
|
|
1699
1699
|
{
|
|
1700
1700
|
className: cn(
|
|
1701
|
-
"pointer-events-none absolute top-1/2 z-10 -translate-y-1/2 text-[#
|
|
1701
|
+
"pointer-events-none absolute top-1/2 z-10 -translate-y-1/2 text-[#173657] dark:text-[#d7e1ef]",
|
|
1702
1702
|
iconPositionClasses[size]
|
|
1703
1703
|
),
|
|
1704
1704
|
children: /* @__PURE__ */ jsxRuntime.jsxs(
|
|
@@ -1750,7 +1750,7 @@ var SearchInput = React22__namespace.default.forwardRef(
|
|
|
1750
1750
|
"button",
|
|
1751
1751
|
{
|
|
1752
1752
|
onClick: handleClear,
|
|
1753
|
-
className: "absolute right-3 top-1/2 -translate-y-1/2 text-[#
|
|
1753
|
+
className: "absolute right-3 top-1/2 -translate-y-1/2 text-[#173657] hover:text-[#3f5976] transition-colors dark:text-[#d7e1ef] dark:hover:text-[#d7e1ef]",
|
|
1754
1754
|
"aria-label": "Clear search",
|
|
1755
1755
|
type: "button",
|
|
1756
1756
|
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" }) })
|
|
@@ -1825,9 +1825,9 @@ var FileUpload = ({
|
|
|
1825
1825
|
lg: "h-32 px-6 text-lg"
|
|
1826
1826
|
};
|
|
1827
1827
|
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: "text-[#
|
|
1829
|
-
/* @__PURE__ */ jsxRuntime.jsx(Typography_default, { variant: "p", className: "text-sm text-[#
|
|
1830
|
-
accept && /* @__PURE__ */ jsxRuntime.jsxs(Typography_default, { variant: "p", className: "text-xs text-[#
|
|
1828
|
+
/* @__PURE__ */ jsxRuntime.jsx(react.UploadIcon, { size: 24, className: "text-[#173657] mb-2 dark:text-[#d7e1ef]" }),
|
|
1829
|
+
/* @__PURE__ */ jsxRuntime.jsx(Typography_default, { variant: "p", className: "text-sm text-[#173657] dark:text-[#d7e1ef]", children: dragAndDrop ? "Drag and drop files here" : "Click to upload files" }),
|
|
1830
|
+
accept && /* @__PURE__ */ jsxRuntime.jsxs(Typography_default, { variant: "p", className: "text-xs text-[#173657]/70 dark:text-[#d7e1ef]/70 mt-1", children: [
|
|
1831
1831
|
"Accepted: ",
|
|
1832
1832
|
accept
|
|
1833
1833
|
] })
|
|
@@ -2005,7 +2005,7 @@ var Pagination = ({
|
|
|
2005
2005
|
"flex items-center justify-center font-medium transition-all duration-200 rounded-[6px]",
|
|
2006
2006
|
sizeClasses[size],
|
|
2007
2007
|
variantClasses[variant],
|
|
2008
|
-
isActive ? activeClasses[variant] : "text-[#
|
|
2008
|
+
isActive ? activeClasses[variant] : "text-[#173657] dark:text-[#d7e1ef]",
|
|
2009
2009
|
!isActive && "hover:text-[#3f5976] dark:hover:text-[#d7e1ef]"
|
|
2010
2010
|
),
|
|
2011
2011
|
children: page
|
|
@@ -2022,7 +2022,7 @@ var Pagination = ({
|
|
|
2022
2022
|
"flex items-center justify-center font-medium transition-all duration-200 rounded-[6px]",
|
|
2023
2023
|
sizeClasses[size],
|
|
2024
2024
|
variantClasses[variant],
|
|
2025
|
-
"text-[#
|
|
2025
|
+
"text-[#173657] hover:text-[#3f5976] dark:text-[#d7e1ef] dark:hover:text-[#d7e1ef]"
|
|
2026
2026
|
),
|
|
2027
2027
|
children: "First"
|
|
2028
2028
|
}
|
|
@@ -2035,7 +2035,7 @@ var Pagination = ({
|
|
|
2035
2035
|
"flex items-center justify-center font-medium transition-all duration-200 rounded-[6px]",
|
|
2036
2036
|
sizeClasses[size],
|
|
2037
2037
|
variantClasses[variant],
|
|
2038
|
-
"text-[#
|
|
2038
|
+
"text-[#173657] hover:text-[#3f5976] dark:text-[#d7e1ef] dark:hover:text-[#d7e1ef]"
|
|
2039
2039
|
),
|
|
2040
2040
|
children: /* @__PURE__ */ jsxRuntime.jsx(react.CaretLeftIcon, { size: 16 })
|
|
2041
2041
|
}
|
|
@@ -2049,7 +2049,7 @@ var Pagination = ({
|
|
|
2049
2049
|
"flex items-center justify-center font-medium transition-all duration-200 rounded-[6px]",
|
|
2050
2050
|
sizeClasses[size],
|
|
2051
2051
|
variantClasses[variant],
|
|
2052
|
-
"text-[#
|
|
2052
|
+
"text-[#173657] hover:text-[#3f5976] dark:text-[#d7e1ef] dark:hover:text-[#d7e1ef]"
|
|
2053
2053
|
),
|
|
2054
2054
|
children: /* @__PURE__ */ jsxRuntime.jsx(react.CaretRightIcon, { size: 16 })
|
|
2055
2055
|
}
|
|
@@ -2062,7 +2062,7 @@ var Pagination = ({
|
|
|
2062
2062
|
"flex items-center justify-center font-medium transition-all duration-200 rounded-[6px]",
|
|
2063
2063
|
sizeClasses[size],
|
|
2064
2064
|
variantClasses[variant],
|
|
2065
|
-
"text-[#
|
|
2065
|
+
"text-[#173657] hover:text-[#3f5976] dark:text-[#d7e1ef] dark:hover:text-[#d7e1ef]"
|
|
2066
2066
|
),
|
|
2067
2067
|
children: "Last"
|
|
2068
2068
|
}
|
|
@@ -3133,13 +3133,13 @@ var Table = React22__namespace.forwardRef(({ className, ...props }, ref) => /* @
|
|
|
3133
3133
|
}
|
|
3134
3134
|
) }));
|
|
3135
3135
|
Table.displayName = "Table";
|
|
3136
|
-
var TableHeader = React22__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx("thead", { ref, className: cn("[&_tr]:border-b text-[#
|
|
3136
|
+
var TableHeader = React22__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx("thead", { ref, className: cn("[&_tr]:border-b text-[#173657] dark:text-[#d7e1ef] bg-surface-2", className), ...props }));
|
|
3137
3137
|
TableHeader.displayName = "TableHeader";
|
|
3138
3138
|
var TableBody = React22__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
3139
3139
|
"tbody",
|
|
3140
3140
|
{
|
|
3141
3141
|
ref,
|
|
3142
|
-
className: cn("[&_tr:last-child]:border-0 text-[#
|
|
3142
|
+
className: cn("[&_tr:last-child]:border-0 text-[#173657]/70 dark:text-[#d7e1ef]", className),
|
|
3143
3143
|
...props
|
|
3144
3144
|
}
|
|
3145
3145
|
));
|