brandembassy / ui-components
This package's canonical repository appears to be gone and the package has been frozen as a result. Email us for help if needed.
Package info
github.com/BrandEmbassy/ui-components
Language:JavaScript
pkg:composer/brandembassy/ui-components
6.7
2023-10-17 09:15 UTC
Requires
- php: ^7.4 || >=8.1
- beberlei/assert: ^3.0
- laminas/laminas-escaper: ^2.12.0
- marc-mabe/php-enum: ^3.1 || ^4.4
- nette/utils: ^3.0
- psr/http-message: ^1.0
Requires (Dev)
- brandembassy/coding-standard: ^10.0.0-beta
- guzzlehttp/psr7: ^1.4
- mockery/mockery: ^1.5.1
- phpunit/phpunit: ^9.6.6
- roave/security-advisories: dev-latest
This package is auto-updated.
Last update: 2023-11-16 13:17:57 UTC
README
Getting Started - Adding components to your project
React App
your project needs to have redux and video-react dependencies installed
yarn add redux video-react
add module to your project
yarn add https://github.com/BrandEmbassy/components.git
import global to app
import { Global } from 'components';
import chosen component from storybook
https://brand-embassy-components-prod.s3.amazonaws.com/1.0/storybook/index.html
PHP Server-side-rendering App
composer install brandembassy/components
See: src-php/Forms/Table/Ui/TableTest.php for how to use Table Component.
Developing components
yarn install
- Run in console in the root of the repository to install all dependencies
yarn run lib
- create new library for push
Build & run library
yarn run library
- Run in console in the root of the repository to build all dependencies and launch UI library
- Library will open automatically on http://localhost:6006
- CSS & other necessary files will be prepared in
/build/staticfolder
Development
yarn run storybook
- Run in console in the root of the repository to start storybook in development mode
- Storybook can be found (http://localhost:6006)