Releases: CrowdStrike/ember-toucan-core
@crowdstrike/[email protected]
Patch Changes
- #304
23df6cb
Thanks @davideferre! - Add event.preventDefault() when clicking on disabled button to prevent submitting a form
@crowdstrike/[email protected]
Minor Changes
-
#254
532ab89
Thanks @clintcs! - Add Multiselect test helpers. -
#253
c18922f
Thanks @ynotdraw! - BothTextarea
andInput
Controls are now full width by default.The
Textarea
Control markup was adjusted to account for collision with the resize handle and focus/error shadows.The
Input
Control now has small padding along the x-axis. -
#257
ce91639
Thanks @clintcs! - Remove Button's test helpers
Patch Changes
@crowdstrike/[email protected]
Minor Changes
-
#254
532ab89
Thanks @clintcs! - Add Multiselect test helpers. -
#253
c18922f
Thanks @ynotdraw! - BothTextarea
andInput
Controls are now full width by default.The
Textarea
Control markup was adjusted to account for collision with the resize handle and focus/error shadows.The
Input
Control now has small padding along the x-axis. -
#257
ce91639
Thanks @clintcs! - Remove Button's test helpers
Patch Changes
@crowdstrike/[email protected]
Patch Changes
-
#241
1eda28b
Thanks @clintcs! - Improve documentation consistency. -
#244
3312a38
Thanks @ynotdraw! - Adds "Select all" functionality to theMultiselect
via a new component argument. Provide@selectAllText
to opt-in to the functionality. -
Updated dependencies [
d3b7d42
,1eda28b
,3312a38
]:- @crowdstrike/[email protected]
@crowdstrike/[email protected]
Patch Changes
-
#230
d3b7d42
Thanks @joelamb! - horizontally centre disabled button label -
#241
1eda28b
Thanks @clintcs! - Improve documentation consistency. -
#244
3312a38
Thanks @ynotdraw! - Adds "Select all" functionality to theMultiselect
via a new component argument. Provide@selectAllText
to opt-in to the functionality.
@crowdstrike/[email protected]
Minor Changes
-
#232
3d6c159
Thanks @ynotdraw! - Updated all form elements to have thew-full
class, 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
40465de
Thanks @clintcs! - Replace Multiselect's:noResults
block with a@noResultsText
argument. -
#226
9ef84d2
Thanks @clintcs! - Removed from Autocomplete support for@options
as an array of objects. -
#240
b59a575
Thanks @clintcs! - Make Autocomplete@noResultsText
required.
Patch Changes
-
#222
ff50f27
Thanks @ynotdraw! - Expose the:secondary
block and Character Counter component from<ToucanForm
input and textarea components. -
#227
c8a4eb1
Thanks @ynotdraw! - Addedform.Multiselect
support. -
#200
91204aa
Thanks @ynotdraw! - Added anAutocomplete
component to both core and form packages.If you're using
toucan-core
, the control and field components are exposed:If you're using
toucan-form
, the component is exposed via:For more information on using these components, view the docs.
-
Updated dependencies [
1669550
,3d6c159
,40465de
,9ef84d2
,b59a575
,91204aa
,50b4f24
]:- @crowdstrike/[email protected]
@crowdstrike/[email protected]
Minor Changes
-
#232
3d6c159
Thanks @ynotdraw! - Updated all form elements to have thew-full
class, 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
40465de
Thanks @clintcs! - Replace Multiselect's:noResults
block with a@noResultsText
argument. -
#226
9ef84d2
Thanks @clintcs! - Removed from Autocomplete support for@options
as an array of objects. -
#240
b59a575
Thanks @clintcs! - Make Autocomplete@noResultsText
required.
Patch Changes
-
#219
1669550
Thanks @ynotdraw! - Added anMultiselect
component.It has a similar API to
Autocomplete
, but allows for selecting multiple options rather than only one. -
#200
91204aa
Thanks @ynotdraw! - Added anAutocomplete
component to both core and form packages.If you're using
toucan-core
, the control and field components are exposed:If you're using
toucan-form
, the component is exposed via:For more information on using these components, view the docs.
-
#225
50b4f24
Thanks @ynotdraw! - AddedMultiselectField
component - it's the Multiselect control wrapped around aField
.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; } }
@crowdstrike/[email protected]
@crowdstrike/[email protected]
Patch Changes
-
#197
c1130c6
Thanks @ynotdraw! - TheToucanForm
component now yields backsubmit
andreset
actions as the functionality was added toember-headless-form
in this PR.NOTE: Calling
submit
directly is not required for most cases. The implementation only requires a button tag with thetype="submit"
attribute set.However, if you have a more complex case with submission, you can use
form.submit
. -
#189
50547ad
Thanks @ynotdraw! - Add a lock icon to readonly and disabled states for all form components. -
#193
8d05e67
Thanks @ynotdraw! - (internal) Updated repo to use pnpm-sync-dependencies-meta-injected to make local development easier. To develop in the repo, runpnpm start
. -
#194
cf944f6
Thanks @ynotdraw! - Updates disabled styling for all form components to set thetext-disabled
class on the label and hint elements. -
#190
f1b73cd
Thanks @ynotdraw! - (internal) Updated@ember/test-helpers
peer dependency range to^2.8.1 || ^3.0.0
. -
Updated dependencies [
42da468
,50547ad
,8d05e67
,cf944f6
,f1b73cd
]:- @crowdstrike/[email protected]
@crowdstrike/[email protected]
Patch Changes
-
#198
42da468
Thanks @ynotdraw! - Updated<Form::Fields::FileInput
styling to match designs. This included updates to the disabled state as well as the list items. -
#189
50547ad
Thanks @ynotdraw! - Add a lock icon to readonly and disabled states for all form components. -
#193
8d05e67
Thanks @ynotdraw! - (internal) Updated repo to use pnpm-sync-dependencies-meta-injected to make local development easier. To develop in the repo, runpnpm start
. -
#194
cf944f6
Thanks @ynotdraw! - Updates disabled styling for all form components to set thetext-disabled
class on the label and hint elements. -
#190
f1b73cd
Thanks @ynotdraw! - (internal) Updated@ember/test-helpers
peer dependency range to^2.8.1 || ^3.0.0
.