Kotlin Wrapper Library of Material-UI

Overview

kotlin-material-ui

Kotlin Wrapper Library of Material-UI

Core: Download

Lab: Download

Installation

repositories {
    jcenter()
    // or maven { url 'https://dl.bintray.com/subroh0508/maven' }
}

dependencies {
    implementation "net.subroh0508.kotlinmaterialui:core:${version}"
    implementation "net.subroh0508.kotlinmaterialui:lab:${version}"
}

License

This project is licensed under the terms of the MIT license.

Comments
  • [update]Update kotlin-wrappers -> pre.104

    [update]Update kotlin-wrappers -> pre.104

    Update to kotlin-wrappers pre.104. They have changed their setup to export all dependencies as api scope. This definitely makes sense for gradle-dependencies (like kotlin-react-dom -> kotlin-react), for npm it's probably fine as well.

    However, it leads to some warnings in the initial kotlinNpmInstall task about missing peer dependencies. However, those dependencies are available in the end.

    I have adjusted the build files to follow the kotlin-wrappers change: the @material-ui npm dependencies are now exported as api. I have updated them to the latest version.

    All kotlin-wrappers libraries that are part of this library's public API are now correctly marked as api as well.

    I have removed all superfluous dependency declarations where applicable.

    I'm not totally happy with the warnings. Please let me know what you think about this.

    opened by oxc 8
  • Extend to Material-UI pickers

    Extend to Material-UI pickers

    I'd like to use material pickers. I've had a little look under the hood of kotlin-material-ui and it looks set up to handle the pickers. Does this fit within the scope of this library?

    opened by heathwinning 7
  • Could not find subroh0508.net.kotlinmaterialui:date-io:0.5.0-beta2

    Could not find subroh0508.net.kotlinmaterialui:date-io:0.5.0-beta2

    While trying to update to 0.5.0, I'm getting

    Could not find subroh0508.net.kotlinmaterialui:date-io:0.5.0-beta2
    Required by:
             project : > net.subroh0508.kotlinmaterialui:pickers:0.5.0
    

    upon build. Not sure if there is a typo in the dependencies or date-io hasn't been updated on bintray.

    opened by heathwinning 3
  • onNodeSelect in TreeViewProps breaks type system on single select

    onNodeSelect in TreeViewProps breaks type system on single select

    The event has a parameter Array<String>, but actually gives a single string in case of single select.

    I suggest to introduce new virtual type ArrayOrSingle and combine it with dynamic type check to properly evaluate.

    opened by altavir 3
  • [add]Add withStyles function that returns a RClass

    [add]Add withStyles function that returns a RClass

    Creating a new RClass in each invocation can prevent reconciliation of such components. Extract a separate method that returns the styled class, so it can be stored for recurring usage.

    opened by oxc 2
  • Warning: Failed prop type: Invalid prop `disabled` of type `string` supplied to `ButtonBase`, expected `boolean`.

    Warning: Failed prop type: Invalid prop `disabled` of type `string` supplied to `ButtonBase`, expected `boolean`.

    image

    webpack-internal:///../../node_modules/prop-types/checkPropTypes.js:20 Warning: Failed prop type: Invalid prop disabled of type string supplied to ButtonBase, expected boolean. in ButtonBase (created by WithStyles(ButtonBase)) in WithStyles(ButtonBase) (created by Button) in Button (created by WithStyles(Button)) in WithStyles(Button) (created by ButtonsDemo) in div (created by ButtonsDemo) in div (created by Context.Consumer) in StyledComponent (created by styled.div) in styled.div (created by ButtonsDemo) in ButtonsDemo (created by WithStyles(ButtonsDemo)) in WithStyles(ButtonsDemo) (created by App) in div (created by App) in MuiThemeProviderOld (created by App) in App

    opened by 21region 2
  • Warning: Failed prop type: Invalid prop `disabled` of type `string` supplied to `Button`, expected `boolean`.

    Warning: Failed prop type: Invalid prop `disabled` of type `string` supplied to `Button`, expected `boolean`.

    image

    webpack-internal:///../../node_modules/prop-types/checkPropTypes.js:20 Warning: Failed prop type: Invalid prop disabled of type string supplied to Button, expected boolean. in Button (created by WithStyles(Button)) in WithStyles(Button) (created by ButtonsDemo) in div (created by ButtonsDemo) in div (created by Context.Consumer) in StyledComponent (created by styled.div) in styled.div (created by ButtonsDemo) in ButtonsDemo (created by WithStyles(ButtonsDemo)) in WithStyles(ButtonsDemo) (created by App) in div (created by App) in MuiThemeProviderOld (created by App) in App

    opened by 21region 2
  • Add timeline components and fix missing options

    Add timeline components and fix missing options

    Hi,

    we can assign jssStyle to typography style. like this:

    typography {
                 h6 {
                    fontWeight = FontWeight.w300
                        media("min-width: 800px"){
                            fontWeight = FontWeight.w500
                        }
                    }
                }
    

    and can use theme spacing like this:

    paddingTop = 0.5.spacing // 4px
    margin = theme.spacing(1.unit, LinearDimension.auto, 8.px) //"8px auto 8px"
    
    opened by hamed-sb 1
  • Jcenter is shutting down - need to migrate to Maven Central

    Jcenter is shutting down - need to migrate to Maven Central

    JFrog has [announced they are shutting down Jcenter and Bintray]https://jfrog.com/blog/into-the-sunset-bintray-jcenter-gocenter-and-chartcenter/). New package versions can no longer be published. The packages will continue to be hosted until Feb 1, 2022. Unfortunately that means the project will need to migrate to Maven Central.

    opened by tlpierce 1
  • Add some component

    Add some component

    Add +AutoComplete component +useAutoComplete hooks function +StylesProvider componen for support jss +some missing props

    edit StyleBiulder for support static style

    opened by hamed-sb 1
  • Contribution

    Contribution

    Hi guys, We used your really nice material-ui wrappers library but unfortunately, there were some components which are missed. So I implemented these and I would like to share it with you.

    • Alert
    • BreadCrubms
    • Treeview
    • Treeitem
    opened by zole40 1
  • support for v5

    support for v5

    i see there's a branch here forplayground-mui-5.0.0. i'm curious what the status of a release supporting 5 is. I'm also curious what would need to be changed and if there are ways to help out. thanks in advance!

    opened by gad2103 0
  • Cannot include 0.5.5 date-io dependency

    Cannot include 0.5.5 date-io dependency

    Hi,

    I am looking to use the date-io project in order to create an adapter for my DateRangePicker. However it is no longer updated on bintray, the latest available version is 0.5.2. I think I need the latest dependency to create a date adapter for the picker, is there any workaround for this?

    My gradle dependencies:

    api(npm("@material-ui/pickers", "4.0.0-alpha.12"))
    api("net.subroh0508.kotlinmaterialui:lab:0.5.5") {
        exclude("subroh0508.net.kotlinmaterialui", "core")
    }
    api("net.subroh0508.kotlinmaterialui:core:0.5.5")
    api("net.subroh0508.kotlinmaterialui:pickers:0.5.5") {
        exclude("subroh0508.net.kotlinmaterialui", "date-io")
    }
    api("net.subroh0508.kotlinmaterialui:date-io:0.5.2") // outdated
    
    opened by dosier 1
  • Material UI switch clashes with react router dom switch.

    Material UI switch clashes with react router dom switch.

    Using the materialUi.switch at the same time the react.router.dom.switch is used leads to an issue where only one type of switch is expressed.

    How to Reproduce

    Try using the routing switch and the material UI switch in the same project. Although the imports and everything is correct, the actually expressed elements will be the same. So always only one type can be created.

    opened by marvinbuff 0
  • Lab 0.5.5 invalid dependencies

    Lab 0.5.5 invalid dependencies

    Published lab 0.5.5 artifact seems to contain invalid dependency, if you look at the published module at https://dl.bintray.com/subroh0508/maven/net/subroh0508/kotlinmaterialui/lab/0.5.5/:lab-0.5.5.module you can observe a dependancy to subroh0508.net.kotlinmaterialui

    ...
        "dependencies": [
            {
              "group": "subroh0508.net.kotlinmaterialui",
              "module": "core",
              "version": {
                "requires": "0.5.5"
              }
            },
    ...
    

    This causes gradle resolution to fail when trying to use lab library.

       > Could not find subroh0508.net.kotlinmaterialui:core:0.5.5.
         Searched in the following locations:
           - https://dl.bintray.com/subroh0508/maven/subroh0508/net/kotlinmaterialui/core/0.5.5/core-0.5.5.pom
         Required by:
             project :memento-identity-backend > net.subroh0508.kotlinmaterialui:lab:0.5.5
    
    Possible solution:
     - Declare repository providing the artifact, see the documentation at https://docs.gradle.org/current/userguide/declaring_repositories.html
    
    
    
    opened by ionspin 1
Owner
Subroh Nishikori
Subroh Nishikori
Android WebView wrapper based on chromium

ChromiumWebView Android WebView wrapper based on chromium Notice This is just a experimental project, don't use it in product. If you have problem whe

alex 511 Dec 1, 2022
A Material design Android pincode library. Supports Fingerprint.

LolliPin A Lollipop material design styled android pincode library (API 14+) To include in your project, add this to your build.gradle file: //Loll

Omada Health 1.6k Nov 25, 2022
An Android library that brings the Material Design 5.1 sidebar to pre-5.1 devices.

MaterialScrollBar An Android library that brings the Material Design 5.1 scrollbar to pre-5.1 devices. Designed for Android's recyclerView. Video Imag

Turing Technologies (Wynne Plaga) 784 Nov 29, 2022
[Deprecated] Android Library that implements Snackbars (former known as Undobar) from Google's Material Design documentation.

UndoBar This lib is deprecated in favor of Google's Design Support Library which includes a Snackbar and is no longer being developed. Thanks for all

Kai Liao 577 Nov 25, 2022
A library that provides an implementation of the banner widget from the Material design.

MaterialBanner A banner displays a prominent message and related optional actions. MaterialBanner is a library that provides an implementation of the

Sergey Ivanov 252 Nov 18, 2022
An Android library that brings the Material Design 5.1 sidebar to pre-5.1 devices.

MaterialScrollBar An Android library that brings the Material Design 5.1 scrollbar to pre-5.1 devices. Designed for Android's recyclerView. Video Imag

Turing Technologies (Wynne Plaga) 784 Nov 29, 2022
Android Material Json Form Wizard is a library for creating beautiful form based wizards within your app just by defining json in a particular format.

Android Json Wizard Android Json Wizard is a library for creating beautiful form based wizards within your app just by defining json in a particular f

Vijay Rawat 355 Nov 11, 2022
Material Design implementation for Android 4.0+. Shadows, ripples, vectors, fonts, animations, widgets, rounded corners and more.

Carbon Material Design implementation for Android 4.0 and newer. This is not the exact copy of the Lollipop's API and features. It's a custom implemen

null 3k Dec 30, 2022
A skeleton of google's appcompat android navigation drawer with material design.

Lollipop AppCompat Skeleton A skeleton of google's appcompat android navigation drawer with material design. Compatible to work on 4.0+ Based on Googl

Sachin Shinde 99 Nov 29, 2022
(Deprecated) A custom view component that mimics the new Material Design Bottom Navigation pattern.

BottomBar (Deprecated) I don't have time to maintain this anymore. I basically wrote the whole library in a rush, without tests, while being a serious

Iiro Krankka 8.4k Dec 29, 2022
An implementation of tap targets from the Material Design guidelines for feature discovery.

TapTargetView An implementation of tap targets from Google's Material Design guidelines on feature discovery. Min SDK: 14 JavaDoc Installation TapTar

Keepsafe 5.2k Dec 30, 2022
Inspired by Heinrich Reimer Material Intro and developed with love from scratch

Android Material Intro Screen Material intro screen is inspired by Material Intro and developed with love from scratch. I decided to rewrite completel

Tango Agency 2.7k Dec 19, 2022
A material Switch with icon animations and color transitions

Material Animated Switch A material Switch with icon animations and color transitions Sample video: Youtube Material Animated Switch video Sample app:

Adrián Lomas 1.2k Dec 29, 2022
A great material designed colorpicker by Marie Schweiz

Lobsterpicker Designed by Marie Schweiz, Developed by Lars Werkman Lobsterpicker is a library for android material design made to support apps and dev

Lars Werkman 534 Sep 15, 2022
Create an header for com.google.android.material.navigation.NavigationView

Header View This is a view for NavigationView in android.support.design library Import At the moment the library is in my personal maven repo reposito

Raphaël Bussa 106 Nov 25, 2022
Material Design tap target for Android. https://sjwall.github.io/MaterialTapTargetPrompt/

Material Tap Target Prompt A Tap Target implementation in Android based on Material Design Onboarding guidelines. For more information on tap targets

Sam Wall 1.5k Jan 4, 2023
Provenance-eventstream-legacy-kotlin - A legacy Kotlin library for reading from the Provenance event stream

provenance-eventstream-legacy-kotlin A legacy Kotlin library for reading from th

Figure Technologies Inc. 1 Jan 13, 2022
Android StackBlur is a library that can perform a blurry effect on a Bitmap based on a gradient or radius, and return the result. The library is based on the code of Mario Klingemann.

Android StackBlur Android StackBlur is a library that can perform a blurry effect on a Bitmap based on a gradient or radius, and return the result. Th

Enrique López Mañas 3.6k Dec 29, 2022
A new canvas drawing library for Android. Aims to be the Fabric.js for Android. Supports text, images, and hand/stylus drawing input. The library has a website and API docs, check it out

FabricView - A new canvas drawing library for Android. The library was born as part of a project in SD Hacks (www.sdhacks.io) on October 3rd. It is cu

Antwan Gaggi 1k Dec 13, 2022