Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release Preview #144

Merged
merged 1 commit into from
Apr 28, 2023
Merged

Release Preview #144

merged 1 commit into from
Apr 28, 2023

Conversation

github-actions[bot]
Copy link
Contributor

@github-actions github-actions bot commented Apr 21, 2023

This PR was opened by the Changesets release GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to main, this PR will be updated.

Releases

@crowdstrike/[email protected]

Patch Changes

@crowdstrike/[email protected]

Patch Changes

  • #156 20d433f Thanks @ynotdraw! - Exposed named blocks from the underlying toucan-core components. This allows users to add custom content in :hint or :label named blocks. You can combine the arguments and named blocks as well! Below are some examples.

    <ToucanForm @data={{data}} as |form|>
      <form.Textarea @name='comment'>
        <:label>Label</:label>
        <:hint>Hint</:hint>
      </form.Textarea>
    </ToucanForm>
    <ToucanForm @data={{data}} as |form|>
      <form.Textarea @label='Label' @name='comment'>
        <:hint>Hint</:hint>
      </form.Textarea>
    </ToucanForm>
    <ToucanForm @data={{data}} as |form|>
      <form.Textarea @hint='Hint' @name='comment'>
        <:label>Label</:label>
      </form.Textarea>
    </ToucanForm>

    Or you can continue to use the arguments if you're only working with strings!

    <ToucanForm @data={{data}} as |form|>
      <form.Textarea @label='Label' @hint='Hint' @name='comment' />
    </ToucanForm>
  • #145 752e6b1 Thanks @ynotdraw! - Added @isReadOnly component argument support.

    <ToucanForm @data={{data}} as |form|>
      <form.Textarea
        @label='Comment'
        @name='comment'
        @isReadOnly={{true}}
        data-textarea
      />
      <form.Input
        @label='Input'
        @name='firstName'
        @isReadOnly={{true}}
        data-input
      />
      <form.Checkbox
        @label='Terms'
        @name='termsAndConditions'
        @isReadOnly={{true}}
        data-checkbox
      />
    
      <form.RadioGroup
        @label='Radios'
        @name='radio'
        @isReadOnly={{true}}
        as |group|
      >
        <group.RadioField @label='option-1' @value='option-1' data-radio-1 />
        <group.RadioField @label='option-2' @value='option-2' data-radio-2 />
      </form.RadioGroup>
    
      <form.CheckboxGroup
        @label='Checkboxes'
        @name='checkboxes'
        @isReadOnly={{true}}
        as |group|
      >
        <group.CheckboxField
          @label='Option 1'
          @value='option-1'
          data-checkbox-group-1
        />
        <group.CheckboxField
          @label='Option 2'
          @value='option-2'
          data-checkbox-group-2
        />
        <group.CheckboxField
          @label='Option 3'
          @value='option-3'
          data-checkbox-group-3
        />
      </form.CheckboxGroup>
    </ToucanForm>

    For CheckboxGroup and RadioGroup, the argument can be set on the root component, or on individual CheckboxFields / RadioFields directly.

  • Updated dependencies [6a08b45, b4f6861, 6a502f7]:

@github-actions github-actions bot force-pushed the changeset-release/main branch 11 times, most recently from 517f241 to 5aee119 Compare April 28, 2023 14:22
@github-actions github-actions bot force-pushed the changeset-release/main branch from 5aee119 to 5722cf2 Compare April 28, 2023 14:48
@nicolechung nicolechung merged commit aa31239 into main Apr 28, 2023
@nicolechung nicolechung deleted the changeset-release/main branch April 28, 2023 16:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants