mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-14 18:01:06 +00:00
change default name prop value for undefined
This commit is contained in:
parent
6fdb8d10ed
commit
4ab0842866
14 changed files with 14 additions and 14 deletions
2
.gitignore
vendored
2
.gitignore
vendored
|
@ -7,4 +7,4 @@ yarn-debug.log*
|
|||
yarn-error.log*
|
||||
*.tgz
|
||||
.vscode
|
||||
.idea/*
|
||||
.idea
|
||||
|
|
|
@ -18,7 +18,7 @@
|
|||
export let titleText = '';
|
||||
export let translateWithId = undefined;
|
||||
export let value = '';
|
||||
export let name = Math.random();
|
||||
export let name = undefined;
|
||||
|
||||
import { afterUpdate } from 'svelte';
|
||||
import WarningFilled16 from 'carbon-icons-svelte/lib/WarningFilled16';
|
||||
|
|
|
@ -12,7 +12,7 @@
|
|||
export let placeholder = '';
|
||||
export let style = undefined;
|
||||
export let type = 'text';
|
||||
export let name = Math.random();
|
||||
export let name = undefined;
|
||||
|
||||
import { getContext, onMount } from 'svelte';
|
||||
import Calendar16 from 'carbon-icons-svelte/lib/Calendar16';
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
export let disabled = false;
|
||||
export let helperText = '';
|
||||
export let id = Math.random();
|
||||
export let name = Math.random();
|
||||
export let name = undefined;
|
||||
export let inline = false;
|
||||
export let invalid = false;
|
||||
export let invalidText = '';
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
export let filterItem = (item, value) => item.text.toLowerCase().includes(value.toLowerCase());
|
||||
export let helperText = '';
|
||||
export let id = Math.random();
|
||||
export let name = Math.random();
|
||||
export let name = undefined;
|
||||
export let invalid = false;
|
||||
export let invalidText = '';
|
||||
export let items = [];
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
export let hideLabel = false;
|
||||
export let iconDescription = '';
|
||||
export let id = Math.random();
|
||||
export let name = Math.random();
|
||||
export let name = undefined;
|
||||
export let invalid = false;
|
||||
export let invalidText = 'Provide invalidText';
|
||||
export let mobile = false;
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
export let helperText = '';
|
||||
export let hideLabel = false;
|
||||
export let id = Math.random();
|
||||
export let name = Math.random();
|
||||
export let name = undefined;
|
||||
export let inline = false;
|
||||
export let invalid = false;
|
||||
export let invalidText = '';
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
export let helperText = '';
|
||||
export let hideLabel = false;
|
||||
export let id = Math.random();
|
||||
export let name = Math.random();
|
||||
export let name = undefined;
|
||||
export let invalid = false;
|
||||
export let invalidText = '';
|
||||
export let labelText = '';
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
export let hideLabel = false;
|
||||
export let hidePasswordLabel = 'Hide password';
|
||||
export let id = Math.random();
|
||||
export let name = Math.random();
|
||||
export let name = undefined;
|
||||
export let invalid = false;
|
||||
export let invalidText = '';
|
||||
export let labelText = '';
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
export let helperText = '';
|
||||
export let hideLabel = false;
|
||||
export let id = Math.random();
|
||||
export let name = Math.random();
|
||||
export let name = undefined;
|
||||
export let invalid = false;
|
||||
export let invalidText = '';
|
||||
export let labelText = '';
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
export let disabled = false;
|
||||
export let hideLabel = false;
|
||||
export let id = Math.random();
|
||||
export let name = Math.random();
|
||||
export let name = undefined;
|
||||
export let invalid = false;
|
||||
export let invalidText = 'Invalid time format.';
|
||||
export let labelText = '';
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
export let hideLabel = true;
|
||||
export let iconDescription = 'Open list of options';
|
||||
export let id = Math.random();
|
||||
export let name = Math.random();
|
||||
export let name = undefined;
|
||||
export let labelText = '';
|
||||
export let style = undefined;
|
||||
export let value = '';
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
export { className as class };
|
||||
export let disabled = false;
|
||||
export let id = Math.random();
|
||||
export let name = Math.random();
|
||||
export let name = undefined;
|
||||
export let labelA = 'Off';
|
||||
export let labelB = 'On';
|
||||
export let labelText = '';
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
export { className as class };
|
||||
export let disabled = false;
|
||||
export let id = Math.random();
|
||||
export let name = Math.random();
|
||||
export let name = undefined;
|
||||
export let labelA = 'Off';
|
||||
export let labelB = 'On';
|
||||
export let labelText = '';
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue