Software: Apache/2.4.41 (Ubuntu). PHP/8.0.30 uname -a: Linux apirnd 5.4.0-204-generic #224-Ubuntu SMP Thu Dec 5 13:38:28 UTC 2024 x86_64 uid=33(www-data) gid=33(www-data) groups=33(www-data) Safe-mode: OFF (not secure) /var/www/html/wincloud_gateway/node_modules/react-select/src/components/ drwxr-xr-x | |
| Viewing file: Select action/file-type: // @flow
/** @jsx jsx */
import { type ElementRef } from 'react';
import { jsx } from '@emotion/react';
import AutosizeInput from 'react-input-autosize';
import type { CommonProps } from '../types';
import { cleanCommonProps } from '../utils';
export type InputProps = CommonProps & {
/** Reference to the internal element */
innerRef: (ElementRef<*>) => void,
/** Set whether the input should be visible. Does not affect input size. */
isHidden: boolean,
/** Whether the input is disabled */
isDisabled?: boolean,
/** The ID of the form that the input belongs to */
form?: string,
};
export const inputCSS = ({
isDisabled,
theme: { spacing, colors },
}: InputProps) => ({
margin: spacing.baseUnit / 2,
paddingBottom: spacing.baseUnit / 2,
paddingTop: spacing.baseUnit / 2,
visibility: isDisabled ? 'hidden' : 'visible',
color: colors.neutral80,
});
const inputStyle = isHidden => ({
label: 'input',
background: 0,
border: 0,
fontSize: 'inherit',
opacity: isHidden ? 0 : 1,
outline: 0,
padding: 0,
color: 'inherit',
});
const Input = (props: InputProps) => {
const { className, cx, getStyles } = props;
const { innerRef, isDisabled, isHidden, ...innerProps } = cleanCommonProps(
props
);
return (
<div css={getStyles('input', props)}>
<AutosizeInput
className={cx({ input: true }, className)}
inputRef={innerRef}
inputStyle={inputStyle(isHidden)}
disabled={isDisabled}
{...innerProps}
/>
</div>
);
};
export default Input;
|
:: Command execute :: | |
--[ c99shell v. 2.5 [PHP 8 Update] [24.05.2025] | Generation time: 0.005 ]-- |