Giter Site home page Giter Site logo

boxyhq / ui Goto Github PK

View Code? Open in Web Editor NEW
9.0 5.0 3.0 7.1 MB

UI toolkit to ease BoxyHQ integration

License: Apache License 2.0

JavaScript 4.20% HTML 0.49% TypeScript 80.93% CSS 7.52% Vue 2.30% Svelte 4.42% MDX 0.02% Shell 0.11%
components ui mitosis reactjs vuejs svelte angular hacktoberfest

ui's Introduction

BoxyHQ Banner

UI SDK

Toolkit to ease BoxyHQ integration. This SDK includes core components that can be used inside web apps and help in configuring features like SSO, Directory Sync, etc. Currently, these components are used in projects such as Jackson and saas-starter-kit. We use mitosis for authoring components and the code for each framework (see table below for the npm package) is then generated in the build process.

UI Framework NPM
Angular npm
React npm
Svelte npm
Vue npm
Vue2 npm

ui's People

Contributors

deepakprabhakara avatar dependabot[bot] avatar imjaglan avatar nathantarbert avatar niwsa avatar ryukemeister avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

ui's Issues

[UI SDK] Google DSync Provider tweaks

  • Hide the SCIM URL and Token if the directory provider is Google
  • Add the Google authorize url in the directory fetch response
  • Display the Google Authorize URL in the Edit component

Support custom styling for Card

Issue

Currently, we use the Card component to display configured metadata as seen in the attached screenshot. This might cause mismatch with the userland app layout/styling that do not prefer cards.
Screenshot 2023-10-09 at 6 11 39โ€ฏPM

Solution

We need a way to turn off or customize the card styling via props. In order to achieve this add support for custom classNames prop that can override styles for the underlying elements of the card (namely article, title, and body). For reference implementation see https://github.com/boxyhq/ui/blob/main/src/sso/connections/EditConnection/saml/index.lite.tsx#L54

Before you begin

Kindly go through the guidelines before making your contribution. Happy hacking !! ๐Ÿ˜ƒ

[React] Duplicate styles in react bundle

Problem

The vite build setup for react uses vite-plugin-css-injected-by-js plugin to inject the CSS styles using javascript. Some stylesheets like common.module.css are sourced in multiple other stylesheets. The styles coming from common.module.css get injected multiple times in the final bundle (react/dist/shared.js). Find a way to get rid of the repeated styles in the bundle.

Solution

Source common.module.css inside sso/index.ts and remove CSS imports @import inside *.module.css.
NOTE: Any better alternatives are also welcome.

Testing

Make changes under src/shared folder. Run npm run build from root folder followed by npm run build-lib under react folder. Verify that the classnames are not repeated inside react/dist/shared.js

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.