freeCodeCamp/tools/ui-components
Maciek Sitkowski 58701d511b
feat(tools): add Alert component (#43835)
* feat(alert): initialize component

* feat(alert): add children prop

* feat(alert): add className prop

* feat(alert): add variant prop

* feat(alert): add close button and handle onDismiss click

* feat(alert): place all alert related css in alert.css

* feat: define state color variables and use them instead of bootstrap ones

* chore: remove unused classes

* feat: replace base alert styles with tailwind classes

* feat: extract close button to separate component

* chore: remove unused css

* test: add close button tests

* refactor: use more tailwind-like approach for adding colors to theme

* refactor: use more expressive prop name for close button label

* refactor: use semantic color names

* feat: add stories with/without close button

* chore: add missing variants
2021-11-27 12:28:40 +03:00
..
.storybook feat(storybook): add theme toggle (#44234) 2021-11-25 16:32:52 +03:00
src feat(tools): add Alert component (#43835) 2021-11-27 12:28:40 +03:00
.babelrc.js feat(tools): remove eslint-plugin-prettier for prettier (#42438) 2021-10-06 21:02:21 +05:30
package-lock.json chore(deps): update dependency postcss to v8.4.3 2021-11-26 22:52:51 +00:00
package.json chore(deps): update dependency postcss to v8.4.3 2021-11-26 22:52:51 +00:00
postcss.config.js feat(tools): setup TailwindCSS in ui-components (#42153) 2021-05-17 12:43:27 +05:30
rollup.config.js fix: order imports and remove circular dependencies (#41824) 2021-08-02 08:39:40 -05:00
tailwind.config.js feat(tools): add Alert component (#43835) 2021-11-27 12:28:40 +03:00
tsconfig.json chore: use constants for superblocks (#43886) 2021-11-19 19:49:40 +05:30