mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-15 10:21:05 +00:00
feat: upgrade carbon-components to v10.56.0 (#1213)
* chore(deps-dev): upgrade carbon-components to v10.56.0 * feat(progress-bar): add kind prop * Run "yarn build:docs" * test(progress-bar): assert kind prop
This commit is contained in:
parent
21714d0e3a
commit
ade0557448
10 changed files with 71 additions and 35 deletions
|
@ -8,6 +8,12 @@
|
|||
/** Specify the maximum value */
|
||||
export let max = 100;
|
||||
|
||||
/**
|
||||
* Specify the kind of progress bar
|
||||
* @type {"default" | "inline" | "indented"}
|
||||
*/
|
||||
export let kind = "default";
|
||||
|
||||
/**
|
||||
* Specify the size
|
||||
* @type {"sm" | "md"}
|
||||
|
@ -37,6 +43,8 @@
|
|||
class:bx--progress-bar--indeterminate="{indeterminate}"
|
||||
class:bx--progress-bar--big="{size === 'md'}"
|
||||
class:bx--progress-bar--small="{size === 'sm'}"
|
||||
class:bx--progress-bar--inline="{kind === 'inline'}"
|
||||
class:bx--progress-bar--indented="{kind === 'indented'}"
|
||||
{...$$restProps}
|
||||
>
|
||||
<label
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue