freeCodeCamp/tools/ui-components
Moshe 21e5470220
feat(ui-tools): add dropDown component (#47043)
* Create a drop down menu

Co-authored-by: ahmad abdolsaheb <ahmad.abdolsaheb@gmail.com>
Co-authored-by: moshe vilner <shootermv@gmail.com>

hopefully sort the tests

hopefully sort the test this time

this time? I hope

test compound component

I give up

This reverts commit d88c6783cccf811c3c5dced0ab980adff0172669.

headless doesn't pass onclick to its buttons children

add the logical statment back

revert the removing the ability to click

sort the tests

fix a typo

* sort the tests

* rename to menu item

* let dropdown trigger accept children

* include dropdown and menu items in the exports

* polish the logic around setting the dropup style

* add tests

* fix: typo DropDown to Dropdown

* sort the styles

* sort the type and add bsStyle to dropdownToggle

* fix: types in button and menu items

* align text to center

* remove the bsstyle and block logic from dropdown

Co-authored-by: ahmad abdolsaheb <ahmad.abdolsaheb@gmail.com>

* add w-full to sort default button not taking all width

* move the styling dependecy away from dev

Co-authored-by: ahmad abdolsaheb <ahmad.abdolsaheb@gmail.com>

* stop the mutation

Co-authored-by: sembauke <semboot699@gmail.com>

* remove the extra story

---------

Co-authored-by: Sboonny <muhammedelruby@gmail.com>
Co-authored-by: Sboonny <muhammed@freecodecamp.org>
Co-authored-by: ahmad abdolsaheb <ahmad.abdolsaheb@gmail.com>
Co-authored-by: sembauke <semboot699@gmail.com>
2023-04-24 10:05:25 +02:00
..
.storybook fix(ui-components): correct the setup of tailwind default styles (#45369) 2022-03-15 15:20:57 +03:00
src feat(ui-tools): add dropDown component (#47043) 2023-04-24 10:05:25 +02:00
utils refactor: fix hidden eslint errors (#49365) 2023-02-13 07:13:50 -08:00
.babelrc.js feat(tools): remove eslint-plugin-prettier for prettier (#42438) 2021-10-06 21:02:21 +05:30
package.json feat(ui-tools): add dropDown component (#47043) 2023-04-24 10:05:25 +02:00
postcss.config.js feat(tools): setup TailwindCSS in ui-components (#42153) 2021-05-17 12:43:27 +05:30
rollup.config.js feat(tools): adjust @freecodecamp/ui config for linking/publishing (#50098) 2023-04-20 18:35:07 +03:00
tailwind.config.js fix(ui-components): add an & prefix to custom variant (#46608) 2022-06-22 10:12:39 +02:00
tsconfig.json feat: migrate to pnpm for better workspace DX (#49293) 2023-03-02 18:17:44 +00:00