| installedValue={updatePayload?.originalPackageInfo.version} | installedValue={updatePayload?.originalPackageInfo.version} | ||||
| placeholder={t(`${i18nPrefix}.selectVersionPlaceholder`) || ''} | placeholder={t(`${i18nPrefix}.selectVersionPlaceholder`) || ''} | ||||
| popupClassName='w-[512px] z-[1001]' | popupClassName='w-[512px] z-[1001]' | ||||
| triggerClassName='text-components-input-text-filled' | |||||
| /> | /> | ||||
| <label | <label | ||||
| htmlFor='package' | htmlFor='package' | ||||
| readonly={!selectedVersion} | readonly={!selectedVersion} | ||||
| placeholder={t(`${i18nPrefix}.selectPackagePlaceholder`) || ''} | placeholder={t(`${i18nPrefix}.selectPackagePlaceholder`) || ''} | ||||
| popupClassName='w-[512px] z-[1001]' | popupClassName='w-[512px] z-[1001]' | ||||
| triggerClassName='text-components-input-text-filled' | |||||
| /> | /> | ||||
| <div className='mt-4 flex items-center justify-end gap-2 self-stretch'> | <div className='mt-4 flex items-center justify-end gap-2 self-stretch'> | ||||
| {!isEdit | {!isEdit |
| <div className='flex'> | <div className='flex'> | ||||
| { | { | ||||
| type !== 'number' ? <textarea | type !== 'number' ? <textarea | ||||
| className='system-sm-regular placeholder:system-sm-regular block h-20 w-full resize-none appearance-none rounded-lg border border-transparent bg-components-input-bg-normal p-2 caret-primary-600 outline-none placeholder:text-components-input-text-placeholder hover:border-components-input-border-hover hover:bg-components-input-bg-hover focus:border-components-input-border-active focus:bg-components-input-bg-active focus:shadow-xs' | |||||
| className='system-sm-regular placeholder:system-sm-regular block h-20 w-full resize-none appearance-none rounded-lg border border-transparent bg-components-input-bg-normal p-2 text-components-input-text-filled caret-primary-600 outline-none placeholder:text-components-input-text-placeholder hover:border-components-input-border-hover hover:bg-components-input-bg-hover focus:border-components-input-border-active focus:bg-components-input-bg-active focus:shadow-xs' | |||||
| value={value} | value={value} | ||||
| placeholder={t('workflow.env.modal.valuePlaceholder') || ''} | placeholder={t('workflow.env.modal.valuePlaceholder') || ''} | ||||
| onChange={e => setValue(e.target.value)} | onChange={e => setValue(e.target.value)} |