refactor(components): alphabetize exported props for scannability

This commit is contained in:
Eric Liu 2019-12-31 16:36:10 -08:00
commit b1fe3de8ad
78 changed files with 265 additions and 264 deletions

View file

@ -1,15 +1,15 @@
<script>
let className = undefined;
export { className as class };
export let kind = 'error';
export let title = 'provide a title';
export let subtitle = ''; // TODO: support subtitle slot?
export let role = 'alert';
export let notificationType = 'inline';
export let iconDescription = 'closes notification';
export let hideCloseButton = false;
export let iconDescription = 'closes notification';
export let kind = 'error';
export let lowContrast = false;
export let notificationType = 'inline';
export let role = 'alert';
export let style = undefined;
export let subtitle = ''; // TODO: support subtitle slot?
export let title = 'provide a title';
import { createEventDispatcher } from 'svelte';
import NotificationIcon from './NotificationIcon.svelte';

View file

@ -3,8 +3,8 @@
import Layout from '../../internal/ui/Layout.svelte';
import InlineNotification from './InlineNotification.svelte';
import ToastNotification from './ToastNotification.svelte';
import NotificationActionButton from './NotificationActionButton.svelte';
import ToastNotification from './ToastNotification.svelte';
</script>
<Layout>

View file

@ -3,8 +3,8 @@
export { className as class };
export let style = undefined;
import Button from '../Button';
import { cx } from '../../lib';
import Button from '../Button';
</script>
<Button

View file

@ -1,12 +1,12 @@
<script>
let className = undefined;
export { className as class };
export let notificationType = 'toast';
export let type = 'button';
export let iconDescription = 'close icon';
export let notificationType = 'toast';
export let renderIcon = Close20;
export let title = undefined;
export let style = undefined;
export let title = undefined;
export let type = 'button';
import Close20 from 'carbon-icons-svelte/lib/Close20';
import { cx } from '../../lib';

View file

@ -3,8 +3,8 @@
export let notificationType = 'toast';
export let iconDescription = 'closes notification';
import ErrorFilled20 from 'carbon-icons-svelte/lib/ErrorFilled20';
import CheckmarkFilled20 from 'carbon-icons-svelte/lib/CheckmarkFilled20';
import ErrorFilled20 from 'carbon-icons-svelte/lib/ErrorFilled20';
import WarningFilled20 from 'carbon-icons-svelte/lib/WarningFilled20';
import { cx } from '../../lib';

View file

@ -1,8 +1,8 @@
<script>
export let title = 'title';
export let subtitle = '';
export let caption = 'caption';
export let notificationType = 'toast';
export let subtitle = '';
export let title = 'title';
import { cx } from '../../lib';
</script>

View file

@ -1,22 +1,22 @@
<script>
let className = undefined;
export { className as class };
export let kind = 'error';
export let title = 'provide a title';
export let subtitle = ''; // TODO: support subtitle slot?
export let caption = 'provide a caption';
export let role = 'alert';
export let notificationType = 'toast';
export let iconDescription = 'closes notification';
export let hideCloseButton = false;
export let iconDescription = 'closes notification';
export let kind = 'error';
export let lowContrast = false;
export let timeout = 0;
export let notificationType = 'toast';
export let role = 'alert';
export let style = undefined;
export let subtitle = ''; // TODO: support subtitle slot?
export let timeout = 0;
export let title = 'provide a title';
import { createEventDispatcher, onMount } from 'svelte';
import NotificationButton from './NotificationButton.svelte';
import NotificationIcon from './NotificationIcon.svelte';
import NotificationTextDetails from './NotificationTextDetails.svelte';
import NotificationButton from './NotificationButton.svelte';
import { cx } from '../../lib';
const dispatch = createEventDispatcher();