diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index df22be9..07a1200 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -11,7 +11,7 @@ jobs: runs-on: ${{ matrix.os }} strategy: matrix: - node: ['14.x', '16.x'] #'14.x', + node: ['16.x'] #'14.x', #os: [ubuntu-latest, windows-latest, macOS-latest] os: [ubuntu-latest] diff --git a/src/lib/components/Form/AppFormItem.tsx b/src/lib/components/Form/AppFormItem.tsx index c5b9cb8..094812d 100644 --- a/src/lib/components/Form/AppFormItem.tsx +++ b/src/lib/components/Form/AppFormItem.tsx @@ -33,14 +33,15 @@ function FormItem({ `relative mb-4 last:mb-0 overflow-visible rounded-lg transition-all [&_+_.item-description]:-mt-3`, error && focused && - `contrast:ring-gray-800 dark:contrast:ring-amber-800 ring-1 contrast:ring-2 ring-primary-400`, + `contrast:ring-gray-800 dark:contrast:ring-amber-800 ring-2 contrast:ring-2 ring-primary-400`, error && !focused && - 'contrast:ring-red-500 dark:contrast:ring-red-300 ring-1 contrast:ring ring-red-400 dark:ring-red-500', + 'contrast:ring-red-500 dark:contrast:ring-red-300 ring-2 contrast:ring ring-red-400 dark:ring-red-500', !error && '', !error && focused && - 'contrast:ring-primary-400 dark:contrast:ring-primary-200 ring-1 contrast:ring-2 contrast:ring-offset-1 ring-primary-400', + 'contrast:ring-primary-400 dark:contrast:ring-primary-200 ring-2 contrast:ring-2 contrast:ring-offset-1 ring-primary-400', + 'focus-within:ring-2 focus-within:ring-primary-400', props.className && props.className )} > diff --git a/src/lib/components/Form/AppSelect.tsx b/src/lib/components/Form/AppSelect.tsx index e22aaec..4a671a1 100644 --- a/src/lib/components/Form/AppSelect.tsx +++ b/src/lib/components/Form/AppSelect.tsx @@ -224,7 +224,7 @@ const AppSelect: SelectComponent = React.forwardRef( multiple && value && value?.length > 1 && - 'border-t border-t-gray-200 dark:border-t-gray-700', + 'border-t border-t-gray-200 dark:border-t-gray-700 focus-visible:bg-gray-100/50 dark:focus-visible:bg-gray-700 focus-visible:rounded-b-lg', buttonClassName )} onBlur={() => { diff --git a/src/lib/components/Modal/index.tsx b/src/lib/components/Modal/index.tsx index b950792..5aff2b9 100644 --- a/src/lib/components/Modal/index.tsx +++ b/src/lib/components/Modal/index.tsx @@ -8,15 +8,19 @@ import { ModalProps, PresentModalProps, ModalProvider, -} from "./useModal"; + ModalTitle, + ModalCloseButton, +} from './useModal'; export const Dialog = Object.assign(ModalContainer, { - Title: ModalHeader, + Title: ModalTitle, + Header: ModalHeader, Description: ModalDescription, Footer: ModalFooter, Body: ModalBody, + CloseButton: ModalCloseButton, }); -Dialog.displayName = "Dialog"; +Dialog.displayName = 'Dialog'; export { useModal, ModalProvider, ModalProps, PresentModalProps }; diff --git a/src/lib/components/Modal/useModal.tsx b/src/lib/components/Modal/useModal.tsx index 07a4a7f..58487ac 100644 --- a/src/lib/components/Modal/useModal.tsx +++ b/src/lib/components/Modal/useModal.tsx @@ -13,6 +13,8 @@ import React, { import clsxm from '../../helpers/clsxm'; import { ToastProvider } from '../Toast/useToast'; import { useTheme } from '../FluidUI/ThemeContext'; +import { Button } from '../Button'; +import { XMarkIcon } from '@heroicons/react/24/outline'; export type PresentModalProps
= P & {
/**
@@ -229,11 +231,11 @@ export const useModal = (
return [presentModal as any, dismiss];
};
-export const ModalHeader = ({ className = '', children }) => (
+export const ModalTitle = ({ className = '', children }) => (