Package Exports
- geoiq-frontend-ui-kit
- geoiq-frontend-ui-kit/dist/index.es.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (geoiq-frontend-ui-kit) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
GeoIQ Frontend UI Kit
This project is a UI kit for GeoIQ's frontend. It's built with React, TypeScript, and Vite.
Features
- React for building user interfaces
- TypeScript for static typing
- Vite for a fast development server and build tool
- PostCSS for processing CSS
- Storybook for developing components in isolation
Scripts
Here are the npm scripts you can run: (Dont for get to login before publishing run npm login)
You should use yarn storybook to start the Storybook development server.
- npm run dev: Starts the Vite development server
- npm run build: Builds the project for production
- npm run build:styles: Builds the styles and copies the- ui-kit-preset.jsfile to the- distfolder
- npm run lint: Lints the project with ESLint
- npm run preview: Previews the production build
- npm run watch-build: Watches the- srcfolder and builds the project when files change
- npm run storybook: Starts the Storybook development server
- npm run build-storybook: Builds Storybook for production
- npm run npm-publish: Publishes the package, Dont forget to increment version number manually
- npm run npm-publish:patch: Increments the patch version, builds the project, and publishes it to the npm registry
- npm run npm-publish:minor: Increments the minor version, builds the project, and publishes it to the npm registry
- npm run npm-publish:major: Increments the major version, builds the project, and publishes it to the npm registry
Getting Started
- import ui-kit-preset.jsfromdistfolder and add it to your tailwind config file in the presets.
- start importing the components from geoiq-frontend-ui-kit.
Components
This UI kit includes the following components:
- Button
- Input
- Checkbox
- Radio
- Dropdown
- Modal
- Tooltip
- Table
Each component has its own props for customization. Please refer to the individual component documentation for more details.
License
This project is licensed under the MIT License.