https://kotlinlang.org logo
Join SlackCommunities
Powered by
# kmdc
  • b

    Big Chungus

    01/13/2022, 7:09 PM
    Here's a thread on (k)mdc theming
  • r

    Rohan Maity

    01/16/2022, 12:41 PM
    am trying to make evenly spread three input text with 
    MDCTextField
    But is not getting evenly spread But with core 
    TextInput
      got evenly spread
    Copy code
    Div(
                attrs = {
                    style {
                        display(DisplayStyle.Flex)
                        width(100.percent)
                        justifyContent(JustifyContent.SpaceBetween)
                        flexFlow(FlexDirection.Row, FlexWrap.Nowrap)
                    }
                }
            ) {
    
                val annualCtcState = remember { mutableStateOf("") }
                MDCTextField(
                    annualCtcState.value,
                    {
                        type = MDCTextFieldCommonOpts.Type.Outlined
                        label = "Annual CTC"
                    },
                    {
                        style {
                            margin(8.px)
                            width(33.percent)
                            title("Annual CTC")
    
                        }
                        onInput {
                            annualCtcState.value = it.value
                        }
                    }
                )
    😕
    b
    c
    • 3
    • 24
  • b

    Big Chungus

    02/18/2022, 12:36 PM
    Now that kmdc has only a few mdc components left to wrap, it would be good to get some feedback on the API design. There are two key areas - composable names and custom property management. I'm looking for a community vote and feedback on these options (if you think of something else, let me know on the discussion). Thanks! https://github.com/mpetuska/kmdc/discussions/88
  • b

    Big Chungus

    03/15/2022, 8:08 PM
    Hi all. I'm curious to hear your thoughts on these two design choices: 1. KMDC API to match MDC api (component/element wise) 1:1 with occasional and few exceptions to be more idiomatic for kotlin consumption 2. KMDC API to introduce its own components that makes some assumptions on the structure and only matches and extends the top-level MDC component to better utilise the fact that it's rendered by Kotlin and not direct HTML. 3. Full support for #1 with DSL to get #2
    🦻 1
    k
    g
    • 3
    • 7
  • b

    Big Chungus

    04/27/2022, 11:47 AM
    dev.petuska:kmdc:0.0.3 developer preview is live. This release adds 11 new mdc modules, various bugfixes and some quality of life improvements. It's also updated to use latest compose and kotlin artefacts.
    🎉 3
  • b

    Big Chungus

    05/09/2022, 8:26 AM
    A quick update on KMDC status and future plans
    🙌🏻 1
  • b

    Big Chungus

    05/24/2022, 8:25 PM
    Reworked KMDC catalogue is now live! let me know what you think about the new approach.
    👍 3
  • f

    Foso

    05/27/2022, 8:30 AM
    I like the catalogue page
  • b

    Big Chungus

    05/27/2022, 8:45 AM
    The only issue is that it's very mobile unfriendly 😀 something to improve upon in the future
  • b

    Big Chungus

    05/27/2022, 8:21 PM
    Aaand the wrapping is finally done! Took a while, but all the MDC components are now wrapped and available via KMDC modules. The catalogue has been updated with the latest and greatest components and should now be complete as well. Now as for the long awaited 0.1.0 version, it will have to wait until compose-web
    1.2.0
    releases as it's currently built on top of
    1.2.0-alpha01-dev686
    . However to let you play around with it anyways, 0.0.4 has just finished cooking (just be sure to match the compose version in your projects).
    🎉 4
  • r

    rnett

    07/15/2022, 6:42 AM
    @Big Chungus are you planning to release a new version w/ Kotlin 1.7.0 anytime soon? This is the last thing holding me back from upgrading
    b
    • 2
    • 12
  • b

    Big Chungus

    07/15/2022, 9:11 AM
    KMDC@0.0.5 is now live with kotlin 1.7.10 support
    🎉 3
  • b

    Big Chungus

    01/17/2023, 2:25 AM
    https://s01.oss.sonatype.org/content/repositories/snapshots/dev/petuska/kmdc/0.1.0-SNAPSHOT/ is now available with kotlin 1.8 and CfD 1.3.0-rc02
    🎉 4
  • b

    Big Chungus

    02/10/2023, 1:46 PM
    kmdc@0.1.0 is out with kotlin 1.8.0 and compose 1.3.0 🎉 Enjoy!
    🎉 4
  • b

    Big Chungus

    02/11/2023, 6:32 PM
    Given that kmdc is finally feature-complete and linked against a stable CfW, I'd like to ask each one of you that if you do try it out, please report any bug no matter how trivial it might be. I'd also appreciate any feedback or suggestions you have regarding the API and developer UX.
    👍 3
    👍🏻 1
  • b

    Big Chungus

    03/06/2023, 8:09 AM
    @YentaBot
  • y

    YentaBot

    03/06/2023, 8:09 AM
    Hello! I'm a bot which answers questions based on historical messages in Slack Now that I've been added to this channel, I'll begin reading all the history and you can ask me questions, which I'll try my best to answer. Ask me a question by beginning a message with
    @yentabot
    You can also emoji-react to a message with ❓ or 🤖. Feel free to give me feedback by replying to my answers in a thread or leaving emoji-reacts to my answers.
    👍🏾 1
  • s

    Sebastien Leclerc Lavallee

    03/14/2023, 4:02 PM
    @YentaBot How do we get a number textfield?
    👀 1
    y
    r
    b
    • 4
    • 4
  • r

    rocketraman

    03/23/2023, 8:28 PM
    @Big Chungus I'm trying to use a
    MDCDialog
    in an MVI application. I have a view model which has an
    open
    state for the dialog. The dialog may be: a) closed by some button press by the user, in which case the dialog is closed when it sees the
    open
    state of the VM change to false, or b) closed on scrim or escape, in which case I need to send an event to the VM (using the
    onClosed
    hook seems appropriate) The problem I have is when the dialog is closed via (a), my view model receives two inputs: the button press and the event from the
    onClosed
    hook, which causes issues. Is there a way to trigger a callback only for the scrim/escape case?
    b
    • 2
    • 14
  • b

    Big Chungus

    04/12/2023, 10:04 PM
    With compose 1.4.0 out I'll be updating kmdc this weekend. Now is the time to voice your frustrations or feature requests if you have any.
    K 1
  • k

    Kelvin Ojiako

    05/09/2023, 6:51 PM
    Howdy folks, I have been exploring Compose web and have been trying to use material components with the framework. Initially I tried to use compose ui and material3 frameworks but then found out they are not supported and now I am experimenting with the KMDC component library for compose. I keep getting a
    java.lang.IllegalStateException: IrPropertyPublicSymbolImpl for org.jetbrains.compose.web.attributes/setInputValue|-1139008128042356648[0] is already bound: PROPERTY name:setInputValue visibility:internal modality:FINAL [val]
    error while using the MDCTopAppBar component, I have added 2 replies to this question adding the build file, the full error message and the section that I am working on. Its also kind of tricky cause the error messages do not tell me the specific lines in my code where the errors are coming from. Also when i remove kmdc dependency the error goes away
    r
    b
    • 3
    • 7
  • b

    Big Chungus

    05/12/2023, 1:13 PM
    0.1.1-SNAPSHOT is out on sonatype snapshots repository with compose 1.4.0 and kotlin 1.8.20 support
  • p

    Piotr Krzemiński

    07/04/2023, 9:51 AM
    @Big Chungus links in the showcase app that are supposed to open the source code don’t work, e.g. for https://kmdc.petuska.dev/#/MDCBanner it opens https://github.com/mpetuska/kmdc/blob/master/sandbox/src/jsMain/showcases/MDCBanner.kt#L23 which is a 404
    ✅ 1
  • b

    Big Chungus

    07/04/2023, 9:58 AM
    Ah, I'm in a middle of releasing new version 😀
  • b

    Big Chungus

    07/04/2023, 9:58 AM
    Replace jsMain with main in links for now
  • b

    Big Chungus

    07/04/2023, 9:59 AM
    New pages should be published in about an hour or so
    👍 1
  • b

    Big Chungus

    07/04/2023, 10:59 AM
    Should be all good now
    🙌 1
  • b

    Big Chungus

    07/05/2023, 7:23 AM
    Btw, kmdc@0.1.1 is out now with kotlin 1.8.20 and compose 1.4.1
    👍🏾 1
    👍🏻 1
    🎉 1
    👍 3
  • r

    rocketraman

    10/19/2023, 8:37 PM
    How much difference is there between material-components-web 14 that kmdc currently uses and material-web 1.0 that Google just released?
    b
    • 2
    • 5
  • b

    Big Chungus

    03/01/2024, 6:06 PM
    v0.1.2 is out with compose 1.6.0 & kotlin 1.9.22
    K 2