* 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>
* run panel gen code
* add the default style
* add tthe styles for the panel
* create context of bsStyle
* add panel heading
* add panel title
* add panel body
* create the story for the panel
* typo hiding the border
* border doesn't work for some reason
* only border-3 works in tailwind
* change for border-1 for better visual indication
* fix: bsStyle not applying to the panel
* add html props to the elements
* remove the info colors for our info colors
* fix heading style
* add Panel test
* use to have Class instead
* fix type
* component disregarding default attributes?
* remove duplication in the test
* use compound components
* clean the old logic for the bsStyle
* clean the exports
* add heading and bsstyle control
* fix the classes
* check for title body render
* remove extra types
---------
Co-authored-by: Ahmad Abdolsaheb <ahmad.abdolsaheb@gmail.com>
* refactor: explicit types for validate
* refactor: explicit return types for ui-components
* refactor: use exec instead of match
* refactor: add lots more boundary types
* refactor: more eslint warnings
* refactor: more explicit exports
* refactor: more explicit types
* refactor: even more explicit types
* fix: relax type contrainsts for superblock-order
* refactor: final boundaries
* refactor: avoid using 'object' type
* fix: use named import for captureException
This uses TypeScript (which works) instead of import/namespace
(which doesn't) to check if captureException exists in sentry/gatsby
(it does)
* feat: add type to warn miss usage of attributes in formControl
Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>
* refactor the value type
Co-authored-by: sembauke <semboot699@gmail.com>
* add condition type for readyonly and onchange types
* warn when using readonly and onchange props together
Co-authored-by: Ahmad Abdolsaheb <ahmad.abdolsaheb@gmail.com>
* allow value to be undefined
* Make read-only undefined
Co-authored-by: Ahmad Abdolsaheb <ahmad.abdolsaheb@gmail.com>
---------
Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>
Co-authored-by: sembauke <semboot699@gmail.com>
Co-authored-by: Ahmad Abdolsaheb <ahmad.abdolsaheb@gmail.com>
* add active style
* add disable state
* add support for full-width
* add custom focus outline
* feat(ui-components): add support for link to Button component
* Add onClick action
* center content
* 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
* feat: remove eslint-plugin-prettier for prettier
This removes the annoying lint warnings when all that needs to change is
formatting
* fix: use .js lint-staged config to ignore properly
* fix: lint everything if a lot of files are changed
It's faster than making lots of individual linter calls
* chore: apply prettier
* fix: ignore code in curriculum-file-structure
* Add TS configs and improve dir structure
* Add TS configs and improve dir structure
* Fix components exports from index
* chore: prettier
* Add tsconfig and then fix the linter warnings
* Add @babel/preset-typescript
* Fix eslint rule and update btn component to fix storybook
* Fix TS and Jest configs
Converted all remaining files to TS as well
* Remove TS ignored rules and fixed some TS & jest stuff
* Revert to old directory structure
* Use absolute versions in package.json
* enable ts strict to infer types
Co-authored-by: Hamza Waleed <hamza.waleed@arbisoft.com>