ssovee-os-web-ui 0.1.52 → 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 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 placeholder:text-neutral-300 rounded-[6px]";
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
- default: "bg-primary text-neutral-500 border border-surface-1 placeholder:text-neutral-300 dark:placeholder:text-[#d7e1ef] focus:border-brand-color focus:ring-1 focus:ring-brand-color/50",
189
- filled: "bg-surface-4 text-neutral-500 border border-surface-4 focus:border-brand-color focus:ring-1 focus:ring-brand-color/50",
190
- outline: "bg-transparent text-neutral-500 border border-surface-1 placeholder:text-neutral-300 dark:placeholder:text-[#d7e1ef] focus:border-brand-color focus:ring-1 focus:ring-brand-color/50"
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"
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-neutral-400 dark:text-[#d7e1ef]", children: leftIcon }),
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-neutral-400 dark:text-[#d7e1ef]", children: rightIcon }),
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-neutral-300 transition-colors hover:text-neutral-400 dark:text-[#d7e1ef] dark:hover:text-[#d7e1ef] disabled:cursor-not-allowed disabled:opacity-50",
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,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 placeholder:text-neutral-300 rounded-[6px]";
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
- default: "bg-primary text-neutral-500 border border-surface-1 placeholder:text-neutral-300 dark:placeholder:text-[#d7e1ef] focus:border-brand-color focus:ring-1 focus:ring-brand-color/50",
263
- filled: "bg-surface-4 text-neutral-500 border border-surface-4 focus:border-brand-color focus:ring-1 focus:ring-brand-color/50",
264
- outline: "bg-transparent text-neutral-500 border border-surface-1 placeholder:text-neutral-300 dark:placeholder:text-[#d7e1ef] focus:border-brand-color focus:ring-1 focus:ring-brand-color/50"
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"
265
265
  };
266
266
  const sizeClasses = {
267
267
  sm: "px-2 py-1 text-sm",
@@ -343,9 +343,7 @@ var Select = React22__namespace.default.forwardRef(
343
343
  className: cn(
344
344
  baseClasses,
345
345
  variantClasses[variant],
346
- isPlaceholderSelected && "text-neutral-300",
347
- isPlaceholderSelected && variant !== "filled" && "dark:text-[#d7e1ef]",
348
- !isPlaceholderSelected && "text-neutral-500",
346
+ isPlaceholderSelected ? "text-[#173657]/60 dark:text-[#d7e1ef]/70" : "text-[#173657] dark:text-[#d7e1ef]",
349
347
  sizeClasses[size],
350
348
  widthClasses,
351
349
  "pr-10",
@@ -373,10 +371,7 @@ var Select = React22__namespace.default.forwardRef(
373
371
  react.CaretDownIcon,
374
372
  {
375
373
  size: 16,
376
- className: cn(
377
- "absolute right-3 top-1/2 transform -translate-y-1/2 text-neutral-400 pointer-events-none",
378
- variant !== "filled" && "dark:text-[#d7e1ef]"
379
- )
374
+ className: "absolute right-3 top-1/2 transform -translate-y-1/2 text-[#173657] dark:text-[#d7e1ef] pointer-events-none"
380
375
  }
381
376
  )
382
377
  ] }),
@@ -629,14 +624,13 @@ var Dropdown = ({
629
624
  className
630
625
  ),
631
626
  children: [
632
- /* @__PURE__ */ jsxRuntime.jsx("span", { className: selectedOption ? "text-neutral-500" : cn("text-neutral-300", variant !== "filled" && "dark:text-[#d7e1ef]"), children: selectedOption ? selectedOption.label : placeholder }),
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 }),
633
628
  /* @__PURE__ */ jsxRuntime.jsx(
634
629
  react.CaretDownIcon,
635
630
  {
636
631
  size: 16,
637
632
  className: cn(
638
- "text-neutral-400 transition-transform duration-200",
639
- variant !== "filled" && "dark:text-[#d7e1ef]",
633
+ "text-[#173657] transition-transform duration-200 dark:text-[#d7e1ef]",
640
634
  isOpen && "rotate-180"
641
635
  )
642
636
  }
@@ -1668,11 +1662,11 @@ var SearchInput = React22__namespace.default.forwardRef(
1668
1662
  };
1669
1663
  }, [enableKeyboardShortcuts, isActive, handleClear, addShortcutListener, removeShortcutListener]);
1670
1664
  const displayPlaceholder = enableKeyboardShortcuts ? `${placeholder} (${formatKeys(getShortcutByCommand("focus_search"))})` : placeholder;
1671
- const baseClasses = "transition-all duration-200 focus:outline-none rounded-[6px]";
1665
+ const baseClasses = "transition-all duration-200 focus:outline-none rounded-[6px] placeholder:text-[#173657] dark:placeholder:text-[#d7e1ef] text-[#173657] dark:text-[#d7e1ef]";
1672
1666
  const variantClasses = {
1673
- default: "bg-primary text-neutral-500 border border-surface-1 placeholder:text-neutral-300 dark:placeholder:text-[#d7e1ef] focus:border-brand-color focus:ring-1 focus:ring-brand-color/50",
1674
- filled: "bg-surface-4 text-neutral-500 border border-surface-4 focus:border-brand-color focus:ring-1 focus:ring-brand-color/50",
1675
- outline: "bg-transparent text-neutral-500 border border-surface-1 placeholder:text-neutral-300 dark:placeholder:text-[#d7e1ef] focus:border-brand-color focus:ring-1 focus:ring-brand-color/50"
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"
1676
1670
  };
1677
1671
  const sizeClasses = {
1678
1672
  sm: "h-8 text-sm leading-tight",
@@ -1704,7 +1698,7 @@ var SearchInput = React22__namespace.default.forwardRef(
1704
1698
  "div",
1705
1699
  {
1706
1700
  className: cn(
1707
- "pointer-events-none absolute top-1/2 z-10 -translate-y-1/2 text-neutral-400 dark:text-[#d7e1ef]",
1701
+ "pointer-events-none absolute top-1/2 z-10 -translate-y-1/2 text-[#173657] dark:text-[#d7e1ef]",
1708
1702
  iconPositionClasses[size]
1709
1703
  ),
1710
1704
  children: /* @__PURE__ */ jsxRuntime.jsxs(
@@ -1756,7 +1750,7 @@ var SearchInput = React22__namespace.default.forwardRef(
1756
1750
  "button",
1757
1751
  {
1758
1752
  onClick: handleClear,
1759
- className: "absolute right-3 top-1/2 -translate-y-1/2 text-neutral-400 hover:text-neutral-600 transition-colors dark:text-[#d7e1ef] dark:hover:text-[#d7e1ef]",
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]",
1760
1754
  "aria-label": "Clear search",
1761
1755
  type: "button",
1762
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" }) })
@@ -1830,11 +1824,10 @@ var FileUpload = ({
1830
1824
  md: "h-24 px-4 text-base",
1831
1825
  lg: "h-32 px-6 text-lg"
1832
1826
  };
1833
- const darkPlaceholderTone = variant !== "filled" ? "dark:text-[#d7e1ef]" : "";
1834
1827
  const defaultContent = /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex flex-col items-center justify-center h-full text-center", children: [
1835
- /* @__PURE__ */ jsxRuntime.jsx(react.UploadIcon, { size: 24, className: cn("text-neutral-400 mb-2", darkPlaceholderTone) }),
1836
- /* @__PURE__ */ jsxRuntime.jsx(Typography_default, { variant: "p", className: cn("text-sm text-neutral-400", darkPlaceholderTone), children: dragAndDrop ? "Drag and drop files here" : "Click to upload files" }),
1837
- accept && /* @__PURE__ */ jsxRuntime.jsxs(Typography_default, { variant: "p", className: cn("text-xs text-neutral-300 mt-1", darkPlaceholderTone), children: [
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: [
1838
1831
  "Accepted: ",
1839
1832
  accept
1840
1833
  ] })
@@ -2012,8 +2005,8 @@ var Pagination = ({
2012
2005
  "flex items-center justify-center font-medium transition-all duration-200 rounded-[6px]",
2013
2006
  sizeClasses[size],
2014
2007
  variantClasses[variant],
2015
- isActive ? activeClasses[variant] : "text-neutral-400 dark:text-[#d7e1ef]",
2016
- !isActive && "hover:text-neutral-500 dark:hover:text-[#d7e1ef]"
2008
+ isActive ? activeClasses[variant] : "text-[#173657] dark:text-[#d7e1ef]",
2009
+ !isActive && "hover:text-[#3f5976] dark:hover:text-[#d7e1ef]"
2017
2010
  ),
2018
2011
  children: page
2019
2012
  },
@@ -2029,7 +2022,7 @@ var Pagination = ({
2029
2022
  "flex items-center justify-center font-medium transition-all duration-200 rounded-[6px]",
2030
2023
  sizeClasses[size],
2031
2024
  variantClasses[variant],
2032
- "text-neutral-400 hover:text-neutral-500 dark:text-[#d7e1ef] dark:hover:text-[#d7e1ef]"
2025
+ "text-[#173657] hover:text-[#3f5976] dark:text-[#d7e1ef] dark:hover:text-[#d7e1ef]"
2033
2026
  ),
2034
2027
  children: "First"
2035
2028
  }
@@ -2042,7 +2035,7 @@ var Pagination = ({
2042
2035
  "flex items-center justify-center font-medium transition-all duration-200 rounded-[6px]",
2043
2036
  sizeClasses[size],
2044
2037
  variantClasses[variant],
2045
- "text-neutral-400 hover:text-neutral-500 dark:text-[#d7e1ef] dark:hover:text-[#d7e1ef]"
2038
+ "text-[#173657] hover:text-[#3f5976] dark:text-[#d7e1ef] dark:hover:text-[#d7e1ef]"
2046
2039
  ),
2047
2040
  children: /* @__PURE__ */ jsxRuntime.jsx(react.CaretLeftIcon, { size: 16 })
2048
2041
  }
@@ -2056,7 +2049,7 @@ var Pagination = ({
2056
2049
  "flex items-center justify-center font-medium transition-all duration-200 rounded-[6px]",
2057
2050
  sizeClasses[size],
2058
2051
  variantClasses[variant],
2059
- "text-neutral-400 hover:text-neutral-500 dark:text-[#d7e1ef] dark:hover:text-[#d7e1ef]"
2052
+ "text-[#173657] hover:text-[#3f5976] dark:text-[#d7e1ef] dark:hover:text-[#d7e1ef]"
2060
2053
  ),
2061
2054
  children: /* @__PURE__ */ jsxRuntime.jsx(react.CaretRightIcon, { size: 16 })
2062
2055
  }
@@ -2069,7 +2062,7 @@ var Pagination = ({
2069
2062
  "flex items-center justify-center font-medium transition-all duration-200 rounded-[6px]",
2070
2063
  sizeClasses[size],
2071
2064
  variantClasses[variant],
2072
- "text-neutral-400 hover:text-neutral-500 dark:text-[#d7e1ef] dark:hover:text-[#d7e1ef]"
2065
+ "text-[#173657] hover:text-[#3f5976] dark:text-[#d7e1ef] dark:hover:text-[#d7e1ef]"
2073
2066
  ),
2074
2067
  children: "Last"
2075
2068
  }
@@ -3140,13 +3133,13 @@ var Table = React22__namespace.forwardRef(({ className, ...props }, ref) => /* @
3140
3133
  }
3141
3134
  ) }));
3142
3135
  Table.displayName = "Table";
3143
- var TableHeader = React22__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx("thead", { ref, className: cn("[&_tr]:border-b text-neutral-400 dark:text-[#d7e1ef] bg-surface-2", className), ...props }));
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 }));
3144
3137
  TableHeader.displayName = "TableHeader";
3145
3138
  var TableBody = React22__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
3146
3139
  "tbody",
3147
3140
  {
3148
3141
  ref,
3149
- className: cn("[&_tr:last-child]:border-0 text-neutral-300 dark:text-[#d7e1ef]", className),
3142
+ className: cn("[&_tr:last-child]:border-0 text-[#173657]/70 dark:text-[#d7e1ef]", className),
3150
3143
  ...props
3151
3144
  }
3152
3145
  ));