Skip to content

Releases: sakethpathike/kapsule

0.1.2 - Hotfix

09 May 07:13
Compare
Choose a tag to compare

Fixes

  • Chained appendNewStyle calls in modifiers when applying multiple styles, fixing an issue with certain modifiers' behaviour (no API changes).

Full Changelog: 0.1.1...0.1.2

0.1.1 - Hotfix

09 May 06:20
Compare
Choose a tag to compare

Fixes

  • Empty modifiers now return an empty string as expected.

Full Changelog: 0.1.0...0.1.1

0.1.0

09 May 05:38
Compare
Choose a tag to compare

Breaking changes

  • Modifiers now follow the Compose-style design: no more instantiating a new class for every modifier. Kapsule internally chains modifier calls and produces the expected CSS.
    • Modifier().someModifier(...) is no longer supported—replace every Modifier().someModifier(...) with Modifier.someModifier(...) to build successfully.

Before (up to v0.0.6):

Text(
    text = "x", modifier = Modifier().color("#CAC4D0")
)
Text(
    text = "y", modifier = Modifier().color("#1C1B1F").backgroundColor("#CAC4D0")
)

Now (v0.1.0 and later):

Text(
    text = "x",
    modifier = Modifier.color("#CAC4D0")
)
Text(
    text = "y",
    modifier = Modifier.color("#1C1B1F").backgroundColor("#CAC4D0")
)

Every Modifier.someModifier(...) invocation creates a new modifier internally, keeping each styling call unique.

0.0.6

03 May 12:47
Compare
Choose a tag to compare
fix: rename `value` to `cssValue` in `FontWeight` to avoid clashes wi…

0.0.5

03 May 08:27
Compare
Choose a tag to compare
chore: bump version to 0.0.5

0.0.4

29 Apr 09:42
Compare
Choose a tag to compare

Full Changelog: 0.0.3...0.0.4

0.0.3

28 Apr 17:41
Compare
Choose a tag to compare

Full Changelog: 0.0.2...0.0.3

0.0.2

27 Apr 18:41
Compare
Choose a tag to compare

Full Changelog: 0.0.1...0.0.2

0.0.1

27 Apr 18:34
Compare
Choose a tag to compare
chore: set `group` to `io.github.sakethpathike` to fix the component …