Build your own AI office with Univer Office SDK. Bring editing, calculation, collaboration, and file processing into your product for people and AI agents. Built on an extensible open-source core.
TypeScript boardcollaborationdocdocxexceloffce365officepdfpptpptxpresentationsdksheetslidesspreadsheetuniverwordwordprocessorworkspacexlsx
feat(ui): input support dark mode (#5061)
Wenzhao Hue2b425ba21af
diff --git a/packages/design/src/components/input/Input.stories.tsx b/packages/design/src/components/input/Input.stories.tsxindex f93a64648c..a3f7002fd6 100644--- a/packages/design/src/components/input/Input.stories.tsx+++ b/packages/design/src/components/input/Input.stories.tsx@@ -54,6 +54,11 @@ export const InputSize = {export const InputDisabled = {render() {- return <Input disabled />;+ return (+ <>+ <Input disabled />+ <Input value="disabled content" disabled />+ </>+ );},};diff --git a/packages/design/src/components/input/Input.tsx b/packages/design/src/components/input/Input.tsxindex 38f598d8f7..9c1e12aca8 100644--- a/packages/design/src/components/input/Input.tsx+++ b/packages/design/src/components/input/Input.tsx@@ -26,6 +26,7 @@ export const inputVariants = cva(`univer-box-border univer-w-full univer-rounded-md univer-border univer-border-solid univer-border-gray-200univer-bg-white univer-transition-colors univer-duration-200+ dark:univer-bg-gray-700 dark:univer-border-gray-600 dark:univer-text-whitefocus:univer-border-primary-500 focus:univer-outline-none focus:univer-ring-2 focus:univer-ring-primary-500/20placeholder:univer-text-gray-400`,@@ -93,7 +94,7 @@ export const Input = forwardRef<HTMLInputElement, IInputProps>(<divclassName={clsx('univer-relative univer-inline-flex univer-w-full univer-items-center univer-rounded-md',- disabled && 'univer-cursor-not-allowed univer-opacity-50',+ disabled && 'univer-cursor-not-allowed',className)}style={style}@@ -103,7 +104,10 @@ export const Input = forwardRef<HTMLInputElement, IInputProps>(type={type}className={clsx(inputVariants({ size }),- disabled && 'univer-cursor-not-allowed univer-bg-gray-50',+ disabled && `+ univer-cursor-not-allowed univer-text-gray-400 univer-bg-gray-50+ dark:univer-text-gray-500+ `,allowClear && 'univer-pr-8',inputClass)}