Recent Releases of https://github.com/crowdstrike/ember-toucan-core
https://github.com/crowdstrike/ember-toucan-core - @crowdstrike/ember-toucan-form@0.5.1
Patch Changes
#645
7a923dcThanks @ryan-nauman-cs! - fix(autocomplete): fix assertion to accept nullUpdated dependencies [
227c6d5]:- @crowdstrike/ember-toucan-core@0.4.6
- TypeScript
Published by github-actions[bot] 12 months ago
https://github.com/crowdstrike/ember-toucan-core - @crowdstrike/ember-toucan-core@0.4.6
Patch Changes
- #645
227c6d5Thanks @ryan-nauman-cs! - fix(autocomplete): allow null type
- TypeScript
Published by github-actions[bot] 12 months ago
https://github.com/crowdstrike/ember-toucan-core - @crowdstrike/ember-toucan-core@0.4.5
Patch Changes
- #643
181a62cThanks @ryan-nauman-cs! - Fixed multiselect container click handler to properly focus the correct input element when multiple components are present
- TypeScript
Published by github-actions[bot] about 1 year ago
https://github.com/crowdstrike/ember-toucan-core - @crowdstrike/ember-toucan-core@0.4.4
Patch Changes
#561
f6c8b66Thanks @nicolechung! - Added min-w-0 to the button component to enable truncation for components that use button.
- TypeScript
Published by github-actions[bot] over 1 year ago
https://github.com/crowdstrike/ember-toucan-core - @crowdstrike/ember-toucan-core@0.4.3
Patch Changes
- TypeScript
Published by github-actions[bot] over 1 year ago
https://github.com/crowdstrike/ember-toucan-core - @crowdstrike/ember-toucan-form@0.5.0
Minor Changes
- #466
c862e5dThanks @bradaune-cs! - Exposes validationState, submissionState, isInvalid and rawErrors from the HeadlessForm component
Patch Changes
- Updated dependencies [
e274211]:- @crowdstrike/ember-toucan-core@0.4.2
- TypeScript
Published by github-actions[bot] over 1 year ago
https://github.com/crowdstrike/ember-toucan-core - @crowdstrike/ember-toucan-core@0.4.2
Patch Changes
- TypeScript
Published by github-actions[bot] over 1 year ago
https://github.com/crowdstrike/ember-toucan-core - @crowdstrike/ember-toucan-core@0.4.1
Patch Changes
- #304
23df6cbThanks @davideferre! - Add event.preventDefault() when clicking on disabled button to prevent submitting a form
- TypeScript
Published by github-actions[bot] over 2 years ago
https://github.com/crowdstrike/ember-toucan-core - @crowdstrike/ember-toucan-form@0.4.0
Minor Changes
#254
532ab89Thanks @clintcs! - Add Multiselect test helpers.#253
c18922fThanks @ynotdraw! - BothTextareaandInputControls are now full width by default.The
TextareaControl markup was adjusted to account for collision with the resize handle and focus/error shadows.The
InputControl now has small padding along the x-axis.#257
ce91639Thanks @clintcs! - Remove Button's test helpers
Patch Changes
#246
0e817b6Thanks @ynotdraw! - (internal) Updated both packages to use the<template>tag andgtsfile extension.#248
52ded27Thanks @clintcs! - add Autocomplete test helpers.Updated dependencies [
532ab89,0e817b6,52ded27,c18922f,ce91639]:- @crowdstrike/ember-toucan-core@0.4.0
- TypeScript
Published by github-actions[bot] almost 3 years ago
https://github.com/crowdstrike/ember-toucan-core - @crowdstrike/ember-toucan-core@0.4.0
Minor Changes
#254
532ab89Thanks @clintcs! - Add Multiselect test helpers.#253
c18922fThanks @ynotdraw! - BothTextareaandInputControls are now full width by default.The
TextareaControl markup was adjusted to account for collision with the resize handle and focus/error shadows.The
InputControl now has small padding along the x-axis.#257
ce91639Thanks @clintcs! - Remove Button's test helpers
Patch Changes
#246
0e817b6Thanks @ynotdraw! - (internal) Updated both packages to use the<template>tag andgtsfile extension.#248
52ded27Thanks @clintcs! - add Autocomplete test helpers.
- TypeScript
Published by github-actions[bot] almost 3 years ago
https://github.com/crowdstrike/ember-toucan-core - @crowdstrike/ember-toucan-form@0.3.1
Patch Changes
#241
1eda28bThanks @clintcs! - Improve documentation consistency.#244
3312a38Thanks @ynotdraw! - Adds "Select all" functionality to theMultiselectvia a new component argument. Provide@selectAllTextto opt-in to the functionality.Updated dependencies [
d3b7d42,1eda28b,3312a38]:- @crowdstrike/ember-toucan-core@0.3.1
- TypeScript
Published by github-actions[bot] almost 3 years ago
https://github.com/crowdstrike/ember-toucan-core - @crowdstrike/ember-toucan-core@0.3.1
Patch Changes
#230
d3b7d42Thanks @joelamb! - horizontally centre disabled button label#241
1eda28bThanks @clintcs! - Improve documentation consistency.#244
3312a38Thanks @ynotdraw! - Adds "Select all" functionality to theMultiselectvia a new component argument. Provide@selectAllTextto opt-in to the functionality.
- TypeScript
Published by github-actions[bot] almost 3 years ago
https://github.com/crowdstrike/ember-toucan-core - @crowdstrike/ember-toucan-core@0.3.0
Minor Changes
#232
3d6c159Thanks @ynotdraw! - Updated all form elements to have thew-fullclass, making them full width by default. The width of the element is now determined by the container. To restrict the width of the element, use a wrapping tag with an appropriate class name applied.#238
40465deThanks @clintcs! - Replace Multiselect's:noResultsblock with a@noResultsTextargument.#226
9ef84d2Thanks @clintcs! - Removed from Autocomplete support for@optionsas an array of objects.#240
b59a575Thanks @clintcs! - Make Autocomplete@noResultsTextrequired.
Patch Changes
#219
1669550Thanks @ynotdraw! - Added anMultiselectcomponent.It has a similar API to
Autocomplete, but allows for selecting multiple options rather than only one.```hbs <Form::Controls::Multiselect @contentClass='z-10' @noResultsText='No results' @onChange={{this.onChange}} @optionKey='label' @options={{this.options}} @selected={{this.selected}} placeholder='Colors'
<!-- NOTE: The chip block is required and a Remove component's label is also required! --> <:chip as |chip|>
{{chip.option}} </:chip><:default as |multiselect|>
{{multiselect.option.label}} </:default> /Form::Controls::Multiselect ```#200
91204aaThanks @ynotdraw! - Added anAutocompletecomponent to both core and form packages.If you're using
toucan-core, the control and field components are exposed:```hbs <Form::Controls::Autocomplete @onChange={{this.onChange}} @options={{this.options}} @contentClass='z-10' @selected={{this.selected}} @noResultsText='No results' placeholder='Colors' as |autocomplete|
{{autocomplete.option.label}} /Form::Controls::Autocomplete<Form::Fields::Autocomplete @contentClass='z-10' @error={{this.errorMessage}} @hint='Type "blue" into the field' @label='Label' @noResultsText='No results' @onChange={{this.onChange}} @options={{this.options}} @selected={{this.selected}} placeholder='Colors' as |autocomplete|
{{autocomplete.option.label}} /Form::Fields::Autocomplete ```If you're using
toucan-form, the component is exposed via:```hbs
<form.Autocomplete @label='Autocomplete' @name='autocomplete' @options={{options}} data-autocomplete as |autocomplete| <autocomplete.Option data-option> {{autocomplete.option}} </autocomplete.Option>```
For more information on using these components, view the docs.
#225
50b4f24Thanks @ynotdraw! - AddedMultiselectFieldcomponent - it's the Multiselect control wrapped around aField.```hbs <Form::Controls::Multiselect @contentClass='z-10' @hint='Select a color' @label='Label' @noResultsText='No results' @onChange={{this.onChange}} @options={{this.options}} @selected={{this.selected}}
<!-- NOTE: The chip block is required and a Remove component's
@label` is also required! --> <:chip as |chip|>{{chip.option}} </:chip><:default as |multiselect|>
{{multiselect.option}} </:default> /Form::Controls::Multiselect ``````js import Component from '@glimmer/component'; import { action } from '@ember/object'; import { tracked } from '@glimmer/tracking';
export default class extends Component { @tracked selected;
options = ['Blue', 'Red', 'Yellow'];
@action onChange(options) { this.selected = options; } } ```
- TypeScript
Published by github-actions[bot] almost 3 years ago
https://github.com/crowdstrike/ember-toucan-core - @crowdstrike/ember-toucan-form@0.3.0
Minor Changes
#232
3d6c159Thanks @ynotdraw! - Updated all form elements to have thew-fullclass, making them full width by default. The width of the element is now determined by the container. To restrict the width of the element, use a wrapping tag with an appropriate class name applied.#238
40465deThanks @clintcs! - Replace Multiselect's:noResultsblock with a@noResultsTextargument.#226
9ef84d2Thanks @clintcs! - Removed from Autocomplete support for@optionsas an array of objects.#240
b59a575Thanks @clintcs! - Make Autocomplete@noResultsTextrequired.
Patch Changes
#222
ff50f27Thanks @ynotdraw! - Expose the:secondaryblock and Character Counter component from<ToucanForminput and textarea components.```hbs
<:label>Label</:label> <:hint>Hint</:hint> <:secondary as |secondary|> </:secondary> <:label>Label</:label> <:hint>Hint</:hint> <:secondary as |secondary|> ```</:secondary> #227
c8a4eb1Thanks @ynotdraw! - Addedform.Multiselectsupport.```hbs
<form.Multiselect @hint='Hint' @label='Label' @name='selection' @noResultsText='No results' @options={{this.options}} <:chip as |chip|> <chip.Chip> {{chip.option}} <chip.Remove @label={{(concat 'Remove' ' ' chip.option)}} /> </chip.Chip> </:chip><:default as |multiselect|> <multiselect.Option>{{multiselect.option}}</multiselect.Option> </:default>```
#200
91204aaThanks @ynotdraw! - Added anAutocompletecomponent to both core and form packages.If you're using
toucan-core, the control and field components are exposed:```hbs <Form::Controls::Autocomplete @onChange={{this.onChange}} @options={{this.options}} @contentClass='z-10' @selected={{this.selected}} @noResultsText='No results' placeholder='Colors' as |autocomplete|
{{autocomplete.option.label}} /Form::Controls::Autocomplete<Form::Fields::Autocomplete @contentClass='z-10' @error={{this.errorMessage}} @hint='Type "blue" into the field' @label='Label' @noResultsText='No results' @onChange={{this.onChange}} @options={{this.options}} @selected={{this.selected}} placeholder='Colors' as |autocomplete|
{{autocomplete.option.label}} /Form::Fields::Autocomplete ```If you're using
toucan-form, the component is exposed via:```hbs
<form.Autocomplete @label='Autocomplete' @name='autocomplete' @options={{options}} data-autocomplete as |autocomplete| <autocomplete.Option data-option> {{autocomplete.option}} </autocomplete.Option>```
For more information on using these components, view the docs.
Updated dependencies [
1669550,3d6c159,40465de,9ef84d2,b59a575,91204aa,50b4f24]:- @crowdstrike/ember-toucan-core@0.3.0
- TypeScript
Published by github-actions[bot] almost 3 years ago
https://github.com/crowdstrike/ember-toucan-core - @crowdstrike/ember-toucan-core@0.2.2
Patch Changes
#212
eb5b130Thanks @joelamb! - fixes flex-grow for disabled button#208
e907310Thanks @ynotdraw! - Adds error styling when the current character length is greater than maximum character length for the input and textarea components using the character counter.
- TypeScript
Published by github-actions[bot] about 3 years ago
https://github.com/crowdstrike/ember-toucan-core - @crowdstrike/ember-toucan-form@0.2.1
Patch Changes
#197
c1130c6Thanks @ynotdraw! - TheToucanFormcomponent now yields backsubmitandresetactions as the functionality was added toember-headless-formin this PR.NOTE: Calling
submitdirectly is not required for most cases. The implementation only requires a button tag with thetype="submit"attribute set.hbs <ToucanForm as |form|> {{! This should be used for most cases }} <button type='submit'>Submit</button> <button {{on 'click' form.reset}} type='button'>Reset</button> </ToucanForm>However, if you have a more complex case with submission, you can use
form.submit.hbs <ToucanForm as |form|> <button {{on 'click' form.submit}} type='button'>Submit</button> <button {{on 'click' form.reset}} type='button'>Reset</button> </ToucanForm>#189
50547adThanks @ynotdraw! - Add a lock icon to readonly and disabled states for all form components.#193
8d05e67Thanks @ynotdraw! - (internal) Updated repo to use pnpm-sync-dependencies-meta-injected to make local development easier. To develop in the repo, runpnpm start.#194
cf944f6Thanks @ynotdraw! - Updates disabled styling for all form components to set thetext-disabledclass on the label and hint elements.#190
f1b73cdThanks @ynotdraw! - (internal) Updated@ember/test-helperspeer dependency range to^2.8.1 || ^3.0.0.Updated dependencies [
42da468,50547ad,8d05e67,cf944f6,f1b73cd]:- @crowdstrike/ember-toucan-core@0.2.1
- TypeScript
Published by github-actions[bot] about 3 years ago
https://github.com/crowdstrike/ember-toucan-core - @crowdstrike/ember-toucan-core@0.2.1
Patch Changes
#198
42da468Thanks @ynotdraw! - Updated<Form::Fields::FileInputstyling to match designs. This included updates to the disabled state as well as the list items.#189
50547adThanks @ynotdraw! - Add a lock icon to readonly and disabled states for all form components.#193
8d05e67Thanks @ynotdraw! - (internal) Updated repo to use pnpm-sync-dependencies-meta-injected to make local development easier. To develop in the repo, runpnpm start.#194
cf944f6Thanks @ynotdraw! - Updates disabled styling for all form components to set thetext-disabledclass on the label and hint elements.#190
f1b73cdThanks @ynotdraw! - (internal) Updated@ember/test-helperspeer dependency range to^2.8.1 || ^3.0.0.
- TypeScript
Published by github-actions[bot] about 3 years ago
https://github.com/crowdstrike/ember-toucan-core - @crowdstrike/ember-toucan-form@0.2.0
Minor Changes
Patch Changes
- #177
17dcffaThanks @ynotdraw! - Added<form.FileInput>support totoucan-form. Resolved a bug where theacceptattribute was not being applied to thetoucan-corefile-input control. Resolved a bug whereToucanFormFileInputFieldComponentSignaturewas not being exported from the file-input field.
- TypeScript
Published by github-actions[bot] about 3 years ago
https://github.com/crowdstrike/ember-toucan-core - @crowdstrike/ember-toucan-core@0.2.0
Minor Changes
Patch Changes
#177
17dcffaThanks @ynotdraw! - Added<form.FileInput>support totoucan-form. Resolved a bug where theacceptattribute was not being applied to thetoucan-corefile-input control. Resolved a bug whereToucanFormFileInputFieldComponentSignaturewas not being exported from the file-input field.#183
cc495bdThanks @ynotdraw! - Fixed a re-selection bug with Form::Controls::FileInput.
- TypeScript
Published by github-actions[bot] about 3 years ago
https://github.com/crowdstrike/ember-toucan-core - @crowdstrike/ember-toucan-form@0.1.2
Patch Changes
- #162
f241920Thanks @ynotdraw! - Updated to version beta-3 of ember-headless-form.
- TypeScript
Published by github-actions[bot] about 3 years ago
https://github.com/crowdstrike/ember-toucan-core - @crowdstrike/ember-toucan-form@0.1.1
Patch Changes
#156
20d433fThanks @ynotdraw! - Exposed named blocks from the underlyingtoucan-corecomponents. This allows users to add custom content in:hintor:labelnamed blocks. You can combine the arguments and named blocks as well! Below are some examples.hbs <ToucanForm @data={{data}} as |form|> <form.Textarea @name='comment'> <:label>Label</:label> <:hint>Hint</:hint> </form.Textarea> </ToucanForm>hbs <ToucanForm @data={{data}} as |form|> <form.Textarea @label='Label' @name='comment'> <:hint>Hint</:hint> </form.Textarea> </ToucanForm>hbs <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!
hbs <ToucanForm @data={{data}} as |form|> <form.Textarea @label='Label' @hint='Hint' @name='comment' /> </ToucanForm>#145
752e6b1Thanks @ynotdraw! - Added@isReadOnlycomponent argument support.```hbs
<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.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 />```
For CheckboxGroup and RadioGroup, the argument can be set on the root component, or on individual CheckboxFields / RadioFields directly.
Updated dependencies [
6a08b45,b4f6861,6a502f7]:- @crowdstrike/ember-toucan-core@0.1.2
- TypeScript
Published by github-actions[bot] about 3 years ago
https://github.com/crowdstrike/ember-toucan-core - @crowdstrike/ember-toucan-core@0.1.2
Patch Changes
#115
6a08b45Thanks @nicolechung! - Added Character Count in InputFieldAdded optional character count in the Input Field component, along with related base demo and tests.
#132
b4f6861Thanks @ynotdraw! - Added the@isReadOnlycomponent argument to all form components. It will apply read only styling and thereadonlyattribute. This requires the latest release of @crowdstrike/tailwind-toucan-base.#157
6a502f7Thanks @nicolechung! - Added: Character Count for Textarea Field
- TypeScript
Published by github-actions[bot] about 3 years ago
https://github.com/crowdstrike/ember-toucan-core - @crowdstrike/ember-toucan-form@0.1.0
Minor Changes
#137
3e662e9Thanks @ynotdraw! -@crowdstrike/ember-toucan-formnow exposes the following components to use when building forms:@crowdstrike-ember-toucan-corewas updated to resolve TypeScript errors and regressions: -CheckboxGroup@errorargument now accepts an array of strings -CheckboxGrouphad a regression with the rootdata-*attribute that has been resolved by re-adding the component argument -RadioGrouphad a regression with the rootdata-*attribute that has been resolved
Patch Changes
- TypeScript
Published by github-actions[bot] about 3 years ago
https://github.com/crowdstrike/ember-toucan-core - @crowdstrike/ember-toucan-core@0.1.1
Patch Changes
#140
c5e97aeThanks @ynotdraw! - Replaced placeholder icons with Toucan icons.#137
3e662e9Thanks @ynotdraw! -@crowdstrike/ember-toucan-formnow exposes the following components to use when building forms:@crowdstrike-ember-toucan-corewas updated to resolve TypeScript errors and regressions: -CheckboxGroup@errorargument now accepts an array of strings -CheckboxGrouphad a regression with the rootdata-*attribute that has been resolved by re-adding the component argument -RadioGrouphad a regression with the rootdata-*attribute that has been resolved
- TypeScript
Published by github-actions[bot] about 3 years ago
https://github.com/crowdstrike/ember-toucan-core - @crowdstrike/ember-toucan-core@0.1.0
Minor Changes
#110
26b324fThanks @nicolechung! - - Added label and hint named blocks to all the Field components.- Removed Fieldset.
#113
46f7fa0Thanks @ynotdraw! - The following components have been added and can be used with this release:-
Button -
Form::Controls::Checkbox -
Form::Controls::FileInput -
Form::Controls::Input -
Form::Controls::Radio -
Form::Controls::Textarea -
Form::Field -
Form::Fieldset -
Form::Fields::Checkbox -
Form::Fields::CheckboxGroup -
Form::Fields::Input -
Form::Fields::FileInput -
Form::Fields::Radio -
Form::Fields::RadioGroup -
Form::Fields::Textarea -
Form::FileInput::List -
Form::FileInput::DeleteButton
-
Patch Changes
#128
ae07d89Thanks @simonihmig! - Support@isButtonGroupmode for<Button>This is only to be used internally to support buttons being used inside a
<ButtonGroup>.
- TypeScript
Published by github-actions[bot] over 3 years ago
https://github.com/crowdstrike/ember-toucan-core - @crowdstrike/ember-toucan-core@0.1.0-beta.0
Minor Changes
#113
46f7fa0Thanks @ynotdraw! - The following components have been added and can be used with this release:-
Button -
Form::Controls::Checkbox -
Form::Controls::FileInput -
Form::Controls::Input -
Form::Controls::Radio -
Form::Controls::Textarea -
Form::Field -
Form::Fieldset -
Form::Fields::Checkbox -
Form::Fields::CheckboxGroup -
Form::Fields::Input -
Form::Fields::FileInput -
Form::Fields::Radio -
Form::Fields::RadioGroup -
Form::Fields::Textarea -
Form::FileInput::List -
Form::FileInput::DeleteButton
-
- TypeScript
Published by github-actions[bot] over 3 years ago