Skip to content

Commit

Permalink
Add a changeset
Browse files Browse the repository at this point in the history
  • Loading branch information
ynotdraw committed Jul 20, 2023
1 parent 3cb8650 commit ff50f27
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 4 deletions.
25 changes: 25 additions & 0 deletions .changeset/eight-shoes-flash.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
---
'@crowdstrike/ember-toucan-form': patch
---

Expose the `:secondary` block and Character Counter component from `<ToucanForm` input and textarea components.

```hbs
<ToucanForm @data={{data}} as |form|>
<form.Input @name='input'>
<:label>Label</:label>
<:hint>Hint</:hint>
<:secondary as |secondary|>
<secondary.CharacterCount @max={{255}} />
</:secondary>
</form.Input>
<form.Textarea @name='textarea'>
<:label>Label</:label>
<:hint>Hint</:hint>
<:secondary as |secondary|>
<secondary.CharacterCount @max={{255}} />
</:secondary>
</form.Textarea>
</ToucanForm>
```
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ module('Integration | Component | ToucanForm | Input', function (hooks) {

await render(<template>
<ToucanForm @data={{data}} as |form|>
<form.Input @label="Label" @name="text">
<form.Input @name="text">
<:label><span data-label-block>Label</span></:label>
<:hint><span data-hint-block>Hint</span></:hint>
</form.Input>
Expand All @@ -181,7 +181,7 @@ module('Integration | Component | ToucanForm | Input', function (hooks) {

await render(<template>
<ToucanForm @data={{data}} as |form|>
<form.Input @label="Label" @name="text">
<form.Input @name="text">
<:label><span data-label-block>Label</span></:label>
<:hint><span data-hint-block>Hint</span></:hint>
<:secondary as |secondary|>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ module('Integration | Component | ToucanForm | Textarea', function (hooks) {

await render(<template>
<ToucanForm @data={{data}} as |form|>
<form.Textarea @label="Label" @name="text">
<form.Textarea @name="text">
<:label><span data-label-block>Label</span></:label>
<:hint><span data-hint-block>Hint</span></:hint>
</form.Textarea>
Expand All @@ -181,7 +181,7 @@ module('Integration | Component | ToucanForm | Textarea', function (hooks) {

await render(<template>
<ToucanForm @data={{data}} as |form|>
<form.Textarea @label="Label" @name="text">
<form.Textarea @name="text">
<:label><span data-label-block>Label</span></:label>
<:hint><span data-hint-block>Hint</span></:hint>
<:secondary as |secondary|>
Expand Down

0 comments on commit ff50f27

Please sign in to comment.