-
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.
task/TUP-272 - core components fixup (#7)
* feat(core-components): copy & polish from cepv2 These comp…s: - were copied from cepv2 - were made more modular - have react-based dependencies Not cepv2 comp…s were copied, because some are not easy to make modular. Comp…s were copied May 4, 2022. Some have since changed in CEPv2, e.g.: - Button - Paginator - (maybe) Message * feat(comp…s): cepv2 update but w/ new styles paths Source: TACC/Core-Portal#639 * feat(comp…s): 2nd cepv2 update (no path updates) * feat(comp…s): cepv2 update: button tests, unmerged Source: TACC/Core-Portal#640 * fix(comp…s): fix core-styles paths (libs → lib) * feat(comp…s): update all paths to core-styles src Some of these may be able to use dist... I haven't checked yet. * feat(comp…s): fix paths that can use styles dist One of the paths is still src/lib/_imports. CMS has this problem often. To use src/lib/_imports instead of dist, see TUP-274. * fix(styles): all src/lib imports to use rel. paths Avoid users needing resolution paths specific to core-styles hierarchy. * fix(styles): src/lib rel. paths need no _imports/ Hotfix previous commit: aab21ba "fix(styles): all src/lib imports to use rel. paths" * fix(tup-ui): load CSS from correct path * Convert Button and dependencies to TS * Add reactstrap global * Replace temporary Message component to exports * Use Button from core-components in tup-ui * Added babel-plugin-postcss for core-components * Formatting * linting * Formatting * Task/tup 272 core components vite (#8) * Vite library build for core-components * Icon allows react node children * Add testing-library/react * Fix tests * Fix test * Formatting * vite output directory * clean tup-ui on build Co-authored-by: Wesley Bomar <wbomar@tacc.utexas.edu>
- Loading branch information
1 parent
1f6a0ce
commit fb99d12
Showing
96 changed files
with
3,638 additions
and
78 deletions.
There are no files selected for viewing
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 |
---|---|---|
|
@@ -3,8 +3,7 @@ | |
[ | ||
"@nrwl/react/babel", | ||
{ | ||
"runtime": "automatic", | ||
"useBuiltIns": "usage" | ||
"runtime": "automatic" | ||
} | ||
] | ||
], | ||
|
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,16 @@ | ||
# This file is used by: | ||
# 1. autoprefixer to adjust CSS to support the below specified browsers | ||
# 2. babel preset-env to adjust included polyfills | ||
# | ||
# For additional information regarding the format and rule options, please see: | ||
# https://github.com/browserslist/browserslist#queries | ||
# | ||
# If you need to support different browsers in production, you may tweak the list below. | ||
|
||
last 1 Chrome version | ||
last 1 Firefox version | ||
last 2 Edge major versions | ||
last 2 Safari major version | ||
last 2 iOS major versions | ||
Firefox ESR | ||
not IE 9-11 # For IE 9-11 support, remove 'not'. |
This file was deleted.
Oops, something went wrong.
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,4 +1,14 @@ | ||
{ | ||
"name": "@tacc/core-components", | ||
"version": "0.0.1" | ||
"files": [ | ||
"dist" | ||
], | ||
"main": "./dist/core-components.umd.js", | ||
"module": "./dist/core-components.es.js", | ||
"exports": { | ||
".": { | ||
"import": "./dist/core-components.umd.js", | ||
"require": "./dist/core-components.umd.js" | ||
} | ||
} | ||
} |
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 +1,4 @@ | ||
export { default as Button } from './lib/Button'; | ||
export { default as Icon } from './lib/Icon'; | ||
export { default as LoadingSpinner } from './lib/LoadingSpinner'; | ||
export { default as Message } from './lib/core-components'; |
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,57 @@ | ||
.root { | ||
composes: c-button from '@tacc/core-styles/dist/components/c-button.css'; | ||
} | ||
|
||
.primary { | ||
composes: c-button--primary from '@tacc/core-styles/dist/components/c-button.css'; | ||
} | ||
.secondary { | ||
composes: c-button--secondary from '@tacc/core-styles/dist/components/c-button.css'; | ||
} | ||
.tertiary { | ||
composes: c-button--tertiary from '@tacc/core-styles/dist/components/c-button.css'; | ||
} | ||
.active { | ||
composes: c-button--is-active from '@tacc/core-styles/dist/components/c-button.css'; | ||
} | ||
|
||
.size-small { | ||
composes: c-button--size-small from '@tacc/core-styles/dist/components/c-button.css'; | ||
} | ||
.width-short { | ||
composes: c-button--width-short from '@tacc/core-styles/dist/components/c-button.css'; | ||
} | ||
.width-medium { | ||
composes: c-button--width-medium from '@tacc/core-styles/dist/components/c-button.css'; | ||
} | ||
.width-long { | ||
composes: c-button--width-long from '@tacc/core-styles/dist/components/c-button.css'; | ||
} | ||
|
||
.as-link { | ||
composes: c-button--as-link from '@tacc/core-styles/dist/components/c-button.css'; | ||
} | ||
|
||
.icon--before { | ||
composes: c-button__icon--before from '@tacc/core-styles/dist/components/c-button.css'; | ||
} | ||
.icon--after { | ||
composes: c-button__icon--after from '@tacc/core-styles/dist/components/c-button.css'; | ||
} | ||
|
||
.loading { | ||
composes: c-button--is-busy from '@tacc/core-styles/dist/components/c-button.css'; | ||
} | ||
.root { | ||
position: relative; | ||
} | ||
.root .loading-over-button { | ||
position: absolute; | ||
top: 50%; | ||
left: 50%; | ||
transform: translate(-50%, -50%); | ||
} | ||
|
||
.text { | ||
composes: c-button__text from '@tacc/core-styles/dist/components/c-button.css'; | ||
} |
Oops, something went wrong.