Files
freeCodeCamp/tools/ui-components/package.json
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

80 lines
2.6 KiB
JSON

{
"name": "@freecodecamp/ui",
"version": "0.0.1",
"author": "freeCodeCamp <team@freecodecamp.org>",
"license": "BSD-3-Clause",
"description": "The freeCodeCamp.org open-source UI components",
"main": "dist/bundle.js",
"module": "dist/bundle.es.js",
"style": "dist/base.css",
"files": [
"dist"
],
"private": false,
"engines": {
"node": ">=16",
"pnpm": "8"
},
"repository": {
"type": "git",
"url": "git+https://github.com/freeCodeCamp/freeCodeCamp.git"
},
"bugs": {
"url": "https://github.com/freeCodeCamp/freeCodeCamp/issues"
},
"homepage": "https://github.com/freeCodeCamp/freeCodeCamp#readme",
"dependencies": {
"@fortawesome/free-solid-svg-icons": "6.4.0",
"@fortawesome/react-fontawesome": "0.2.0",
"@headlessui/react": "1.7.14",
"react": "16.14.0",
"react-dom": "16.14.0",
"typescript": "4.9.5"
},
"devDependencies": {
"@babel/core": "7.21.4",
"@babel/preset-env": "7.21.4",
"@babel/preset-typescript": "7.21.4",
"@rollup/plugin-babel": "5.3.1",
"@rollup/plugin-commonjs": "19.0.2",
"@rollup/plugin-node-resolve": "13.3.0",
"@rollup/plugin-typescript": "8.5.0",
"@storybook/addon-a11y": "6.5.16",
"@storybook/addon-actions": "6.5.16",
"@storybook/addon-docs": "6.5.16",
"@storybook/addon-essentials": "6.5.16",
"@storybook/addon-links": "6.5.16",
"@storybook/addon-postcss": "2.0.0",
"@storybook/builder-webpack5": "6.5.16",
"@storybook/manager-webpack5": "6.5.16",
"@storybook/react": "6.5.16",
"@testing-library/jest-dom": "5.16.5",
"@testing-library/react": "12.1.5",
"@types/jest": "29.5.1",
"@types/react": "16.14.40",
"@types/react-dom": "^16.9.17",
"@types/testing-library__jest-dom": "^5",
"autoprefixer": "10.4.14",
"babel-loader": "8.3.0",
"babel-plugin-transform-react-remove-prop-types": "0.4.24",
"cross-env": "7.0.3",
"postcss": "8.4.23",
"postcss-import": "14.1.0",
"rollup": "2.79.1",
"rollup-plugin-postcss": "4.0.2",
"rollup-plugin-terser": "7.0.2",
"tailwindcss": "3.3.1"
},
"scripts": {
"storybook": "start-storybook -p 6006",
"storybook:theming": "pnpm run storybook --no-manager-cache",
"build-storybook": "build-storybook",
"build": "pnpm run build:css && pnpm run build:js",
"build:js": "cross-env NODE_ENV=production rollup -c",
"build:css": "pnpm dlx tailwindcss -i ./src/base.css -o ./dist/base.css --minify",
"dev": "cross-env NODE_ENV=development rollup -c -w",
"clean": "rm -rf dist/*",
"gen-component": "ts-node ./utils/gen-component-script"
}
}