Align v10.53 (#1109)

* chore(deps): upgrade carbon-components to v10.53.0

* feat(text-area): add maxCount prop

* docs(text-area): add maximum character count

* feat(file-uploader): add disabled prop

* docs(file-uploader): add disabled state example
This commit is contained in:
metonym 2022-02-21 13:40:57 -08:00 committed by GitHub
commit 78072a1c66
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
12 changed files with 98 additions and 23 deletions

View file

@ -11,6 +11,9 @@
*/
export let status = "uploading";
/** Set to `true` to disable the file uploader */
export let disabled = false;
/**
* Specify the accepted file types
* @type {string[]}
@ -99,9 +102,20 @@
on:mouseenter
on:mouseleave
>
<p class:bx--file--label="{true}">{labelTitle}</p>
<p class:bx--label-description="{true}">{labelDescription}</p>
<p
class:bx--file--label="{true}"
class:bx--label-description--disabled="{disabled}"
>
{labelTitle}
</p>
<p
class:bx--label-description="{true}"
class:bx--label-description--disabled="{disabled}"
>
{labelDescription}
</p>
<FileUploaderButton
disabled="{disabled}"
disableLabelChanges
labelText="{buttonLabel}"
accept="{accept}"