Giter Site home page Giter Site logo

paymium / crossed Goto Github PK

View Code? Open in Web Editor NEW
9.0 1.0 0.0 5.27 MB

Home Page: https://paymium.github.io/crossed/

License: MIT License

TypeScript 97.38% JavaScript 2.62%
primitive react react-native react-native-ui react-native-web reactjs tailwind tailwindcss

crossed's Introduction

Warning Package a not ready production and not published

crossed UI

Universal Headless Components built with react-native-unistyles for react-native + web

Introduction

Crossed is UI lib component which worked on react-native and web based on react-native-unistyles.

Documentation

See documentation.

Inspiration

Contribution

Environment

pnpm version 7 node 20

Command

First run packages build pnpm watch
Second run doc build pnpm run docs

crossed's People

Contributors

domrod avatar github-actions[bot] avatar lobor avatar toonba avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

crossed's Issues

[Feature] [primitive] createSheet

  • [Primitive] createSheet aria behavior
  • [Primitive] createSheet accessibility behavior
  • [Primitive] createSheet implement test
  • [Primitive] createSheet documentation

add theme in @crossed/ui

Create tailwind plugin which take theme params

type Theme = {
  background: string
  backgroundFocus: string
  backgroundHover: string
  backgroundPress: string
  backgroundStrong: string
  backgroundTransparent: string
  borderColor: string
  borderColorFocus: string
  borderColorHover: string
  borderColorPress: string
  color: string
  colorFocus: string
  colorHover: string
  colorPress: string
}

// several possibility
// what is the best possibility?
pluginTailwindCrossed({
  Button: {} as Theme,
  ButtonText: {} as Theme,
  ButtonElement: {} as Theme,
  ...,
});

pluginTailwindCrossed({
  Button: {
    Root: {} as Theme,
    Text: {} as Theme,
    Element: {} as Theme,
  },
  ...,
});

The plugin generate className like this

.Button-Text-background { /* ... */ }
.Button-Text-backgroundFocus { /* ... */ }
.Button-Text-backgroundPress { /* ... */ }`
.Button-Text-color { /* ... */ }

.Button-Root-background { /* ... */ }
.Button-Root-backgroundFocus { /* ... */ }
.Button-Root-backgroundPress { /* ... */ }

shoudl be use like this with styled

import { styled } from "@crossed/styled";
import { Pressable } from "react-native";

const ButtonFrame = styled(Pressable, {
  className: ['Button-Root-background'],
  ':active': {
    className: ['Button-Root-backgroundPress']
  },
});

[Feature] [primitive] createSelect

  • [Primitive] createSelect aria behavior
  • [Primitive] createSelect accessibility behavior
  • [Primitive] createSelect implement test
  • [Primitive] createSelect documentation

[Doc] update babel doc

babel plugin not change className to style.
It create file which load config of tailwind in twrnc (see create API) and change all import to this file created
It's only for react-native, for web, use basic className behavior

Benchmark

implement benchmark for mobile and browser

[Feature] [Primitive] createLabel

  • [Primitive] createLabel aria behavior
  • [Primitive] createLabel accessibility behavior
  • [Primitive] createLabel implement test
  • [Primitive] createLabel documentation

Modifiate all package and readme

Add Licence
Add Paymium brand
Add Collaborator
Add keyword in package.json
Add description in package.json
Update readme of all packages published

[Feature] [primitive] createModal

  • [Primitive] createModal aria behavior
  • [Primitive] createModal accessibility behavior
  • [Primitive] createModal implement test
  • [Primitive] createModal documentation

[Feature] [Primitive] createDropdown

  • [Primitive] createDropdown aria behavior
  • [Primitive] createDropdown accessibility behavior
  • [Primitive] createDropdown implement test
  • [Primitive] createDropdown documentation

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.