diff --git a/resources/scripts/components/admin/users/UsersContainerV2.tsx b/resources/scripts/components/admin/users/UsersContainerV2.tsx index d0b1118af..21c85ae4d 100644 --- a/resources/scripts/components/admin/users/UsersContainerV2.tsx +++ b/resources/scripts/components/admin/users/UsersContainerV2.tsx @@ -14,7 +14,7 @@ import { } from '@heroicons/react/solid'; import { Button } from '@/components/elements/button/index'; import { Dialog } from '@/components/elements/dialog'; -import { Checkbox } from '@/components/elements/inputs'; +import { Checkbox, InputField } from '@/components/elements/inputs'; const UsersContainerV2 = () => { const [ users, setUsers ] = useState([]); @@ -44,13 +44,21 @@ const UsersContainerV2 = () => { This account will be permanently deleted. setVisible(false)} - >Cancel + > + Cancel - Delete + Delete +
+
+ +
+
+ +
+
diff --git a/resources/scripts/components/elements/inputs/InputField.tsx b/resources/scripts/components/elements/inputs/InputField.tsx new file mode 100644 index 000000000..fe90679f7 --- /dev/null +++ b/resources/scripts/components/elements/inputs/InputField.tsx @@ -0,0 +1,11 @@ +import React, { forwardRef } from 'react'; +import classNames from 'classnames'; +import styles from './inputs.module.css'; + +export default forwardRef>(({ className, ...props }, ref) => ( + +)); diff --git a/resources/scripts/components/elements/inputs/index.ts b/resources/scripts/components/elements/inputs/index.ts index 11e194edf..cd6d8964f 100644 --- a/resources/scripts/components/elements/inputs/index.ts +++ b/resources/scripts/components/elements/inputs/index.ts @@ -1,2 +1,3 @@ export { default as Checkbox } from './Checkbox'; +export { default as InputField } from './InputField'; export { default as styles } from './inputs.module.css'; diff --git a/resources/scripts/components/elements/inputs/inputs.module.css b/resources/scripts/components/elements/inputs/inputs.module.css index 7808a8343..c32a23fb8 100644 --- a/resources/scripts/components/elements/inputs/inputs.module.css +++ b/resources/scripts/components/elements/inputs/inputs.module.css @@ -5,3 +5,12 @@ @apply ring-2 ring-primary-500 ring-offset-2 ring-offset-neutral-700; } } + +.text_input { + @apply transition-all duration-75; + @apply bg-neutral-800 border-neutral-600 rounded px-4 py-2 outline-none; + + &:focus { + @apply border-blue-600 ring-2 ring-blue-500; + } +}