fix: CopyButton text prop and Dropdown selectedId prop should be required (#1311)

* chore(deps-dev): upgrade sveld to v0.17.0

* fix(copy-button): text prop is required

* fix(dropdown): selectedId prop is required

* Run "yarn build:docs"

* docs: display "Required" tag for required props
This commit is contained in:
metonym 2022-05-22 12:39:53 -07:00 committed by GitHub
commit 04d758f869
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
9 changed files with 2147 additions and 1215 deletions

View file

@ -68,13 +68,18 @@
<InlineSnippet code="{prop.name}" />
{#if prop.reactive}
<div
style="white-space: nowrap; margin-top: var(--cds-spacing-03); margin-bottom: var(--cds-spacing-03)"
style="white-space: nowrap; margin-top: var(--cds-spacing-03); margin-bottom: var(--cds-spacing-{prop.isRequired
? '01'
: '03'})"
>
<Tag style="margin-left: 0" size="sm" type="cyan">
Reactive
</Tag>
</div>
{/if}
{#if prop.isRequired}
<Tag size="sm" type="magenta">Required</Tag>
{/if}
</StructuredListCell>
<StructuredListCell>
{#each (prop.type || "").split(" | ") as type, i (type)}