-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
swapping over coupling button to the new system, which required updat…
…ing the library to handle unset keys properly
- Loading branch information
1 parent
4d3431d
commit 014b971
Showing
29 changed files
with
141 additions
and
175 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
22 changes: 10 additions & 12 deletions
22
.../components/src/main/kotlin/com/zegreatrob/coupling/client/components/ConfigSaveButton.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,18 @@ | ||
package com.zegreatrob.coupling.client.components | ||
|
||
import com.zegreatrob.minreact.add | ||
import react.ChildrenBuilder | ||
import react.dom.html.ButtonHTMLAttributes | ||
import web.html.ButtonType | ||
|
||
fun ChildrenBuilder.configSaveButton(isSaving: Boolean) = add( | ||
com.zegreatrob.coupling.client.components.CouplingButton( | ||
sizeRuleSet = com.zegreatrob.coupling.client.components.supersize, | ||
colorRuleSet = com.zegreatrob.coupling.client.components.blue, | ||
attrs = { | ||
type = ButtonType.submit | ||
tabIndex = 0 | ||
value = "Save" | ||
disabled = isSaving | ||
}, | ||
), | ||
fun ChildrenBuilder.configSaveButton(isSaving: Boolean) = CouplingButton( | ||
sizeRuleSet = supersize, | ||
colorRuleSet = blue, | ||
attrs = fun ButtonHTMLAttributes<*>.() { | ||
type = ButtonType.submit | ||
tabIndex = 0 | ||
value = "Save" | ||
disabled = isSaving | ||
}, | ||
) { | ||
+"Save" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 1 addition & 4 deletions
5
client/components/src/main/kotlin/com/zegreatrob/coupling/client/components/RetireButton.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,5 @@ | ||
package com.zegreatrob.coupling.client.components | ||
|
||
import com.zegreatrob.minreact.add | ||
import react.ChildrenBuilder | ||
|
||
fun ChildrenBuilder.retireButton(onRetire: () -> Unit) = add(CouplingButton(small, red, onClick = onRetire)) { | ||
+"Retire" | ||
} | ||
fun ChildrenBuilder.retireButton(onRetire: () -> Unit) = CouplingButton(small, red, onClick = onRetire) { +"Retire" } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.