-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: TUP-700 @tacc/core-components - use, test, fix (#465)
* fix: revert FormikFieldWrapper→FieldWrapperFormik * fix: support .js imports * chore: use index.js when component is .jsx * fix: make FormikCheck useField like other fields * fix: FieldWrapper… TACC-Cloud/Hazmapper form crash TACC-Cloud/hazmapper's only form crashed. If checkbox is removed, then now it doesn't. Expect checkbox fix in next commit. TACC-Cloud/hazmapper#239 * fix: FieldWrapper… TACC-Cloud/Hazmapper checkbox TACC-Cloud/hazmapper's only checkbox field crashed. Now it doesn't. TACC-Cloud/hazmapper#239 * fix: FormikCheck not supporting ID attr * chore: npx nx format:write * fix: FieldWrapper… ID fallback support incomplete * fix: remove unused prop * refactor: use Formik field wrappers as components * fix: FieldWrapper… ID fallback support STILL incomplete * docs: update author, add contributors * Move to peer dependencies (#484) * Move to peer dependencies Also add vite for building as we want to make stand-alone * Make 0.0.3 prelease * Bump postcss and postcss-preset-env to match core styles requirements * Fix pretty issue * Add vite-plugin-lib-inject-css * Make uuid only as a dependeny allow any 8 or 9 version --------- Co-authored-by: Wesley B <[email protected]> --------- Co-authored-by: Nathan Franklin <[email protected]>
- Loading branch information
1 parent
fd993c2
commit bb8571d
Showing
33 changed files
with
5,867 additions
and
3,721 deletions.
There are no files selected for viewing
7 changes: 5 additions & 2 deletions
7
apps/ui-patterns/src/app/UIPatternsComplexWizard/steps/StepOne.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,34 @@ | ||
{ | ||
"name": "@tacc/core-components", | ||
"version": "0.0.2", | ||
"version": "0.0.3-beta.0", | ||
"license": "MIT", | ||
"author": "TACC ACI WMA <[email protected]>", | ||
"author": "TACC ACI WMA <[email protected]>", | ||
"contributors": [ | ||
"TACC COA CMD <[email protected]>" | ||
], | ||
"description": "React component library for TACC applications.", | ||
"main": "dist/index.js", | ||
"types": "dist/index.d.ts", | ||
"files": [ | ||
"dist" | ||
], | ||
"homepage": "https://github.com/TACC/tup-ui/libs/core-components", | ||
"scripts": { | ||
"build": "vite build --outDir dist" | ||
}, | ||
"dependencies": { | ||
"uuid": "^8 || ^9" | ||
}, | ||
"peerDependencies": { | ||
"formik": "^2.2.9", | ||
"react": "18.2.0", | ||
"react-dom": "18.2.0", | ||
"react": "^18.2.0", | ||
"react-dom": "^18.2.0", | ||
"react-dropzone": "^14.2.3", | ||
"react-resize-detector": "^7.1.2", | ||
"react-router-dom": "6.11.2", | ||
"react-router-dom": "^6.11.2", | ||
"react-step-wizard": "^5.3.11", | ||
"react-table": "^7.8.0", | ||
"reactstrap": "^9.1.5", | ||
"uuid": "^8.3.2" | ||
"reactstrap": "^9.1.5" | ||
}, | ||
"devDependencies": { | ||
"@nx/react": "^17.2.8", | ||
|
@@ -30,7 +38,7 @@ | |
"@testing-library/react": "^14.0.0", | ||
"@testing-library/user-event": "^14.5.2", | ||
"@vitejs/plugin-react-swc": "^3.5.0", | ||
"uuid": "^8.3.2", | ||
"vite": "^5.0.11", | ||
"vite-plugin-dts": "^2.3.0", | ||
"vite-plugin-lib-inject-css": "^2.1.1", | ||
"vite-tsconfig-paths": "^4.2.0" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
28 changes: 14 additions & 14 deletions
28
...FormikFieldWrapper/FormikFieldWrapper.tsx → ...FieldWrapperFormik/FieldWrapperFormik.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
36 changes: 36 additions & 0 deletions
36
libs/core-components/src/lib/FieldWrapperFormik/fields/FormikCheck.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
import React from 'react'; | ||
import FieldWrapper from '../FieldWrapperFormik'; | ||
import { FormikInputProps } from '.'; | ||
|
||
const FormikCheck: React.FC<FormikInputProps> = ({ | ||
id, | ||
name, | ||
label, | ||
required, | ||
description, | ||
field, | ||
form, | ||
meta, | ||
...props | ||
}: FormikInputProps) => { | ||
return ( | ||
<FieldWrapper | ||
id={id || field.name} | ||
label={label} | ||
required={required} | ||
description={description} | ||
formik={{ field, form, meta }} | ||
className="has-type-check" | ||
> | ||
<input | ||
{...field} | ||
{...props} | ||
type="checkbox" | ||
checked={field.value} | ||
id={id || field.name} | ||
/> | ||
</FieldWrapper> | ||
); | ||
}; | ||
|
||
export default FormikCheck; |
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.