@sarunyu/system-one 4.0.0 → 4.0.1

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
@@ -2256,7 +2256,7 @@ const Dropdown = React.forwardRef(
2256
2256
  const hasExternalLabel = Boolean(label);
2257
2257
  const borderInset = isFocus || isError ? "-1px" : "0px";
2258
2258
  const borderRad = isFocus || isError ? "9px" : "8px";
2259
- const borderColor = isDisabled ? "var(--border-disabled)" : isError ? "var(--destructive)" : isFocus ? "var(--primary-action)" : "var(--border)";
2259
+ const borderColor = isDisabled ? "var(--border-disabled)" : isError ? "var(--border-danger)" : isFocus ? "var(--primary-action)" : "var(--border-default)";
2260
2260
  const showBelow = isError || Boolean(helperText);
2261
2261
  const leftText = isError ? errorMessage : helperText ?? "";
2262
2262
  const leftColor = isError ? "var(--destructive)" : "var(--muted-foreground)";
@@ -2320,7 +2320,7 @@ const Dropdown = React.forwardRef(
2320
2320
  className: cn(
2321
2321
  "relative flex gap-2 items-center rounded-lg px-3.5",
2322
2322
  bg,
2323
- hasExternalLabel ? "h-[38px]" : isFilled && !open ? "py-1.5" : "p-3.5",
2323
+ hasExternalLabel ? "h-[38px]" : isFilled ? "py-1.5" : "py-3.5",
2324
2324
  !isDisabled && !forceState && "cursor-pointer"
2325
2325
  ),
2326
2326
  children: [
@@ -3135,7 +3135,7 @@ const Input = React.forwardRef(function Input2({
3135
3135
  const unitColor = isDisabled ? "var(--disabled)" : "var(--muted-foreground)";
3136
3136
  const borderInset = isFocus || isError ? "-1px" : "0px";
3137
3137
  const borderRad = isFocus || isError ? "9px" : "8px";
3138
- const borderColor = isDisabled ? "var(--border-disabled)" : isError ? "var(--destructive)" : isFocus ? "var(--primary-action)" : "var(--border)";
3138
+ const borderColor = isDisabled ? "var(--border-disabled)" : isError ? "var(--border-danger)" : isFocus ? "var(--primary-action)" : "var(--border-default)";
3139
3139
  const hasRight = Boolean(rightIcon) || Boolean(unit);
3140
3140
  const padding = isFilled ? "px-[14px] py-[6px]" : hasRight ? "px-[14px] py-[14px]" : "p-[14px]";
3141
3141
  const charCount = currentValue.length;