cblavier

cblavier OP

Thank you for letting me know, it cheers me up!

1
Post #31
cvkmohan

cvkmohan

Have gone through. Very interesting @cblavier. Some abstractions look nice and useful. Thanks for all the work.

1
Post #32
maxmannen

maxmannen

Looks very good.. This will save my “derrière” :grinning: in my current project.

2
Post #33
cblavier

cblavier OP

Hey there :wave:

I just deployed some code samples for the library:
https://phx-component-helpers-demo.onrender.com

I hope you’ll find it useful! :slight_smile:

2
Post #34
maxmannen

maxmannen

Very nice.
The last example don’t work on your page. Have not tried to implement myself yet.
Missing something? (again :grimacing:)

0
Post #35
cblavier

cblavier OP

No bug at all, but I should change the buttons label (“Click me”) because they actually don’t do anything :wink:

0
Post #36
cblavier

cblavier OP

Just release 0.13.0 of the library thanks to @thenrio contribution.

We now use LiveView.assign/2 instead of Map.put / Map.merge which allows LiveView to do a better job at diff tracking

1
Post #37
cblavier

cblavier OP

:fire: Since we’re using the library in production for months and that it can be now considered as complete, feature-wise, I just released version 1.0.0 :tada:

https://github.com/cblavier/phx_component_helpers

3
Post #38
cblavier

cblavier OP

Just released 1.1.0 with a new, more explicit, behavior of extend_class/3 which fixes the issue mentioned in this topic.

Changelog:

extend_class/3 behavior has been updated and will soon no longer replace default css classes based on their prefix (this behavior is still working but deprecated). To switch to the new behavior and suppress warning messages, pass the prefix_replace: falseoption and use the new ! based syntax to explicitly remove default CSS classes. (ex: !border-* border-red-500)

2
Post #39
— All posts loaded —