@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 +3 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +3 -3
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -2237,7 +2237,7 @@ const Dropdown = forwardRef(
|
|
|
2237
2237
|
const hasExternalLabel = Boolean(label);
|
|
2238
2238
|
const borderInset = isFocus || isError ? "-1px" : "0px";
|
|
2239
2239
|
const borderRad = isFocus || isError ? "9px" : "8px";
|
|
2240
|
-
const borderColor = isDisabled ? "var(--border-disabled)" : isError ? "var(--
|
|
2240
|
+
const borderColor = isDisabled ? "var(--border-disabled)" : isError ? "var(--border-danger)" : isFocus ? "var(--primary-action)" : "var(--border-default)";
|
|
2241
2241
|
const showBelow = isError || Boolean(helperText);
|
|
2242
2242
|
const leftText = isError ? errorMessage : helperText ?? "";
|
|
2243
2243
|
const leftColor = isError ? "var(--destructive)" : "var(--muted-foreground)";
|
|
@@ -2301,7 +2301,7 @@ const Dropdown = forwardRef(
|
|
|
2301
2301
|
className: cn(
|
|
2302
2302
|
"relative flex gap-2 items-center rounded-lg px-3.5",
|
|
2303
2303
|
bg,
|
|
2304
|
-
hasExternalLabel ? "h-[38px]" : isFilled
|
|
2304
|
+
hasExternalLabel ? "h-[38px]" : isFilled ? "py-1.5" : "py-3.5",
|
|
2305
2305
|
!isDisabled && !forceState && "cursor-pointer"
|
|
2306
2306
|
),
|
|
2307
2307
|
children: [
|
|
@@ -3116,7 +3116,7 @@ const Input = forwardRef(function Input2({
|
|
|
3116
3116
|
const unitColor = isDisabled ? "var(--disabled)" : "var(--muted-foreground)";
|
|
3117
3117
|
const borderInset = isFocus || isError ? "-1px" : "0px";
|
|
3118
3118
|
const borderRad = isFocus || isError ? "9px" : "8px";
|
|
3119
|
-
const borderColor = isDisabled ? "var(--border-disabled)" : isError ? "var(--
|
|
3119
|
+
const borderColor = isDisabled ? "var(--border-disabled)" : isError ? "var(--border-danger)" : isFocus ? "var(--primary-action)" : "var(--border-default)";
|
|
3120
3120
|
const hasRight = Boolean(rightIcon) || Boolean(unit);
|
|
3121
3121
|
const padding = isFilled ? "px-[14px] py-[6px]" : hasRight ? "px-[14px] py-[14px]" : "p-[14px]";
|
|
3122
3122
|
const charCount = currentValue.length;
|