* Binding drawer fixes * Added missing headless flag for the bindable combobox * Fix for QueryEditor width * Fix svelte transitions in grid new row component breaking routify * Bump version to 2.7.7 * fix REST connector failure to save * Bump version to 2.7.8 * Bump version to 2.7.9 * Unexpected token when export data (#10721) * Tidy ID string for JSON parse * Display error for composite keys * Unit test WIP * directly assign the mock function on the datasource * Unit tests for exportRows ID handling --------- Co-authored-by: Martin McKeaveney <martinmckeaveney@gmail.com> * Return all rows if oneOf value is falsey (#10638) * Bump version to 2.7.10 * Make sure divider fields are left-most (#10627) * Make sure divider fields are left most * Refactor * Bump version to 2.7.11 * Temporarily remove the focus store update as it triggers a full redraw of the component settings * Linting * Removed commented out code * Bump version to 2.7.12 * Bump version to 2.7.13 * Do not show Business tag for Email action (#10867) * Bump version to 2.7.14 * new deploy trigger (#10892) * point the deploys at the new env * Bump version to 2.7.15 --------- Co-authored-by: Dean <deanhannigan@gmail.com> Co-authored-by: Andrew Kingston <andrew@kingston.dev> Co-authored-by: Budibase Staging Release Bot <> Co-authored-by: Martin McKeaveney <martinmckeaveney@gmail.com> Co-authored-by: Martin McKeaveney <martin@budibase.com> Co-authored-by: melohagan <101575380+melohagan@users.noreply.github.com> Co-authored-by: Adria Navarro <adria@budibase.com> |
||
---|---|---|
.. | ||
src | ||
.gitignore | ||
LICENSE | ||
README.md | ||
package.json | ||
rollup.config.js |
README.md
Budibase bbui
A package that handles all common components across the Budibase organisation. You can find the current live version Here.
Install
- Clone
npm install
npm run svench
(Note: yarn won't work!)
Example workflow to create a component
- Create a file:
Headline.svelte
- Create a Svench file:
Headline.svench
- Build component and add variants to the Svench file.
- Once done, re-export the file in
src/index.js
. - Publish, update the package in the main project and profit.
Guidelines
Making components
- Think about re-usability
- Use the css custom properties (variables) that are in the css stylesheet. This makes it easy to tweak things later down the line.
- Opt to forward events (
<button on:click>
for example) rather than using callbacks. - Avoid adding margins to the outermost container of the component.
Using components and the styleguide
- Get familiar with the different props that exist on the component. If something vital is missing, make a PR and add it.
- Take advantage of the css custom properties in the stylesheet and avoid writing hard-coded values.
- Since there is no margin on the components, think about the structure of the DOM and how to achieve correct spacing, etc. This can be done using
css grid
+grid gap
or with a container div where you specify a padding or margin. The best solution depends on the circumstance.
TODO
- Figure out a good documentation situation
- Add testing suite (E2E using Playwright?)
Other
The project uses Svench. It is somewhat akin to Storybook but a lot less bloated and much easier to setup. It also supports HMR for quick development.