mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-18 11:36:36 +00:00
Merge branch 'master' of github.com:IBM/carbon-components-svelte
This commit is contained in:
commit
36987b202f
15 changed files with 122 additions and 112 deletions
|
@ -3998,7 +3998,7 @@
|
|||
"name": "accept",
|
||||
"kind": "let",
|
||||
"description": "Specify the accepted file types",
|
||||
"type": "Files",
|
||||
"type": "string[]",
|
||||
"value": "[]",
|
||||
"isFunction": false,
|
||||
"constant": false,
|
||||
|
@ -4111,9 +4111,7 @@
|
|||
{ "type": "forwarded", "name": "change", "element": "input" },
|
||||
{ "type": "forwarded", "name": "click", "element": "input" }
|
||||
],
|
||||
"typedefs": [
|
||||
{ "type": "string[]", "name": "Files", "ts": "type Files = string[]" }
|
||||
],
|
||||
"typedefs": [],
|
||||
"rest_props": { "type": "Element", "name": "input" }
|
||||
},
|
||||
{
|
||||
|
@ -4134,7 +4132,7 @@
|
|||
"name": "accept",
|
||||
"kind": "let",
|
||||
"description": "Specify the accepted file types",
|
||||
"type": "Files",
|
||||
"type": "string[]",
|
||||
"value": "[]",
|
||||
"isFunction": false,
|
||||
"constant": false,
|
||||
|
@ -4144,7 +4142,7 @@
|
|||
"name": "files",
|
||||
"kind": "let",
|
||||
"description": "Obtain the uploaded file names",
|
||||
"type": "Files",
|
||||
"type": "FileList",
|
||||
"value": "[]",
|
||||
"isFunction": false,
|
||||
"constant": false,
|
||||
|
@ -4233,8 +4231,8 @@
|
|||
],
|
||||
"slots": [],
|
||||
"events": [
|
||||
{ "type": "dispatched", "name": "add", "detail": "Files" },
|
||||
{ "type": "dispatched", "name": "remove", "detail": "Files" },
|
||||
{ "type": "dispatched", "name": "add", "detail": "FileList" },
|
||||
{ "type": "dispatched", "name": "remove", "detail": "FileList" },
|
||||
{ "type": "forwarded", "name": "click", "element": "div" },
|
||||
{ "type": "forwarded", "name": "mouseover", "element": "div" },
|
||||
{ "type": "forwarded", "name": "mouseenter", "element": "div" },
|
||||
|
@ -4246,9 +4244,7 @@
|
|||
},
|
||||
{ "type": "forwarded", "name": "keydown", "element": "Filename" }
|
||||
],
|
||||
"typedefs": [
|
||||
{ "type": "string[]", "name": "Files", "ts": "type Files = string[]" }
|
||||
],
|
||||
"typedefs": [],
|
||||
"rest_props": { "type": "Element", "name": "div" }
|
||||
},
|
||||
{
|
||||
|
@ -4344,7 +4340,7 @@
|
|||
"name": "accept",
|
||||
"kind": "let",
|
||||
"description": "Specify the accepted file types",
|
||||
"type": "Files",
|
||||
"type": "string[]",
|
||||
"value": "[]",
|
||||
"isFunction": false,
|
||||
"constant": false,
|
||||
|
@ -4364,7 +4360,7 @@
|
|||
"name": "validateFiles",
|
||||
"kind": "let",
|
||||
"description": "Override the default behavior of validating uploaded files\nThe default behavior does not validate files",
|
||||
"type": "(files: Files) => Files",
|
||||
"type": "(files: FileList) => FileList",
|
||||
"value": "(files) => files",
|
||||
"isFunction": true,
|
||||
"constant": false,
|
||||
|
@ -4443,7 +4439,7 @@
|
|||
],
|
||||
"slots": [],
|
||||
"events": [
|
||||
{ "type": "dispatched", "name": "add", "detail": "Files" },
|
||||
{ "type": "dispatched", "name": "add", "detail": "FileList" },
|
||||
{ "type": "forwarded", "name": "dragover", "element": "div" },
|
||||
{ "type": "forwarded", "name": "dragleave", "element": "div" },
|
||||
{ "type": "forwarded", "name": "drop", "element": "div" },
|
||||
|
@ -4451,9 +4447,7 @@
|
|||
{ "type": "forwarded", "name": "change", "element": "input" },
|
||||
{ "type": "forwarded", "name": "click", "element": "input" }
|
||||
],
|
||||
"typedefs": [
|
||||
{ "type": "string[]", "name": "Files", "ts": "type Files = string[]" }
|
||||
],
|
||||
"typedefs": [],
|
||||
"rest_props": { "type": "Element", "name": "div" }
|
||||
},
|
||||
{
|
||||
|
|
|
@ -138,7 +138,10 @@
|
|||
{#if prop.description}
|
||||
{#each prop.description.split('\n') as line}
|
||||
<div class="description">
|
||||
{@html line.replace(/`(.*?)`/g, '<code>$1</code>')}.
|
||||
{@html line
|
||||
.replace(/\</g, '<')
|
||||
.replace(/\>/g, '>')
|
||||
.replace(/`(.*?)`/g, '<code>$1</code>')}.
|
||||
</div>
|
||||
{/each}
|
||||
{:else}
|
||||
|
|
|
@ -51,6 +51,8 @@ components: ["OrderedList", "ListItem"]
|
|||
|
||||
### Native list styles
|
||||
|
||||
Use the `native` attribute to enable default browser list styles. This is useful for large lists (i.e., 1000 or more items) where the list number may overlap with the list item text.
|
||||
|
||||
<OrderedList native>
|
||||
<ListItem>
|
||||
Ordered list level 1
|
||||
|
|
|
@ -25,7 +25,7 @@
|
|||
<Column>
|
||||
<h1>Carbon Components Svelte</h1>
|
||||
<p class="big-paragraph">
|
||||
carbon-components-svelte is a
|
||||
Carbon Components Svelte is a
|
||||
<Link
|
||||
inline
|
||||
class="big-link"
|
||||
|
@ -44,8 +44,8 @@
|
|||
by IBM.
|
||||
</p>
|
||||
<p>
|
||||
A design system can facilitate frontend development and prototyping
|
||||
because it encourages reuse, consistency, and extensibility.
|
||||
Design systems facilitate design and development through reuse,
|
||||
consistency, and extensibility.
|
||||
</p>
|
||||
</Column>
|
||||
</Row>
|
||||
|
@ -74,8 +74,8 @@
|
|||
<Column>
|
||||
<h3>Portfolio</h3>
|
||||
<p>
|
||||
The broader Carbon Svelte effort extends to the icons, pictograms, and
|
||||
data visualization libraries.
|
||||
The broader Carbon Svelte effort includes libraries for icons,
|
||||
pictograms, and data visualization.
|
||||
</p>
|
||||
</Column>
|
||||
</Row>
|
||||
|
@ -94,7 +94,7 @@
|
|||
<TileCard
|
||||
borderBottom
|
||||
title="Carbon Icons Svelte"
|
||||
subtitle="5000+ icons"
|
||||
subtitle="5800+ icons"
|
||||
target="_blank"
|
||||
href="https://github.com/IBM/carbon-icons-svelte"
|
||||
/>
|
||||
|
@ -113,7 +113,7 @@
|
|||
<Column xlg="{5}" lg="{8}" md="{4}">
|
||||
<TileCard
|
||||
title="Carbon Charts Svelte"
|
||||
subtitle="13 chart types, powered by d3"
|
||||
subtitle="16 chart types, powered by d3"
|
||||
target="_blank"
|
||||
href="https://github.com/carbon-design-system/carbon-charts/tree/master/packages/svelte"
|
||||
/>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue