Skip to content

Releases

0.1.2 - Hotfix

Choose a tag to compare

@sakethpathike sakethpathike released this 09 May 07:13

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

Choose a tag to compare

@sakethpathike sakethpathike released this 09 May 06:20

Fixes

  • Empty modifiers now return an empty string as expected.

Full Changelog: 0.1.0...0.1.1

0.1.0

Choose a tag to compare

@sakethpathike sakethpathike released this 09 May 05:38

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

Choose a tag to compare

@sakethpathike sakethpathike released this 03 May 12:47
fix: rename `value` to `cssValue` in `FontWeight` to avoid clashes wi…

0.0.5

Choose a tag to compare

@sakethpathike sakethpathike released this 03 May 08:27
chore: bump version to 0.0.5

0.0.4

Choose a tag to compare

@sakethpathike sakethpathike released this 29 Apr 09:42

Full Changelog: 0.0.3...0.0.4

0.0.3

Choose a tag to compare

@sakethpathike sakethpathike released this 28 Apr 17:41

Full Changelog: 0.0.2...0.0.3

0.0.2

Choose a tag to compare

@sakethpathike sakethpathike released this 27 Apr 18:41

Full Changelog: 0.0.1...0.0.2

0.0.1

Choose a tag to compare

@sakethpathike sakethpathike released this 27 Apr 18:34
chore: set `group` to `io.github.sakethpathike` to fix the component …